Skip to content

Commit

Permalink
little bug
Browse files Browse the repository at this point in the history
  • Loading branch information
MxianD committed Aug 26, 2024
1 parent 3cfab23 commit 8bb22b3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/UniswapV3Pool.sol
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ contract UniswapV3Pool is IUniswapV3Pool {
amount
);

liquidity = LiquidityMath.addLiquidity(liquidity, int128(amount)); // TODO: amount is negative when removing liquidity
liquidity = LiquidityMath.addLiquidity(liquidity, int128(amount));
} else {
amount1 = Math.calcAmount1Delta(
TickMath.getSqrtRatioAtTick(lowerTick),
Expand Down

0 comments on commit 8bb22b3

Please sign in to comment.