SimpleRemoveLiquidity
Uniswap Action Plugin - SimpleRemoveLiquidity
Description
Removes liquidity on Uniswap V2
Method
Depends on the parameters, that have been provided. Either removeLiquidity
or removeLiquidityETH
Input Parameters
Name | Plugin Type | Description |
---|---|---|
to |
| Uniswap V2 Router address |
Method Parameters
Name | Plugin Type | Description |
---|---|---|
tokenA |
| TokenA pool token address |
tokenB |
| TokenB pool token address |
liquidity |
| Amount that will be removed from the LP token |
to |
| Recipient of the liquidity tokens. |
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 AddLiquidity function here
Last updated