Skip to content

#18 Issue 18: [Math] High-Precision Flow Rates #18

@JerryIdoko

Description

@JerryIdoko

Description:
For tokens with low decimals (like 2 decimals), the flow rate math (amount / duration) might result in 0. Implement a "scaling factor" (e.g., multiply by 1e7) for internal calculations.
Acceptance Criteria:

[ ] Use FixedPoint math library or manual scaling.

[ ] Ensure withdraw converts back to correct token decimals.
Priority: High
Labels: math, bug-fix

Metadata

Metadata

Assignees

Labels

Stellar WaveIssues in the Stellar wave program

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions