Skip to content

bug: home total balance shows — until the usdt rate refreshes #1698

Closed

Description

@ovitrif

Twin: synonymdev/bitkit-ios#1129
Refs:

What happened?

On mainnet, right after installing a new build over an existing install and opening it, the Home total balance shows ₿ — and € — for a few seconds. Savings, Spending and the USDT tile already show their amounts, and the activity rows already show fiat values, so fiat rates were loaded. The total fills in a few seconds later.

Cause:

Expected behavior

Show the last known total at once, then refresh it:

  • Cache the sats value of the USDT balance (and the rate it used), and the USDT balance itself.
  • On launch, show the total from the cached values.
  • While the balance or rate refreshes, show an indicator that makes clear the total is updating, instead of —.
  • When fresh values arrive, update the total as it already does when rates change.

Steps to Reproduce

  1. Mainnet wallet with USDT enabled and a USDT balance.
  2. Install a new build over the existing install, or force-close the app for more than 10 minutes.
  3. Open it and look at the Home total balance.

Logs / Screenshots / Recordings

Home right after launch, balances and activity masked:

Bitkit Version

Mainnet debug build from #1697, which does not touch this code; the same code path is on master at 3ad6193b2.

Device / OS

Pixel 10 Pro.

Reproducibility

Seen on first launch after installing a new build. From the code, expected on every launch where the cached rate is older than 10 minutes or the USDT balance is not read yet.

Activity

  1. added this to the 3.1.0 milestone on Oct 26, 2026
  2. added theissue type on Oct 26, 2026
  3. ovitrif commented on Oct 26, 2026

    @ovitrif
    CollaboratorAuthor

    @ben-kaufman assigning this to you. Should I let an AI implement it, or would you rather take it? And what do you think of the caching proposal above?

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

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions