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

Greg pfp
Greg
@greg
"To avoid price manipulations within a transaction, the spot price aggregator should ONLY be used off-chain. DO NOT use it on-chain." πŸ˜” I wonder why this is the case and if it also applies to Uniswap's UniversalRouater. I want a `sweep(address[] erc20tokens)` function that automatically swaps all shitcoins to usdc
0 reply
0 recast
1 reaction