Summary
Ensure the protocol always preserves mathematically valid vault state.
Problem
Invariants are not always checked when vault state changes.
Acceptance Criteria
- Assert total-supply and share-price invariants across transitions
- Add regression tests for violations
- Fail with clear errors when assumptions are broken
- Document key invariants for future contract changes
Summary
Ensure the protocol always preserves mathematically valid vault state.
Problem
Invariants are not always checked when vault state changes.
Acceptance Criteria