Content
@
https://opensea.io/collection/dev-21
0 reply
0 recast
2 reactions
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
4 replies
2 recasts
14 reactions
✳️ 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
mike rainbow (rainbow mike) ↑
@mikedemarais.eth
https://github.com/1inch/spot-price-aggregator
1 reply
1 recast
6 reactions
Jason Goldberg Ⓜ️ 💜
@betashop.eth
0x?
1 reply
0 recast
0 reaction
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