ISeawaterExecutorPosition

Git Source

Functions

mintPositionBC5B086D

creates a new position

function mintPositionBC5B086D(address pool, int32 lower, int32 upper) external returns (uint256 id);

Parameters

NameTypeDescription
pooladdressthe pool to create the position on
lowerint32the lower tick of the position (for concentrated liquidity)
upperint32the 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

NameTypeDescription
iduint256the id of the position to transfer
fromaddressthe user to transfer the position from
toaddressthe user to transfer the position to

positionOwnerD7878480

gets the owner of a position

function positionOwnerD7878480(uint256 id) external returns (address);

Parameters

NameTypeDescription
iduint256the id of the position

Returns

NameTypeDescription
<none>addressthe owner of the position

positionBalance4F32C7DB

gets the number of positions owned by a user

function positionBalance4F32C7DB(address user) external returns (uint256);

Parameters

NameTypeDescription
useraddressthe user to get position balance for

Returns

NameTypeDescription
<none>uint256the 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

NameTypeDescription
pooladdressthe position belongs to
iduint256the id of the position

Returns

NameTypeDescription
<none>uint128the 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

NameTypeDescription
pooladdressthe position belongs to
iduint256of the position

Returns

NameTypeDescription
<none>int32the 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

NameTypeDescription
pooladdressthe position belongs to
iduint256of the position

Returns

NameTypeDescription
<none>int32the 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

NameTypeDescription
pooladdressthe position belongs to
iduint256of the position to use
recipientaddressof the money that's earned

Returns

NameTypeDescription
amount0uint128and amount1
amount1uint128

collect7F21947C

collects fees from from positions

function collect7F21947C(address[] memory pools, uint256[] memory ids) external returns (CollectResult[] memory);

Parameters

NameTypeDescription
poolsaddress[]to claim accumulated yield from
idsuint256[]to claim the positions of

Structs

CollectResult

struct CollectResult {
    uint128 amount0;
    uint128 amount1;
}