mint
Last updated
Last updated
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.
Parameter | Description |
---|---|
Value | Description |
---|---|
_token
An ERC20 token address. Token must have already a pool.
_to
The address of the recipient that receives the minted LP tokens
liquidity
The amount of liquidity (LP tokens) minted.