GetAmountsIn
Sushiswap Action Plugin - GetAmountsIn
Description
Given an output asset amount and an array of token addresses, calculates all preceding minimum input token amounts
Method
getAmountsOut(uint256, address[])
Input Parameters
Name | Plugin Type | Description |
---|---|---|
to |
| Sushiswap Router address |
Method Parameters
Name | Plugin Type | Description |
---|---|---|
amountOut |
| Output asset amount |
path |
| Path of the trade |
Returned Values
Name | Plugin Type | Description |
---|---|---|
firstAmount |
| First amount in |
lastAmount |
| Last amount in |
Example
Example with initParams
Example without initParams
Learn more
Learn more about Sushiswap GetAmountsIn function here
Last updated