Summary
Transaction history entries show the XLM change per transaction (e.g. +12.5000000 XLM or -3.0000000 XLM). The sign and formatting logic is currently duplicated across buy and sell serialisers. A shared formatXlmDelta(stroops: bigint, direction: 'in' | 'out'): string helper should centralise it.
Scope
- Add
formatXlmDelta(stroops, direction) returning a signed string: +X.XXXXXXX XLM for 'in', -X.XXXXXXX XLM for 'out'
- Add unit tests: 10000000 stroops 'in' → '+1.0000000 XLM', 10000000 stroops 'out' → '-1.0000000 XLM', 0 stroops 'in' → '+0.0000000 XLM'
- Replace all inline delta formatting in transaction history serialisers with the helper
- Helper must use bigint arithmetic (no floating point)
Acceptance Criteria
ETA: 12 hours
Coordinate on Telegram
Summary
Transaction history entries show the XLM change per transaction (e.g. +12.5000000 XLM or -3.0000000 XLM). The sign and formatting logic is currently duplicated across buy and sell serialisers. A shared
formatXlmDelta(stroops: bigint, direction: 'in' | 'out'): stringhelper should centralise it.Scope
formatXlmDelta(stroops, direction)returning a signed string:+X.XXXXXXX XLMfor 'in',-X.XXXXXXX XLMfor 'out'Acceptance Criteria
ETA: 12 hours
Coordinate on Telegram