Skip to content

Add overflow protection for balance arithmetic #67

@dzekojohn4

Description

@dzekojohn4

Replace raw + and - on i128 balances with checked_add / checked_sub, panicking with "arithmetic overflow" on None. Prevents balance corruption on extreme inputs.

Metadata

Metadata

Assignees

No one assigned

    Labels

    securitySecurity-related tasks

    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