Glossary
What Is a DEX? Decentralized Exchanges Explained for Spenders
Definition
DEX (decentralized exchange): A DEX is a set of smart contracts that lets people swap tokens directly from their own wallets, without depositing funds with an exchange company.
On this page
A DEX, or decentralized exchange, is a protocol of smart contracts that swaps one token for another directly from your wallet. ethereum.org explains that DEXs “let you trade different tokens whenever you want”, with your assets staying under your control until the swap executes. For payments, a DEX is usually a tool for getting the right token on the right network before you pay a merchant or top up a card.
How a DEX swap works
- You open the DEX’s website or a wallet with a built-in swap and connect your wallet.
- You choose the token you have and the token you want, for example ETH to USDC.
- The interface quotes a price based on the liquidity pools it can route through.
- If you are selling a token for the first time, you sign a token approval letting the DEX contract move it.
- You sign the swap. The contract takes your input and sends the output back in one atomic transaction: either the whole thing succeeds or nothing changes.
Most DEXs on Ethereum and similar chains use an automated market maker to set prices. Some use order books or aggregate quotes from several sources.
What a DEX swap costs
| Cost | Who gets it | How to manage it |
|---|---|---|
| Network fee | Validators or miners | Swap on a cheaper network or layer 2 |
| Pool fee | Liquidity providers | Fixed per pool; shown in the quote |
| Price impact | Built into the price | Use deeper pools; split large trades |
| Slippage | Market movement | Set a sensible tolerance |
| Interface fee | Some front-ends add one | Check the quote breakdown |
On a small swap, the network fee can be the largest cost. On a large swap in a thin pool, price impact dominates.
DEX vs centralised exchange
| DEX | Centralized exchange | |
|---|---|---|
| Custody | Your wallet | The exchange |
| Account and KYC | Not at protocol level | Required |
| Fiat deposits and withdrawals | No | Usually yes |
| Token range | Anything with a pool, including scams | Listed assets only |
| Support if things go wrong | Usually none | Customer support |
When a DEX helps you pay
- Wrong token. A merchant accepts USDC but you hold ETH. Swap, then pay.
- Wrong network for your card. Some cards accept a stablecoin only on specific chains. A swap or bridge gets it there.
- Keeping custody. If you want to avoid sending funds to an exchange account just to convert them, a DEX keeps everything in your wallet.
If you only need fiat in a bank account, a DEX is the wrong tool; see crypto off-ramp options.
Risks and how to reduce them
- Fake tokens. Anyone can create a token called “USDC”. Select tokens by verified contract address, not by name.
- Phishing sites. Clone DEX websites steal approvals. Bookmark the official address; see wallet drainer sites.
- Unlimited approvals. Many interfaces default to unlimited approvals. Approve exact amounts where your wallet allows, and revoke approvals you no longer need.
- Front-running. On public mempools, bots can trade ahead of large swaps. Tight slippage settings limit the damage.
- Wrong output address. Some interfaces allow sending output to another address. Check it before signing.
Practical tips
- Do a small test swap the first time you use a new route.
- Compare the “minimum received” figure with what you actually need for the payment, and leave a margin for fees.
- Keep some of the network’s gas token after swapping, or you will not be able to send the result.
- If you plan to pay right after swapping, check the merchant’s accepted network first using our network choice guide.
Frequently asked questions
Do I need an account to use a DEX?
Can I cash out to my bank account on a DEX?
Why did I get fewer tokens than the quote?
Are DEX swaps taxable?
Sources
- ethereum.org: Decentralized finance (DeFi)
- Uniswap docs: How Uniswap works
- ethereum.org: Token approvals and security
Facts were checked against these pages on the date shown above. Terms change; confirm on the official page before acting. General information, not financial, tax or legal advice. See our methodology.