Don’t Let MEV Slip: The Costs of Swapping on the Uniswap Protocol

ArXiv ID: 2309.13648 “View on arXiv”

Authors: Unknown

Abstract

We present the first in-depth empirical characterization of the costs of trading on a decentralized exchange (DEX). Using quoted prices from the Uniswap Labs interface for two pools – USDC-ETH (5bps) and PEPE-ETH (30bps) – we evaluate the efficiency of trading on DEXs. Our main tool is slippage – the difference between the realized execution price of a trade, and its quoted price – which we breakdown into its benign and adversarial components. We also present an alternative way to quantify and identify slippage due to adversarial reordering of transactions, which we call reordering slippage, that does not require quoted prices or mempool data to calculate. We find that the composition of transaction costs varies tremendously with the trade’s characteristics. Specifically, while for small swaps, gas costs dominate costs, for large swaps price-impact and slippage account for the majority of it. Moreover, when trading PEPE, a popular ‘memecoin’, the probability of adversarial slippage is about 80% higher than when trading a mature asset like USDC. Overall, our results provide preliminary evidence that DEXs offer a compelling trust-less alternative to centralized exchanges for trading digital assets.

Keywords: Decentralized Exchange (DEX), Uniswap, Slippage Analysis, Gas Costs, Adversarial Reordering, Cryptocurrencies

Complexity vs Empirical Score

  • Math Complexity: 2.5/10
  • Empirical Rigor: 8.0/10
  • Quadrant: Street Traders
  • Why: The paper focuses on empirical analysis of slippage and transaction costs using real-world data from the Uniswap Labs interface and mempool providers, with minimal advanced mathematics beyond basic statistical modeling and descriptive statistics.
  flowchart TD
    A["Research Goal<br>Evaluate DEX Trading Efficiency"] --> B["Methodology<br>Slippage Analysis"]
    B --> C["Data Inputs<br>Uniswap Labs Quote Prices<br>USDC-ETH 5bps & PEPE-ETH 30bps"]
    C --> D["Computational Process<br>Decompose Slippage into Benign vs. Adversarial"]
    D --> E["Key Finding: Trade Size Impact<br>Gas costs dominate small swaps<br>Price impact/Slippage dominates large swaps"]
    D --> F["Key Finding: Asset Impact<br>PEPE has ~80% higher adversarial slippage<br>vs USDC"]
    E & F --> G["Outcome<br>DEXs offer compelling trustless alternative"]