tradeBySourceAmount()

Trade an exact amount of source tokens for as many target tokens as possible

Function tradeBySourceAmount()

BancorNetwork.sol
    function tradeBySourceAmount(
        Token sourceToken,
        Token targetToken,
        uint256 sourceAmount,
        uint256 minReturnAmount,
        uint256 deadline,
        address beneficiary
    ) external payable

Trades the exact amount of source tokens for as many target tokens as possible.

Function Arguments

See Errors and Troubleshooting for a list of common errors and how to resolve them.

To trade directly with the Ether token, use the contract address: 0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE

Last updated