Description:
An Automated Market Maker (AMM) is a foundational technology in decentralized finance (DeFi) that allows digital assets to be traded in a permissionless and automated way—without relying on a traditional order book used by centralized exchanges. Instead of matching buyers with sellers, AMMs use smart contracts and mathematical formulas to determine asset prices and facilitate instant liquidity.
This innovation democratizes market-making by allowing any individual (not just institutional brokers) to become a liquidity provider. By depositing tokens into liquidity pools, users help others trade those assets while earning fees in return.
How It Works
At the heart of an AMM lies a liquidity pool, which is a smart contract holding reserves of two or more tokens. Rather than relying on a bid/ask spread and active traders to match orders, an AMM uses a pricing algorithm—typically something like:
x * y = k
This is known as the constant product formula, where:
xis the quantity of Token Ayis the quantity of Token Bkis a fixed constant
When a trader swaps one token for another, the ratio of the tokens in the pool changes, and the smart contract automatically adjusts the price to maintain the invariant k. This ensures that trades can occur at any time, with no need for a counterparty.
More advanced AMMs now use variations on this formula to support stablecoins (e.g., Curve), dynamic pricing (e.g., Balancer), or concentrated liquidity (e.g., Uniswap v3).
Key Components
- Liquidity Pools: The base mechanism for AMMs, filled by liquidity providers (LPs).
- Liquidity Providers (LPs): Users who deposit equal values of two tokens into a pool and earn trading fees in return.
- Slippage: The difference between expected and executed trade prices, especially noticeable in pools with low liquidity.
- Impermanent Loss: A risk LPs face when the price of pooled tokens diverges significantly, potentially making them worse off than if they had simply held the assets.
Benefits
- 24/7 Liquidity: AMMs make it possible to trade at any time without needing another trader on the opposite side.
- Permissionless: Anyone can create a new pool or provide liquidity—no brokers, no gatekeepers.
- Passive Income: LPs earn a portion of transaction fees, making AMMs a form of yield-generating tool.
Limitations
- Impermanent Loss: LPs may end up with a reduced portfolio value if token prices diverge significantly.
- Front-running & MEV: On-chain transaction visibility exposes trades to front-running or manipulation by bots.
- Price Inefficiencies: Low liquidity or volatile assets may result in large slippage, especially for large trades.
- Security Risks: Vulnerabilities in smart contract code can lead to hacks or drained pools.
Real-World Examples
- Uniswap: One of the first and most widely used AMMs; operates on Ethereum and other chains.
- SushiSwap: A fork of Uniswap with additional yield farming features.
- Curve Finance: Optimized for stablecoin trading with low slippage.
- Balancer: Allows multiple token pools and dynamic weights, supporting custom use cases.
The Evolution of AMMs
Since their introduction in the DeFi boom of 2020, AMMs have rapidly evolved. While early versions were simple in design, newer generations like Uniswap v3 allow for concentrated liquidity, letting LPs choose specific price ranges to provide funds—making capital more efficient and reducing slippage.
Moreover, cross-chain AMMs are emerging, enabling swaps across multiple blockchains and fostering broader interoperability within DeFi.
Related Terms
- Decentralized Exchange (DEX)
- Liquidity Pool
- Slippage
- Impermanent Loss
- Smart Contract
- Yield Farming
- Token Swap
- Constant Product Formula










