High-Frequency Trading on Decentralized On-Chain Exchanges
arXiv:2009.14021
Abstract
Decentralized exchanges (DEXs) allow parties to participate in financial markets while retaining full custody of their funds. However, the transparency of blockchain-based DEX in combination with the latency for transactions to be processed, makes market-manipulation feasible. For instance, adversaries could perform front-running -- the practice of exploiting (typically non-public) information that may change the price of an asset for financial gain. In this work we formalize, analytically exposit and empirically evaluate an augmented variant of front-running: sandwich attacks, which involve front- and back-running victim transactions on a blockchain-based DEX. We quantify the probability of an adversarial trader being able to undertake the attack, based on the relative positioning of a transaction within a blockchain block. We find that a single adversarial trader can earn a daily revenue of over several thousand USD when performing sandwich attacks on one particular DEX -- Uniswap, an exchange with over 5M USD daily trading volume by June 2020. In addition to a single-adversary game, we simulate the outcome of sandwich attacks under multiple competing adversaries, to account for the real-world trading environment.
References in corpus (4)
- Ekiden: A Platform for Confidentiality-Preserving, Trustworthy, and Performant Smart Contract Execution
- Flash Boys 2.0: Frontrunning, Transaction Reordering, and Consensus Instability in Decentralized Exchanges
- Attacking the DeFi Ecosystem with Flash Loans for Fun and Profit
- Libra: Fair Order-Matching for Electronic Financial Exchanges
Cited by in corpus (7)
- Frontrunner Jones and the Raiders of the Dark Forest: An Empirical Study of Frontrunning on the Ethereum Blockchain
- Behavior of Liquidity Providers in Decentralized Exchanges
- A theory of Automated Market Makers in DeFi
- DeFiRanger: Detecting Price Manipulation Attacks on DeFi Applications
- Agatha: Smart Contract for DNN Computation
- Decentralized Finance (DeFi)
- An Empirical Study of DeFi Liquidations: Incentives, Risks, and Instabilities