Chapter 2

CEX vs DEX

Centralized exchanges (CEXs) and decentralized exchanges (DEXs) solve the same problem — swapping assets — with opposite architectures. A CEX matches buyers and sellers off-chain in a proprietary matching engine; a DEX routes trades through smart contracts, often using automated market maker pools instead of a traditional order book.

CEXs excel where regulation, speed, and customer support matter. Limit orders execute in milliseconds, stop-losses are native, and support teams can reverse mistaken deposits if caught early. DEXs excel where permissionlessness and composability matter — any token with liquidity can be swapped without a listing committee, and the trade settles directly to your wallet.

Hybrid models blur the line: some CEXs offer on-chain withdrawal-only custody, while DEX aggregators route through centralized liquidity sources. The core question remains unchanged: who holds the keys during and after the trade, and what happens if that party fails?