Skip to content

units: Improve Amount type with guarantees on value being in range #620

@dr-orlovsky

Description

@dr-orlovsky

Amount type should be definitely improved with MoneyRange-like functionality, since we guarantee at API level that Amount can't exceed consensus value (having internal value made private).

From here: #599 (review)

Metadata

Metadata

Assignees

No one assigned

    Labels

    1.0Issues and PRs required or helping to stabilize the APIAPI breakThis PR requires a version bump for the next releaseC-unitsPRs modifying the units cratebrainstorm

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions