Reimplement Simple Arbitrage in Rust
January 8, 2022 ยท View on GitHub
Example
Stack
Arbitrage Logic
-
Find TKN/ETH pairs that exist in several Dexes.
-
Update those pairs reserve using
getReservefromUniswapFlashQuery.sol -
store reserve in
ReservestructWETHshould always bereserve1 -
calculated
buy_priceandsell_price