Summary
The price snapshot helper that computes percentage change between two snapshots is used in the creator list and price alert paths but has no unit tests. Tests should cover positive change, negative change, zero change, and a zero starting price edge case.
Scope
- Test positive change: price moves from 100 to 150 → returns
50.00
- Test negative change: price moves from 200 to 100 → returns
-50.00
- Test zero change: same price → returns
0.00
- Test zero starting price: returns
null or a sentinel to signal undefined percentage
Acceptance Criteria
ETA: 12 hours
Coordinate on Telegram
Summary
The price snapshot helper that computes percentage change between two snapshots is used in the creator list and price alert paths but has no unit tests. Tests should cover positive change, negative change, zero change, and a zero starting price edge case.
Scope
50.00-50.000.00nullor a sentinel to signal undefined percentageAcceptance Criteria
0.00ETA: 12 hours
Coordinate on Telegram