Skip to content

Commit

Permalink
Fix a bug in decrease liquidity quote calculation in legacy sdk (#613)
Browse files Browse the repository at this point in the history
  • Loading branch information
wjthieme authored Dec 26, 2024
1 parent 2aacc11 commit 7b315fc
Showing 1 changed file with 0 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -103,10 +103,6 @@ export function decreaseLiquidityQuoteByLiquidityWithParams(
TickUtil.checkTickInBounds(params.tickUpperIndex),
"tickUpperIndex is out of bounds.",
);
invariant(
TickUtil.checkTickInBounds(params.tickCurrentIndex),
"tickCurrentIndex is out of bounds.",
);

if (params.liquidity.eq(ZERO)) {
return {
Expand Down

0 comments on commit 7b315fc

Please sign in to comment.