Assets
Exchange
Buy Crypto
Products

A DEX, or decentralized exchange, is a crypto trading platform that lets users swap assets directly from a self-custody wallet through blockchain-based infrastructure instead of first depositing funds with a centralized exchange.
On many DEXs, smart contracts handle the trade and settlement onchain. Depending on the platform, liquidity may come from token pools, market makers, an order book, or multiple venues combined through a routing system.
This is why describing every DEX as simply “peer-to-peer” can be misleading. On an automated market maker such as Uniswap, for example, a trader usually swaps against liquidity held in smart contracts rather than waiting for one specific buyer or seller.
DEXs are no longer a niche trading venue. In October 2026, decentralized exchanges were processing roughly $9 billion in spot volume per day and about $268 billion over 30 days.
A DEX connects your wallet to onchain trading infrastructure, calculates a route and quote for the trade, and executes the swap after you approve and sign the required transaction.
Suppose you want to swap USDC for ETH:
The exact execution model depends on the DEX. An AMM can execute against a liquidity pool, an order-book DEX can match orders, and an aggregator may split or route a trade across several liquidity sources to seek a better result.
The key difference from a centralized exchange is custody. On a CEX, users generally deposit crypto to an account controlled by the platform before trading. On a DEX, users can usually keep control of their wallet until they sign the transaction that executes the trade.
A failed DEX transaction can still cost you gas. Validators process the transaction even when execution reverts, so the network fee is generally not refunded.
DEX liquidity comes from users, liquidity providers, market makers, or other trading venues that make crypto available for swaps.
On an AMM such as Uniswap, liquidity providers deposit tokens into smart-contract pools. A trader then swaps against the assets already sitting in that pool rather than waiting for another user to place a matching order. Uniswap describes its liquidity pools as pairs of tokens held in smart contracts specifically for this purpose.
For example, an ETH/USDC pool contains reserves of both assets. When someone swaps USDC for ETH, the pool receives USDC and releases ETH. Its balance changes, and the AMM adjusts the price accordingly.
This is why liquidity depth directly affects execution. A $100 swap may barely move a deep pool, while the same trade can cause significant price impact in a tiny one. Uniswap specifically warns that low-liquidity pools can produce worse swap outcomes.
Liquidity providers take risk by committing their assets, so they can earn fees from swaps routed through their positions. On Uniswap, for example, LP fees are taken from swaps and distributed to active liquidity providers according to the protocol's fee structure.
Not every DEX sources liquidity this way. Order-book venues rely on resting orders and market makers, while aggregators can search across multiple DEXs, pools, and market makers at once.
Uniswap alone has processed more than $4.7 trillion in cumulative trading volume — showing how far DEX infrastructure has moved beyond an experimental corner of crypto.
Modern DEXs use different execution models, so “decentralized exchange” no longer means one specific type of trading system.
The three main models are:
AMMs use smart-contract liquidity pools rather than a traditional order book. Traders swap against pooled assets, while an algorithm determines execution based on the pool's state.
Uniswap is the best-known example. Its protocol uses liquidity pools and automated market-making logic to enable permissionless token swaps.
Order-book DEXs work more like traditional exchanges. Buyers and sellers place bids and asks, and trades execute when compatible orders meet.
This model is especially useful for markets where traders want limit orders, tighter price control, or a familiar professional trading interface.
Aggregators do not depend on a single pool or exchange. They search across multiple liquidity sources and can route — or even split — a trade to seek better execution.
For example, 1inch's Pathfinder can compare DEXs, market makers, liquidity depth, expected rates, price impact, and gas costs when constructing a route.
Newer intent-based systems take this another step. Instead of specifying every step of a swap, a user expresses the result they want and competing solvers or resolvers can find a way to fulfill it. 1inch's Fusion, for example, uses resolvers competing to fill swaps while incorporating MEV protection.
The practical difference is important: on one DEX you may trade against a token pool, on another against an order, and through an aggregator your swap may touch several liquidity sources before reaching your wallet.
The main difference between a DEX and a CEX is custody and execution: a DEX lets users trade from their own wallets through onchain infrastructure, while a CEX typically holds customer assets and executes trades inside its own systems.
The trade-off is responsibility. A DEX reduces the need to trust an exchange with custody of your crypto, but users must manage their own wallet, verify tokens and networks, and understand what they are signing.
A CEX can simplify those tasks and may offer customer support or account recovery, but users depend more heavily on the company holding and accounting for their assets.
Neither model is automatically safer. A DEX changes where the risk sits rather than eliminating it.
The real cost of a DEX trade is more than the advertised swap fee — gas, price impact, slippage, routing, and MEV can all affect how much crypto you actually receive.
Before confirming a swap, separate these costs:
Price impact and slippage are not the same thing. Price impact comes from the size of your trade relative to liquidity. Slippage describes the difference between the expected and actual execution result as market conditions change.
For example, swapping $100 in a deep ETH/USDC market may have negligible price impact. Trying to swap $100,000 into a token with little liquidity can move its pool price sharply even if market prices elsewhere have barely changed.
Routing matters too. Modern DEX routers can compare several pools, split a trade between liquidity sources, and account for both expected output and network costs. Uniswap's router, for example, considers factors including gas estimates, simulated slippage, liquidity depth, route splitting, and the number of hops when selecting a route.
That leads to an important rule: the highest quoted token amount is not always the best trade. What matters is the amount you actually receive after execution costs and market impact.
DEXs remove much of the custody risk associated with centralized exchanges, but they expose users more directly to smart contracts, malicious tokens, wallet permissions, and trade-execution risks.
The main risks include:
A particularly important distinction is that a token being available on a DEX does not mean the DEX has approved or vetted it. On permissionless protocols, anyone may be able to create a token or liquidity pool.
This is why the contract address matters more than the token name. Two assets can display the same ticker while representing completely different contracts.
DEX security therefore has two layers: is the exchange protocol itself trustworthy, and is the specific token or pool you are interacting with safe? Passing one test does not answer the other.
A safer DEX trade starts with verifying the protocol, network, token, permissions, and expected execution before signing anything in your wallet.
Use this flow before a swap:
A self-custody wallet is the access layer for this process. Atomic Wallet's Web3 functionality can connect users to decentralized applications while keeping private keys under user control.
That does not make every DEX, pool, or token safe. Your wallet controls the signature; you still need to decide whether the transaction being signed is one you actually want to execute.

P2P means peer-to-peer, but it can describe a crypto network or a trade between people. Learn how each works, what escrow protects, and where a wallet fits in.