Skip to content

Drawdown Flow

This diagram shows the complete flow when a borrower draws capital from their credit line via StructuredPool.

Process Overview

  1. Authorization & Pre-Flight - Verify borrower identity and pause state
  2. Interest Accrual - Calculate and apply accrued interest
  3. Credit & Liquidity Validation - Ensure sufficient credit limit and available liquidity
  4. 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: _outstandingDebt is always ≤ creditLineSettings.drawLimit
  • Liquidity guarantee: Available pool liquidity checked before deployment