Does a DEX Have a Clearinghouse Function?
A DEX, particularly one offering derivatives, performs the function of a clearinghouse but in a decentralized, algorithmic manner. The smart contract and the underlying liquidity pool act as the central counterparty, holding collateral and guaranteeing the execution of the trade.
The risk management is handled by the contract's coded logic rather than a centralized entity's risk team.