Skip to content

Guard against overflow in resale cap and royalty math #123

Description

@EmmanuelOchaje

Context

lib.rs multiplies i128 values by bps without checked arithmetic.

Task

  • Use checked_mul and return a new error on overflow

Acceptance criteria

  • Fuzz or boundary test near i128::MAX

This issue is self-contained and can be picked up independently of any other open issue.

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

    bugSomething isn't workinghelp wantedExtra attention is needed

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions