Sparkn

CodeFox Inc.
DeFiFoundryProxy
15,000 USDC
View results
Submission Details
Severity: low

_calculateSalt is invoked so many times

Summary

_calculateSalt is invoked 10 times

Vulnerability Details

many functions called _calculateSalt is called many times
parameters such as implementation, contestId are passed in these functions, are only be used by _calculateSalt

Impact

cause a large gas cost

Tools Used

Recommendations

create a mapping of contestId -> salt, when using salt, just pick it from the map,

Support

FAQs

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