Skip to content

Prevent schedule arithmetic drift at maximum ledger and timestamp values #1796

Description

@Jagadeeshftw

Problem

Large timestamps, ledger values, or rate products can produce schedule drift or overflow near protocol limits.

Scope

Audit schedule arithmetic and use checked operations with explicit rounding rules. Document the supported numeric bounds.

Acceptance criteria

  • Maximum supported values never wrap or panic.
  • Rounding is consistent across create, query, and payout calculations.
  • Boundary behavior is captured in property tests.

Validation

Run property-based tests over generated schedules and extreme numeric inputs.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions