Brokex Docs
Docs/PROTOCOL MECHANICS/Protocol Solvency

Protocol Solvency

How bad debt, BRX-01 protections, and LP loss socialization work.

  • BRX-01 Fix (ea11b83): Voluntary closes (!isLiquidation && !isForced) cannot realize badDebt > 0 (they revert SlippageExceeded()).
  • Liquidation Bad Debt: Only TWAP-bounded liquidations or forceClose can realize badDebt > 0, which is absorbed by BrokexVault LPs via reduced totalAssets().