DEX (Decentralized exchange)
A decentralized exchange, or DEX, is a crypto trading application that lets users swap tokens through smart contracts rather than through a traditional centralized order book. Most DEXs use liquidity pools and automated market makers to price trades. Users often have to connect a compatible wallet, choose the assets they want to swap, review the quoted output, and sign a contract interaction. A DEX is built to support direct wallet-to-contract trading. However, the trade still depends on smart contract rules, available liquidity, slippage settings, network fees, and the token contracts involved.
A user wants to swap 1 ETH for USDC on a decentralized exchange. Instead of matching with a specific buyer, the trade is priced by an ETH/USDC liquidity pool, and the amount of USDC received changes based on the pool’s balance at the time of the swap.
Highlights
- Peer-to-peer cryptocurrency trading without intermediaries.
- Uses smart contracts for automated transactions.
- Provides more privacy but may have lower liquidity than centralized exchanges.
Frequently Asked Questions
How is a DEX different from a CEX?
A DEX operates without intermediaries, while a CEX holds user funds and manages trades through a central authority.
Are DEXs safer than centralized exchanges?
DEXs eliminate custodial risks but can still have vulnerabilities, such as smart contract exploits.