DittoETH

Ditto
DeFiFoundryOracle
55,000 USDC
View results
Submission Details
Severity: low
Invalid

Miscalculation by Dev in the comment

Summary

Miscalculation by dev in the comment when calculating the number of slots in the address 80+64+40+24+24 = 232 not 224.

Vulnerability Details

The total storage space used in a storage slot from the addition is 232, however it is calculated to 224 in the dev comment, this creates an issue if the variables are being casted down to uint224 because this scrapes off the 8 additional bytes over it thereby losing context of the right data.

Impact

It leads to loss of data if it is casted to uint224 in a function.

Tools Used

Manual Review

Recommendations

Make appropriate corrections.

Updates

Lead Judging Commences

0xnevi Lead Judge
almost 2 years ago
0xnevi Lead Judge almost 2 years ago
Submission Judgement Published
Invalidated
Reason: Other

Support

FAQs

Can't find an answer? Chat with us on Discord, Twitter or Linkedin.