CalcTokenAmount
Curve Getter Plugin - CalcTokenAmount
Description
Estimate the amount of LP tokens minted or burned based on a deposit or withdrawal.
Method
calc_token_amount(uint256[], bool)
Input Parameters
to |
| Address of Curve pool |
Method Parameters
Name | Plugin Type | Description |
---|---|---|
amounts |
| Amount of each coin being deposited. |
isDeposit |
| Set |
Returned Values
Name | Plugin Type | Description |
---|---|---|
expectedAmount |
| Expected amount of LP tokens minted or burned. |
Example
Example with initParams
Example without initParams
Learn more
Learn more about Curve calculate token amount here
Last updated