什么是 DEX(去中心化交易所)?What is a DEX (Decentralized Exchange)?
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:
- 你要自己保管私钥,丢了没人帮你找回You must keep your own private key — lose it and no one can recover it for you
- 换币要付网络手续费(gas)Swapping costs a network fee (gas)
- 面对的合约和代币风险要自己判断You have to judge the contract and token risks yourself
所以用 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.
📝 本节测验📝 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.