Skip to content

FredCoen/crosschain-arbitrage-detection-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Cross-Chain Arbitrage Scanner with REVM

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.

Overview

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

Setup

  1. Clone the repository: bash git clone <repository-url>

  2. Create a .env file with the following variables: env ETHEREUM_RPC=your_ethereum_rpc_url POLYGON_RPC_URL=your_polygon_rpc_url

  3. Run the script: bash cargo run

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages