Skip to content

Remove Amount::MAX and replace it with the value in MAX_MONEY #3691

@tcharding

Description

@tcharding

#3688 is quite a convincing argument for limiting the value of Amount to MAX_MONEY. Also we have #620, which I've read twice in the past and don't want to read again because its so long but I think if we do the following we can close both issues

  • Make Amount::MAX equal to Amount::MAX_MONEY
  • Deprecate/remove max_money ?
  • Enforce the invariant in all addition and multiplication functions

If someone has the patience to read through #620 again and check I haven't forgotten anything that would be great.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions