Decentralised Exchange (DEX)
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 smart contract holding reserves of two or more tokens that traders swap against.
DEX Aggregator
A service that searches many decentralised exchanges at once and splits your trade across whichever gives the best combined price.
Token Swap
Exchanging one token directly for another in a single on-chain transaction.
