Awesome
Reimplement Simple Arbitrage in Rust
Example
Stack
Arbitrage Logic
-
Find TKN/ETH pairs that exist in several Dexes.
-
Update those pairs reserve using
getReserve
fromUniswapFlashQuery.sol
-
store reserve in
Reserve
structWETH
should always bereserve1
-
calculated
buy_price
andsell_price