Summary
The wallet activity feed displays both buy and sell amounts. Buys should show a negative sign (XLM spent) and sells a positive sign (XLM received). A shared helper should handle sign prefix, decimal formatting, and the XLM suffix consistently across all activity displays.
Scope
- Add
formatActivityAmount(amount: bigint, type: 'buy' | 'sell'): string utility
- Buy: prefix with
-, sell: prefix with +
- Format value in XLM with consistent decimal places using the existing
formatKeyPrice helper
- Add unit tests for buy amount, sell amount, and zero amount
Acceptance Criteria
ETA: 12 hours
Coordinate on Telegram
Summary
The wallet activity feed displays both buy and sell amounts. Buys should show a negative sign (XLM spent) and sells a positive sign (XLM received). A shared helper should handle sign prefix, decimal formatting, and the XLM suffix consistently across all activity displays.
Scope
formatActivityAmount(amount: bigint, type: 'buy' | 'sell'): stringutility-, sell: prefix with+formatKeyPricehelperAcceptance Criteria
-++0.00 XLMETA: 12 hours
Coordinate on Telegram