What is an Automated Market Maker (AMM)? How it works and why it's central to DeFi
What is an automated market maker?
An automated market maker (AMM) is a decentralized trading protocol that uses liquidity pools and algorithms to facilitate cryptocurrency trades directly between users. Instead of relying on a traditional order book of buyers and sellers, AMMs automatically determine asset prices based on the ratio of tokens in a pool.
Popular AMMs include Uniswap, Curve, and Balancer.
How it works
- Liquidity provision: Users deposit pairs of tokens (e.g., ETH and USDC) into a smart contract, forming a liquidity pool.
- Pricing algorithm: The AMM uses a mathematical formula, often x × y = k, to determine token prices based on pool balances.
- Trading: Other users can trade directly with the pool at algorithmically determined prices.
- Earnings for liquidity providers: Liquidity providers earn a share of trading fees in proportion to their contribution to the pool.
What makes AMMs so useful in DeFi
- Enable 24/7, permissionless trading without a centralized authority.
- Lower barriers to market participation.
- Allow anyone to become a liquidity provider and earn passive income.
- Provide deep liquidity for tokens that might be illiquid on centralized exchanges.
AMM vs order book exchange
| Feature | Automated Market Maker (AMM) | Order Book Exchange |
|---|---|---|
| Liquidity source | User-funded liquidity pools | Buy/sell orders from traders |
| Pricing | Algorithm-based | Market supply and demand |
| Intermediary | None - fully decentralized | Centralized matching engine or broker |
| Accessibility | Open to anyone with a crypto wallet | Often requires account registration |
Where AMMs are used
- Swapping ETH for USDC on Uniswap.
- Providing liquidity to Curve for stablecoin trades.
- Token launches using liquidity pool pairs instead of traditional listings.
FAQs
- Do AMMs eliminate price slippage?: No — large trades relative to pool size can still cause slippage.
- Can anyone provide liquidity?: Yes — but liquidity providers should be aware of impermanent loss risks.
- Are AMMs only for Ethereum?: No — they operate on multiple blockchains, including BNB Chain, Polygon, and Avalanche.