A DEX in crypto is a decentralized exchange: a set of smart contracts that swaps tokens from a self-custody wallet. Instead of an order book and a matching engine, many DEXs, Uniswap among them, price trades from liquidity pools using an automated market maker. There is no account or deposit, and on Uniswap a swap pays the fee its pool sets.
This is an evergreen explainer. The Uniswap fee figures below were read from its developer documentation on 1 November 2026. Some, including the protocol-fee split, are governance-configurable and can change.
What is a DEX in crypto, in plumbing terms?
Take the parts of a centralized exchange this desk usually covers and remove them one at a time. No account, so no sign-up and no balance held on your behalf. No matching engine pairing a buyer with a seller. No fiat rails: a DEX moves tokens, not bank money. What is left is a contract on a public chain that holds pooled tokens and a pricing rule.
You arrive with a wallet whose keys you control, ask the contract for a quote, and sign. The trade settles on-chain in the same transaction, or it reverts and nothing moves except the network fee you paid to try.
How do decentralized exchanges work?
A liquidity pool holds two tokens. Liquidity providers (LPs) deposit both sides and receive a claim on the pool. The automated market maker sets the price from the ratio of the reserves: buy one token and its reserve shrinks, so the next unit costs more. Uniswap v2 calls this the constant product invariant, k.
That is why a large order relative to the pool moves its own price. The order book equivalent is walking the book; here the curve does the walking. Routers that split one swap across several pools to soften this are covered in our DEX aggregator explainer.
What does a DEX swap pay? Uniswap’s fee schedule
Fees are per protocol and per pool, so the figures below are Uniswap’s and nobody else’s. Per the Uniswap developer docs on fees:
| Version | Swap fee | Where it goes |
|---|---|---|
| v2 | Flat 0.30% on every pool | Added to pool reserves; LPs’ share compounds via k |
| v3 | Standard tiers 0.05%, 0.30%, 1%; governance can enable more | Claimable balance per position, in-range LPs only |
| v4 | Any fee from 0% to 100% in 0.0001% steps; dynamic fees via hooks | Claimable balance per position, in-range LPs only |
The docs say the swap fee accrues pro-rata to LPs whose liquidity is active at the time of the swap. A v3 or v4 position whose price range the market has left earns nothing until the price comes back.
Where the protocol cut comes in
According to the same page, after the UNIfication governance proposal passed in December 2025, protocol fees are active on all v2 pools and on select v3 pools. The docs set them at approximately 1/6 of the swap fee at launch and call the values governance-configurable. For v4, fee adapter flows can be enabled through governance; the page does not say they are on. Collected fees can be claimed by searchers who burn UNI.
The page’s split table, as read:
| Pool | LP fee | Protocol fee |
|---|---|---|
| v2, all pools | 0.25% | 0.05% |
| v3, 0.01% tier | 0.0075% | 0.0025% |
| v3, 0.05% tier | 0.0375% | 0.0125% |
| v3, 0.30% tier | 0.25% | 0.05% |
| v3, 1.00% tier | 0.8334% | 0.1666% |
The table lists a 0.01% v3 tier the docs do not call standard. On the two smallest tiers the protocol share works out to a quarter, not a sixth, by the table’s own numbers. The trader pays the same total either way; the split decides who keeps it.
The two costs the pool fee leaves out
The pool fee is one layer. The network charges gas for the transaction, whether it fills or reverts. Slippage, the gap between quote and fill, is the other, and you cap it with a tolerance that reverts the trade when breached. Compared with an order book’s maker and taker fees, neither has a fixed rate on a schedule page; both vary with the moment you sign.
DEX vs CEX: what actually changes
Custody first. On a CEX the venue holds the asset and your claim is contractual; on a DEX the asset never leaves your wallet until the swap. Recovery runs the other way: an exchange can reset a password, while a lost seed phrase on a DEX is nobody’s problem but yours. Token approvals you grant a contract stay live until you revoke them.
FAQ
What is a DEX and how do you use it?
A DEX is a set of smart contracts that swaps tokens on a blockchain. To use one you connect a self-custody wallet, pick the two tokens, review the quoted output, the pool fee and the network fee, set a slippage tolerance, then sign the transaction. Nothing is deposited first; the swap settles from your wallet.
How do decentralized exchanges work?
On Uniswap and similar AMM-based DEXs, trades run through liquidity pools. Liquidity providers deposit pairs of tokens into a contract, and an automated market maker prices each trade from the pool’s reserves. A trade shifts the reserves and therefore the price. The swap fee is paid to the providers whose liquidity was in use, and on some Uniswap pools part of it goes to the protocol.
What is the difference between a DEX and a CEX?
A centralized exchange holds your assets in an account, matches orders in its own engine and charges maker and taker fees from a schedule. A DEX holds nothing for you: the swap executes against a contract from your own wallet, the fee is set per pool, and there is no fiat deposit or withdrawal. You keep the keys, and the mistakes.
Before you sign
Governance can change several percentages above, and v4 pool creators set their own, so read the live docs page before you trade, and check the pool’s fee tier in the interface rather than assuming one. Self-custody removes the venue; it does not remove the risk. Crypto assets are high risk, and nothing here is advice. Do your own reading.