You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It currently only supports a few stable coin swaps mainly because other swaps do not have direct pairs.
Ideally, it should make use of besttradeexactin function provided by Uniswap SDK but there are 2 challenges doing so.
sdk has the router address hardcoded
to derive the best path, you have to pass each available pairs as done in uniswap-interface code
Option 1 (Preferred)
Make a separate library that simplifies the function call to derive the best path. Ideally, I would like to have the function as easy as 1inch quote-swap API (The reason I just don't use their API is that they currently only support L1 and BSC. I would like to have platform-agnostic tool).
Option2 (Less preferred)
Make use of the existing fork SDK of each uniswap clones to derive the best path.
Description
It currently only supports a few stable coin swaps mainly because other swaps do not have direct pairs.
Ideally, it should make use of besttradeexactin function provided by Uniswap SDK but there are 2 challenges doing so.
Option 1 (Preferred)
Make a separate library that simplifies the function call to derive the best path. Ideally, I would like to have the function as easy as 1inch quote-swap API (The reason I just don't use their API is that they currently only support L1 and BSC. I would like to have platform-agnostic tool).
Option2 (Less preferred)
Make use of the existing fork SDK of each uniswap clones to derive the best path.
The text was updated successfully, but these errors were encountered: