We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Make sure we have asserts for all smart contracts operations (e.g. +, -, *)
assert
+
-
*
E.g. for settleChannel , getSettleTransferAmounts
settleChannel
getSettleTransferAmounts
total_deposit_available = ( participant1_deposit + participant2_deposit - participant1_locked_amount - participant2_locked_amount ); // Overflow and underflow checks require(total_deposit_available <= (participant1_deposit + participant2_deposit)); require(total_deposit_available > 0); participant1_amount = ( participant1_deposit + participant2_transferred_amount - participant1_transferred_amount ); // Overflow and underflow checks require(participant1_amount <= participant1_deposit + participant2_transferred_amount); require(participant1_amount > ?);
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
Make sure we have
assert
s for all smart contracts operations (e.g.+
,-
,*
)E.g. for
settleChannel
,getSettleTransferAmounts
The text was updated successfully, but these errors were encountered: