artemis-uni-tri-arb

APACHE-2.0 License

Stars
2

Generalized Arbitrage Cycle Bot

This bot computes cycles on relevant different pools and calculates the profit for each cycle.

Currently supporting uniswap v2, v3, sushiswap v2, sushiswap v3, camelot v3 etc.

The engine is a fork of Artemis with a uniswap tri-arb strategy.

A fork of amms-rs is used for AMM logic (with additional/modified functionality)

Run tests:

cargo test --all

Requirements:

  • rustc >= 1.74
  • foundry >= 0.2.0
  • postgres

Setup DB:

just setup-db

Run bot (Only arbitrum supported for now)

just run-bot-arbitrum

Activate pools

When running the bot, pools will be added to the database. Only pools that are activated will be scanned for arbitrage cycles.

To activate pools, use the activate-pools command.

just activate-pools 42161 uniswap-v3

This will activate all pools with at least 100k USD of liquidity.

TODO

  • Fix MKR token swap events
  • Basic curve support
  • Listen to curve swaps
  • Listen to curve
  • 4626 vaults
  • REVM simulator base
  • Executor Contract
  • Uniswap v2 REVM simulator
  • Uniswap v3 REVM simulator
  • Honeypot Filter
  • Optimism support
  • Base support