[Paper Review] Flash Boys 2.0: Frontrunning, Transaction Reordering, and Consensus Instability in Decentralized Exchanges
The paper documents and analyzes MEV in Ethereum, focusing on pure revenue arbitrage, priority gas auctions (PGAs), and the resulting consensus-security risks, including time-bandit and forking attacks.
Blockchains, and specifically smart contracts, have promised to create fair and transparent trading ecosystems. Unfortunately, we show that this promise has not been met. We document and quantify the widespread and rising deployment of arbitrage bots in blockchain systems, specifically in decentralized exchanges (or "DEXes"). Like high-frequency traders on Wall Street, these bots exploit inefficiencies in DEXes, paying high transaction fees and optimizing network latency to frontrun, i.e., anticipate and exploit, ordinary users' DEX trades. We study the breadth of DEX arbitrage bots in a subset of transactions that yield quantifiable revenue to these bots. We also study bots' profit-making strategies, with a focus on blockchain-specific elements. We observe bots engage in what we call priority gas auctions (PGAs), competitively bidding up transaction fees in order to obtain priority ordering, i.e., early block position and execution, for their transactions. PGAs present an interesting and complex new continuous-time, partial-information, game-theoretic model that we formalize and study. We release an interactive web portal, http://frontrun.me/, to provide the community with real-time data on PGAs. We additionally show that high fees paid for priority transaction ordering poses a systemic risk to consensus-layer security. We explain that such fees are just one form of a general phenomenon in DEXes and beyond---what we call miner extractable value (MEV)---that poses concrete, measurable, consensus-layer security risks. We show empirically that MEV poses a realistic threat to Ethereum today. Our work highlights the large, complex risks created by transaction-ordering dependencies in smart contracts and the ways in which traditional forms of financial-market exploitation are adapting to and penetrating blockchain economies.
Motivation & Objective
- Document and quantify the arbitrage bot ecosystem in decentralized exchanges (DEXes).
- Define and analyze miner/extractable value (MEV) and priority gas auctions (PGAs).
- Model the PGA game and validate with empirical data.
- Show consensus-layer security risks arising from MEV, including time-bandit and fee-based forking threats.
- Provide data and tooling (frontrun.me) to the community for real-time MEV insights.
Proposed method
- Empirical measurement of arbitrage prevalence using a mempool-based instrumentation setup and on-chain data from multiple sources.
- Development of an experimental PGA measurement harness with geodistributed Ethereum monitors to observe high-value gas replacement transactions.
- Formal modeling of the PGA mechanism as a continuous-time, partial-information game.
- Analysis of MEV as a broader phenomenon including ordering optimization and its impact on consensus security.
- Open-source release of code, data, and a real-time frontier dashboard (frontrun.me).
Experimental results
Research questions
- RQ1What is the lower-bound size of the pure revenue arbitrage economy in Ethereum today?
- RQ2How do priority gas auctions (PGAs) operate among arbitrage bots, and what strategies emerge?
- RQ3What is miner extractable value (MEV), and how does transaction ordering affect consensus security?
- RQ4Can MEV enable time-bandit and fee-based forking attacks on Ethereum in practice?
Key findings
- The authors establish a lower bound on the pure revenue arbitrage economy of over USD 6M to date.
- Arbitrage bots engage in priority gas auctions (PGAs), bidding up gas prices to secure block inclusion and profit from multi-trade atomic transactions.
- MEV creates systemic consensus-layer vulnerabilities, including fee-based forking attacks and time-bandit attacks on Ethereum.
- Empirical observation includes 708,385,840 unique PGA observations across six geo-distributed nodes and a focus on the top five DEXes by volume.
- The median profit from pure revenue opportunities is about 65% of the revenue opportunity size across 138,948 observed pure revenue transactions.
- The work provides a real-time public data portal (frontrun.me) and open-source data/code to study and validate PGA/MEV dynamics.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.