Core Functions
Asset Configuration
Each supported asset has configurable parameters:Collateral Management & Health Factor
Health Factor
Health Factor determines borrowing safety with different risk levels: Health Factor Levels:- > 2.0: Very Safe - plenty of buffer against market volatility
- 1.5-2.0: Safe - comfortable position with moderate risk
- 1.0-1.5: Moderate - monitor closely, consider reducing debt
- < 1.0: Risky - liquidation warning, add collateral or repay debt
- > 2.0: Very Safe - plenty of buffer against market volatility
- 1.5-2.0: Safe - comfortable position with moderate risk
- 1.0-1.5: Moderate - monitor closely, consider reducing debt
- < 1.0: Risky - liquidation warning, add collateral or repay debt
Interest Rate & Utilization
The protocol uses a kinked interest rate model that dynamically adjusts rates based on pool utilization:Interest Rate Curve Visualization
The kinked interest rate model creates two distinct rate zones: Interest Rate Formula:- Below 80% utilization:
Rate = BaseRate + (Utilization × Slope1) - Above 80% utilization:
Rate = BaseRate + (80% × Slope1) + ((Utilization - 80%) × Slope2)
- Low utilization (30%): ~3.5% APY
- Optimal utilization (80%): ~8% APY
- High utilization (95%): ~25% APY
- Full utilization (100%): ~50% APY
- Borrowing when utilization is low (cheaper rates)
- Lending when utilization is high (higher returns)
- Equilibrium around the 80% kink point
Liquidation Logic
Order Book Integration Features
Zero-Slippage Liquidations
Pre-positioned protective orders prevent forced market sales:Smart Loan Repayment
Automated repayment at optimal market prices:Trading Portfolio as Collateral
Enables borrowing against active trading positions:- Synthetic token holdings count as collateral
- Real-time borrowing power updates
- Integrated risk management
Risk Management
Health Factor Monitoring
Liquidation Protection
- Pre-positioned orders execute at predetermined prices
- No forced market sales during volatility
- 40% lower liquidation costs than traditional protocols
Conservative Pricing
Uses the most conservative TWAP prices for safety:Capital Efficiency
Utilization Rate Optimization
Real Examples
Advanced Features
Dual Investment Strategies
Users can combine:- Passive lending yield from capital deployment
- Active trading opportunities with same capital
- Strategic positioning for optimal returns
Automated Position Management
- Rebalancing based on market conditions
- Risk-adjusted borrowing limits
- Optimized capital allocation
Cross-Component Integration
Works seamlessly with:- BalanceManager: Asset allocation and tracking
- OrderBook: Trading operations and protection
- Oracle: Secure pricing and valuations
- Synthetic Tokens: Yield distribution and tracking
Performance Benefits
vs Traditional Lending
| Feature | Traditional | Integrated |
|---|---|---|
| Capital Efficiency | 60-70% | 90-95% |
| Liquidation Costs | 20-50% loss | Zero-slippage |
| User Returns | Lending only | Lending + Trading |
| Risk Management | Manual | Automated |
Cost Reduction
- 15-25% borrowing cost reduction through strategic timing
- Automated monitoring eliminates manual intervention
- Optimized execution reduces operational overhead
Security Features
Access Controls
- Role-based permissions for critical operations
- Multi-signature requirements for parameter changes
- Emergency pause mechanisms for crisis situations
Smart Contract Security
- Reentrancy guards on all external calls
- Integer overflow/underflow protection
- Comprehensive audit trail for all operations
