-
Notifications
You must be signed in to change notification settings - Fork 984
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
Wallet: crypto max decimals #18267
Wallet: crypto max decimals #18267
Conversation
f3a4a88
to
06656e1
Compare
Jenkins BuildsClick to see older builds (30)
|
@@ -0,0 +1,18 @@ | |||
(ns status-im.contexts.wallet.common.utils-test |
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.
🙌 awesome!
75% of end-end tests have passed
Not executed tests (1)Failed tests (6)Click to expandClass TestCommunityOneDeviceMerged:
Class TestActivityCenterContactRequestMultipleDevicePR:
Class TestCommunityMultipleDeviceMerged:
Class TestCommunityMultipleDeviceMergedTwo:
Expected to fail tests (6)Click to expandClass TestOneToOneChatMultipleSharedDevicesNewUiTwo:
Class TestGroupChatMultipleDeviceMergedNewUI:
Class TestCommunityOneDeviceMerged:
Class TestOneToOneChatMultipleSharedDevicesNewUi:
Class TestCommunityMultipleDeviceMerged:
Passed tests (36)Click to expandClass TestActivityMultipleDevicePR:
Class TestActivityMultipleDevicePRTwo:
Class TestOneToOneChatMultipleSharedDevicesNewUiTwo:
Class TestDeepLinksOneDevice:
Class TestGroupChatMultipleDeviceMergedNewUI:
Class TestActivityCenterContactRequestMultipleDevicePR:
Class TestCommunityOneDeviceMerged:
Class TestOneToOneChatMultipleSharedDevicesNewUi:
Class TestCommunityMultipleDeviceMergedTwo:
Class TestCommunityMultipleDeviceMerged:
|
@@ -36,6 +36,31 @@ | |||
(map (comp :raw-balance val)) | |||
(reduce money/add))) | |||
|
|||
(defn extract-exponent | |||
[s] | |||
(if-let [index (string/index-of s "e")] |
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.
nit:
"e" is related to euler's number? maybe we put it in a def
e.g (def eulers-number "e")
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.
@J-Son89 "e" is exponent in a number, i.e, 0.1234774e-7
. We are extracting the number after the exponent.
15e3538
to
787b0af
Compare
Hi @OmarBasem, thanks for the PR! Could you take a look and confirm that decimals are displayed correctly for tokens when the token dollar amount is zero? PR video_2023-12-22_17-05-53.mp4Develop |
100% of end-end tests have passed
Passed tests (14)Click to expandClass TestActivityMultipleDevicePRTwo:
Class TestActivityMultipleDevicePR:
Class TestGroupChatMultipleDeviceMergedNewUI:
Class TestActivityCenterContactRequestMultipleDevicePR:
Class TestOneToOneChatMultipleSharedDevicesNewUi:
|
Thanks for the fixes and waiting @OmarBasem ! |
ac0df08
to
a7b0668
Compare
✔️ status-mobile/prs/android/PR-18267#12 🔹 ~7 min 26 sec 🔹 a7b0668 🔹 📦 android package |
✔️ status-mobile/prs/android/PR-18267#13 🔹 ~7 min 10 sec 🔹 e7346b6 🔹 📦 android package |
d395fe2
to
1f36e11
Compare
fixes: #18244
This PR implements max possible decimals for crypto values.
Before:
After: