Sub topic 17
Centralized and On-Chain Derivatives Venues
Prerequisites
This chapter assumes you understand spot markets, perpetual swaps, margin, funding rates, mark prices, and liquidation. You should also be comfortable with crypto wallets, private keys, and simple percentage calculations.
A venue is the exchange or protocol where you open and close a position. The venue determines how orders match, where collateral is held, how prices are supplied, and what happens during a liquidation.
Centralized venues
A centralized exchange (CEX) operates the main trading system itself. It usually holds customer collateral in exchange-controlled wallets and maintains an internal ledger of balances and positions.
The exchange's matching engine pairs bids and asks. This normally gives fast execution and predictable order-book behavior. Many CEXs also offer advanced order types, deep liquidity, portfolio margin, and insurance funds.
The main trade-off is trust. You depend on the exchange to:
- Keep collateral available.
- Maintain accurate account records.
- Calculate margin and liquidations correctly.
- Resist attacks and operational failures.
- Process withdrawals when you request them.
A CEX can pause withdrawals, restrict an account, or become insolvent. An insurance fund may reduce losses from bankrupt positions, but it does not remove exchange or counterparty risk.
On-chain venues
An on-chain derivatives venue, often called a decentralized exchange or DEX, uses smart contracts. A smart contract is program code deployed on a blockchain. The contract manages collateral, positions, payments, and liquidations according to its rules.
You usually connect a self-custody wallet and sign transactions. The blockchain records important actions, so users can inspect contract balances and transactions. You do not normally give the venue permanent control of your wallet.
On-chain venues have different risks:
- A smart-contract bug can lock or steal funds.
- An oracle failure can publish an incorrect price.
- Network congestion can delay deposits, orders, or liquidations.
- Gas fees can become expensive during volatile markets.
- Transaction details may be visible before confirmation, enabling front-running or other forms of MEV.
- A bridge or external collateral system may add another failure point.
Self-custody reduces dependence on an exchange operator, but it does not eliminate counterparty risk. You instead rely on contract code, oracle providers, blockchain validators, and the token systems used as collateral.
Comparing the choices
| Decision factor | Centralized venue | On-chain venue |
|---|---|---|
| Order execution | Fast internal matching engine | Blockchain transactions or contract execution |
| Custody | Usually exchange-controlled | Usually wallet-controlled, subject to contract rules |
| Main failure risk | Insolvency, outage, account restriction | Contract, oracle, chain, or bridge failure |
| Typical friction | Identity checks and withdrawal limits | Wallet management, gas, and transaction confirmation |
Choose a venue based on the entire risk system, not only the advertised trading fee. Check its collateral assets, oracle design, liquidation process, withdrawal history, contract audits, insurance arrangements, and limits during extreme volatility.
Exercise
You want fast execution and deep order-book liquidity, but you do not want an exchange to hold your collateral. What trade-off are you likely to face?
Show answer
An on-chain venue may provide self-custody, but you accept smart-contract, oracle, blockchain-congestion, gas-cost, and transaction-ordering risks. You should compare those risks with the custody and operational risks of a centralized exchange.