起源学习站链上学习学院 › Level 3 DeFi 基础 › 什么是 DEX(去中心化交易所)?ORIGIN LearnOn-chain Academy › Level 3 DeFi Basics › What is a DEX?
💧 Level 3 · DeFi 基础💧 Level 3 · DeFi Basics

什么是 DEX(去中心化交易所)?What is a DEX (Decentralized Exchange)?

6 分钟6 min
学习目标:学完你能说清 DEX 和中心化交易所的区别,理解「自托管、无需中介、链上撮合」的含义,并知道用区块浏览器核实自己的每一笔交易。Learning goal: after this lesson you'll be able to explain the difference between a DEX and a centralized exchange, understand what "self-custody, no middleman, on-chain matching" means, and know how to verify each of your trades on a block explorer.
大白话In plain wordsDEX 就像一台没有柜台店员的自助换币机,你的钱始终在自己钱包里,换币时机器(智能合约)自动帮你成交。A DEX is like a self-service token-swap machine with no clerk at the counter: your money always stays in your own wallet, and when you swap, the machine (a smart contract) settles the trade for you automatically.

DEX 是去中心化交易所(Decentralized Exchange)的简称。它没有公司柜台,交易由链上的智能合约自动撮合,你用自己的钱包直接连上去就能换币。DEX stands for Decentralized Exchange. There's no company counter — trades are matched automatically by on-chain smart contracts, and you can swap tokens simply by connecting your own wallet.

它和中心化交易所最大的区别是自托管:币一直放在你自己的钱包里,只有交易那一刻才通过合约动用,平台碰不到你的资产,也不需要你注册账号或托管资金。Its biggest difference from a centralized exchange is self-custody: your tokens stay in your own wallet the whole time and are only moved through the contract at the moment of a trade. The platform can't touch your assets, and you don't need to register an account or hand over your funds.

好处是无需中介、门槛低、全球可用、每笔都能上链核实。代价是:The upside: no middleman, a low barrier, global availability, and every trade is verifiable on-chain. The trade-offs:

所以用 DEX 的核心心态是「我为自己负责」。没有客服替你把关,每一步都靠你自己核实:这个代币是不是真的、合约安不安全、这笔交易换到手多少。So the core mindset for using a DEX is "I'm responsible for myself". There's no support agent screening things for you — you verify every step yourself: whether the token is real, whether the contract is safe, and how much you actually get from the swap.

案例Example你在 DEX 里把 DAI 换成某个代币,钱包弹窗让你确认,合约就自动扣 DAI、发代币给你。成交后你能在区块浏览器上查到这笔链上记录,谁都改不了。On a DEX you swap DAI for some token; your wallet pops up asking you to confirm, and the contract automatically deducts the DAI and sends the token to you. Once done, you can look up this on-chain record on a block explorer, and no one can alter it.
配套工具(点开在主站打开):Related tools (open on the main site):
🛠 区块浏览器 ›🛠 Block Explorer ›

📝 本节测验📝 Quiz

1. DEX 靠什么完成交易撮合?1. What matches trades on a DEX?

2. 「自托管」指的是什么?2. What does "self-custody" mean?

3. 用 DEX 相比中心化交易所,下面哪点是它的特点?3. Compared with a centralized exchange, which is a feature of a DEX?

4. 在 DEX 交易通常要额外付什么?4. What extra cost usually comes with trading on a DEX?

5. 用 DEX 时私钥丢了会怎样?5. What happens if you lose your private key when using a DEX?

❓ 常见问题❓ FAQ

DEX 上买到的币一定安全吗?Are tokens bought on a DEX always safe?

不一定。DEX 只负责撮合,任何人都能上架代币,里面可能有假币或高风险合约。买之前用代币安全自查和区块浏览器核实一下更稳妥。Not necessarily. A DEX only matches trades, and anyone can list a token, so there may be fake tokens or high-risk contracts. Before buying, it's safer to run a token safety check and verify on a block explorer.

DEX 交易能撤销吗?Can a DEX trade be reversed?

基本不能。链上交易确认后通常不可逆,所以确认前一定看清换的是什么币、数量和滑点,别急着点确认。Basically no. Once an on-chain trade is confirmed it's usually irreversible, so before confirming, make sure you check which token, the amount, and the slippage — don't rush to click confirm.

为什么同一笔换币价格会有点偏差?Why does the same swap sometimes have a slightly different price?

DEX 多用资金池定价,成交量会影响价格,这就是滑点。后面的课会专门讲,交易时留意滑点设置即可。A DEX mostly prices via a liquidity pool, and trade size affects the price — that's slippage. A later lesson covers it in detail; for now just watch your slippage setting when trading.

‹ 上一课‹ Previous什么是智能合约?What is a smart contract?