RemoveLiquidity
Uniswap Action Plugin - RemoveLiquidity
Description
Removes liquidity from an ERC-20⇄ERC-20 pool.
Method
removeLiquidity(address, address, uint256, uint256, uint256, address, uint256)
Input Parameters
Name | Plugin Type | Description |
---|---|---|
to |
| Uniswap V2 Router address |
Method Parameters
Name | Plugin Type | Description |
---|---|---|
tokenA |
| A pool token |
tokenB |
| A pool token |
liquidity |
| The amount of liquidity tokens to remove. |
amountAMin |
| The minimum amount of tokenA that must be received for the transaction not to revert. |
amountBMin |
| The minimum amount of tokenB that must be received for the transaction not to revert. |
to |
| Recipient of the underlying assets. |
deadline |
| Unix timestamp after which the transaction will revert. |
Returned Values
Name | Plugin Type | Description |
---|---|---|
amountA |
| The amount of tokenA received. |
amountB |
| The amount of tokenB received. |
Example
Example with initParams
Example without initParams
Learn more
Learn more about Uniswap RemoveLiquidity function here
Last updated