Skip to content

Contract: Add contract-level invariants for total supply and share-price consistency #1166

Description

@Junirezz

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

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions