ISeawaterExecutorUpdatePosition
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
Name | Type | Description |
---|---|---|
pool | address | to use this with |
id | uint256 | the id of the position |
delta | int128 | the amount of liquidity to add or remove |
Returns
Name | Type | Description |
---|---|---|
<none> | int256 | the 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
Name | Type | Description |
---|---|---|
pool | address | of the token to use |
id | uint256 | the id of the position |
amount0Min | uint256 | minimum of amount0 to take from the user |
amount1Min | uint256 | minimum of amount1 to take from the user |
amount0Desired | uint256 | to take from the user. May exceed. |
amount1Desired | uint256 | to take from the user. May exceed. |
Returns
Name | Type | Description |
---|---|---|
<none> | uint256 | the 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
Name | Type | Description |
---|---|---|
pool | address | |
id | uint256 | the id of the position |
amount0Min | uint256 | minimum of amount0 to take from the user |
amount1Min | uint256 | minimum of amount1 to take from the user |
amount0Max | uint256 | to use as the maximum of amount0, used to create the delta |
amount1Max | uint256 | to use as the maximum of amount1, used to create the delta |
Returns
Name | Type | Description |
---|---|---|
<none> | uint256 | the deltas for token0, and token1 |
<none> | uint256 |