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
4 replies
2 recasts
26 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