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