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

The storage variable s_feePrecision in ThunderLoan.sol can be replaced by a const value

Summary

The value of s_feePrecision is no need to change . So using a public const value to save gas.

Vulnerability Details

uint256 private s_feePrecision;

The fee precision is no need to change . So using a public const value to save gas.

Impact

cost more gas.

Tools Used

foundry

Recommendations

//uint256 private s_feePrecision;
uint256 public constant FEE_PRECISION = 1e18;
Updates

Lead Judging Commences

0xnevi Lead Judge
over 1 year ago
0xnevi Lead Judge over 1 year ago
Submission Judgement Published
Invalidated
Reason: Gas optimizations

Support

FAQs

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