Skip to content

Latest commit

 

History

History
21 lines (12 loc) · 571 Bytes

README.md

File metadata and controls

21 lines (12 loc) · 571 Bytes

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