A decentralized trading mechanism that uses liquidity pools instead of order books.
Detailed Explanation
An Automated Market Maker (AMM) is a type of decentralized exchange protocol that relies on mathematical formulas and liquidity pools to price assets, rather than traditional order books matching buyers and sellers. AMMs allow anyone to provide liquidity by depositing token pairs into pools, earning trading fees in return. A common formula, used by Uniswap v2, is x * y = k, where x and y represent the quantities of two tokens and k is a constant. This ensures prices adjust automatically based on supply and demand within the pool.
Why It Matters
AMMs transformed cryptocurrency trading by making it possible to swap tokens without needing a counterparty or centralized intermediary. They enable 24/7 permissionless trading, allow anyone to become a liquidity provider and earn fees, and form the backbone of decentralized finance. Many DeFi protocols rely on them for pricing and liquidity.
Real-World Example
When you swap ETH for USDC on Uniswap, you're trading against a liquidity pool rather than another person. The pool contains both ETH and USDC deposited by liquidity providers. The AMM formula determines the exchange rate based on the ratio of tokens in the pool, and liquidity providers earn a share of the trading fee (0.3% on Uniswap v2 pools; newer versions offer several fee tiers).