Trust Wallet

AMM

Published on Jun 9, 2026 · Updated on Sep 25, 2026
Share post

In Brief

An AMM (Automated Market Maker) is the algorithm behind decentralized exchanges that prices and settles trades against a liquidity pool using a mathematical formula, instead of matching buyers and sellers through a traditional order book.

AMM

What Is an AMM (Automated Market Maker)?

An Automated Market Maker (AMM) is the technology that powers most decentralized exchanges (DEXs). Instead of matching individual buyers and sellers through an order book, an AMM uses a mathematical formula and a pool of tokens to set prices and execute trades automatically.

This innovation made permissionless, always-available token swapping possible — anyone can trade at any time, and anyone can supply liquidity to earn fees. Uniswap popularized the model, and it now underpins much of DeFi.

How Does an AMM Work?

  1. Liquidity providers deposit a pair of tokens into a liquidity pool.

  2. The AMM uses a formula to determine the price based on the ratio of tokens in the pool.

  3. When a trader swaps, they add one token to the pool and remove the other.

  4. Each trade shifts the ratio, automatically adjusting the price for the next trade.

  5. A small fee on each swap is paid to the liquidity providers.

The Constant Product Formula

Many AMMs use the constant product formula: x * y = k, where x and y are the quantities of the two tokens and k is a constant.

  • As you buy more of one token, its quantity falls and its price rises.

  • This ensures the pool can never be fully drained and always quotes a price.

  • It also explains why large trades cause more slippage.

AMM vs Order Book Exchange

Feature AMM (DEX) Order Book (CEX)
Price set byFormula + pool ratioMatching buy/sell orders
CounterpartyA liquidity poolAnother trader
AvailabilityAlways onNeeds active orders
Who provides liquidityAnyone (LPs)Market makers
CustodyNon-custodialOften custodial
  • Constant product (x*y=k) — general-purpose pools (e.g. Uniswap v2).

  • Stablecoin AMMs — optimized for low-slippage swaps between similar-value assets (e.g. Curve).

  • Concentrated liquidity — lets LPs focus capital in specific price ranges (e.g. Uniswap v3).

AMMs and Trust Wallet

Trust Wallet connects you to AMM-powered DEXs through its in-app dApp browser and WalletConnect, letting you swap and provide liquidity across 100+ blockchains. Because Trust Wallet is non-custodial, you trade directly from your own wallet and keep full control of your private keys — no central exchange holds your funds.

Disclaimer: Content is for informational purposes and not investment advice. Web3 and crypto come with risk. Please do your own research with respect to interacting with any Web3 applications or crypto assets. Subject to our Terms of Service and Privacy Policy.

The crypto wallet
you control

Take custody. Take control. Start in seconds.

Download
Trust Wallet app on iPhone