From 7ff47ffa92b5637e39f0cab05b781539bccbb486 Mon Sep 17 00:00:00 2001 From: Emily Williams Date: Thu, 5 Dec 2024 13:42:17 -0500 Subject: [PATCH] delete commented code --- contracts/hooks/examples/TWAMM.sol | 3 --- 1 file changed, 3 deletions(-) diff --git a/contracts/hooks/examples/TWAMM.sol b/contracts/hooks/examples/TWAMM.sol index ca601354..42c4444c 100644 --- a/contracts/hooks/examples/TWAMM.sol +++ b/contracts/hooks/examples/TWAMM.sol @@ -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;