Skip to content
CryptoSober

Glossary · DeFi

AMM (automated market maker)

An AMM, or automated market maker, is a smart contract that sets token prices by formula from the reserves held in a liquidity pool.

By Abu HosainPublished 1 min read

In simple terms

An AMM is the pricing engine inside most decentralised exchanges. It replaces human buyers and sellers with a formula and a pot of tokens.

How it works

A traditional exchange matches a buyer with a seller. An AMM holds two tokens in a liquidity pool and quotes a price based on the ratio between them. In the simplest and most common design, the formula keeps the product of the two reserves constant. When someone buys token A, the pool has less A and more B, so A becomes more expensive for the next buyer.

Prices in the pool are kept close to the wider market by traders who profit from closing any gap.

Example

A pool holds 10 ether and 20,000 units of a token. A trader adds 1 ether and takes tokens out. Because the ratio shifts as the trade happens, the trader receives fewer than 2,000 tokens.

Why it matters for safety

The price you are quoted depends on the size of the pool. In a small pool, a modest trade moves the price sharply, which shows up as slippage. A price on a chart may also come from a pool so small that nobody could actually sell at that price. Check the pool's size, not only the token's price.

This page is educational. It is not financial, investment, legal, or tax advice. See our editorial policy and how to report an error.