brave / brave-browser

Brave browser for Android, iOS, Linux, macOS, Windows.
https://brave.com
Mozilla Public License 2.0
17.9k stars 2.34k forks source link

Wallet not displaying notional USD asset value for one or more assets #27466

Open lukemulks opened 1 year ago

lukemulks commented 1 year ago

Description

This issue may possibly be related / duplicate of https://github.com/brave/brave-browser/issues/23029, but am opening an issue here with more detail specific to what I've encountered as #23029 lacks some of the same detail that I'm observing directly.

I've been encountering this on: Windows 10 Brave Nightly 1.48.61 Chromium: 109.0.5414.46 (Official Build) nightly (64-bit)

Two parts to this particular issue (which could potentially be split into 2 separate issues, but will let the team determine if that's best for this case).

Part 1: Some asset quantities and values take ~10-15 seconds to display in Portfolio view; noticeably longer than the rest of the assets that load quantity and value quickly.

Steps to Reproduce

  1. Open brave://wallet
  2. Add an asset to your Wallet that does not display by default. COMP in this example, but suspect users encounter this with other manually added assets.
  3. Test having multiple chains in view, with MATIC tokens in MATIC network. (for consistency)
  4. Observe the token you manually added (COMP) display the persistent loading state for notional USD value.

Actual result:

  1. $COMP notional USD value in persistent loading state (brave://wallet/crypto/portfolio) brave-wallet-compound-portfolio-value-issue

  2. From brave://wallet/crypto/portfolio, click to drill down into the individual asset view for $COMP (brave://wallet/crypto/portfolio/0xc00e94Cb662C3520282E6f5717214004A7f26888) brave-wallet-comp-asset-drilldown-12162022-notional-value-missing

    • Notice that the aggregate quantity and value are $0 with 0% change at top of chart (most prominent view), with the flatline indicating 0 aggregate value for asset held in Wallet.
    • Notice that one of the accounts in the account subview for the asset does display the appropriate quantity, but by default the notional USD value does not display for assets and accounts in the account list subview. This value is indeed accurate.

Expected result:

Part 1: Assets should load quickly, and together; the delay for some assets introduces a subpar UX that our competitors do not replicate.

Part 2: Even with some initial delay, assets should notional USD (or other inferred local native notional value for user country) notional value within portfolio aggregate and individual asset views, and should not be stuck in persistent loading state.

Reproduces how often:

100% for me, since beginning of November. Was out of sight (below the fold) so had assumed that it eventually loaded, until I re-tested after observing persistent loading state late last week.

Brave version (brave://version info)

Brave Nightly 1.48.61 Chromium: 109.0.5414.46 (Official Build) nightly (64-bit)

Version/Channel Information:

Other Additional Information:

Miscellaneous Information:

cc: @husobee @jamesmudgett

lukemulks commented 1 year ago

Hi all - just made a swap with COMP from the screenshot above in Nightly

1.49.27 Chromium: 109.0.5414.87 (Official Build) nightly (64-bit)

Confirming that the issue with no notional USD value displaying still persists.

Unable to repro any longer as COMP was the only asset where this was observed, but wanted to note that the issue still persisted with this version in case we see others reporting on it.

cc'ing @onyb && @Douglashdaniel in case either of you all are seeing similar or are looking for visibility.

Douglashdaniel commented 1 year ago

@lukemulks COMP should be returning the correct price now per this PR https://github.com/brave-intl/bat-go/pull/1753 Screenshot-3 Please let me know if this is fixed for you!