Decentralized exchanges (DEXs) facilitate peer-to-peer trading of cryptocurrencies without the need for a central authority or intermediary, employing smart contracts on blockchain networks to execute transactions. Users retain control over their private keys, enhancing security and reducing the risks associated with centralized exchanges, such as hacking or bankruptcy. DEXs typically offer lower fees and increased privacy, although they may lack the sophisticated trading features of centralized platforms.
One of the primary mechanics of DEXs involves an Automated Market Maker (AMM) model, wherein liquidity is provided by users who supply pairs of tokens to trading pools. This enables traders to exchange assets without needing to find a counterparty directly. For example, a trader wishing to swap Ethereum (ETH) for Bitcoin (BTC) could do so instantly through a DEX's liquidity pool. However, while DEXs offer unique advantages, they also present challenges such as higher slippage and varying liquidity levels compared to centralized marketplaces. Related concepts include liquidity pools, smart contracts, and token swaps.