Position
Positions represent an owner address' liquidity between a lower and upper tick boundary
Positions store additional state for tracking fees owed to the position
Functions
get
Returns the Info struct of a position, given an owner and position boundaries
Parameters:
Name | Type | Description |
---|---|---|
| mapping(bytes32 => struct Position.Info) | The mapping containing all user positions |
| address | The address of the position owner |
| int24 | The lower tick boundary of the position |
| int24 | The upper tick boundary of the position |
Return Values:
Name | Type | Description |
---|---|---|
| struct Position.Info | The position info struct of the given owners' position |
update
Credits accumulated fees to a user's position
Parameters:
Name | Type | Description |
---|---|---|
| struct Position.Info | The mapping containing all user positions |
| int128 | The change in pool liquidity as a result of the position update |
| uint256 | The all-time fee growth in token0, per unit of liquidity, inside the position's tick boundaries |
| uint256 | The all-time fee growth in token1, per unit of liquidity, inside the position's tick boundaries |
Last updated