Skip to content
This repository has been archived by the owner on Apr 4, 2022. It is now read-only.

Fix format price #155

Merged
merged 4 commits into from
Jun 24, 2020
Merged

Fix format price #155

merged 4 commits into from
Jun 24, 2020

Conversation

Velenir
Copy link
Contributor

@Velenir Velenir commented Jun 22, 2020

formatPrice was rounding numbers like 0.99999 wrong.
It was failing to increment integer, resulting in 0.1000

Issue in gnosis/gp-v1-ui#1129

Copy link
Contributor

@alfetopito alfetopito left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice find 👍

Copy link
Contributor

@anxolin anxolin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

My concern is that I'm not sure how this affected the original issue that trigger this PR

How the inverse of 0.1 can be 1 instead of 10

We have a private thread about this
https://gnosisinc.slack.com/archives/GPBEB8PKP/p1592928322034700

Apparently there's a relationship, but still unclear to me

Copy link
Contributor

@anxolin anxolin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice debugging and fix!

@Velenir Velenir merged commit 96ccf8e into master Jun 24, 2020
@Velenir Velenir deleted the fix_formatPrice branch June 24, 2020 14:29
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants