Home

Awesome

Reimplement Simple Arbitrage in Rust

Example

Stack

Arbitrage Logic

  1. Find TKN/ETH pairs that exist in several Dexes.

  2. Update those pairs reserve using getReserve from UniswapFlashQuery.sol

  3. store reserve in Reserve struct WETH should always be reserve1

  4. calculated buy_price and sell_price