Skip to content

Commit

Permalink
fix: subtract as lower tick
Browse files Browse the repository at this point in the history
  • Loading branch information
ogous committed Aug 29, 2024
1 parent 1bfecdc commit fd62f36
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions web/src/components/StakeForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,7 @@ export const StakeForm = ({ mode, poolId, positionId }: StakeFormProps) => {
const delta = cur === upper ? 1n : 0n;
// delta is a guard for same lower and upper ticks
const liq = getLiquidityForAmount0(
cur + delta,
cur - delta,
upper,
BigInt(token0AmountRaw),
);
Expand All @@ -289,7 +289,7 @@ export const StakeForm = ({ mode, poolId, positionId }: StakeFormProps) => {
// delta is a guard for same lower and upper ticks
const delta = cur === lower ? 1n : 0n;
const liq = getLiquidityForAmount1(
cur + delta,
cur - delta,
lower,
BigInt(token1AmountRaw),
);
Expand Down

0 comments on commit fd62f36

Please sign in to comment.