HackerPapers

arXiv:1904.05234cs.CR

Flash Boys 2.0: Frontrunning, Transaction Reordering, and Consensus Instability in Decentralized Exchanges

Philip Daian, Steven Goldfeder, Tyler Kell, Yunqi Li, Xueyuan Zhao, Iddo Bentov, Lorenz Breidenbach, Ari Juels

Abstract

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.

arXiv comments
Journal reference
DOI
Subjects
cs.CRCryptography and Security cs.GTComputer Science and Game Theory

On Hacker News

Linked by 6 identifiable commenters in 6 comments across 6 threads, from Apr 2019 to Sep 2022. Found in 3 HN submissions from Aug 2020 to May 2022. Open submission discussions.

Comments linking this paper, per year.

Discussed in comments6 threads

  1. Flashbots 1 comment
    • This is a deeply misleading headline. Other people have explained it as well, but Flashbots is a relay for transmitting transactions to the Ethereum network in a way that preserves their privacy (and exposure to something called MEV[1]). It's purely optional and the vast…

      lazzlazzlazzView on HNParent context

    • Same, I even bought some back in... 2014 I think? I'm yet ambivalent on if it's a factor on why it hasn't been able to attract serious attention, but I've heard the argument that doing calculations that have external value outside of PoW breaks the incentive mechanisms. To me…

      3npView on HNParent context

    • It gets even funnier when you consider that miners may reorder transactions they include in a block as they see fit, and even add their own transactions to front-run others. https://arxiv.org/abs/1904.05234

      bondarchukView on HNParent context

    • Flash loans are a great example of how blockchains enable new types of financial transactions that either aren't possible or are very difficult to do in a traditional financial setting. If you identify an arbitrage opportunity in the market, you can atomically borrow a large sum…

      v64View on HNParent context

    • So glad you asked: 1. https://eprint.iacr.org/2019/748.pdf 2. https://arxiv.org/pdf/1810.11605.pdf 3. https://eprint.iacr.org/2019/775.pdf 4. https://users.encs.concordia.ca/~clark/papers/2019_wtsc_fron... 5. http://homepages.cs.ncl.ac.uk/patrick.mccorry/minerbribery.p... This…

      jkhdigitalView on HNParent context

    • Coincidentally, there is a paper and talk about this called: Flash Boys 2.0: Frontrunning, Transaction Reordering, and Consensus Instability in Decentralized Exchanges https://arxiv.org/abs/1904.05234v1 https://www.cbspringconference.org/

      momentmakerView on HNParent context

Submitted to Hacker News

Connected through shared HN threads, not inferred similarity or a recommendation.