Skip to content

Enforce MAX invariant in Amount #3696

@jamillambert

Description

@jamillambert

It is possible to create an Amount with a value up to u64::MAX which can cause rounding errors as discussed in #3688.

The lower Amount::MAX invariant introduced in #3693 should be enforced.

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