Collateralized Debt Position (CDP)
📘 What is a Collateralized Debt Position?
A Collateralized Debt Position (CDP) allows users to mint ESD by locking their assets (collateral) into the protocol. This ensures that every ESD in circulation is backed by over-collateralized assets, maintaining the stability and security of the system.
Key Features
Over-Collateralized Loans Users must provide collateral worth more than the ESD they borrow, ensuring system safety.
Flexible Position Management Borrowers can add collateral, repay debt, or withdraw surplus collateral at any time.
Automated Liquidation Under-collateralized positions are liquidated via a decentralized auction mechanism to repay the debt and secure the protocol.
📊 Key Concepts
1. Collateralization Ratio (CR)
Definition: The ratio of collateral value to debt value.
Purpose: Ensures that borrowed ESD is fully backed by collateral.
Liquidation Threshold: If the CR drops below a specified percentage (e.g., 150%), liquidation is triggered.
2. Stability Fee
Definition: An annual interest rate charged on borrowed ESD, accrued per second.
Purpose: Generates protocol revenue and ensures long-term sustainability.
Unit:
ray(fixed-point format, ( 10^{27} )).
3. Liquidation Penalty
Definition: An additional fee applied during liquidation to penalize under-collateralized positions.
Purpose: Discourages users from approaching the liquidation threshold.
4. Vault
Definition: A smart contract that tracks each user's collateral, debt, and overall position.
Components:
Collateral (ink): Amount of locked collateral.
Debt (art): Amount of borrowed ESD.
Normalized Debt: Debt adjusted over time by the stability fee.
🛠️ How to Use
1. Open a Vault (Create a CDP)
Users can mint ESD by locking collateral in a vault.
Steps:
Call the
openfunction to create a vault.Deposit collateral using the
joinfunction.Borrow ESD based on the collateralization ratio.
2. Manage Your Vault
Borrowers can adjust their positions to avoid liquidation or free up locked collateral.
Steps:
Add or remove collateral to maintain a safe collateralization ratio.
Repay debt to reduce your liabilities.
Withdraw surplus collateral if your position is over-collateralized.
3. Liquidation Process
If the collateralization ratio falls below the liquidation threshold:
The system flags the position for liquidation.
Collateral is sold via a Dutch auction.
Proceeds are used to repay the debt:
Liquidators purchase collateral at a discount.
Any remaining collateral is returned to the borrower.
💡 Key Benefits
Decentralized Borrowing Borrow ESD without relying on traditional credit systems.
Over-Collateralization for Safety Protects the protocol and users by requiring collateral to exceed debt.
Flexibility Borrowers can manage their positions or withdraw collateral anytime.
🧑💻 Smart Contract Functions
TBD
This CDP system provides users with a secure, flexible, and decentralized borrowing experience, while ensuring the stability of the ESD ecosystem.
Last updated