-
Notifications
You must be signed in to change notification settings - Fork 5.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: Update decimal precision for account list item and token list #30594
Conversation
CLA Signature Action: All authors have signed the CLA. You may need to manually re-run the blocking PR check if it doesn't pass in a few minutes. |
Builds ready [f3e3d10]
Page Load Metrics (1748 ± 84 ms)
Bundle size diffs
|
const bnBalance = new BigNumber(balanceOrFallback); | ||
const formattedBalanceToTranslate = formatWithThreshold( | ||
bnBalance.toNumber(), | ||
0.00001, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What does this represent?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's the lower threshold. Meaning, that if the balance is less than 0.00001
we append a <
to the threshold and display it.
So if the balance is 0.00000001
we will display <0.00001
This is partially relevant to the ADR we discussed in Slack.
Builds ready [5bf785c]
Page Load Metrics (1624 ± 93 ms)
Bundle size diffs
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Builds ready [adde985]
Page Load Metrics (1817 ± 73 ms)
Bundle size diffs
|
Builds ready [814e122]
Page Load Metrics (1837 ± 73 ms)
Bundle size diffs
|
Description
Adds 5 decimal place precision to token cell and account list item. Also should remove trailing zeros.
Related issues
Fixes:
Manual testing steps
Screenshots/Recordings
Pre-merge author checklist
Pre-merge reviewer checklist