What is a DEX?

A decentralized exchange (DEX) is a cryptocurrency exchange run by smart contracts on a blockchain: traders swap tokens straight from their own wallets, and no company holds their funds. On a centralized exchange such as Coinbase or Binance, a trader first deposits tokens and trusts the exchange to look after them, and ethereum.org notes that such exchanges are attractive targets for hackers; on a DEX the trader never gives up control of the tokens, and each trade settles on the blockchain in the transaction that makes it.

DEXs carried about $15.7bn of trades in the 24 hours to 5 December 2026, across more than 900 protocols that DefiLlama tracks, and Uniswap handled $6.3bn of it.

How does a DEX work?

Most DEXs are automated market makers (AMMs). Instead of matching a buyer with a seller, an AMM trades against a pool holding two tokens and sets the price from the pool's balances. Uniswap's design keeps the product of the two balances constant, x × y = k, so each purchase of one token makes it dearer against the other. Anyone can become a liquidity provider by depositing both tokens into a pool, and takes a share of the trading fees in return.

A liquidity provider carries a cost called impermanent loss. When prices move, traders rebalance the pool against them, and the deposit ends up worth less than the same tokens held outside it. In Uniswap's worked example, a deposit of 1 $ETH and 100 $DAI is worth 219.09 $DAI after $ETH rises from 100 to 120 $DAI, against 220 $DAI for holding, before fees. The loss is impermanent because it disappears if the price returns.

Two other designs are common. An order-book DEX lists buy and sell orders at set prices, as a stock exchange does, and settles matches on chain. A DEX aggregator holds no liquidity of its own: it compares prices across many DEXs and can split one order between them.

Where did DEXs come from?

EtherDelta, launched in July 2016, kept its order book on a central server and settled each trade through an Ethereum smart contract; in November 2018 its founder settled charges from the US Securities and Exchange Commission of running an unregistered exchange. Uniswap's own history calls EtherDelta the only DEX with traction in late 2017. Bancor's May 2017 whitepaper proposed tokens that hold reserves and trade at a continuously calculated price, an early automated market maker.

Uniswap launched on 2 November 2018 with about $30,000 of liquidity, crediting Alan Lu of Gnosis as the first to conceive of x × y = k market makers on Ethereum. Its third version in 2021 let liquidity providers concentrate their deposits in a price range, and its fourth, live since 31 January 2025, lets each pool run its own plug-in code, called hooks.

What are the risks of using a DEX?

The code holds the funds. A bug in a DEX's contracts can lose deposits, and transactions cannot be reversed; Bancor lost $23.5m to a hack in July 2018. A trade waits in public before it is included in a block, so bots can place their own trades just before and just after a large swap, a sandwich, to take part of its value: ethereum.org counts this as maximal extractable value (MEV). A large trade against a small pool also moves the price against itself, so DEXs let the trader set a slippage tolerance, the worst price they will accept.

Flash loans, which lend a DEX pool's tokens for the length of one transaction, have funded many attacks on protocols that read prices from pools a single trade can move.

Which DEXs run on Radix?

Radix's DEXs are written in Scrypto and run on the Babylon network:

DEXDesignStatus, December 2026
OciswapAMM: constant-product Pool V2 and concentrated-liquidity Precision Pool V2, fee tiers from 0.01% to 1%Live
DefiPlazaAMM using its CALM algorithm, designed to reduce impermanent lossLive
RSwapAMM with a 1% pool feeLive
AstrolescentAggregator that splits trades across several DEXsLive
CaviarNineShape Liquidity, order book and simple poolsLeaving Radix, announced 19 August 2026
DeXterOrder bookClosed

A swap on Radix moves tokens as native assets through the transaction's worktop, rather than as balance changes recorded inside the exchange's contract. The manifest can assert that the worktop holds at least the expected amount of the token bought, and the transaction aborts if it does not, which puts the slippage limit inside the transaction. The Radix Wallet summarises a standard swap as what the user loses and what they gain before they sign. Radix also provides native pools, one-, two- and multi-resource pool components whose liquidity tokens, called pool units, the wallet recognises; each DEX sets its own pricing on top of them.

DefiLlama has recorded $385m of DEX trading on Radix since Babylon, $230m of it on CaviarNine's Shape Liquidity, with the busiest day $3.7m on 9 December 2024. In the week to 5 December 2026 the total was $13,000. Total Value Locked gives the deposits behind those trades.