How to swap tokens
Last updated
Last updated
To swap your tokens at the best rate - need to follow next steps:
Choose the tokens you want to swap. The first row is token you want to sell, and second (lower) token you want to buy.
In the appeared modal window you can find token address, name and symbol. Make sure the token address matches the token you need, because token name and symbol could be not unique. The icons on the right side - is list of exchanges that have this token available. There is HBAR token among others. It doesn't have an address, because it's root Hedera token.
When you selected necessary tokens - EtaSwap will check prices on the exchanges and show you best rate to swap and max output amount from each exchange.
In case of lack of liquidity on exchange price impact will be higher. Too high price impact could negatively reflect on receiving amount. EtaSwap consider price impact in retrieving amount. For price impact >20% - EtaSwap will show warning message and disallow the "Swap" button.
Before the swap action - make sure tokens you selected - is associated to your account. In case at least one of the tokens is not associated to account - the transaction will fail. Quick note: you don't need to associate WHBAR to your account in order to swap HBAR to another token (only associate it if you want to swap exactly WHBAR). All operations with wrapping/unwrapping already implemented in Adapter smart contract.
After click "Swap" - your wallet will ask you to sign two operations one by one:
Approve allowance (will be ommited in case you are selling HBAR)
Swap