---
title: "Decentralized Exchange (DEX)"
url: "https://radix.wiki/contents/tech/core-concepts/decentralized-exchange-dex"
updated: 2026-12-05
license: CC-BY-4.0
license_url: "https://creativecommons.org/licenses/by/4.0/"
version: "1.0.0"
---

# Decentralized Exchange (DEX)

|  |  |
| --- | --- |
| **Type** | Token exchange run by smart contracts, without a custodian |
| **Main designs** | Automated market maker, order book, aggregator |
| **Early examples** | EtherDelta (2016), Bancor (2017), Uniswap (2018) |
| **On Radix** | [Ociswap](/ecosystem/ociswap), [DefiPlaza](/ecosystem/defiplaza), [RSwap](/ecosystem/rswap); aggregator [Astrolescent](/ecosystem/astrolescent) |
| **Related** | [DeFi](/contents/tech/core-concepts/decentralized-finance-defi) · [Radix Pools](/contents/tech/core-concepts/radix-pools) · [Flash loans](/contents/tech/core-concepts/flash-loans) · [TVL](/contents/tech/core-concepts/total-value-locked-tvl) |

## 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](https://ethereum.org/defi/); 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](https://defillama.com/dexs) 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](http://developers.uniswap.org/llms.mdx/docs/get-started/concepts/how-uniswap-works), 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](http://developers.uniswap.org/llms.mdx/docs/protocols/v2/concepts/understanding-returns), 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](https://1inch.com/learn/dex-aggregator) and can split one order between them.

## Where did DEXs come from?

EtherDelta, launched in [July 2016](https://www.sec.gov/litigation/admin/2018/34-84553.pdf), kept its order book on a central server and settled each trade through an Ethereum smart contract; in November 2018 its founder [settled charges](https://www.sec.gov/news/press-release/2018-258) 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](https://www.securities.io/wp-content/uploads/2022/05/Bancor.pdf) proposed tokens that hold reserves and trade at a continuously calculated price, an early automated market maker.

Uniswap [launched on 2 November 2018](https://blog.uniswap.org/uniswap-history) 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](https://blog.uniswap.org/uniswap-v3) in 2021 let liquidity providers concentrate their deposits in a price range, and its [fourth](https://blog.uniswap.org/uniswap-v4-is-here), 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](https://en.wikipedia.org/wiki/Decentralized_finance); 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](https://ethereum.org/developers/docs/mev/) (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](/contents/tech/core-concepts/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](/contents/tech/core-protocols/scrypto-programming-language) and run on the [Babylon](/contents/tech/releases/radix-mainnet-babylon) network:

| DEX | Design | Status, December 2026 |
| --- | --- | --- |
| [Ociswap](/ecosystem/ociswap) | AMM: constant-product [Pool V2](https://docs.ociswap.com/ociswap-dex/liquidity-pools/pool-v2) and concentrated-liquidity [Precision Pool V2](https://docs.ociswap.com/ociswap-dex/liquidity-pools/precision-pool-v2), fee tiers from 0.01% to 1% | Live |
| [DefiPlaza](/ecosystem/defiplaza) | AMM using its [CALM algorithm](https://docs.defiplaza.net/radix), designed to reduce impermanent loss | Live |
| [RSwap](/ecosystem/rswap) | AMM with a 1% pool fee | Live |
| [Astrolescent](/ecosystem/astrolescent) | Aggregator that [splits trades across several DEXs](https://docs.astrolescent.com/) | Live |
| [CaviarNine](/ecosystem/caviarnine) | Shape Liquidity, order book and simple pools | Leaving Radix, announced 19 August 2026 |
| [DeXter](/ecosystem/dexter) | Order book | Closed |

A swap on Radix moves tokens as [native assets](/contents/tech/core-concepts/native-assets-vs-token-approvals) through the transaction's [worktop](/contents/tech/core-concepts/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](https://docs.radixdlt.com/docs/manifest-instructions) if it does not, which puts the slippage limit inside the transaction. The [Radix Wallet](/contents/tech/core-protocols/radix-wallet) summarises a standard swap as [what the user loses and what they gain](https://docs.radixdlt.com/docs/conforming-manifest-types) before they sign. Radix also provides [native pools](/contents/tech/core-concepts/radix-pools), one-, two- and multi-resource pool components whose liquidity tokens, called pool units, the wallet recognises; [each DEX sets its own pricing](https://docs.radixdlt.com/docs/pool) on top of them.

DefiLlama has recorded [$385m of DEX trading on Radix](https://api.llama.fi/overview/dexs/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](/contents/tech/core-concepts/total-value-locked-tvl) gives the deposits behind those trades.

## External Links

- [DEX volume by protocol – DefiLlama](https://defillama.com/dexs)
- [Radix – DefiLlama](https://defillama.com/chain/Radix)
- [How Uniswap works – Uniswap documentation](http://developers.uniswap.org/llms.mdx/docs/get-started/concepts/how-uniswap-works)
- [Pools – Radix documentation](https://docs.radixdlt.com/docs/pool)
- [What's a DEX? – Radix Learn](https://www.radixdlt.com/articles-learn/whats-a-dex)
