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