mint

This method performs two-sided liquidity provisioning and mints in return LP tokens for a given pool. The amount of LP tokens minted depend on the amount of _token and xfETH provided. This low-level function should be called from a contract which performs important safety checks.

Function

function mint(
    address _token, 
    address _to
) external returns (uint liquidity);

Parameters

ParameterDescription

_token

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

_to

The address of the recipient that receives the minted LP tokens

Return values

ValueDescription

liquidity

The amount of liquidity (LP tokens) minted.

Last updated