Skip to content

Contract: Add safe rounding and precision conversion standards #1168

Description

@Junirezz

Summary

Ensure rounding behavior is consistent and safe across contract calculations.

Problem

Different precision paths can produce inconsistent token values and user confusion.

Acceptance Criteria

  • Standardize rounding rules for vault and fee calculations
  • Add tests for decimal conversion edge cases
  • Validate conversions near boundary values
  • Document rounding behavior for integrators

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions