DeFi Lending Money Market & Liquidation Cascade Simulator
An institutional collateralized credit underwriter for decentralized money markets (Aave v3, Morpho Blue, Compound). Simulate collateral Health Factors ($HF$), two-slope kinked utilization interest rate jumps, liquidator bonus arbitrage, close factors, and protocol bad debt insolvency cascades during price shocks.
Position Balance Sheet & Liquidation Execution Breakdown
| Position Metric | Base Metric | Under Shock State | Status / Covenant |
|---|---|---|---|
| Effective Collateral Spot Price | $2,450.00 | $2,450.00 | 0.0% Shock |
| Gross Collateral Market Value | $245,000 | $245,000 | 100.00 ETH Pledged |
| Discounted Liquidation Value (\(LT \cdot P\)) | $208,250 | $208,250 | 85.0% Threshold |
| Total Outstanding Borrowed Debt | $160,000 | $160,000 | Principal USDC |
| Position Health Factor | 1.30 | 1.30 | SOLVENT |
| Liquidator Seizure Call (50% Close Factor) | — | $80,000 Repaid | 34.29 ETH Seized |
| Liquidator Gross Arbitrage Profit (5% Bonus) | — | +$4,000 | Instant Flash Loan DEX Arb |
| Residual Borrower Equity After Liquidation | $85,000 | $85,000 | 0.0% Loss |
Stress Matrix: Collateral Price Shock vs. Pool Utilization (HF & Borrow APR)
Quantitative Formulation: Health Factor & Kinked Rate Mechanics
In overcollateralized lending protocols like Aave v3, loan solvency is continuously verified on-chain via decentralized price oracles (Chainlink). When the value of pledged collateral drops relative to debt, liquidation bots monitor the Health Factor threshold.
Where \(C\) is collateral units, \(P\) is spot price, \(LT\) is the asset liquidation threshold (e.g. 0.85), and \(D_{\text{total}}\) is aggregate debt. If \(HF < 1.0\), liquidators execute liquidation calls up to the Close Factor (typically 50%), receiving collateral discounted by the Liquidation Bonus \(LB\).
When market runs occur and depositors withdraw capital, pool utilization \(U = \text{Borrows} / \text{Deposits}\) exceeds \(U_{\text{opt}}\). The steep Slope 2 rate \(R_2\) causes borrow APRs to surge exponentially, penalizing leveraged looping and restoring pool liquidity.