Skip to content

#25 Issue 25: [Testing] Fuzz Testing for Step-Based Vesting Math #46

@JerryIdoko

Description

@JerryIdoko

Description:
The math for step_duration (e.g., unlocking monthly instead of linearly per second) is prone to integer division truncation errors. We need robust fuzzing.
Acceptance Criteria:

[ ] Write a proptest that inputs random prime numbers for step_duration and total_amount.

[ ] Assert that the final claimed amount at the end of the duration exactly matches total_amount, with no tokens trapped in the contract.
Labels: testing, math

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions