Browse Credit and Lending

Collateralized Debt Position: A Smart Contract Enabling the Creation of Dai by Locking Collateral

A collateralized debt position locks collateral in a smart contract or lending structure to support borrowing against the pledged assets.

Types

CDPs can be categorized based on:

  • Collateral Type: CDPs can use various types of collateral including ETH, BTC (wrapped), and other approved cryptocurrencies.

  • Collateralization Ratio: The ratio of the value of the collateral to the value of the debt issued. Different DeFi protocols may require different collateralization ratios.

Mechanism of CDP

A Collateralized Debt Position (CDP) is opened when a user locks collateral (e.g., ETH) in a smart contract. The user can then generate Dai (a stablecoin pegged to the USD) up to a certain percentage of the collateral’s value, defined by the collateralization ratio.

  • Opening a CDP: A user deposits collateral in the form of an approved cryptocurrency.

  • Issuing Dai: The system calculates the amount of Dai that can be issued based on the collateral’s value and the required collateralization ratio.

  • Maintaining the Position: The user must maintain the collateralization ratio to avoid liquidation.

  • Closing the CDP: The user can repay the issued Dai along with any accrued fees to retrieve the locked collateral.

Collateralization Ratio

$$ \text{Collateralization Ratio} = \left( \frac{\text{Collateral Value}}{\text{Debt Value}} \right) \times 100 \% $$

Liquidation Price

$$ \text{Liquidation Price} = \left( \frac{\text{Debt Value}}{\text{Collateral Amount}} \right) \times \text{Liquidation Ratio} $$

Importance

CDPs are fundamental to the DeFi ecosystem as they provide a means of creating decentralized, stable digital currencies without relying on central banks. They enable users to leverage their crypto assets to obtain liquidity while maintaining control over their funds.

Applicability

CDPs are applicable in various DeFi applications such as:

  • Liquidity Provision: Users can generate Dai to participate in liquidity pools.

  • Leverage Trading: By borrowing Dai, traders can leverage their positions.

  • Earning Yield: Users can stake Dai in various DeFi protocols to earn interest.

  • Dai: A decentralized stablecoin created through CDPs.

  • DeFi (Decentralized Finance): A movement aiming to create an open financial system using blockchain technology.

  • Smart Contract: Self-executing contracts with the terms of the agreement directly written into code.

FAQs

  • What is a CDP?

    A CDP allows users to lock collateral in a smart contract to generate Dai.

  • What happens if my CDP is liquidated?

    The collateral is sold off to cover the debt, and remaining collateral is returned to the user.

  • Can I use any cryptocurrency as collateral?

    Only certain approved cryptocurrencies can be used as collateral in CDPs.

Revised on Monday, May 18, 2026