circleof the swapping process. Under normal circumstances and as previously noted, users will only have to engage in ONE transaction (hereinafter abbreviated as "TX") for the swap to get closed, which is TX1. However, it's worth noting that there are still two TXs pertinent to whether users' funds could be transferred onto the target chain with success. Last but not least, XY Protocol will carry out another TX with regard to Y Pool so as to complete the whole swap circle as illustrated in TX3 below.
wBTC on ETHfor some
CAKE on BSC. With the assistance of XY Protocol, Bob simply needs to give us permission to access their assets in his wallet (i.e. TX 1 as ➀ below), and the rest of the swap process will thenceforth be well taken care of. From his viewpoint, he will be able to receive his desired CAKE on BSC with only two TXs that are pertinent to his swap (➀ & ➄). The next section will give the breakdown of the full swapping process.
1 wBTC (ETH)could be swapped for 3000 CAKE (BNB) in return and with a 1% slippage tolerance. If Bob accepts the quoted price, he can file a TX request, namely TX1, by sending
1 wBTCto Swapper.
CAKE on BNB. Should you wish to learn more about how the fees are calculated, feel free to check the section attached below.
CAKE on BNBsuddenly fluctuates following TX1 and a trading failure results, which means the swap fails to swap 2970 CAKE (at least) to Bob, then Swapper will instead transfer 29980 USDT (BSC) from XY Protocol to Mr. Bob, who still gets his assets back, safe and sound.