Problem
Fee estimates from \src/transaction/estimateFee.ts\ return precise values, but Stellar requires stroops (smallest unit). Rounding inconsistencies between client and server can cause submission failures. No normalization utility exists.
Solution
Add
ormalizeFee(fee: string | number)\ utility in \src/shared/utils.ts\ that ensures fees are integers in stroops, with proper rounding. Use throughout fee estimation and transaction building.
Acceptance Criteria
Note for contributors
Reference Stellar's stroop definition (1 XLM = 10,000,000 stroops). Test rounding edge cases. Add tests to \src/tests/shared.test.ts.
Problem
Fee estimates from \src/transaction/estimateFee.ts\ return precise values, but Stellar requires stroops (smallest unit). Rounding inconsistencies between client and server can cause submission failures. No normalization utility exists.
Solution
Add
ormalizeFee(fee: string | number)\ utility in \src/shared/utils.ts\ that ensures fees are integers in stroops, with proper rounding. Use throughout fee estimation and transaction building.
Acceptance Criteria
ormalizeFee()\ added to \src/shared/utils.ts\
Note for contributors
Reference Stellar's stroop definition (1 XLM = 10,000,000 stroops). Test rounding edge cases. Add tests to \src/tests/shared.test.ts.