Skip to main content
DFR Publication
Donate
← DeFi glossary

Glossary · D

DEX (Decentralised Exchange)

Key takeaway

A cryptocurrency exchange that operates through smart contracts without a central authority holding user funds. Users trade directly from their self-custodial wallets. Uniswap, Curve, and Balancer are leading DEXs. Unlike centralised exchanges (CEXs), DEXs require no account registration or identity verification.

Last updated

How DEX works in practice

A DEX lets users trade directly from their own wallets against smart contracts, with no custody and no account. Most use an AMM; some run on-chain order books where throughput allows.

Worked example

Swapping on a DEX means signing a transaction from your wallet. The assets never leave your control except in the swap itself, so exchange insolvency is not a risk that applies.

Figures are illustrative and chosen to be checkable, not live market data.

The mistake that costs people money

Self-custody moves the risk rather than removing it. A public mempool exposes trades to sandwiching, and permissionless listing means the interface will happily show you a token that exists only to be sold to you.

DEX: common questions

What is DEX?
A cryptocurrency exchange that operates through smart contracts without a central authority holding user funds. Users trade directly from their self-custodial wallets. Uniswap, Curve, and Balancer are leading DEXs. Unlike centralised exchanges (CEXs), DEXs require no account registration or identity verification.
Which DeFi concepts are most closely linked to DEX?
DEX is closely connected to Permissionless, Sandwich Attack, Front-Running. Understanding how these concepts interact helps evaluate real yield, execution costs and smart-contract risk in decentralised finance.
What is the main risk or misconception around DEX?
Self-custody moves the risk rather than removing it.
Which guide covers DEX in practice?
Read "CEX vs DEX: What's the Difference?" for full context on how DEX affects real DeFi workflows, costs and risk management.

Related DeFi glossary terms

  • Permissionless A system that anyone can interact with without seeking approval, creating an account, or meeting eligibility criteria — just a compatible wallet and the required assets. Permissionless is a core DeFi property: anyone on earth with a crypto wallet can supply to Aave, trade on Uniswap, or stake on Lido without identity verification or approval. This contrasts with permissioned systems where participants must be whitelisted or approved.
  • Sandwich Attack An MEV attack where a bot detects a large pending DEX swap, places a buy order immediately before it (frontrun — pushing the price up), lets the victim's trade execute at the worse price, then immediately sells (backrun — pocketing the price impact). The victim receives fewer tokens than expected; the bot profits from the spread. Protection: use MEV-resistant RPCs (Flashbots Protect), tight slippage tolerance, or intent-based protocols like CoW Protocol.
  • Front-Running In DeFi, front-running occurs when a bot detects a profitable pending transaction in the mempool and submits an identical or similar transaction with a higher gas fee to execute first and capture the profit. Classic front-running copies an arbitrage opportunity discovered by another trader. Sandwich attacks are a related form of front-running specific to large DEX swaps. MEV-protected RPCs (Flashbots Protect) help prevent front-running.
  • Arbitrage The practice of exploiting price differences for the same asset across different markets. In DeFi, arbitrage bots constantly scan DEXs for price discrepancies and execute trades to profit from the difference, simultaneously normalising prices across platforms.
  • Price Impact The change in token price caused by your own trade on an AMM. Large trades deplete one side of the pool reserve, driving the price up for buyers and down for sellers. Price impact is deterministic and calculable before executing — DEX interfaces show estimated price impact as a percentage. Price impact is distinct from slippage (which also includes price movement from other traders). Larger trades in shallower pools have higher price impact.
  • Composability The ability of DeFi protocols to interoperate — to use each other's tokens, liquidity, and mechanisms as building blocks without permission. Because DeFi protocols share a common on-chain state, LP tokens from Uniswap can be used as collateral in Aave, which can be used to borrow tokens for Curve, and so on. Composability is sometimes called 'money Legos' — the distinguishing feature that makes DeFi more than the sum of its parts.