Qaynaq LABS · TOOLS

CRYPTO GLOSSARY

Automated Market Maker (AMM)

A decentralized trading protocol that uses mathematical formulas to price and facilitate trades between cryptocurrencies without relying on traditional order books or market makers.

Technical definition

An AMM is a smart contract-based system that maintains liquidity pools of two or more token pairs, where prices are determined algorithmically based on the relative supply of assets in the pool. Unlike order-book exchanges, AMMs use constant product, constant sum, or other mathematical models (e.g., x*y=k) to set prices dynamically, enabling permissionless trading. Liquidity providers deposit tokens into pools and earn fees proportional to their share of the pool, while traders swap tokens directly with the pool, incurring slippage based on pool depth and trade size.

An analogy

Imagine a vending machine that always has snacks, but the price of each snack adjusts based on how many are left inside. If one snack is nearly gone, its price goes up; if another is abundant, its price drops. You can buy or sell snacks to the machine at any time, but the machine’s owner (liquidity providers) earns a small fee for keeping the machine stocked.

Why it matters

AMMs enable decentralized exchanges (DEXs) to function without centralized intermediaries, reducing reliance on traditional market makers and allowing anyone to provide liquidity or trade tokens permissionlessly. They are foundational to DeFi, enabling 24/7 markets for long-tail assets and reducing barriers to entry for new tokens.

Where it came from

AMMs were popularized by Uniswap in 2018, which introduced the constant product model (x*y=k) for Ethereum-based token swaps. The concept built on earlier work in decentralized exchanges and bonding curves, but Uniswap’s simplicity and composability led to widespread adoption in DeFi.

Example in practice

A user swaps 1 ETH for 1,500 USDC on Uniswap’s ETH/USDC pool. The AMM’s smart contract calculates the price based on the pool’s reserves (e.g., 100 ETH and 150,000 USDC), adjusts the reserves to 101 ETH and 148,500 USDC, and sends the user 1,500 USDC minus a 0.3% fee, which is distributed to liquidity providers.

Common misconceptions

  • AMMs are 'free' because they don't charge fees → Correction: AMMs charge fees (typically 0.05%–1%) to liquidity providers, which are often passed to traders as part of the swap cost.
  • AMMs have infinite liquidity → Correction: AMMs only have liquidity equal to the assets deposited by liquidity providers; large trades can cause significant slippage or fail if the pool is too small.

Risks & limitations

  • Impermanent loss: Liquidity providers may earn less than holding the tokens outright due to price divergence between paired assets.
  • Smart contract risk: Bugs or exploits in AMM protocols can lead to fund losses (e.g., flash loan attacks, reentrancy vulnerabilities).
  • Low liquidity risk: Small pools are vulnerable to price manipulation and high slippage for large trades.
  • Regulatory uncertainty: AMMs may face scrutiny under securities laws or financial regulations depending on token composition and usage.
  • Front-running: Miners or bots can exploit pending transactions to profit from arbitrage before the trade executes.

Related terms

About "Automated Market Maker (AMM)" in crypto

Cryptocurrency vocabulary moves faster than any other technical field. New terms appear weekly, old terms quietly change meaning, and most "definitions" online were written by someone trying to sell you something. Qaynaq Labs' crypto glossary aims for the opposite: neutral, accurate, skeptical explainers that include the downside.

This entry covers the technical mechanics, a real-world analogy, where the concept came from, and what could go wrong. Pair it with the related terms to build a working mental model of how the pieces fit together.

Frequently asked

How do AMMs make money?

AMMs generate revenue through trading fees (typically 0.05%–1% per swap), which are distributed to liquidity providers as rewards. Some AMMs also earn from token emissions (e.g., governance tokens) or protocol-level revenue models.

Can I lose money by providing liquidity to an AMM?

Yes. Liquidity providers face impermanent loss if the price of deposited tokens changes significantly after deposit. Additionally, smart contract risks (e.g., hacks) or pool-specific risks (e.g., low liquidity) can result in losses.

Are AMMs safer than centralized exchanges?

AMMs eliminate counterparty risk (e.g., exchange insolvency) but introduce new risks like smart contract vulnerabilities, impermanent loss, and regulatory uncertainty. Centralized exchanges may offer better protections (e.g., FDIC insurance for fiat) but require trusting a third party.