isHappyHorse() in Huff calculates the time wrongly and gives wrong results
IS_HAPPY_HORSE() macro in the Huff implementation checks the time difference between the current time and the time the horse was fed, if HORSE_HAPPY_IF_FED_WITHIN is less than the time difference which means the time difference is more than or equal to HORSE_HAPPY_IF_FED_WITHIN it will jump to start_return_true and pushes 0x01 to the stack, then stores it in the memory and returns it
This is wrong, because it is returning true if the time since the horse was fed is more than or equal to HORSE_HAPPY_IF_FED_WITHIN. But if a horse have not been fed within the past 24 hours, it should return false instead
isHappyHorse() in Huff gives wrong results
Manual review
Check the time correctly by changing lt to gt in HorseStore.huff#L100
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.