Beginner FriendlyDeFiFoundry
100 EXP
View results
Submission Details
Severity: low
Invalid

Gas Optimization & Code Efficiency

Summary

The use of bytes.concat() in calculating the leaf node is more expensive than necessary.

Tools Used

Slither & Aderyn

Recommendations

You can optimize the leaf calculation in the claim function by replacing bytes.concat(keccak256(abi.encode(account, amount))) with keccak256(abi.encodePacked(account, amount)), which is more gas-efficient.

Updates

Lead Judging Commences

inallhonesty Lead Judge over 1 year ago
Submission Judgement Published
Invalidated
Reason: Non-acceptable severity

Support

FAQs

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