Skip to content

[Contract] Issue #8: Safe Math for Accrued Yield Compounding #919

Description

@ONEONUORA

Implement a safe compounding function for interest calculations. Use checked math i128.checked_mul and i128.checked_div to prevent arithmetic overflows when computing yield returns based on yield_rate_bps.

Metadata

Metadata

Assignees

Labels

GrantFox OSSIssue tracked in GrantFox OSSMaybe RewardedIssue may be eligible for a GrantFox rewardOfficial Campaign | FWC26Campaign: Official Campaign | FWC26

Type

No type

Fields

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