An Automated Market Maker (AMM) is a specific type of decentralized exchange protocol that uses smart contracts containing pooled token reserves rather than a traditional order book to facilitate cryptocurrency trading. AMMs are the backbone of decentralized finance (DeFi), powering platforms like Uniswap, Curve, PancakeSwap, Balancer, and Jupiter.
HOW TRADITIONAL ORDER BOOKS DIFFER
On centralized exchanges like Binance or Coinbase, trades happen when a buyer's order matches a seller's order. This requires active market makers entities that continuously provide buy and sell quotes with capital at risk. AMMs replace this entirely with algorithmic pricing against a locked reserve of tokens.
THE CONSTANT PRODUCT FORMULA
Uniswap's pioneering AMM model uses the formula x × y = k: x and y represent the quantities of two tokens in the pool, and k is a constant. When a user buys Token Y with Token X, they add X to the pool and remove Y. This shifts the ratio, automatically adjusting the price. The larger the trade relative to pool size, the more the price moves this is called price impact or slippage.
LIQUIDITY PROVIDERS AND FEE EARNINGS
Any user can add tokens to an AMM pool and become a Liquidity Provider (LP). LPs receive LP tokens representing their pool share and earn a percentage of every swap executed through the pool. Fee rates vary by protocol and pool: Uniswap V3 offers 0.01%, 0.05%, 0.3%, and 1% tiers.
IMPERMANENT LOSS
The primary risk for LPs: when the price ratio of pooled tokens changes significantly from the deposit ratio, the AMM automatically rebalances the pool leaving LPs with more of the depreciating token. This value reduction versus simply holding is called impermanent loss.
MAJOR AMM PROTOCOLS
Uniswap (Ethereum): Pioneer AMM; V3 introduced concentrated liquidity for capital efficiency.
Curve Finance: Optimized for stablecoin-to-stablecoin swaps with a specialized bonding curve.
PancakeSwap (BNB Chain): Largest AMM on BSC. Balancer: Multi-asset pools with custom token weightings.
Jupiter (Solana): Aggregates liquidity across Solana DEXs.