DEX Education · Homepage
Decentralized Exchanges — How They Actually Work
A DEX price is not quoted by anyone; it is computed by a formula from two pool balances. Nearly everything else follows from that, and from the fact that you keep your own keys.
Direct answer
A decentralized exchange lets people trade directly from their own wallets, with trades settled by smart contracts rather than by a company holding customer funds. Most price trades with an automated market maker — a formula over pool reserves — rather than an order book. Nobody takes custody, nobody checks the tokens, and nobody can reverse a mistake.
Start here
| If you want to… | Read |
|---|---|
| Understand the pricing mechanism | How Decentralized Exchanges Work |
| Know what a DEX is, honestly | What Is a Decentralized Exchange |
| Decide between DEX and exchange | DEX vs Centralized Exchange |
| Know what you are signing | Wallet-Based Trading Explained |
| Trade without losing money to avoidable mistakes | How to Use a DEX Safely |
Three things worth knowing before you trade
1. Your price comes from a formula, not a counterparty
The common design is the constant product rule, x × y = k. A pool holds two tokens and every trade must leave their product unchanged, so your price is computed from the reserves.
The consequence people miss: your execution impact is simply your spend divided by the pool's reserve of what you are spending. In a pool holding 1,000 ETH and 2,000,000 USDC, a 10,000 USDC buy costs about 0.5% — a 1,000,000 USDC buy costs 50%. The trade still succeeds at either size. That is the trap: an order book runs out and tells you, a curve just gets worse quietly.
The full arithmetic is worked step by step in how decentralized exchanges work.
2. Approvals, not keys, are how wallets get drained
Trading from a wallet means granting contracts permission to move your tokens. That permission persists until revoked, is commonly requested as unlimited, and does not look like giving away money.
A permit signature grants identical authority with no gas cost, which makes it feel inconsequential. It is not. A gasless signature is not a harmless signature.
3. Nobody vetted the token
Listing is permissionless. Anyone can deploy a contract using an established project's name and ticker and create a pool for it — so the verification a centralized exchange performs transfers entirely to you.
Search by contract address, not by name, taken from a source the project controls.
What a DEX removes, and what it adds
| Risk removed | Risk introduced |
|---|---|
| Operator insolvency or hack | Smart contract bugs and exploits |
| Account freezing | Irreversible mistakes, no support |
| Withdrawal restrictions | Gas costs and failed transactions |
| — | Malicious approvals draining a wallet |
| — | Impersonator tokens and honeypots |
| — | MEV extraction from your pending transaction |
Neither model is categorically safer. They relocate risk — one to an operator, one to you and the contract code. See DEX vs centralized exchange.
Where CoinDock sits
CoinDock is a centralized, order-book exchange: custodial holdings, price-time priority matching, identity verification, and reviewed listings.
We publish DEX education because the mechanics matter wherever you trade, and because the comparison deserves an honest treatment rather than a sales pitch — a reader who picks the wrong model for their situation loses money either way.
Guides in this pillar
Concepts
- What Is a Decentralized Exchange
- DEX vs Centralized Exchange
- Wallet-Based Trading Explained
- Trading With USDT
- How Decentralized Exchanges Work
How-to
- How to Use a DEX Safely
- How to Connect a Crypto Wallet
- How to Place a DEX Order
- How to Swap Tokens on a DEX
- How to Spot Common DEX Risks
Questions
Related pillars
- Liquidity — depth and slippage on order books.
- Security — contract verification and wallet safety.
- Listings — what a reviewed listing involves.
Educational content. Not financial, investment, or legal advice. Cryptocurrency trading carries risk of total loss.
Related on DEX Education
-
What Is a Decentralized Exchange?
A DEX settles trades through smart contracts while you keep custody. What that removes is clear. What it replaces those...
-
How Decentralized Exchanges Work
Most explanations stop at 'smart contracts handle it'. This one shows the formula that sets your price and walks the ari...
-
How to Spot Common DEX Risks
Each DEX-specific risk has a check that takes under a minute. Here they are, with what each one actually reveals.
-
DEX Glossary
Definitions of the terminology used across CoinDock's DEX guides.
-
How to Place a DEX Order
A DEX limit order is not a resting order on a book. It is a signed intent someone else executes — and that difference ha...
Learn How CoinDock Works
Continue your CoinDock journey.
Go