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

isHappyHorse() in Solidity reverts with underflow if block.timestamp < HORSE_HAPPY_IF_FED_WITHIN

Summary

isHappyHorse() in Solidity reverts with underflow if block.timestamp < HORSE_HAPPY_IF_FED_WITHIN

Vulnerability Details

isHappyHorse() in Solidity reverts with underflow if block.timestamp < HORSE_HAPPY_IF_FED_WITHIN. It is subtracting HORSE_HAPPY_IF_FED_WITHIN from block.timestamp, so if block.timestamp < HORSE_HAPPY_IF_FED_WITHIN, it will revert with underflow

Impact

isHappyHorse() in Solidity reverts with underflow if block.timestamp < HORSE_HAPPY_IF_FED_WITHIN. However this should only happen in a test environment, as in the real world block.timestamp will be much larger than HORSE_HAPPY_IF_FED_WITHIN which is 1 days

Tools Used

Manual review

Updates

Lead Judging Commences

inallhonesty Lead Judge over 1 year ago
Submission Judgement Published
Invalidated
Reason: Lack of quality

Support

FAQs

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