In the 'HorseStore.huff::FEED_HORSE' function, if the current block.timestamp is divisible by 17, then the function will revert.
In the 'HorseStore.huff::FEED_HORSE' function there are the following lines:
If the timestamp mod 17 does not give a remainder -> then it will not jump to endFeed, instead the function will revert. This means that when FEED_HORSE is called, and the current timestamp is divisible by 17, then the function will revert.
The below test will fail because the timestamp 102000 is divisible by 17.
--Foundry
It is recommended to remove the mod and revert lines as they are not necessary.
The contest is live. Earn rewards by submitting a finding.
This is your time to appeal against judgements on your submissions.
Appeals are being carefully reviewed by our judges.