burn

This method burns existing LP tokens for a given pool. The amount of _token0 and _token1 returned depend on the amount of LP tokens burned and on the reserves & weights of pool0 & pool1. This low-level function should be called from a contract which performs important safety checks.

Function

function burn(
    address _token0, 
    address _token1, 
    address _to
) external returns (uint amount0, uint amount1);

Parameters

ParameterDescription

_token0

An ERC20 token address. Token must have already a pool.

_token1

An ERC20 token address. Token must have already a pool.

_to

The address of the recipient that receives the redeemed liquidity.

Return values

ValueDescription

amount0

The amount of tokens0 that one receives.

amount1

The amount of tokens1 that one receives.

Last updated