Skip to content
This repository has been archived by the owner on Dec 11, 2019. It is now read-only.

Incorrect decimal values shown for BAT-USD after reconcile #12666

Closed
srirambv opened this issue Jan 16, 2018 · 11 comments
Closed

Incorrect decimal values shown for BAT-USD after reconcile #12666

srirambv opened this issue Jan 16, 2018 · 11 comments

Comments

@srirambv
Copy link
Collaborator

srirambv commented Jan 16, 2018

Description

Incorrect decimal values shown for BAT-USD after reconcile

Test plan / Steps to Reproduce

  1. Fund wallet with decimal values such as 7.51 BAT
  2. Change reconcilestamp to trigger payment process
  3. Once reconcile is complete, shows incorrect decimal values for BAT-USD

Actual result:
image

Expected result:
Should show correct BAT-USD values even for decimal values

Reproduces how often:
100%

Brave Version

about:brave info:

Brave 0.19.136
rev 1659471
Muon 4.7.1
libchromiumcontent 64.0.3282.85
V8 6.4.388.20
Node.js 7.9.0
Update Channel Release
OS Platform Microsoft Windows
OS Release 10.0.16299
OS Architecture x64

Reproducible on current live release:
Yes

Additional Information

Found the scenario on staging wallet.
browser profile
cc: @mrose17 @evq @bsclifton

@NejcZdovc
Copy link
Contributor

@bradleyrichter what should we display here? USD value is 0.0066051665 and we only show two places and because of rounding we are currently displaying 0.01 USD which is of course wrong

@NejcZdovc NejcZdovc added the needs-info Another team member needs information from the PR/issue opener. label Jan 16, 2018
@NejcZdovc
Copy link
Contributor

@mrose17
Copy link
Member

mrose17 commented Jan 16, 2018

how about <.01USD ?

@bradleyrichter
Copy link
Contributor

bradleyrichter commented Jan 18, 2018 via email

@NejcZdovc NejcZdovc modified the milestones: Triage Backlog, 0.20.x Hotfix 1 Jan 19, 2018
NejcZdovc added a commit to NejcZdovc/browser-laptop that referenced this issue Jan 19, 2018
NejcZdovc added a commit to NejcZdovc/browser-laptop that referenced this issue Jan 19, 2018
@alexwykoff alexwykoff modified the milestones: 0.20.x Hotfix 3 (Ledger improvments), 0.21.x (Beta Channel) Feb 6, 2018
bsclifton pushed a commit to NejcZdovc/browser-laptop that referenced this issue Feb 12, 2018
bsclifton added a commit that referenced this issue Feb 12, 2018
Adds handler for amounts lower then 0.01 USD
bsclifton added a commit that referenced this issue Feb 12, 2018
Adds handler for amounts lower then 0.01 USD
bsclifton added a commit that referenced this issue Feb 12, 2018
Adds handler for amounts lower then 0.01 USD
@LaurenWags
Copy link
Member

Showing <.01 USD on MacOS:
screen shot 2018-02-23 at 2 50 46 pm

@bradleyrichter
Copy link
Contributor

@NejcZdovc I think it would look better to add a leading 0.

So, 0.01 BAT (< 0.01 USD)

@LaurenWags
Copy link
Member

And a space between the < and the leading zero as in your example @bradleyrichter ? Meaning:
0.01 BAT (< 0.01 USD) vs 0.01 BAT (<0.01 USD)

@NejcZdovc NejcZdovc modified the milestones: 0.21.x (Beta Channel), 0.21.x (Twitch) Feb 24, 2018
NejcZdovc pushed a commit that referenced this issue Feb 24, 2018
Adds handler for amounts lower then 0.01 USD
@NejcZdovc NejcZdovc reopened this Feb 24, 2018
@NejcZdovc
Copy link
Contributor

Reopening, so that we can adjust this value

NejcZdovc added a commit to NejcZdovc/browser-laptop that referenced this issue Feb 24, 2018
Resolves brave#12666

Auditors:

Test Plan:
bsclifton pushed a commit to NejcZdovc/browser-laptop that referenced this issue Feb 25, 2018
Resolves brave#12666

Auditors:

Test Plan:
bsclifton added a commit that referenced this issue Feb 25, 2018
bsclifton added a commit that referenced this issue Feb 25, 2018
bsclifton added a commit that referenced this issue Feb 25, 2018
ryanml pushed a commit to ryanml/browser-laptop that referenced this issue Feb 27, 2018
Resolves brave#12666

Auditors:

Test Plan:
@srirambv srirambv added the 0.21.x issue first seen in 0.21.x label Feb 27, 2018
@srirambv
Copy link
Collaborator Author

Looks good on Windows
image

@LaurenWags
Copy link
Member

MacOS:
screen shot 2018-02-27 at 11 07 17 am

@kjozwiak
Copy link
Member

Looks good under Ubuntu 17.10 x64 👍 Used 0.21.16 a7bed47 without any issues.

screen shot 2018-02-27 at 9 26 31 pm

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.