TempleGold

TempleDAO
Foundry
25,000 USDC
View results
Submission Details
Severity: low
Invalid

hasStarted() is not used throughout the contract and this increases deployment gas

Summary

hasStarted() is not used throughout the contract and this increases deployment gas

Vulnerability Details

hasStarted function is included in the code but it was never used in the code.

https://github.com/Cyfrin/2024-07-templegold/blob/57a3e597e9199f9e9e0c26aab2123332eb19cc28/protocol/contracts/templegold/EpochLib.sol#L17C1-L19C6

Impact

This increases the gas cost of deploying the contract.

Tools Used

Manual review

Recommendations

hasStarted() should be removed from the contract since it is not used.

Updates

Lead Judging Commences

inallhonesty Lead Judge about 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.