High-Performance Multi-Language MEV Engineering Stack
Low-latency detection, simulation, and execution research for EVM ecosystems.
MEV Protocol is a portfolio-grade systems project built to showcase production-oriented engineering across runtime boundaries.
It combines:
- Solidity/Yul for on-chain execution paths
- Rust for orchestration, detection, and simulation
- Go for mempool networking and relay interaction
- C for low-level hot-path components
The repository is structured for technical review, reproducible builds, and iterative extension.
contracts/β smart contracts and Foundry testscore/β Rust engine (mev-engine,scanner,benchmark)network/β Go node for mempool and relay componentsfast/β C static/shared libraries for performance-critical codeconfig/β chain, DEX, and environment configurationscripts/β build and deployment scriptsdocker/β container runtime assets
- β Multi-stack build and test flow available
- β CI pipeline configured for Rust, Go, and Solidity
- β Contract-layer callback spoofing hardening (Balancer + Uniswap V3)
- β Deterministic route validation with trusted factory/router controls
β οΈ Some modules still contain placeholder/TODO logic (notably parts of detector/simulator)
Positioning is intentionally transparent: strong technical foundation with active feature completion.
- CI workflow:
.github/workflows/ci.yml - Local gates:
make build,make test,make lint,make ci-local - Security hygiene: sanitized templates (
config/.env.example) + strict ignore rules
- Flash loan callback is bound to active execution context (
executor,token,amount,swap hash). - Uniswap V3 callbacks are accepted only from the active pool for the active swap.
- Swap route decoding rejects malformed payloads and unknown swap types.
- V2/V3 execution paths validate trusted routers/factories before swap execution.
- ERC20 transfer/transferFrom/approve wrappers enforce strict return-data checks.
Before enabling execution in production:
- Set whitelisted executors.
- Set trusted V2 routers (FlashArbitrage).
- Set trusted V3 factory (FlashArbitrage).
- Set trusted V2/V3 factories (MultiDexRouter).
- Keep contract paused until off-chain simulation and dry-run checks are green.
- Setup guide: QUICKSTART.md
- Contribution guide: CONTRIBUTING.md
- Security policy: SECURITY.md
.\scripts\build.ps1chmod +x scripts/build.sh
./scripts/build.shThis project demonstrates:
- low-latency architecture and performance tradeoffs
- polyglot systems integration (Rust/Go/C/Solidity)
- smart-contract and off-chain coordination patterns
- mature engineering workflow (CI, templates, quality gates)
This repository is for engineering research and education. Users are responsible for legal, compliance, and operational risk management in their jurisdiction.
Proprietary (as currently configured in project metadata).