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;