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
JMukesh
if we declare - address public feeRecipient; with bool public depositsEnabled and bool public depositsEnabled;
these variable can be packed in single slot , because they occupy total 22bytes of 32byte memory sloth
ex - address public feeRecipient bool public depositsEnabled bool public depositsEnabled
https://github.com/code-423n4/2021-07-wildcredit/blob/82c48d73fd27a9d4d5d4a395b3affcef4ef6c5c8/contracts/Controller.sol#L35
manual review
The text was updated successfully, but these errors were encountered:
JMukesh issue #103
6cb36a6
No branches or pull requests
Handle
JMukesh
Vulnerability details
Impact
if we declare - address public feeRecipient; with bool public depositsEnabled and
bool public depositsEnabled;
these variable can be packed in single slot , because they occupy total 22bytes of 32byte memory sloth
ex - address public feeRecipient
bool public depositsEnabled
bool public depositsEnabled
Proof of Concept
https://github.com/code-423n4/2021-07-wildcredit/blob/82c48d73fd27a9d4d5d4a395b3affcef4ef6c5c8/contracts/Controller.sol#L35
Tools Used
manual review
The text was updated successfully, but these errors were encountered: