Appearance
Drawdown Flow
This diagram shows the complete flow when a borrower draws capital from their credit line via StructuredPool.
Process Overview
- Authorization & Pre-Flight - Verify borrower identity and pause state
- Interest Accrual - Calculate and apply accrued interest
- Credit & Liquidity Validation - Ensure sufficient credit limit and available liquidity
- Deploy Capital - Transfer funds from Reserve to borrower
Key Points
- Per-Second Interest: RAY precision (10^27) compound interest
- Interest Accrual: Interest calculated before every drawdown
- Credit Limit Enforcement: Cannot exceed available credit
- Virtual Accounting: Tranche tracks deployment without holding funds
Important Invariants
- Credit line tracking:
_outstandingDebtis always ≤creditLineSettings.drawLimit - Liquidity guarantee: Available pool liquidity checked before deployment
Related Flows
- Repayment Flow - How borrower repays debt
- Architecture Overview - System components