Content pfp
Content
@
0 reply
0 recast
0 reaction

✳️ dcposch on daimo pfp
✳️ dcposch on daimo
@dcposch.eth
Has anyone seen the Uniswap SDK return absolute garbage routes? Here's a trade where the Uni UI offers ~$710 Uni SDK on the exact same trade finds a terrible route that pays only ~$410! Then you query it a few more times and it finds the correct one.
77 replies
130 recasts
580 reactions

greg pfp
greg
@gregfromstl
I didn’t know the sdk even found multi hop routes for you, thought you had to provide the route yourself
1 reply
0 recast
0 reaction

✳️ dcposch on daimo pfp
✳️ dcposch on daimo
@dcposch.eth
TBH we might just do that
1 reply
0 recast
0 reaction

greg pfp
greg
@gregfromstl
What’s the function from the sdk you’re using?
1 reply
0 recast
0 reaction

✳️ dcposch on daimo pfp
✳️ dcposch on daimo
@dcposch.eth
AlphaRouter.route(...) That also seems to be what Uniswap uses in their own UI... https://github.com/Uniswap/interface/blob/5eff73671508350f5c836e17f5b30afdd31dddc4/apps/web/src/lib/hooks/routing/clientSideSmartOrderRouter.ts#L57
0 reply
0 recast
1 reaction