Collateralized Debt Position

A Collateralized Debt Position (CDP) is a smart contract that allows users to lock up collateral to borrow a debt, typically stablecoins.

A Collateralized Debt Position (CDP) is a fundamental mechanism in decentralized finance (DeFi) that enables users to generate liquidity by locking up cryptocurrency assets as collateral within a smart contract, and in return, borrowing a debt, typically denominated in a stablecoin like DAI. The CDP acts as a self-governing vault. Users deposit collateral (e.g., ETH, WBTC) into the CDP smart contract, which then allows them to mint a specific amount of the stablecoin, up to a certain collateralization ratio. This ratio is crucial for maintaining the system's solvency; it represents the value of the collateral relative to the debt. If the value of the collateral falls below a predetermined threshold (the liquidation ratio), the CDP becomes undercollateralized. In such scenarios, the collateral can be auctioned off by the protocol to cover the outstanding debt, protecting the system from insolvency. Users can close their CDP by repaying the borrowed stablecoin plus any accrued interest or fees, at which point their collateral is returned. The management of CDPs, including setting collateralization ratios, liquidation penalties, and stability fees, is often governed by a decentralized autonomous organization (DAO).

        graph LR
  Center["Collateralized Debt Position"]:::main
  Pre_computer_science["computer-science"]:::pre --> Center
  click Pre_computer_science "/terms/computer-science"
  Rel_lending_protocol["lending-protocol"]:::related -.-> Center
  click Rel_lending_protocol "/terms/lending-protocol"
  Rel_lending_protocols["lending-protocols"]:::related -.-> Center
  click Rel_lending_protocols "/terms/lending-protocols"
  Rel_vault_defi["vault-defi"]:::related -.-> Center
  click Rel_vault_defi "/terms/vault-defi"
  classDef main fill:#7c3aed,stroke:#8b5cf6,stroke-width:2px,color:white,font-weight:bold,rx:5,ry:5;
  classDef pre fill:#0f172a,stroke:#3b82f6,color:#94a3b8,rx:5,ry:5;
  classDef child fill:#0f172a,stroke:#10b981,color:#94a3b8,rx:5,ry:5;
  classDef related fill:#0f172a,stroke:#8b5cf6,stroke-dasharray: 5 5,color:#94a3b8,rx:5,ry:5;
  linkStyle default stroke:#4b5563,stroke-width:2px;

      

🧠 Knowledge Check

1 / 5

🧒 Explain Like I'm 5

It's like putting your favorite toy in a special safe. The safe gives you some play money to use, but if your toy becomes less valuable, the safe might take the toy to get its money back.

🤓 Expert Deep Dive

CDPs, as implemented in protocols like MakerDAO, represent a sophisticated application of smart contracts for synthetic asset generation and collateralized lending. The core smart contract manages collateral deposits, debt issuance, and liquidation triggers. The collateralization ratio (CR) is defined as (Collateral Value / Debt Value) * 100%. A minimum CR (e.g., 150%) is enforced. If the CR falls below the liquidation ratio (often slightly higher than the minimum CR), a liquidation process is initiated. This typically involves an auction where the collateral is sold to bidders who repay the debt plus a penalty (liquidation fee), incentivizing timely repayment and collateral recovery. Stability fees (interest rates) are charged on the borrowed debt, contributing to protocol revenue or stability mechanisms. The solvency of the system hinges on maintaining sufficient collateralization across all active CDPs. Mathematical models underpin the risk parameters, ensuring that even under adverse market conditions, the total collateral value exceeds the total debt value. Edge cases include flash loan attacks targeting liquidation mechanisms or [oracle manipulation](/en/terms/oracle-manipulation) affecting collateral valuations.

🔗 Related Terms

Prerequisites:

📚 Sources