DEX vs. CEX
A centralized exchange (CEX) has an operator that runs the trading platform. A decentralized exchange (DEX) uses smart contracts to execute trades on a blockchain.
Example
On a typical CEX, the operator holds your deposit and credits your exchange account. On a DEX such as Uniswap, your wallet signs a swap and the contracts carry it out on-chain.
What to watch for
Check who can move your funds. A CEX operator can pause withdrawals, and a DEX approval can give a smart contract permission to spend tokens from your wallet.