From 73405e15e5e1f78325240a3baabe0ecb981a0dcf Mon Sep 17 00:00:00 2001 From: xyek <111226649+xyek@users.noreply.github.com> Date: Fri, 31 May 2024 07:07:26 +0000 Subject: [PATCH] add comment regarding ticks --- src/libraries/StateLibrary.sol | 1 + 1 file changed, 1 insertion(+) diff --git a/src/libraries/StateLibrary.sol b/src/libraries/StateLibrary.sol index 9ce49d105..c8265ad66 100644 --- a/src/libraries/StateLibrary.sol +++ b/src/libraries/StateLibrary.sol @@ -291,6 +291,7 @@ library StateLibrary { /** * @notice Live calculate the fee growth inside a tick range of a pool * @dev pools[poolId].feeGrowthInside0LastX128 in Position.Info is cached and can become stale. This function will live calculate the feeGrowthInside + * @dev It must already be ensured that tickLower < tickUpper holds and both ticks be initialized ticks, otherwise the data will be incorrect. * @param manager The pool manager contract. * @param poolId The ID of the pool. * @param tickLower The lower tick of the range.