β¨ β¨ The Mev Book β¨ β¨
_________________________________________________________
||-------------------------------------------------------||
||.--. .-._ .----. ||
|||==|____| |H|___ .---.___|""""|_____.--.___ ||
||| |====| | |ann|_ |+++|=-=|_ _|-=+=-|==|---|||
|||==| | | | | \ | | |_\/_|Alpha|$$| ^ |||
||| | | | | |\ \ .--. | |=-=|_/\_|-=+=-| | ^ |||
||| | | | | |_\ \_( oo )| | | |Magus|$$| ^ |||
|||==|====| |H|cvx| \ \ |''| |+++|=-=|""""|-=+=-|==|---|||
||`--^----'-^-^---' `-' "" '---^---^----^-----^--^---^||
||-------------------------------------------------------||
||-------------------------------------------------------||
|| ___ .-.__.-----. .---.||
|| |===| .---. __ .---| |XX|<(*)>|_|^^^|||
|| , /(| |_|smt|__|''|__|:M:|=| | |=| C |||
|| _a'{ / (|===|+| |++| |==| | | | | | F |||
|| '/\\/ _(|===|-| | |''| |:E:|=| | | | M |||
||_____ -\{___(| |-| | | | | | | | | | M |||
|| _(____)|===|+|[S]|z3|''|==|:V:|=|XX|<(*)>|=|^^^|||
|| `---^-^---^--^--'--^---^-^--^-----^-^---^||
||-------------------------------------------------------||
||_______________________________________________________||
π Appendix π
- CFMMs
- Relayers
- Repositories
- Research
- Full Texts
- Articles
- News Letters
- Solvers
- Solver Bindings
- Exploitation
- Inspection Tools
- Mev Job Boards
- Communities
- Additional Mev Resource Lists
π
ββοΈ CFMMs (CPMMs) π
ββοΈ
- Uniswap V2 Whitepaper (text)
- Uniswap V3 Whitepaper (text)
- An in depth look into Uniswap V3 (text) π
ββοΈ
- Uniswap V3 Flash Swaps (text)
- Simple swap v2 (video)
- Flash swaps v2 (video)
- V3 Tick Math (video)
- V3 Pricing (video)
- V3 Flash Swap Example (source)
- V2 Flash Swap Example (source)
Relayers π₯
π₯
π Repositories π
amms-rs
- A modular framework for managing AMMs (source)π artemis
- A simple, modular, and fast framework for writing MEV bots in Rust.(source)π - subway-rs - Sandwich attacks built with ethers-rs and Huff language. (source)
π - rusty-sando - v2/v3 multi-meat MEV sandwich bot written using Rust and Huff. (source)
- Simple Arbitrage - Flashbots Arbitrage Basic Template Typescript/Solidity (source)
- CFMM Routing - Convex Optimization Full Example Python (source)
π - V2/V3 Fixed Point Math Library Pricing/Simulation/Quoting Solidity (source)
- cfmms-rs - A modular framework for syncing v2/v3 pools (source)
- Off-Chain Uniswap V3 Math - Rust (source)
- Cosmos - Basic Arbitrage Bot (source)
- Submarine Transactions
Research π
π- SMT-Solver-Heuristic Search for Profitable Pathing & Bellman Ford Negative Cycle Detection Arbitrage
- Optimal Routing on CFMMs - Lagrangian Constrained Optimization
π - Optimal Arbitrage - Formalizing Convex Optimization
- Multi Asset Trade - Convex Optimization
π - Flashboys 2.0 - Frontrunning, Transaction Reordering, and Consensus Instability
- Quantifying Blockchain Extractable Value: How dark is the forest?
- An empiracle study of frontrunning
- High-Frequency Trading on Decentralized On-Chain Exchanges
- Multi Domain Arbitrage
- Bundle Profit Maximization
- CFMM Routing - Convex Optimization Methodological Overview
- Optimal Trading Model - CPMMs/CFMMs
π (2022) - SoK:DEXs with AMM Protocols
- SMT Based Models - First Order Logical Embeddings in ANNs
- Neural Bellman-Ford Networks - Neural Network Framework for Link Prediction
- Interesting Recursive Approach to Bellman Ford
- A general framework for impermanent loss
- Frontrunner Jones and The Raiders of the Dark Forest
- Mitigating Frontrunning, Transaction Reordering and Consensus Instability
π Full Texts π
π Articles π
π° Newsletters π°
Solvers π
π
πΏ Bindings πΏ
- Go-z3 - Go bindings to Z3 SMT Solver (source)
- Rust-z3 - Rust bindings to Z3 SMT Solver (source)
- Julia-Rust (source)
π§ββοΈ Exploitation π§ββοΈ
π¬ Inspection Tools π¬
- Flashbots mev-inspect-py (source)
- Flashbots mev-inspect-rs (source)
- EigenPhi MEV Dashboard + EigenTX
- ETH Tx Transaction Decoder by Token Flow
- Ethereum Transaction Viewer by @samczsun
- BlockSec Phalcon Transaction Explorer
- Tenderly
πββοΈ Job Boards πββοΈ
π¨βπ¨βπ¦βπ¦ Communities π¨βπ¨βπ¦βπ¦
π§ββοΈ Additional Mev Resource Lists π§ββοΈ
Contributions
If there are any resources you think should be included feel free to PR directly to main
. This repository aims to hold the most up to date research in the space, and will frequently add links as new resources become available so contributions of new research in the space is encouraged.