CDP (Collateralized Debt Position)
Borrow USDC against WBTC collateral via Nostra lending protocol. Users maintain a health factor above 1.0 to avoid liquidation.Overview
Sable’s CDP contract enables users to:- Deposit WBTC as collateral
- Borrow USDC against collateral (up to 70% LTV)
- Monitor health factor in real-time
- Repay debt and withdraw collateral anytime
- Close position atomically in a single transaction
CDP Parameters
| Parameter | Value |
|---|---|
| Collateral Token | WBTC (8 decimals) |
| Debt Token | USDC (6 decimals) |
| Max LTV | 70% |
| Liquidation Threshold | ~75% (Nostra parameter) |
| Backend Protocol | Nostra Finance |
| Collateral Token (Nostra) | iWBTC-c (0x05b7...f0c) |
| Debt Token (Nostra) | dUSDC (0x063d...a51) |
CDP Lifecycle
Open Position
Deposit Collateral
User approves WBTC and deposits into CDP contract:The contract:
- Transfers WBTC from user
- Approves WBTC to Nostra CDP Manager
- Deposits as iWBTC-c collateral on Nostra
Manage Position
- Health Factor
- Add Collateral
- Repay Debt
- Withdraw Collateral
Health Factor measures your position’s safety:Example:
| Health Factor | Status | Action |
|---|---|---|
| > 2.0 | Very Safe (green) | Can borrow more |
| 1.5 – 2.0 | Safe (green) | Healthy position |
| 1.0 – 1.5 | Caution (yellow) | Add collateral or repay |
| < 1.0 | LIQUIDATION RISK (red) | Immediate action required |
Close Position
Close your CDP atomically in a single transaction:Repay 100% of Debt
User must approve enough USDC to cover full debt. Contract repays entire debt to Nostra.
Liquidation Price Calculation
Your liquidation price is the BTC price at which health factor drops to 1.0:LTV (Loan-to-Value) Calculation
| LTV Range | Status | Risk Level |
|---|---|---|
| 0% – 45% | Safe | Low |
| 45% – 60% | Moderate | Medium |
| 60% – 70% | High | High |
| > 70% | Impossible | Cannot borrow more |
CDP Contract Flow
Interest Accrual
Debt accrues interest over time based on Nostra’s borrow rate:Interest is compounded continuously on Nostra. Your debt increases every block.
CDP Contract
Address:0x042f0f1cbb5ce44cc411f608d3c8295f3816ef7c3b6764cd6e46463efc7ca499
Key Functions:
Example Position
- Open Position
- BTC Drops 10%
- Add Collateral
- Close Position
Use Cases
Leverage Long BTC
Borrow USDC, buy more BTC. Amplify BTC exposure without selling.Risk: BTC price drop can trigger liquidation.
Unlock Liquidity
Access USDC without selling BTC. Keep your BTC exposure.Risk: Interest accrues on borrowed USDC.
Yield Farming
Borrow USDC at low rate, deploy to higher-yield strategies (Vesu, Sentinel vault).Risk: Yield may not cover borrow rate + gas.
Arb Opportunities
Borrow USDC to capture arbitrage opportunities on DEXes.Risk: Arb window may close before execution.
Safety Best Practices
Tips
- Start Conservative: Borrow max 50% LTV initially
- Set Price Alerts: Monitor BTC price near liquidation level
- Keep USDC Reserve: Have extra USDC for emergency repayment
- Monitor Interest: Debt grows continuously — check regularly
- Use Stop Loss: Close position if BTC drops > 10%
Risk Factors
- Liquidation risk: BTC volatility can trigger liquidation
- BTC price volatility: 10-20% daily swings are common
- Smart contract risk: Sable CDP + Nostra protocol risks
- Oracle risk: Pragma oracle manipulation or outage
- Interest rate changes: Borrow rate can spike during high utilization
- Network congestion: High gas fees may prevent timely repayment
Next Steps
Open Your First CDP
Step-by-step guide to borrowing USDC
Calculate Liquidation Price
Tools and formulas for risk management
CDP Contract Reference
Technical documentation and ABIs
Nostra Integration
How Sable integrates with Nostra