Skip to content

bug: usdt amounts use the region's decimals and miss the currency symbol #1649

Closed

Description

@ovitrif

USDT balances use the device's decimal separator, so a device set to a comma region shows "$0,00" while the rest of the app's dollar amounts and the "$" symbol suggest US formatting. Seen on Bitkit iOS 3.0.1.

Expected

USDT amounts use "." as the decimal separator, matching how Bitkit formats other dollar amounts (check both apps for consistency first).

Refs

Also in scope: currency symbol (from #1651)

On the Home balance tiles, with the balance unit set to $, Savings and Spending show "$ 0.00" but the USDT tile shows only "0,00". The USDT tile should show "$ 0.00" like the others.

This issue now holds every number-format and currency concern for USDT on this platform (one fix, one PR), per @ovitrif (thread).

Activity

  1. added this to the 3.1.0 milestone on Oct 21, 2026
  2. self-assigned this
    on Oct 21, 2026
  3. ovitrif commented on Oct 21, 2026

    @ovitrif
    CollaboratorAuthor

    Context from @ovitrif (thread): the comma comes from the platform's locale-aware number formatting, which the app applies to every amount, so a device set to a comma region shows "$0,00". The expectation here is that USD(T) amounts read with US decimals regardless of region. Which rule to follow (US formatting for USD(T) only, or for all fiat amounts) waits on the design answer in that thread.

  4. ovitrif commented on Oct 21, 2026

    @ovitrif
    CollaboratorAuthor

    Design answer from Aldert (thread): the formatting is currently mixed across Savings, Spending and USDT, which is undesirable. Requirement for this issue: one consistent number format for amounts across Savings, Spending and USDT (audit each balance and amount view first, then align them).

  5. ovitrif commented on Oct 21, 2026

    @ovitrif
    CollaboratorAuthor

    Audit on master: the formatting is mixed. Bitcoin amounts and their fiat value use fixed separators. USDT and USD amounts follow the device locale.

    What a comma-decimal locale (nl-NL, de-DE) shows, checked by running each formatter on that locale:

    Amount Shows Formatter
    Savings and Spending in sats 1 234 567 formatToModernDisplay, space grouping (Currency.kt#L116-L125)
    Savings and Spending in classic BTC 0.01234567 formatToClassicDisplay, . decimal forced (Currency.kt#L129-L140)
    Fiat value of any bitcoin amount (home total, Savings, Spending, send, receive, activity) 1,234.50 formatCurrency, DECIMAL_SEPARATOR = '.' and FIAT_GROUPING_SEPARATOR = ',' (Currency.kt#L17-L19, Currency.kt#L142-L155, via CurrencyRepo.kt#L230 and Money.kt#L217)
    USDT balance and amounts (home tile, USDT wallet, send, receive, activity, deposits) 1.234,50, 0,00 usdtOverviewAmount / usdtExactAmount, locale-aware (UsdtAmountHeader.kt#L54-L68; home tile at UsdtWalletScreen.kt#L109)
    USDT deposit minimum and maximum $1.234,50 String.usdCents, locale-aware (UsdtDepositReceiveScreen.kt#L318-L320)
    Paykit USD amounts 1.234,50 usdDisplayAmount, locale-aware (PaykitAmountView.kt#L72)

    The number pad follows the same split: the USDT and USD amount pads use the locale's decimal key (SendAmountScreen.kt#L422, UsdtSendContent.kt#L512, UsdtReceiveAmountContent.kt#L53); the bitcoin pad always uses ..

    So on a comma-decimal phone the home screen shows €1,234.50 under Savings next to $0,00 for USDT. iOS has the same split (synonymdev/bitkit-ios#1073).

  6. ovitrif commented on Oct 21, 2026

    @ovitrif
    CollaboratorAuthor

    Also in scope (Aldert, thread): on the Home balance tiles, Savings and Spending read "$ 0.00" while USDT reads "0,00", with a comma and no currency symbol. When the wallet balance unit is set to $, the USDT tile should show "$ 0.00" like the others.

  7. changed the title [-]bug: usdt balances use a comma as the decimal separator[/-] [+]bug: usdt amounts use the region's decimals and miss the currency symbol[/+] on Oct 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions