... Parameters for this are passed via URL. Now question is, whether we can send parameters for amount for each token as well https://www.yokaiswap.com/swap?inputCurrency=0x885fb612947ccf1c7611894bd828d388b046fc24&outputCurrency=0xc296f806d15e97243a08334256c705ba5c5754cd
Sincerely I dont know. Maybe you can ask Rach, who is YokaiSwap support on their discord.
I would imagine not as the amount you swap on a Dex is very fluid. It’s dependant on your available wallet balance and the current exchange rate (also need to calculate the slippage for your given amount). I have not looked into this and I’m speculating but logically doesn’t seem like a possibility to me.
Amount you can enter whatever you want, even manually. The fact you don't have enough funds in wallet has nothing to do with this. You don't submit request by this action, furthermore swap is controlled by backend so whatever you inject via frontend is executable only in case of eligibility, which is checked on backend
Обсуждают сегодня