What is a decentralized exchange (DEX)?

A decentralized exchange lets you trade crypto straight from your own wallet. This guide explains how one works, how it compares with a centralized exchange, what a swap costs, and the risks to understand before you trade.

Decentralized exchange, defined

A decentralized exchange, usually shortened to DEX, is a marketplace for trading crypto that runs on smart contracts instead of on a company's servers. You trade from a wallet you control, and the blockchain itself settles the trade.

There is no account to open and no deposit to make. Your assets leave your wallet only when you sign a transaction, and what you receive arrives in a wallet you control.

The first widely used decentralized exchanges ran on Ethereum. They now exist on most major blockchains, and aggregators such as Decentralized Exchange search many of them at once to find a route for your trade.

How a decentralized exchange works

Most decentralized exchanges use liquidity pools. A pool is a smart contract that holds two or more tokens supplied by users, who are called liquidity providers. When you swap, you add one token to the pool and take another out. A formula known as an automated market maker (AMM) sets the price from the ratio of tokens in the pool.

Some decentralized exchanges use an on-chain order book instead. Buy and sell orders are matched the way they are on a traditional exchange, but every trade still settles from the traders' own wallets.

An aggregator sits on top of both. It asks many pools, exchanges and bridges for a price, then builds the route that returns the most of the token you want after costs. Decentralized Exchange is an aggregator: it compares routes across its supported networks and shows the path, the estimated amount you receive and the costs before you sign anything.

Decentralized vs centralized exchanges

A centralized exchange (CEX) is a company that holds customer funds and runs the market on its own systems. A decentralized exchange replaces the company with smart contracts and leaves custody with you. Neither is better for everyone; they suit different needs.

Decentralized exchange compared with a centralized exchange
 Decentralized exchange (DEX)Centralized exchange (CEX)
Who holds your assetsYou, in your own walletThe exchange, in its accounts
Account and identity checksNone to trade; you connect a walletRegistration, usually with identity verification
How trades settleOn the blockchain, by smart contractsIn the exchange's internal records
Tokens availableAny token with on-chain liquidityOnly tokens the exchange has listed
Paying by card or bank transferNot usually; you need crypto alreadyCommonly supported
If you lose accessNobody can restore a lost recovery phraseAccount recovery through support
Reversing a mistakeConfirmed transactions are finalSupport can sometimes help

Benefits of a decentralized exchange

  • Self-custody. Your assets are never deposited with a third party, so an exchange cannot lose your deposit or stop you withdrawing it.
  • Open access. Anyone with a compatible wallet can trade. There is no account to open.
  • Transparency. Trades and pool balances are recorded on a public blockchain that anyone can inspect.
  • Wide token choice. A token can be traded as soon as liquidity exists for it, without waiting for an exchange to list it.

Risks to understand

  • Smart contract and bridge risk. A bug or exploit in a pool, router or bridge can cause losses.
  • Price impact and slippage. A large trade in a small pool moves the price, and the amount you receive can differ from the quote, up to the slippage limit you set.
  • Fake and low-quality tokens. Anyone can create a token, including copies of well-known names. Always check the contract address.
  • No undo. A confirmed transaction cannot be reversed, and nobody can restore a lost recovery phrase.
  • Token approvals. Approving a contract lets it move that token from your wallet. Review approvals from time to time and revoke the ones you no longer need.

Security and risks in the documentation

What a swap costs

A swap on a decentralized exchange can include several costs. The network fee, often called gas, is paid to the blockchain's validators and rises when the network is busy. Liquidity providers earn a fee that is built into the pool price. Cross-chain routes add the cost of the bridge. The interface you use may add a platform fee.

Slippage is not a fee. It is the largest price movement you agree to accept between the quote and the moment your transaction is processed. If the price moves further than that, the transaction fails instead of completing at a worse rate.

Current fees and default slippage

Cross-chain swaps and bridges

Blockchains do not share assets with one another. A bridge moves value between networks, typically by locking or burning an asset on the source network and releasing or minting it on the destination. A cross-chain swap combines swap and bridge steps into a single route, so you can, for example, send ETH on Ethereum and receive SOL on Solana.

Cross-chain routes take longer than swaps on one network, often a few minutes and sometimes more when a network is busy, and they add the bridge's own risk. Do not submit the same transaction a second time while the first is still pending.

Supported networks

How to swap on Decentralized Exchange

  1. Connect a wallet for the network you are sending from.
  2. Choose the token and network to send, the token and network to receive, and enter an amount.
  3. Compare the routes offered. Check the estimated amount you receive, the costs and the expected time.
  4. Approve the token if your wallet asks. On EVM networks this is needed the first time you trade each token.
  5. Sign the swap in your wallet and wait for it to confirm. Progress is shown in the exchange and saved under Activity on your device.

Full trading steps

Frequently asked questions

What does DEX stand for?

DEX stands for decentralized exchange: a crypto exchange run by smart contracts on a blockchain, where you trade from your own wallet.

What is a liquidity pool?

A liquidity pool is a smart contract holding a reserve of two or more tokens. Traders swap against the pool, and the people who supplied the tokens earn a share of the trading fees.

What is slippage?

Slippage is the difference between the price you were quoted and the price your trade completes at. The slippage setting is the largest difference you accept; beyond it, the transaction fails instead of completing.

Do decentralized exchanges require identity verification?

A decentralized exchange does not open accounts or hold customer funds, so connecting a wallet involves no registration. Rules differ between countries, and you are responsible for following the ones that apply to you.

Can I use a decentralized exchange on my phone?

Yes. Open the exchange in your wallet app's built-in browser, or on EVM networks and Tron connect a phone wallet by scanning a WalletConnect QR code.