removeLiquidity
This method removes liquidity from the primary pool.
Function
Parameters
Parameter
Description
_to
The address of the recipient.
_token0
An ERC20 token address.
_token1
An ERC20 token address.
_liquidity
The amount of LP tokens to be burned.
_amount0Min
The minimal amount of _token0
that the user will accept for a given amount of _liquidity
. Cannot be the WETH address.
_amount1Min
The minimal amount of _token1
that the user will accept for a given amount of _liquidity
. Can be the WETH address.
_deadline
The UTC timestamp that if reached, causes the swap transaction to fail automatically
Return values
Value
Description
amountA
The amount of _token0
that are returned to the recipient.
amountB
The amount of _token1
that are returned to the recipient.
Last updated