
Before automated market makers, cryptocurrency trading relied on traditional order books, where buyers and sellers placed orders. Classic market makers provided essential liquidity, but this approach had major shortcomings: high operational costs, constant reliance on professional traders, and risks of price manipulation.
In 2016, Alan Lu of the Gnosis team introduced a groundbreaking concept—an automated market maker built on smart contracts that eliminates the need for third-party liquidity providers. Vitalik Buterin, founder of Ethereum, strongly supported the idea, giving it significant influence within the crypto community.
Bancor became the first decentralized protocol to implement AMM technology in 2017. However, AMMs achieved mainstream adoption and popularity after Uniswap launched in 2018, demonstrating how effective and user-friendly automated market makers could be. Following Uniswap’s success, many decentralized exchanges adopted similar models—such as PancakeSwap, SushiSwap, and others—tailoring AMMs to various blockchains.
An automated market maker operates on principles similar to centralized exchange order books, but its pricing mechanism is fundamentally different. Instead of relying on traditional order books filled by buyers and sellers, an AMM uses mathematical algorithms to automatically set cryptocurrency prices based on the asset ratios in a liquidity pool.
The heart of the AMM is the liquidity pool—a smart contract typically containing a pair of cryptocurrencies in fixed proportions. Liquidity providers deposit assets and earn a portion of trading fees. The pool’s size and the number of providers directly affect transaction speed and the degree of slippage during large trades.
The most widely used AMM pricing formula is the constant product formula: x * y = k, where x is the amount of asset A, y is the amount of asset B, and k is a constant representing total liquidity. When a trader swaps tokens, they add one token to the pool and receive another, keeping the product constant and automatically adjusting price ratios. For example, buying token A by adding token B reduces the amount of token A, increasing its price according to the formula.
Today’s DeFi ecosystem offers a variety of automated market maker types, each optimized for specific market needs:
Virtual AMM — An innovative market maker type that doesn’t hold actual assets in liquidity pools, instead managing prices using advanced mathematical models. Perpetual Protocol is an example, enabling perpetual contract trading without traditional liquidity pools.
Probabilistic AMM — Employs probabilistic formulas and statistical models to determine optimal liquidity allocation. Tokemak stands out in this category, offering dynamic liquidity management powered by predictive algorithms.
Constant Product AMM — The classic and most common type, based on the x * y = k formula. Uniswap pioneered this approach, valued for its simplicity and reliability across various market conditions.
Hybrid AMM — An advanced market maker that adapts dynamically to changing market conditions by combining several mathematical models. Balancer enables pools with multiple tokens and customizable weights, providing flexible liquidity management.
Weighted Average Price AMM — A specialized type where asset prices are calculated from the sum of both pool assets, adjusted for their weights. Curve Finance is optimized for stablecoins and assets with similar values, minimizing slippage during swaps.
Credit AMM — Streamlines lending and borrowing in decentralized environments, letting users earn passive income by supplying assets for loans. Aave and Compound lead this segment, offering automated interest rate management.
Insurance AMM — Focuses on pooling assets to provide insurance protection for DeFi participants. Nexus Mutual uses the AMM model to manage insurance pools and compensation payouts.
Options AMM — Enables decentralized trading of crypto options. Opyn provides risk-hedging and speculative trading tools for option contracts.
Synthetic AMM — Facilitates trading synthetic assets that mirror real-world values without physical ownership. Synthetix lets users create and trade tokenized versions of stocks, commodities, and currencies.
Decentralization — Automated market makers are fully decentralized, operating without third parties or central authorities. All transactions are executed through smart contracts, eliminating censorship and ensuring equal access for all participants, regardless of location or status.
Non-custodial — AMM platforms do not control user funds; assets remain entirely under the owner’s control throughout trading. This is fundamentally different from centralized exchanges, where users must entrust assets to an intermediary.
No price manipulation risk — Prices are set transparently by mathematical formulas embedded in smart contracts, preventing artificial manipulation by individuals or platform administrators. Pricing is determined only by pool asset ratios and trading volume.
Slippage risk — Low liquidity pools can cause significant price slippage, especially for large trades. Traders may receive assets at much less favorable prices than expected, which can be critical for large transactions in limited-liquidity pools.
Smart contract vulnerability — Despite decentralization and automation, AMM protocols are exposed to technical risks in smart contract code. There have been numerous hacks and attacks against DeFi protocols, resulting in millions in user losses, underscoring the need for ongoing code audits and security monitoring.
Usability complexity — AMM-based decentralized exchange interfaces can be confusing for newcomers. Users need to understand liquidity pools, impermanent loss, gas fees, and other technical concepts, creating barriers for less experienced participants.
Limited order functionality — AMMs only support market orders and lack advanced types like stop-loss or stop-limit. This restricts traders’ risk management and limits complex trading strategies available on centralized exchanges.
An AMM is a decentralized trading protocol that uses liquidity pools instead of traditional order books. Prices are set algorithmically, such as via the constant product formula. Unlike professional market makers, anyone can provide liquidity and earn fees.
Automated market makers use liquidity pools and don’t require an order book. The constant product formula x*y=k adjusts prices dynamically, where x and y are token reserves and k remains constant. Liquidity providers deposit equal-value token pairs and earn fees from trading volume.
The main risk is impermanent loss—when token prices move compared to their deposit price, liquidity providers may incur losses. The greater the price volatility, the more severe the impermanent loss. Trading fees can partially offset losses; pairing stablecoins or low-volatility assets helps reduce risk.
Uniswap applies the universal x*y=k formula to all token pairs, resulting in flexibility but increased slippage. Curve specializes in stablecoins, combining constant product and constant sum formulas to deliver stable prices and lower slippage at high trading volumes.
Deposit assets into liquidity pools on decentralized exchanges. Earn rewards for supplying liquidity via LP tokens. Prices automatically adjust to supply and demand without a traditional order book.
Slippage is the gap between the expected and actual execution price. To minimize slippage, use limit orders, set slippage tolerance, choose high-liquidity pools, and trade during periods of low volatility.











