ISeawaterExecutorPosition
Functions
mintPositionBC5B086D
creates a new position
function mintPositionBC5B086D(address pool, int32 lower, int32 upper) external returns (uint256 id);
Parameters
Name | Type | Description |
---|---|---|
pool | address | the pool to create the position on |
lower | int32 | the lower tick of the position (for concentrated liquidity) |
upper | int32 | the upper tick of the position |
transferPositionEEC7A3CD
transferPosition transfers a position. usable only by the NFT manager
function transferPositionEEC7A3CD(uint256 id, address from, address to) external;
Parameters
Name | Type | Description |
---|---|---|
id | uint256 | the id of the position to transfer |
from | address | the user to transfer the position from |
to | address | the user to transfer the position to |
positionOwnerD7878480
gets the owner of a position
function positionOwnerD7878480(uint256 id) external returns (address);
Parameters
Name | Type | Description |
---|---|---|
id | uint256 | the id of the position |
Returns
Name | Type | Description |
---|---|---|
<none> | address | the owner of the position |
positionBalance4F32C7DB
gets the number of positions owned by a user
function positionBalance4F32C7DB(address user) external returns (uint256);
Parameters
Name | Type | Description |
---|---|---|
user | address | the user to get position balance for |
Returns
Name | Type | Description |
---|---|---|
<none> | uint256 | the number of positions owned by the user |
positionLiquidity8D11C045
gets the amount of liquidity in a position
function positionLiquidity8D11C045(address pool, uint256 id) external returns (uint128);
Parameters
Name | Type | Description |
---|---|---|
pool | address | the position belongs to |
id | uint256 | the id of the position |
Returns
Name | Type | Description |
---|---|---|
<none> | uint128 | the amount of liquidity contained in the position |
positionTickLower2F77CCE1
get the lower tick of the position id
function positionTickLower2F77CCE1(address pool, uint256 id) external returns (int32);
Parameters
Name | Type | Description |
---|---|---|
pool | address | the position belongs to |
id | uint256 | of the position |
Returns
Name | Type | Description |
---|---|---|
<none> | int32 | the lower tick of the position given |
positionTickUpper67FD55BA
get the upper tick of the position id
function positionTickUpper67FD55BA(address pool, uint256 id) external returns (int32);
Parameters
Name | Type | Description |
---|---|---|
pool | address | the position belongs to |
id | uint256 | of the position |
Returns
Name | Type | Description |
---|---|---|
<none> | int32 | the lower tick of the position given |
collectSingleTo6D76575F
collect a single position's yield
function collectSingleTo6D76575F(address pool, uint256 id, address recipient)
external
returns (uint128 amount0, uint128 amount1);
Parameters
Name | Type | Description |
---|---|---|
pool | address | the position belongs to |
id | uint256 | of the position to use |
recipient | address | of the money that's earned |
Returns
Name | Type | Description |
---|---|---|
amount0 | uint128 | and amount1 |
amount1 | uint128 |
collect7F21947C
collects fees from from positions
function collect7F21947C(address[] memory pools, uint256[] memory ids) external returns (CollectResult[] memory);
Parameters
Name | Type | Description |
---|---|---|
pools | address[] | to claim accumulated yield from |
ids | uint256[] | to claim the positions of |
Structs
CollectResult
struct CollectResult {
uint128 amount0;
uint128 amount1;
}