RemoveLiquidityETH
Uniswap Action Plugin - RemoveLiquidityETH
Description
Removes liquidity from an ERC-20⇄ERC-20 pool.
Method
removeLiquidityETH(address, uint256, uint256, uint256, address, uint256)
Input Parameters
Name | Plugin Type | Description |
---|---|---|
to |
| Uniswap V2 Router address |
Method Parameters
Name | Plugin Type | Description |
---|---|---|
token |
| A pool token |
liquidity |
| The amount of liquidity tokens to remove. |
amountTokenMin |
| The minimum amount of token that must be received for the transaction not to revert. |
amountETHMin |
| The minimum amount of ETH 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 token received. |
amountB |
| The amount of ETH received. |
Example
Example with initParams
Example without initParams
Learn more
Learn more about Uniswap RemoveLiquidityETH function here
Last updated