Content
@
0 reply
0 recast
0 reaction
Chinmay 🕹️🍿
@chinmay.eth
Any Ethereum devs have any suggestions??
1 reply
0 recast
3 reactions
zerosnacks.eth
@zerosnacks
A common way is to use an external API that returns the swap route as calldata that you can sign and call like 0x Swap API https://0x.org/docs/0x-swap-api/guides/swap-tokens-with-0x-swap-api
1 reply
0 recast
1 reaction
Chinmay 🕹️🍿
@chinmay.eth
Is there a way to do this onchain?
1 reply
0 recast
0 reaction
zerosnacks.eth
@zerosnacks
Years ago the earliest version of routers were onchain like 1inch Protocol but nowadays it is the standard to do this off chain due to gas costs, the proprietary nature of these routing algorithms and the emergence of onchain market makers / solvers. Technically you could build it yourself, a lot of effort though.
0 reply
0 recast
0 reaction