Summary
Key prices from the contract are returned in stroops. The client needs a shared formatting helper that converts stroops to XLM and displays the result with a consistent number of decimal places across all price displays.
Scope
- Add a
formatKeyPrice(stroops: bigint): string utility function
- Always display 2 decimal places for prices above 1 XLM, 4 decimal places for prices below 1 XLM
- Add unit tests covering: zero, sub-1 XLM, exactly 1 XLM, large values
Acceptance Criteria
ETA: 12 hours
Coordinate on Telegram
Summary
Key prices from the contract are returned in stroops. The client needs a shared formatting helper that converts stroops to XLM and displays the result with a consistent number of decimal places across all price displays.
Scope
formatKeyPrice(stroops: bigint): stringutility functionAcceptance Criteria
ETA: 12 hours
Coordinate on Telegram