Explain the Risk of Counterparty Default in a Centralized versus Decentralized Exchange.
In a Centralized Exchange (CEX), the risk of counterparty default is primarily borne by the exchange itself, which manages the insurance fund and acts as the central clearing party. In a Decentralized Exchange (DEX), the risk is distributed and managed by the smart contract, which handles collateral and settlement.
The CEX risk is centralized failure; the DEX risk is smart contract or protocol failure.