Skip to content

Commit

Permalink
fix: bug with getBbnParamByBtcHeight (#545)
Browse files Browse the repository at this point in the history
  • Loading branch information
jrwbabylonlab authored Dec 23, 2024
1 parent 65195bb commit d764a48
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/params/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export const getBbnParamByBtcHeight = (
) => {
// Sort by btcActivationHeight in ascending order
const sortedParams = [...bbnParams].sort(
(a, b) => a.btcActivationHeight - b.btcActivationHeight,
(a, b) => b.btcActivationHeight - a.btcActivationHeight,
);

// Find first param where height is >= btcActivationHeight
Expand Down

0 comments on commit d764a48

Please sign in to comment.