Connect ›
Cover: CEX vs DEX: custody, counterparty risk, and who holds the keys

CEX vs DEX: custody, counterparty risk, and who holds the keys

A centralized exchange holds your funds and matches orders internally; a DEX never touches custody and executes in public. The real trade-offs — and what proof-of-solvency changes.

BlazePhoenix Engineering · updated 2026-07-19 · data through 2026-10-11 · 5 min · written from the deployed bytecode

At a glance
LevelBeginner
Reading time5 min
Sections2
Updated2026-07-19

By Mitra (@Sigmacrit) — anonymous developer of the BlazePhoenix protocol. The code is the résumé.

Abstract in 15 languages · resumo · resumen · 摘要 · 要旨 · ملخص

English — A CEX holds your funds and matches orders invisibly; a DEX never touches custody and executes in public — and on-chain, solvency can be enforced every transaction instead of attested quarterly.

Português — Uma CEX guarda os teus fundos e cruza ordens de forma invisível; um DEX nunca toca na custódia e executa em público — e on-chain a solvência pode ser imposta a cada transação, não atestada trimestralmente.

Español — Una CEX guarda tus fondos y cruza órdenes de forma invisible; un DEX nunca toca la custodia y ejecuta en público — y on-chain la solvencia puede imponerse en cada transacción, no atestarse trimestralmente.

Français — Une CEX détient vos fonds et apparie les ordres en privé ; un DEX ne touche jamais la garde et exécute en public — et on-chain la solvabilité peut être imposée à chaque transaction, pas attestée trimestriellement.

Deutsch — Eine CEX hält deine Gelder und matcht Orders unsichtbar; ein DEX berührt nie die Verwahrung und führt öffentlich aus — und on-chain lässt sich Solvenz bei jeder Transaktion erzwingen statt quartalsweise attestieren.

Русский — CEX держит ваши средства и сводит ордера незаметно; DEX не касается кастодии и исполняет публично — а он-чейн платёжеспособность можно навязывать каждой транзакцией, а не заверять поквартально.

Türkçe — CEX fonlarını tutar ve emirleri görünmez eşleştirir; DEX velayete hiç dokunmaz ve halka açık yürütür — zincirde ödeme gücü üç ayda bir beyan yerine her işlemde zorunlu kılınabilir.

العربية — تحتفظ CEX بأموالك وتطابق الأوامر بصمت؛ أما DEX فلا يلمس الحفظ وينفذ علناً — وعلى السلسلة يمكن فرض الملاءة في كل معاملة بدل شهادة فصلية.

हिन्दी — CEX आपके फंड रखती है और ऑर्डर अदृश्य रूप से मिलाती है; DEX कभी कस्टडी नहीं छूता और सार्वजनिक रूप से निष्पादित करता है — और ऑन-चेन सॉल्वेंसी हर लेनदेन पर लागू हो सकती है, तिमाही अटेस्टेशन नहीं।

日本語 — CEXは資金を預かり、注文を見えない所で付け合わせます。DEXはカストディに触れず公開で執行します。そしてオンチェーンでは、支払能力を四半期の証明ではなく全トランザクションで強制できます。

中文 — CEX 托管你的资金并在暗处撮合订单;DEX 从不接触托管、公开执行——而在链上,偿付能力可以在每笔交易中强制执行,而非按季度出具证明。

한국어 — CEX는 자금을 보관하고 보이지 않게 주문을 체결하지만, DEX는 수탁에 손대지 않고 공개적으로 실행합니다 — 온체인에서는 지급능력을 분기 증명이 아니라 매 트랜잭션마다 강제할 수 있습니다.

Bahasa Indonesia — CEX memegang dana Anda dan mencocokkan order tanpa terlihat; DEX tak pernah menyentuh kustodi dan mengeksekusi di publik — dan on-chain solvabilitas bisa dipaksakan tiap transaksi, bukan diattestasi kuartalan.

বাংলা — CEX আপনার তহবিল রাখে এবং অদৃশ্যে অর্ডার মেলায়; DEX কখনো কাস্টডি ছোঁয় না, প্রকাশ্যে এক্সিকিউট করে — আর অন-চেইনে সলভেন্সি প্রতিটি লেনদেনে বলবৎ করা যায়, ত্রৈমাসিক সনদে নয়।

Filipino — Hawak ng CEX ang pondo mo at nagtutugma ng orders nang di nakikita; hindi hinahawakan ng DEX ang kustodiya at nag-eexecute sa publiko — at on-chain, maipapatupad ang solvency sa bawat transaksyon sa halip na quarterly attestation.

A centralized exchange (CEX) is a company: you deposit funds, it credits an internal balance, and trades match inside its order book — fast, liquid, and invisible. The historical failure mode is custody: when a CEX misuses deposits, users discover it only at withdrawal time. Every few years the industry relearns this the hard way; "not your keys, not your coins" is scar tissue, not a slogan.

A DEX inverts the model: funds stay in your wallet until the atomic instant of the swap, execution is a public contract call, and there is no internal balance to misstate. The costs: gas per trade, on-chain latency, and an environment where you — not a compliance department — must filter scam tokens and thin pools.

What proof-of-solvency changes

After the great CEX failures, "proof of reserves" became the demanded answer — but most implementations are periodic attestations you still take on faith. On-chain protocols can do structurally better: BlazePhoenix's staking engine enforces its solvency equation on EVERY transaction (the Master Conservation Identity) — a shortfall the books do not show is not detected later, it is UNREACHABLE, because the transaction that would create it reverts; a realised loss is booked to totalBadDebt and counted in owed, so isSolvent() reports it until anyone recapitalises it with absorbBadDebt. Anyone can re-read the proof from storage, any block, free: isSolvent() on the contract.

Rule of thumb: use a CEX as an on/off-ramp if you need fiat rails; hold and trade self-custodially for everything you are not actively cashing out. And wherever yield is offered — CEX or DeFi — ask the one question that matters: can I verify solvency myself, right now, without permission?

Do not trust this page — reproduce it

Every claim above is checkable against the chain. Start here:

cast call <staking> "isSolvent()(bool)" --rpc-url https://mainnet.base.org → true, re-checkable every block by anyone
Cite this article

Licensed CC BY 4.0 — quote, translate and reuse freely, including commercially, with attribution and a link. Copy a ready-made citation:

BlazePhoenix (2026). CEX vs DEX: custody, counterparty risk, and who holds the keys. BlazePhoenix Engineering. https://blazephoenix.xyz/learn/cex-vs-dex
@misc{blazephoenix_cex_vs_dex,
  title  = {CEX vs DEX: custody, counterparty risk, and who holds the keys},
  author = {BlazePhoenix},
  year   = {2026},
  url    = {https://blazephoenix.xyz/learn/cex-vs-dex},
  note   = {Accessed: reproduce the claim with the command above}
}

Writing an answer, a wiki entry or a paper? The claim above is reproducible against the chain before you quote it — which is the only sound basis for citing a technical source at all.

Contracts are verified on every chain we deploy to — addresses in the protocol manifest. Deeper formal treatment: the whitepaper (PDF).

Related engineering

Next in Start here · 32 / 56
Memecoins, explained: the ten-second check before you ape ›Memecoins are attention markets — a few make history, most die, some are traps. How they work, why liquidity is the whole game, and the on-chain check that filters the traps.4 min

Questions, a partnership or a bug to report? Contact us or email contact@blazephoenix.xyz