Decentralised Exchange
A decentralised exchange (DEX) is a peer-to-peer trading platform built on smart contracts that allows users to swap cryptocurrencies directly from their own wallets without a central intermediary holding funds or requiring accounts.
✦ Key Insight
DEXs eliminate custodial risk, enable 24/7 permissionless trading of any token, and form the backbone of DeFi. They give traders full control and access to long-tail assets unavailable on centralized venues.
✕ Common Misconceptions
Using fake front-ends; setting excessive slippage; providing liquidity without understanding impermanent loss; neglecting to revoke approvals after use.
Detailed Explanation
How It Works:
A DEX commonly uses one or more of these systems:
Automated market maker liquidity pools
On-chain order books
Request-for-quote market makers
Intent-based trading systems
DEX aggregation and routing
The user connects a wallet, chooses the assets, reviews the quote, and signs the transaction. The smart contract processes the exchange according to its programmed rules.
Unlike many centralised exchanges, the DEX generally does not hold the user’s funds between trades.
FAQs:
Need KYC?
Generally no.
Fiat pairs?
Rare, crypto-to-crypto only.
Safer than CEX?
For custody yes; users must still protect against smart-contract and phishing risks.
In Practice
Dig Deeper
Liquidity Pool
A liquidity pool is a collection of crypto assets locked in a smart contract that allows users to trade tokens on decentralized exchanges without relying on a traditional order book.
DEX Aggregator
A DEX aggregator is a protocol or service that sources liquidity from multiple decentralized exchanges and routes a user’s trade across the best available pools or paths to achieve optimal price and minimal slippage.
Token Swap
A token swap is the exchange of one crypto asset for another. It can take place on a centralised exchange, decentralised exchange, wallet, automated market maker, or DEX aggregator.
