Further Reading: Decentralized Exchanges and Automated Market Makers
Foundational Papers and Documents
Uniswap Protocol Documentation
- Uniswap V2 Whitepaper — Hayden Adams, Noah Zinsmeister, Dan Robinson (2020). The canonical description of the constant product AMM with ERC-20/ERC-20 pairs, TWAP oracles, and flash swaps. Available at docs.uniswap.org.
- Uniswap V3 Whitepaper — Hayden Adams, Noah Zinsmeister, Moody Salem, River Keefer, Dan Robinson (2021). The formal specification of concentrated liquidity, ticks, and fee tiers. Essential reading for anyone implementing or building on V3.
- Uniswap V4 Documentation — Uniswap Labs (2024-2025). Covers the hooks architecture, singleton design, and flash accounting system.
AMM Theory
- "An analysis of Uniswap markets" — Guillermo Angeris and Tarun Chitra, Cryptoeconomic Systems Journal (2020). Rigorous mathematical analysis of constant function market makers, including proofs about arbitrage bounds and price convergence.
- "Improved Price Oracles: Constant Function Market Makers" — Guillermo Angeris and Tarun Chitra (2020). Demonstrates that CFMM prices can serve as reliable on-chain oracles under certain conditions.
- "Logarithmic Market Scoring Rules for Modular Combinatorial Information Aggregation" — Robin Hanson (2003). The original prediction market paper that introduced the constant function market maker concept.
Impermanent Loss and LP Economics
- "Uniswap: A Good Deal for Liquidity Providers?" — Jason Angeris, Alex Evans, Tarun Chitra (2021). Empirical analysis of whether Uniswap LPs are profitable after accounting for impermanent loss.
- "Strategic Liquidity Provision in Uniswap V3" — Michael Neuder, Rithvik Rao, Daniel J. Moroz, David C. Parkes (2021). Game-theoretic analysis of LP behavior in concentrated liquidity.
- "Replicating Monotone Payoffs Without Oracles" — Guillaume Lambert (2021). The paper that formalized the connection between LP positions and short options (straddles/strangles), fundamentally changing how sophisticated LPs think about their positions.
MEV and Transaction Ordering
Essential MEV Reading
- "Flash Boys 2.0: Frontrunning, Transaction Reordering, and Consensus Instability in Decentralized Exchanges" — Philip Daian et al. (2019). The foundational MEV paper that quantified frontrunning on DEXs and introduced the term "miner extractable value" (later generalized to "maximal extractable value").
- "MEV and Me" — Flashbots Research (2021). Accessible introduction to the MEV supply chain from the team that built the dominant MEV infrastructure.
- "Ethereum is a Dark Forest" — Dan Robinson and Georgios Konstantopoulos, Paradigm Research (2020). Narrative account of attempting to rescue funds from a compromised contract in the presence of mempool predators.
- "Escaping the Dark Forest" — samczsun, Paradigm Research (2020). The sequel describing the technical details of a successful rescue using Flashbots.
Sandwich Attack Research
- "Quantifying Blockchain Extractable Value: How dark is the forest?" — Kaihua Qin et al. (2022). Comprehensive empirical study of MEV extraction including sandwich attacks, with detailed methodology for on-chain MEV detection.
- "An Empirical Study of DeFi Liquidations: Incentives, Risks, and Instabilities" — Kaihua Qin et al. (2021). Covers liquidation MEV and its interaction with DEX mechanics.
Alternative AMM Designs
Curve Finance (StableSwap)
- Curve Finance Whitepaper — Michael Egorov (2019). Describes the StableSwap invariant that combines constant-sum and constant-product behavior, optimized for low-slippage trading between similarly-priced assets. Essential for understanding why different AMM invariants suit different asset types.
Balancer
- Balancer Whitepaper — Fernando Martinelli, Nikolai Mushegian (2019). Generalizes the constant product formula to weighted pools (x^w1 * y^w2 = k) supporting arbitrary portfolio compositions.
CoW Protocol
- CoW Protocol Documentation — CoW DAO. Describes the batch auction mechanism, Coincidence of Wants matching, and solver competition that provides inherent MEV protection.
DEX Aggregation
- "Optimal Routing for Constant Function Market Makers" — Guillermo Angeris et al. (2021). Formal treatment of the routing optimization problem across multiple AMMs.
- 1inch Network Documentation — Describes the Pathfinder algorithm for multi-DEX routing and split trade optimization.
Books and Long-Form Resources
- "DeFi and the Future of Finance" — Campbell R. Harvey, Ashwin Ramachandran, Joey Santoro (2021). Comprehensive textbook treatment of DeFi including AMMs, lending, and composability. Chapter 4 covers AMMs in detail.
- "How to DeFi: Advanced" — CoinGecko (2021). Practical guide to DeFi protocols with detailed Uniswap coverage including worked examples.
- "The Infinite Machine" — Camila Russo (2020). While focused on Ethereum's history rather than DEXs specifically, provides essential context for understanding the ecosystem in which Uniswap emerged.
Online Resources and Tools
Analytics and Data
- Dune Analytics (dune.com) — Community-built dashboards tracking DEX volume, LP profitability, MEV extraction, and more. Search for "Uniswap," "sandwich attacks," or "MEV" to find relevant dashboards.
- DEX Screener (dexscreener.com) — Real-time DEX trading data across all major chains.
- EigenPhi (eigenphi.io) — MEV and sandwich attack analytics with transaction-level detail.
- Flashbots MEV-Explore (explore.flashbots.net) — MEV extraction data and visualization.
Development Resources
- Uniswap V3 Development Book (uniswapv3book.com) — Ivan Kuznetsov's comprehensive technical guide to implementing and interacting with Uniswap V3 smart contracts.
- Uniswap SDK — Official JavaScript/TypeScript SDK for integrating with Uniswap. Available on npm and documented at docs.uniswap.org.
Simulation and Experimentation
- Revert Finance (revert.finance) — Tools for analyzing and simulating Uniswap V3 LP positions, including historical performance and IL calculations.
- DeFi Llama (defillama.com) — Comprehensive DeFi analytics covering TVL, volume, and yields across all DEXs.
Video Lectures
- "Automated Market Makers and Decentralized Exchanges" — Dan Robinson, Paradigm, presented at Stanford Blockchain Conference. Rigorous treatment of AMM theory with proofs and economic analysis.
- "A Deep Dive into Uniswap V3" — Hayden Adams, EthCC 2021. The protocol creator explains the design decisions behind concentrated liquidity.
- "MEV in 2023" — Flashbots Research, various conference presentations. Updated overview of the MEV landscape and mitigation strategies.
Research Groups and Communities
- Flashbots Research (writings.flashbots.net) — The leading MEV research group, publishing regularly on MEV quantification, mitigation, and protocol design.
- Paradigm Research (paradigm.xyz/writing) — Publishes high-quality research on AMM theory, MEV, and DeFi mechanism design.
- a16z Crypto Research (a16z.com/crypto) — Academic and applied research on AMMs, including formal verification and economic analysis.
- Uniswap Governance Forum (gov.uniswap.org) — Governance proposals and discussions that reveal the protocol's evolving design philosophy.