Description
splitExecutor processes split payment instructions without verifying that recipient percentages sum to 100. Floating-point rounding errors or user input mistakes silently produce splits that over- or underpay the total.
Acceptance Criteria
Context
- Target file:
src/payments/splitExecutor.ts
- The tolerance
1e-9 should be exported as SPLIT_RATIO_TOLERANCE
Description
splitExecutorprocesses split payment instructions without verifying that recipient percentages sum to 100. Floating-point rounding errors or user input mistakes silently produce splits that over- or underpay the total.Acceptance Criteria
1e-9SplitRatioSumErroris thrown with the actual sum when the check failsContext
src/payments/splitExecutor.ts1e-9should be exported asSPLIT_RATIO_TOLERANCE