Skip to content

Conversation

@shroominic
Copy link
Contributor

This PR implements BIP 177 (₿ base unit) and adds support for USD display across the application.

Key Changes:

  • Display Unit Support: Users can now choose between sats, , and usd in settings.
  • USD Integration: BTC/USD price is fetched from Coinbase and cached for 1 minute.
  • Enhanced UI: Compact icon-based unit selector and high-precision history views.
  • Deposit Flow: Rounded USD top-up amounts and dual-unit invoice display (USD + sats).

Note: The underlying unit remains satoshis; this PR only affects the user-facing display units.

Adds display unit configuration supporting sats, ₿, and USD. Includes BTC/USD price fetching with 1-minute caching and enhanced formatting utilities with precision support.
Introduces a compact icon-based unit selector in settings and updates history views to support high-precision USD display.
Adds rounded USD top-up options and dual-unit invoice display (USD/sats). The underlying unit remains sats; this is for user-facing display only.
Ensures all instances of Bitcoin amounts in chat, model selection, and modals respect the user's preferred display unit.
@cloudflare-workers-and-pages
Copy link

cloudflare-workers-and-pages bot commented Dec 25, 2025

Deploying routstr-chat with  Cloudflare Pages  Cloudflare Pages

Latest commit: c6b8b3a
Status: ✅  Deploy successful!
Preview URL: https://193729c0.routstr-chat.pages.dev
Branch Preview URL: https://feature-bip177-usd-display.routstr-chat.pages.dev

View logs

@shroominic shroominic changed the title Implement BIP 177 and USD Display Unit Implement ₿ and USD Display Unit Dec 25, 2025
Fixes type errors in SixtyWallet and WalletTab, restores accidentally deleted state, and consolidates balance formatting into a single utility file.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants