Skip to content

Commit

Permalink
delete commented code
Browse files Browse the repository at this point in the history
  • Loading branch information
ewilz committed Dec 5, 2024
1 parent 75f4234 commit 7ff47ff
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions contracts/hooks/examples/TWAMM.sol
Original file line number Diff line number Diff line change
Expand Up @@ -536,9 +536,6 @@ contract TWAMM is BaseHook, ITWAMM {
params.pool.sqrtPriceX96, initializedSqrtPrice, params.pool.liquidity, true
);

// params.pool.liquidity = params.zeroForOne
// ? params.pool.liquidity - uint128(liquidityNetAtTick)
// : params.pool.liquidity + uint128(-liquidityNetAtTick);
if (params.zeroForOne) liquidityNetAtTick = -liquidityNetAtTick;
params.pool.liquidity = LiquidityMath.addDelta(params.pool.liquidity, liquidityNetAtTick);
params.pool.sqrtPriceX96 = initializedSqrtPrice;
Expand Down

0 comments on commit 7ff47ff

Please sign in to comment.