Skip to content

Commit 80fda75

Browse files
committed
add comment regarding ticks
1 parent 59915ac commit 80fda75

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
@@ -290,6 +290,7 @@ library StateLibrary {
290290
/**
291291
* @notice Live calculate the fee growth inside a tick range of a pool
292292
* @dev pools[poolId].feeGrowthInside0LastX128 in Position.Info is cached and can become stale. This function will live calculate the feeGrowthInside
293+
* @dev It must already be ensured that tickLower < tickUpper holds and both ticks be initialized ticks, otherwise the data will be incorrect.
293294
* @param manager The pool manager contract.
294295
* @param poolId The ID of the pool.
295296
* @param tickLower The lower tick of the range.

0 commit comments

Comments
 (0)