finds.dev

solidquant/whack-a-mole

CEX-DEX arbitrage bot written in pure Python

View on GitHub

★ 276Pythonupdated Apr 2024

// the take

A Python framework for MEV/DEX arbitrage bots, pairing asyncio-based market monitoring with Solidity contracts for atomic on-chain execution via Flashbots. Despite the name and repo description, CEX-DEX arbitrage isn't actually implemented — only a DEX-only example ships. It's for developers who want to see a full-stack Python MEV bot (detection + simulation + on-chain execution contract) rather than just a backtesting script.

Ships actual Solidity execution contracts (WhackAMoleBotV1.sol, SimulatorV1.sol) alongside the Python side, so you get the full loop — opportunity detection, swap simulation against live pool reserves, then atomic execution — not just an off-chain signal generator. Uses asyncio to handle concurrent CEX and DEX data streams, and submits through Flashbots for MEV protection. The online simulator lets you validate expected output against real pool state before committing a transaction, which is the right instinct for anything touching real capital.

The headline feature, CEX-DEX arbitrage, doesn't exist in this repo — the README says so directly and points to a separate research project instead; what you actually get is a DEX-only arb example, and it only runs on a frozen side branch because main is called out as unstable and likely to break it. No commits since April 2024, so any decay in the uniswap/flashbots integration since then is unaddressed. requirements.txt has known unresolved version conflicts between web3, flashbots, and websockets that the README tells you to fix manually rather than pinning. Test coverage is two files for a system whose entire value proposition is correctness under latency pressure against adversarial actors — that's a thin safety net for strategies meant to move real funds.

We read the README, the directory tree and a key source file in November 2026. Nobody pays to be listed. How we judge →

// at a glance

Stars
276
Forks
87
Language
Python
Last commit
26 Apr 2024

// nearby

If whack-a-mole isn't quite it.

All repos →