Glossary

AMM (Automated Market Maker)

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.

Related Terms

Frequently Asked Questions

What is impermanent loss?
Impermanent loss occurs when the price ratio of tokens in a liquidity pool changes from when you deposited them. The greater the price divergence, the larger the loss compared to simply holding the tokens. It's called 'impermanent' because the loss reverses if prices return to the original ratio.
Which AMMs are most popular?
Uniswap (Ethereum), PancakeSwap (BNB Chain), and Raydium (Solana) are among the most popular AMMs. Each uses variations of the AMM model optimized for their respective blockchains.