Edge Case Handling
Credit protocols need explicit behavior for edge cases. PRISM defines these cases so vault state remains deterministic and understandable.First Deposit
When a tranche has zero supply, there is no existing NAV denominator. Rule:Total Wipeout
If a tranche’s assets reach zero, its NAV becomes zero. Rule:Post-Wipe Deposit Restrictions
Deposits are blocked into a tranche with:NAV = 0- non-zero supply
Rounding
All fixed-point math should use deterministic rounding rules. Rounding behavior must be:- Reproducible.
- Conservative.
- Consistent across deposit, withdrawal, yield, and loss calculations.
