DecreaseLiquidity
Uniswap V3 Action Plugin - DecreaseLiquidity
Description
Decreases the amount of liquidity in a position and accounts it to the position
Method
decreaseLiquidity((uint256,uint128,uint256,uint256,uint256))
Input Parameters
Name | Plugin Type | Description |
---|---|---|
to |
| Non-fungible Position Manager Address |
Method Parameters
Name | Plugin Type | Description |
---|---|---|
params.tuple |
|
"Params.tuple" parameters
Name | Plugin Type | Required? | Description |
---|---|---|---|
tokenId |
| The ID of the token | |
liquidity |
| Amount of liquidity to decrease | |
amount0Min |
| ||
amount1Min |
| ||
deadline |
| Deadline of the transaction. Default: |
Returned Values
Name | Plugin Type | Description |
---|---|---|
amount0 |
| The amount of token0 sent to recipient |
amount1 |
| The amount of token1 sent to recipient |
Example
Example with initParams
Example without initParams
Learn more
Learn more about Uniswap V3 DecreaseLiquidity function here
Last updated