Skip to content

Round fiat balances to cents in Wallets list#6087

Closed
j0ntz wants to merge 2 commits into
developfrom
jon/fiat-decimals-wallet-list
Closed

Round fiat balances to cents in Wallets list#6087
j0ntz wants to merge 2 commits into
developfrom
jon/fiat-decimals-wallet-list

Conversation

@j0ntz

@j0ntz j0ntz commented Jul 23, 2026

Copy link
Copy Markdown
Contributor

Description

Fiat balances in the Wallets list (Assets tab) were auto-expanding to 3-6 decimal places for sub-$1 balances (e.g. $0.000018, $0.635), instead of rounding to cents like the wallet detail scene does ($0.01 EUR). The list row's balance <FiatText> relied on the default autoPrecision behavior meant for showing tiny unit prices legibly, not for a final balance total.

Fix: pass autoPrecision={false} to the balance <FiatText> in WalletListCurrencyRow.tsx so it renders at the standard 2-decimal precision, matching the detail scene. The sibling per-unit price <FiatText> in the same row is untouched and still auto-expands, since that's intentional for tiny unit prices.

Limit fiat amounts to 2 decimals in Wallets list

CHANGELOG

Does this branch warrant an entry to the CHANGELOG?

  • Yes
  • No

Dependencies

none

Requirements

If you have made any visual changes to the GUI. Make sure you have:

  • Tested on iOS device
  • Tested on Android device
  • Tested on small-screen device (iPod Touch)
  • Tested on large-screen device (tablet)

Tested on the iOS simulator only (screenshot attached below). The change is in a platform-agnostic shared RN component (WalletListCurrencyRow.tsx / useFiatText), so it applies identically on Android; not separately verified on an Android device or on small/large-screen form factors.


Note

Low Risk
Single prop on a shared list row with no auth, payment, or data-layer changes.

Overview
Wallet list fiat balances now show standard two-decimal amounts (e.g. $0.01) instead of auto-expanded precision for tiny totals (e.g. $0.000018), aligning the Assets tab with the wallet detail scene.

The change sets autoPrecision={false} on the balance FiatText in WalletListCurrencyRow; the per-unit fiat price in the same row still uses default auto-precision for small unit prices. A CHANGELOG entry was added under Unreleased.

Reviewed by Cursor Bugbot for commit 4a06bf8. Bugbot is set up for automated code reviews on this repo. Configure here.

j0ntz added 2 commits July 23, 2026 15:38
The Wallets list row balance used the auto-expanding fiat precision
meant for unit prices, showing up to 6 decimals for sub-$1 balances.
Cap it at 2 decimals to match the wallet detail scene's rounding.
@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.

@j0ntz

j0ntz commented Jul 23, 2026

Copy link
Copy Markdown
Contributor Author

📸 Test evidence

wallets list dust fiat

wallets list dust fiat

Captured by the agent's in-app test run (build-and-test).

@j0ntz

j0ntz commented Jul 24, 2026

Copy link
Copy Markdown
Contributor Author

Superseded by #6105, which consolidates this and 11 other small GUI task branches into one PR/branch per the umbrella task's instructions.

@j0ntz j0ntz closed this Jul 24, 2026
@j0ntz
j0ntz deleted the jon/fiat-decimals-wallet-list branch July 24, 2026 20:01
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.

1 participant