calculateTradeSourceAmount()
CarbonController.sol
This function is used to get the number of target tokens that would be received by trading the indicated number of source tokens.
Function Arguments
Returns
This returns the number of target tokens expected to be returned by the specified trade.
Example
For the ETH token, use the contract address: 0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE
Last updated