diff --git a/src/PositionManager.sol b/src/PositionManager.sol index f5840999..f9dbd2e3 100644 --- a/src/PositionManager.sol +++ b/src/PositionManager.sol @@ -420,8 +420,8 @@ contract PositionManager is // Can only call modify if there is non zero liquidity. BalanceDelta feesAccrued; - BalanceDelta liquidityDelta; if (liquidity > 0) { + BalanceDelta liquidityDelta; // do not use _modifyLiquidity as we do not need to notify on modification for burns. (liquidityDelta, feesAccrued) = poolManager.modifyLiquidity( poolKey,