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
FctAddress
Uniswap V2 Router address
Method Parameters
Name
Plugin Type
Description
tokenA
FctAddress
TokenA pool token address
tokenB
FctAddress
TokenB pool token address
liquidity
FctValue
Amount that will be removed from the LP token
to
FctAddress
Recipient of the liquidity tokens.
deadline
FctValue
Unix timestamp after which the transaction will revert.
Returned Values
Name
Plugin Type
Description
amountA
FctValue
The amount of tokenA received
amountB
FctValue
The amount of tokenB received
Example
Example with initParams
Example without initParams
Learn more
Learn more about Uniswap AddLiquidity function here
Last updated