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?
to your account
Verifying the balance of sender should check against amount + fee rather just amount.
amount + fee
Currently the code has a check sender_balance >= transfer.amount
sender_balance >= transfer.amount
// Verify the sender has adequate balance.
time_independent_only || sender_balance >= transfer.amount,
Which does not account for the fee.
sender_balance >= total_amount
Change transfer.amount to total_amount to also account for the fee.
The text was updated successfully, but these errors were encountered:
Closed via #457
Sorry, something went wrong.
Successfully merging a pull request may close this issue.