Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Fix incorrect rounding of BSQ dollar price to whole number #3953
Add a new method to
Without this fix, the 30/90 day average price on the BSQ dashboard displays:
(I believe the issue needs to be fixed in the 1.2.6 release branch as well.)
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.