Uniswap
Type: DEX
Uniswap is the largest decentralized exchange by cumulative volume, pioneering the constant product AMM (V1/V2) and concentrated liquidity (V3) paradigms. V4 introduces hooks for customizable pool logic and a singleton architecture for gas-efficient multi-hop trades. Uniswap dominates Ethereum mainnet DEX volume and has deployed across most major L2s.
Market Microstructure Analysis
Uniswap V3's concentrated liquidity model transformed DEX market making by letting LPs allocate capital within specific price ranges, dramatically improving capital efficiency at the cost of active position management requirements. Tick-based liquidity distribution creates a discretized depth profile where market depth varies significantly by price level — liquidity clusters near the current price and at psychologically round ticks. The fee tier system (1bp, 5bp, 30bp) lets pools differentiate by volatility, with high-volatility pairs charging higher fees to compensate LPs for adverse selection. Uniswap V4's hook architecture enables custom pool logic that can internalize MEV, implement dynamic fees, or automatically rebalance LP positions. The LP base has professionalized: a small number of sophisticated market makers and DAOs now provide the majority of liquidity, particularly in major stablecoin and ETH pairs. Price discovery on Uniswap is driven by CEX-DEX arbitrage, with atomic arbitrageurs keeping pool prices aligned with broader market prices.
Key Innovations
- Constant product AMM (V1/V2): permissionless liquidity with unbounded price range
- Concentrated liquidity (V3): 4000x capital efficiency improvement over V2
- Multiple fee tiers (V3): market-driven fee selection per volatility regime
- Hooks (V4): programmable callbacks for custom pool behavior
- Singleton architecture (V4): single contract manages all pools, reducing gas for multi-hop trades
Related Articles on Cryptogrammar
- C++ Trading - Building a DEX Market Maker: Simulating Uniswap V3 Liquidity Provision
- Why Large Trades Fail on DEX - From 5% Slippage to 10% Price Crashes
- Fading Toxic Flow: An Automated Mean-Reversion Strategy for DEX Liquidity Shocks
- Big O Notation and Time Complexity Analysis for Uniswap V3 Smart Contracts