Skip to content
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

Fix Stake rounding errors + improve Send GUI check #185

Merged
merged 1 commit into from
Aug 24, 2023

Conversation

JSKitty
Copy link
Member

@JSKitty JSKitty commented Aug 23, 2023

Abstract

This PR fixes a minor bug in which the Stake feature was not properly sat-rounding to compensate for JS float precision inaccuracy: this should be fixed now, and a case of duplicate redundant Validation code was replaced with our standardised validateAmount() function.

@JSKitty JSKitty added the Bug This is either a bugfix (PR) or a bug (issue). label Aug 23, 2023
Copy link

@Liquid369 Liquid369 left a comment

Choose a reason for hiding this comment

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

tACK 1db01ec
While testing the Contacts PR, I was sending 0.1 PIV tx's to JSKitty, and my balance would shift to various numbers, 1.2, 2.6, etc, now it is subtracting and adding correctly after several transactions again.

@JSKitty JSKitty merged commit 7fdab99 into master Aug 24, 2023
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug This is either a bugfix (PR) or a bug (issue).
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants