Description
math.rs has a module-level comment but it does not describe the full normalization flow: when normalization is applied, what happens to fractional stroop remainders, and how callers should use normalize_amount paired with denormalize_amount. This context is critical for contributors extending the payment logic.
Acceptance Criteria
Context
- Target file:
contracts/split/src/math.rs
Description
math.rshas a module-level comment but it does not describe the full normalization flow: when normalization is applied, what happens to fractional stroop remainders, and how callers should usenormalize_amountpaired withdenormalize_amount. This context is critical for contributors extending the payment logic.Acceptance Criteria
//!comment added or expanded with a clear explanationCANONICAL_DECIMALSconstant has a doc-comment explaining its valuecargo doc --no-depscompletes without warningsContext
contracts/split/src/math.rs