-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Reduce number of decimals shown for monetary fiat prices to 2 #3926
Conversation
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.
Thanks @ripcurlx for the review, I've pushed an update so decimals are removed for displayed fiat volume amounts. I've updated the appropriate tests and ran the |
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.
ACK
I tested it locally on Regtest and it works as expected.
I did find an existing bug while testing which was fixed in 3438535.
Before
After
The bug only occurred when switching between fiat and altcoin payment accounts in the create offer dialog.
@milesap Congrats to your first merged PR! Just a heads up that we changed recently our process on what kind of contribution is up for compensation and which is not. |
Add a new method to DisplayUtils to restore the old rounding behaviour of formatVolumeWithCode whenever a fractional volume is required. This fixes a regression caused by bisq-network#3926 to remove unnecessarily displayed decimals for fiat volumes - it appears that in every case but the avg. dollar price on the BSQ dashboard a whole number should be shown. Also add a relevant test.
Add a new method to DisplayUtils to restore the old rounding behaviour of formatVolumeWithCode whenever a fractional volume is required. This fixes a regression caused by #3926 to remove unnecessarily displayed decimals for fiat volumes - it appears that in every case but the avg. dollar price on the BSQ dashboard a whole number should be shown. Also add a relevant test.
Fixes #3449
Reduce number of decimals shown from 4 to 2 for fiat monetary values.