How Decentralized Exchanges Work
A decentralized exchange, or DEX, is a trading platform that holds no assets in custody, employs no order book in the traditional sense, and requires no registration from its users. It executes trades directly from pooled liquidity through a smart contract, and the mechanism by which it prices assets is encoded in mathematics rather than determined by a counterparty.
The central innovation enabling DEXes is the automated market maker, or AMM. In a traditional exchange — including a centralized crypto exchange — buyers and sellers are matched based on the quantities and prices at which they are willing to transact, recorded in a central order book. An AMM eliminates the order book entirely. Instead, it manages a liquidity pool: a smart contract holding two assets in a trading pair, into which liquidity providers deposit equal values of both assets. Users trade directly against the pool, depositing one asset and withdrawing the other, with the price determined by the ratio of the two assets in the pool at the time of the trade.
The pricing formula commonly used is expressed as x multiplied by y equals k, where x and y represent the quantities of the two assets and k is a constant. Because k cannot change, any trade that removes one asset from the pool makes it scarcer relative to the other, raising its price. The larger the trade relative to the pool size, the more the price moves — what traders call slippage. This mechanism creates continuous pricing without requiring a counterparty willing to take the other side.
Liquidity providers are compensated through fees collected on trades, paid in proportion to the share of the pool they supply. A provider contributing one percent of the pool’s assets earns one percent of the fees generated. The compensation is intended to offset a risk inherent to the AMM structure: impermanent loss, the phenomenon in which the cumulative value of a provider’s paired assets declines relative to simply holding them, depending on how the price ratio moves. The label “impermanent” reflects that the loss only becomes permanent when the provider withdraws.
Uniswap is the largest DEX by volume, recording approximately $52.5 billion in trading volume over a 30-day period as of March 2026, with roughly $3.1 billion in total value locked. It originated on the Ethereum blockchain but has extended to other chains through bridging tools, listing over 1,000 coins and more than 1,000 trading pairs. It is also the platform most visibly caught in the unresolved regulatory debate over whether DEXes are subject to registration requirements: the SEC issued a Wells Notice to Uniswap Labs in April 2024 suggesting intent to bring action for operating as an unregistered exchange, then closed the investigation in February 2025 without action.
Whether that closure represents precedent or a temporary policy position is the core of the current legislative debate. The House-passed CLARITY Act explicitly exempts the development and operation of decentralized finance trading protocols from its regulatory framework, while simultaneously commissioning studies of defi’s uses, benefits, and risks. Codifying that exemption while applying registration requirements to centralized exchanges would create structurally divergent treatment for functionally similar trading activity — a condition that historically encourages migration to the less-regulated form.
The AMM solved a hard problem in peer-to-peer exchange: how to maintain continuous liquidity without a market maker willing to take the other side. Whether regulators decide that solution requires oversight is the question the current Congress has not yet answered.