MarianmarianDocs
Deep Dive

Risk & Liquidations

Marian uses partial, penalty-capped liquidations designed to restore health-factor without dumping collateral into thin markets. The insurance module absorbs residual bad debt before any lender takes a loss.

Liquidation trigger

Liquidatable  ⇔  HF_i  <  1.00

Recall:
   HF_i  =  Σ_j c_i,j · L_j · P_j   /   D_i
   L_j   =  CF_j + 0.03   (liquidation threshold)

Grace period:  HF must remain < 1.00 for 30 seconds
               (≈ 300 blocks on Robinhood Chain - Testnet).

Partial liquidation

A single liquidation may repay at most 50% of the user's debt. This is the "close factor" — its purpose is to give the position a chance to recover before further forced selling.

repay_max  =  0.50 · D_i
seize      =  repay_max · ( 1 + π ) / P_collateral
   π       =  0.06   (6% liquidation penalty, capped)

Split of the seized collateral:
   liquidator          0.045 · repay_max  (75% of penalty)
   insurance module    0.015 · repay_max  (25% of penalty)

Worked example

  • Alice's debt D = 60,000 mUSD, collateral 10,000 mSP7 @ $8.00 = $80,000.
  • Liquidation threshold L = 74% → HF = 80,000·0.74 / 60,000 = 0.987 → liquidatable.
repay_max     =  0.50 · 60,000  =  30,000 mUSD
seize_value   =  30,000 · 1.06   =  31,800 USD
seize_shares  =  31,800 / 8.00   =  3,975  mSP7

After liquidation:
   D_new         =  30,000 mUSD
   collat_new    =  6,025 mSP7 · 8.00  =  48,200 USD
   HF_new        =  48,200 · 0.74 / 30,000  =  1.189   ✓ safe

Bad-debt cascade & insurance

If collateral collapses fast enough that liquidators cannot close positions before HF crosses zero, residual debt is absorbed by the insurance module. The module holds:

LayerSourceCapacityTrigger
1. Buffer3% of TVL in USDC$15M @ $500M TVLImmediate
2. Insurance $MRN80M MRN @ market$68M @ $0.85After buffer
3. Emergency mintDAO vote, ≤ 5% supply50M MRN (capped)After insurance
4. Socialized lossPro-rata haircut on mUSDFull remaining debtLast resort
Socialization is intentionally the last step
Unlike some peer protocols, mUSD holders are the final backstop, not the first. The order — buffer, insurance $MRN, DAO mint, socialization — ensures mUSD depeg risk is bounded and predictable.

Scenario: −25% single-day equity crash

Assumptions:
   TVL              =  500,000,000
   Borrow util U    =  0.50   →   D_out = 162.5M
   Avg LTV          =  62%
   Instant P shock  =  −25%

Post-shock collateral value  =  500M · 0.75  =  375M
Avg HF                        =  375M · 0.65 / 162.5M  =  1.50   ✓

At −25% the median position is still healthy. Liquidations
concentrate on the top 8% of LTV distribution (users at 70%+ LTV).
Estimated liquidation volume: ~$18M over a 30-min window.
Insurance draw: 0 (buffer + market liquidations sufficient).

Scenario: −50% cascade

Post-shock collateral value  =  250M
Avg HF                        =  250M · 0.65 / 162.5M  =  1.00

At the median position, HF hits exactly 1. Distribution tails require
liquidation of ~$62M debt.

Estimated bad debt after partial liquidations & 6% slippage:
   ≈ $4.8M   (≈ 3% of debt outstanding)

Absorption path:
   Insurance buffer  ($15M)   →  covers fully
   Insurance MRN    ($68M)   →  0 draw
   Socialized loss             →  0
   
Conclusion: The protocol survives a −50% single-day equity crash
without impairing mUSD peg or lender principal.