TempleGold

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

Incorrect equality used in comparison

Summary

The given equation ensures the auction starts after the prevAuctionInfo.endTime + config.auctionsTimeDiff which is probably fine for the protocol, but the comment descriptions here and here states that the "difference" (keyword) between two successive auctions should be config.auctionsTimeDiff, which means the correct equality should be >= instead of >.

Recommendations

if (_currentEpochId > 0 && (prevAuctionInfo.endTime + config.auctionsTimeDiff >= block.timestamp)) {
revert CannotStartAuction();
}
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.