sushiswap / trident

Rapid AMM Development Framework
GNU General Public License v3.0
231 stars 126 forks source link

ConcentratedLiquidityPool:rangeFeeGrowth issue #338

Open theKata opened 2 years ago

theKata commented 2 years ago

https://github.com/sushiswap/trident/blob/ef1f4ed9de50325c8f84edd90aecfafbcfe31ee5/contracts/pool/concentrated/ConcentratedLiquidityPool.sol#L561-L566

When calculating feeGrowth, currentTick must be calculated based on the current price for it to be calculated correctly.