ExchangeOnPool
Curve Action Plugin - ExchangeOnPool
Description
Perform an exchange between two coins.
Method
exchangeOnPool(int128, int128, uint256, uint256)
Input Parameters
Name | Plugin Type | Description |
---|---|---|
to |
| Curve pool address |
Method Parameters
Name | Type | Description |
---|---|---|
index1 |
| Index of the coin on Curve pool to send |
index2 |
| Index of the coin on Curve pool to receive |
amount |
| Amount of |
amountMinReceived |
| Minimum amount of |
Returned Values
Name | Plugin Type | Description |
---|---|---|
amountReceived |
| Amount received in the exchange |
Example
Example with initParams
Example without initParams
Learn more
Learn more about Curve exchange on pool here
Last updated