-
-
Notifications
You must be signed in to change notification settings - Fork 1.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: Precision of BigNumber values of calcTokenAmount and Configure BigNumber to support 36 decimals #13029
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. |
Bitrise❌❌❌ Commit hash: 0d3e517 Note
Tip
|
bedc33c
Thanks for the reviews! Thanks for the reminder about creating tests @matthewwalsh0! Created a test and found we had an issue supporting the test case supporting 36 decimals. Updated BigNumber configuration to support 36 decimals as we did in the extension here: MetaMask/metamask-extension#21147 |
Quality Gate passedIssues Measures |
Bitrise❌❌❌ Commit hash: 31b3faa Note
Tip
|
Description
Fix precision across mobile transaction values. JavaScript Number coerces values into scientific notation which looses precision when rendering full values
Update BigNumber.config to support 36 decimals similarly to MetaMask/metamask-extension#21147
Related issues
Fixes: #12991
Relates to: #12994
Manual testing steps
Screenshots/Recordings
Before
After
Pre-merge author checklist
Pre-merge reviewer checklist