Skip to content

Commit 73405e1

Browse files
committed
add comment regarding ticks
1 parent 6e6ce35 commit 73405e1

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/libraries/StateLibrary.sol

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -291,6 +291,7 @@ library StateLibrary {
291291
/**
292292
* @notice Live calculate the fee growth inside a tick range of a pool
293293
* @dev pools[poolId].feeGrowthInside0LastX128 in Position.Info is cached and can become stale. This function will live calculate the feeGrowthInside
294+
* @dev It must already be ensured that tickLower < tickUpper holds and both ticks be initialized ticks, otherwise the data will be incorrect.
294295
* @param manager The pool manager contract.
295296
* @param poolId The ID of the pool.
296297
* @param tickLower The lower tick of the range.

0 commit comments

Comments
 (0)