2 function that enable trade flexibility
Trading tokens on Bancor is as easy as calling a single function.
Bancor allows trading of native ETH tokens, wrapped ETH (wETH) and any other supported ERC20 tokens such as LINK, USDC, USDT, WBTC and many more.
Bancor now supports 2 different “trade” functions that enable greater flexibility:
- 2.tradeByTargetAmount - this function allows you to indicate exactly how much you wish to receive at the end of the trade. Meaning you indicate the amount you wish to receive, and the trade will use the required amount in order to fulfill your request. The benefit of using this function is that you will know exactly how much you receive at the end.