Skip to main content

AMM & Liquidity

Decentralized exchanges are the beating heart of on-chain markets. In traditional finance, a centralized limit order book aggregates buy and sell orders, and a matching engine pairs them by price-time priority. On a blockchain, this is expensive — storing every order on-chain, updating the book with each fill and cancellation, and matching at the granularity traders expect would consume more gas than the trades themselves are worth.

Automated Market Makers solve this by replacing the order book with a mathematical formula. A single smart contract holds reserves of two (or more) tokens, and a bonding curve — most famously the constant product formula x * y = k — determines the exchange rate at any trade size. Traders interact directly with the pool rather than with each other. Liquidity is always available, at some price.

But this elegance creates a new kind of market microstructure. Slippage is deterministic: the larger the trade relative to pool depth, the further the price moves along the curve. Liquidity providers earn fees but face impermanent loss when the price ratio of the pooled assets diverges. Concentrated liquidity (Uniswap V3) lets LPs allocate capital within specific price ranges for higher efficiency, but demands active management — inactive positions earn nothing when the price moves outside their range.

This section covers the mechanics, mathematics, and strategies of decentralized exchange markets. From building a DEX market maker on Uniswap V3 that manages tick ranges and fee tiers, to modeling liquidity shocks as mean-reversion signals, to analyzing why large trades fail and how smart order routing mitigates fragmentation. We cover funding rate arbitrage across perpetual DEXs, the liquidity dynamics of liquid staking token pools, and the computational complexity underlying AMM design.

Research Areas

  • AMM Design — Constant product, concentrated liquidity, dynamic fees, Uniswap V4 hooks. How the mathematical structure of the AMM determines execution quality and LP returns.
  • Liquidity Provider Strategy — Tick selection, fee tier optimization, position rebalancing frequency. When does active LP management outperform passive provision?
  • Impermanent Loss & LVR — Quantifying the adverse selection cost that LPs incur from arbitrageurs trading against stale prices. Is fee income sufficient compensation?
  • Execution Quality — Slippage, price impact, and smart order routing. How aggregators split trades across fragmented DEX liquidity to minimize execution costs.
  • Cross-Venue Arbitrage — CEX-DEX price divergence, funding rate spreads across perpetual DEXs, and the arbitrageurs who keep prices aligned.

All AMM & Liquidity Articles