GetExchangeAmount
Curve Getter Plugin - GetExchangeAmount
Description
Get the current number of coins received in an exchange.
Method
get_exchange_amount(address, address, address, uint256)
Input Parameters
No required input parameters
Method Parameters
Name | Plugin Type | Description |
---|---|---|
pool |
| Pool address. |
from |
| Address of coin being sent. |
to |
| Address of coin being received. |
amount |
| Quantity of |
Returned Values
Name | Plugin Type | Description |
---|---|---|
toBeReceivedAmount |
| Amount to be received in the exchange. |
Example
Example with initParams
Example without initParams
Learn more
Learn more about Curve exchange here
Last updated