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. The most common formula, used by Uniswap, 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 revolutionized 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. Without AMMs, most DeFi protocols couldn't function.
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 0.3% trading fee.