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 transaction fees underflow #344

Merged
merged 1 commit into from
Feb 2, 2023
Merged

Conversation

janezpodhostnik
Copy link
Collaborator

@janezpodhostnik janezpodhostnik commented Feb 2, 2023

closes: #343

There was a possibility for a underflow in the calculation for storage capacity of the transaction payer.
By using a saturatingSubtract the balance used to calculate capacity is at minimum 0.0.

This is not a breaking change.

This should be deployed as soon as possible, because the underflow error can look very scary (though, not critical).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Underflow in FlowStorageFees
2 participants