Skip to content

[Bug]: Decimals formatting doesnt support tokens < 0.01 #24326

@adrigug

Description

@adrigug

Describe the bug

Category: missing decimals for tokens
Build number: v7.62.0 (3374)
Device/OS: iPhone 11
Description: all tokens display 2 decimals, even the ones which price is <$0.01, which leads to price being displayed as $0.00

Expected behavior

Decimals matches formatting in asset details page to represent the price properly

Screenshots/Recordings

Image

Steps to reproduce

Open build 3374
search for token where token price <0.01, see how it is formatted in the UI

Error messages or log output

Where was this bug found?

Internal release testing

Version

7.62.0

Build number

3374

Build type

None

Device

Iphone

Operating system

iOS

Metadata

Metadata

Assignees

Labels

INVALID-ISSUE-TEMPLATEIssue's body doesn't match any issue template.RCA-neededIssue root cause analysis neededSev1-highAn issue that may have caused fund loss or access to wallet in the past & may still be ongoingexplore-internal-betaregression-RC-7.62.0Regression bug that was found in release candidate (RC) for release 7.62.0release-7.62.0Issue or pull request that will be included in release 7.62.0release-7.63.0Issue or pull request that will be included in release 7.63.0release-blockerThis bug is blocking the next releaseteam-assetstype-bugSomething isn't working

Type

Projects

Status

To be triaged

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions