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