AddLiquidity
Curve Action Plugin - AddLiquidity
Description
Deposit coins into the pool.
Method
add_liquidity(address[], min_mint_amount)
Input Parameters
Name | Type | Description |
---|---|---|
to |
| Address of Curve pool |
Method Parameters
Name | Type | Description |
---|---|---|
amounts |
| List of amounts of coins to deposit |
minMintAmount |
| Optional address to transfer the received tokens to. If not specified, defaults to the caller. |
Returned Values
Name | Plugin Type | Description |
---|---|---|
lpTokensReceived |
| Amount of LP tokens that will be minted in the deposit. |
Example
Example with initParams
Example without initParams
Learn more
Learn more about Curve add liquidity here
Last updated