ISeawaterExecutorUpdatePosition

Git Source

Functions

updatePositionC7F1F740

refreshes a position's fees, and adds or removes liquidity

function updatePositionC7F1F740(address pool, uint256 id, int128 delta) external returns (int256, int256);

Parameters

NameTypeDescription
pooladdressto use this with
iduint256the id of the position
deltaint128the amount of liquidity to add or remove

Returns

NameTypeDescription
<none>int256the deltas for token0 and token1 for the user
<none>int256

incrPosD3521721

refreshes a position's fees, and adds liquidity, preventing less than the minimum from being taken.

function incrPosD3521721(
    address pool,
    uint256 id,
    uint256 amount0Min,
    uint256 amount1Min,
    uint256 amount0Desired,
    uint256 amount1Desired
) external returns (uint256, uint256);

Parameters

NameTypeDescription
pooladdressof the token to use
iduint256the id of the position
amount0Minuint256minimum of amount0 to take from the user
amount1Minuint256minimum of amount1 to take from the user
amount0Desireduint256to take from the user. May exceed.
amount1Desireduint256to take from the user. May exceed.

Returns

NameTypeDescription
<none>uint256the deltas for token0, and token1
<none>uint256

decrPosition09293696

refreshes a position's fees, and takes liquidity, preventing less than the minimum from being taken.

function decrPosition09293696(
    address pool,
    uint256 id,
    uint256 amount0Min,
    uint256 amount1Min,
    uint256 amount0Max,
    uint256 amount1Max
) external returns (uint256, uint256);

Parameters

NameTypeDescription
pooladdress
iduint256the id of the position
amount0Minuint256minimum of amount0 to take from the user
amount1Minuint256minimum of amount1 to take from the user
amount0Maxuint256to use as the maximum of amount0, used to create the delta
amount1Maxuint256to use as the maximum of amount1, used to create the delta

Returns

NameTypeDescription
<none>uint256the deltas for token0, and token1
<none>uint256