finds.dev← search

// the find

solidquant/mev-templates

★ 574 · Solidity · updated Nov 2023

MEV bot templates written in Python/Javascript/Rust. All implementing DEX flashloan arbitrage

A starter kit for building MEV bots on Ethereum, providing the same DEX flashloan arbitrage strategy implemented in Python, JavaScript, and Rust so you can compare approaches. It covers the full pipeline: event indexing, pool graph construction, offline Uniswap V2 simulation, and Flashbots bundle submission. Aimed at developers learning MEV, not at production searchers.

The three-language parallel implementation is genuinely useful for benchmarking and for developers who want to port patterns to their preferred stack. Offline simulation of Uniswap V2 3-hop paths before submitting is the right approach — it avoids burning gas on losing trades. Using multicall to batch thousands of getReserves calls in 1-3 seconds is a solid pattern worth studying. The Foundry setup with forge-std and OpenZeppelin submodules means the contract side is testable out of the box.

Last pushed November 2023 — the MEV landscape moves fast and the Flashbots API, builder ecosystem, and optimal bundle strategies have shifted significantly since then. The .env.example commits real-looking private keys, which is a bad habit even if they're throwaway keys; newcomers will copy that pattern. The arbitrage strategy only covers Uniswap V2 3-hop paths and explicitly skips order size optimization and gas bidding strategy — the two things that actually determine whether you make or lose money. No mention of Uniswap V3 or any concentrated liquidity DEX, which dominate most high-volume pairs today.

View on GitHub →

// want more like this?

We dig through GitHub every week and send a few repos picked for what you actually care about — each with an honest take like this one.

Get finds in your inbox → Search again →