-
Notifications
You must be signed in to change notification settings - Fork 898
impr(erc20): Add Informal Audit IF-ETHERMINT-06 protection #191
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
Conversation
ENG-376 IF-ETHERMINT-06: Direct balance manipulation
|
Codecov Report
@@ Coverage Diff @@
## main #191 +/- ##
==========================================
- Coverage 72.78% 70.86% -1.92%
==========================================
Files 33 32 -1
Lines 2065 2063 -2
==========================================
- Hits 1503 1462 -41
- Misses 499 529 +30
- Partials 63 72 +9
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Few changes requested. Also if you can update the function's comments and spec to reflect the new checks 🙏
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ACK pending changelog entry 👍
Description
Closes: https://linear.app/tharsis/issue/ENG-376/if-ethermint-06-direct-balance-manipulation
This PR adds account balance checks for the coin and token conversions in order to prevent malicious contracts to change the balances differently than expected.