MEVGuard for CoW Protocol / CoW DAO
Grant-funded Ethereum transaction verifier simulating MEV-bundle execution paths and proving user refund mechanics.
- Python
- Web3.py
- Ethereum RPC
- Dune Analytics
- Multiprocessing
- PostgreSQL
- 40%higher refund calculation precision
- <1 sanomaly detection with parallel trace workers
- Grantfunded by CoW DAO, open source
What it does
MEVGuard is an open-source security and verification platform developed under an official grant from CoW DAO for CoW Protocol. In decentralized exchanges, protecting traders from sandwich attacks and frontrunning requires continuous verification: MEV Blocker routes transactions through private RPC builders, returning backrun value to the user as a refund.
To detect whether searcher bundles adhered to protocol refund rules across millions of historical settlement blocks, MEVGuard implements a deterministic EVM state replay engine. The system reconstructs exact block state diffs at the transaction index, simulates searcher bundle outcomes against dry-run forks, and verifies actual on-chain value distribution against mathematical backrun expectations.
Built with Python, web3.py, multiprocessing worker pools, and partitioned Dune Analytics API SQL pipelines to ingest and normalize multi-gigabyte EVM trace datasets without GIL bottlenecks. Delivers automated violation triage and transparent audit reports for CoW DAO governance.