Decentralised exchange (DEX)
A crypto exchange run by smart contracts on a blockchain, where users trade straight from their own wallets and no company holds their funds.
On a decentralised exchange, or DEX, a trade is a transaction on a blockchain. The user connects a wallet, approves the trade and pays the network’s fee; the smart contract swaps one token for another and the result is recorded on chain. The exchange never takes custody of the user’s funds.
Many DEXs do not use an order book. They use an automated market maker: pools of two tokens supplied by other users, with a formula that sets the price from the ratio of the two in the pool. A large trade against a small pool moves the price a long way, which is called price impact or slippage. Those who supply the pools earn a share of the trading fees.
The risks are different from those of a centralised exchange: errors in the smart contract, tokens that are copies or scams, and other traders who see a pending transaction and trade ahead of it. A DEX can usually be used without identity checks at the level of the contract itself, although the websites in front of it may apply rules of their own.
Also called: DEX, decentralized exchange, decentralised exchange, automated market maker, AMM, liquidity pool
See it on this site
Related terms
- Crypto exchange A platform where cryptocurrencies are bought and sold, against ordinary money or other crypto. Most are companies that hold their customers’ funds and match their orders.
- Decentralised finance (DeFi) Financial services such as lending, borrowing and trading built from smart contracts on public blockchains, which run without a bank or broker holding users’ money.
- Smart contract A program stored on a blockchain that runs exactly as written when a transaction calls it, and can hold and move crypto by its own rules.
- Gas fee The fee paid to have a transaction processed on Ethereum and similar blockchains: the computing work used, measured in gas, times a price per unit of gas.
- Liquidity How easily an asset can be bought or sold quickly, in size, without moving its price much. Liquid markets have narrow spreads and many orders near the price.
- Custody The safekeeping of assets on someone else’s behalf. In crypto it means holding the private keys, either by a custodian for its customers or by owners themselves.