Skip to content

[Soroban] Safe Math for Royalty Calculations #701

Description

@Eniola3321

Labels

soroban security royalty priority:high

Summary

Use checked arithmetic for all royalty calculations.

Background

Unchecked arithmetic can lead to overflow or incorrect royalty payouts.

Tasks
Add safe math helper.
Replace unchecked operations.
Add max-value tests.
Document overflow handling.
Swagger / API Integration
Document validation errors for unsupported values.
Acceptance Criteria

All royalty math uses checked operations.

Extreme values are tested.

Metadata

Metadata

Assignees

Labels

GrantFox OSSIssue tracked in GrantFox OSSMaybe RewardedIssue may be eligible for a GrantFox rewardThird CampaignCampaign: Third Campaign

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions