Content pfp
Content
@
0 reply
0 recast
2 reactions

Greg pfp
Greg
@greg
is there any reference implementation of a smart contract that checks multiple dex's for the best price onchain, or is hardcoding uniswap's universal router the best approach? are there similar routers for other dex's? cc @dcposch.eth im guessing you guys explored this for daimo
5 replies
2 recasts
7 reactions

mike rainbow (rainbow mike) ↑ pfp
mike rainbow (rainbow mike) ↑
@mikedemarais.eth
https://github.com/1inch/spot-price-aggregator
1 reply
1 recast
4 reactions

Jason Goldberg Ⓜ️ 💜 pfp
Jason Goldberg Ⓜ️ 💜
@betashop.eth
0x?
1 reply
0 recast
0 reaction

✳️ dcposch on daimo pfp
✳️ dcposch on daimo
@dcposch.eth
You can use Uniswap TWAP/TWAL. Unfortunately these are averages: median would be better and more resistant to manipulation. TWAP/TWAL does have the advantage that only uses previous-block pricing = it's resistant to within-block/within-tx manimuplation
1 reply
0 recast
0 reaction

Lenny 🧠 🤌 pfp
Lenny 🧠 🤌
@lennyster.eth
I don't know if this would help with your use case, but at @0xproject, we have APIs to exactly swap any shitcoin for whatever bluechip token you want, aggregating the best on-chain price among DEXs!
0 reply
0 recast
0 reaction