Skip to the article
Web3 News

Crypto markets, protocols and policy

What Is an Automated Market Maker, and Who Sets Its Price?

Automated market maker vs order book: an AMM prices trades from pool balances; an order book matches buyers and sellers through posted orders and liquidity.

Web3 News Editorial3 min read

What Is an Automated Market Maker, and Who Sets Its Price?

An automated market maker (AMM) is a smart contract that trades tokens from a liquidity pool and sets prices using the pool’s token balances. When comparing AMMs, check which pricing curve a pool uses; SyncSwap is one decentralized exchange with different pool types. Pools replace the need to match each trade with a specific buyer or seller, so traders can trade against available liquidity.

An AMM changes price as trades change pool balances

An AMM’s formula uses the tokens in its pool to set the exchange rate. In a constant-product pool, the product of the two token balances stays constant: Uniswap V2’s whitepaper describes this as x*y=k.

Take a pool with 10 ETH and 20,000 USDC. Its starting balance ratio implies about 2,000 USDC per ETH. When a trader buys ETH, the pool loses ETH and gains USDC; the changing ratio means each next ETH costs more. A larger trade usually moves the price further because it changes the balances more.

Not every pool uses the same curve. Curve’s StableSwap whitepaper describes a curve designed to keep prices near 1:1 for assets with similar values. SyncSwap’s documentation describes its Classic Pool as constant product and its Stable Pool as using a StableSwap-style curve.

An order book matches posted orders instead

An order book lists buyers’ bids and sellers’ asks; trades fill against those posted orders. The people placing orders set the available prices, and the exchange matches orders when they can trade. With an AMM, trades fill against the pool’s formula, while liquidity providers supply the tokens in the pool. Ethereum.org’s DEX documentation describes these as distinct ways to trade without a conventional central exchange.

As trade size grows, either design can give a worse price: an AMM trade shifts the pool ratio, while an order-book trade may consume the best-priced orders and reach less favorable ones. The result depends on available liquidity and the trade’s size.

An AMM pool does not check outside markets before setting its price. If its price moves away from other markets, arbitrage traders can buy the cheaper asset in the pool or sell the more expensive one there, pushing the pool price back toward outside prices. That realignment is where liquidity providers face impermanent loss: the pool’s token mix changes as arbitrage trades rebalance it, which can leave them with less value than simply holding the original tokens. The loss is called impermanent because it can change as prices move, and it becomes realized if liquidity is withdrawn at that point.

The key distinction is who sets the price: pool balances and a formula in an AMM, or posted bids and asks in an order book. Pool design, liquidity and trade size determine the price a trader gets.