Calculates instant trade.
Token to sell.
Token to get.
Amount to sell or to get in wei.
Defines, whether to call 'exactInput' or 'exactOutput' method.
Calculates trade, based on amount, user wants to get.
Token to get with output amount.
Calculates input amount, based on amount, user wants to get.
Generated using TypeDoc