tradeOutputBySourceAmount()
Function tradeOutputBySourceAmount()
BancorNetworkInfo.sol
This function is used to determine the number of tokens expected to be received by trading one token to another.
Function Arguments
Name
Type
Description
sourceToken
Token
The token being sold.
targetToken
Token
The token being bought.
sourceAmount
uint256
The number of tokens being sold.
Return Variables
This function returns the number of tokens expected to be received.
Variable Type
Returns
uint256
The number of target tokens expected to be received by the trade.
Last updated