This project demonstrates how to use revm (Rust EVM) to efficiently detect cross-chain arbitrage opportunities between Ethereum and Polygon, specifically focusing on Uniswap V3 pools.
The script simulates calls using local EVM execution to:
- Query WETH -> INST price on Ethereum
- Query the resulting INST -> WETH price on Polygon
- Compare prices to identify potential arbitrage opportunities
-
Clone the repository:
bash git clone <repository-url>
-
Create a
.env
file with the following variables:env ETHEREUM_RPC=your_ethereum_rpc_url POLYGON_RPC_URL=your_polygon_rpc_url
-
Run the script:
bash cargo run