The function IS_HAPPY_HORSE
does not follow the solidity contract logic in the function isHappyHorse
.
The main difference is :
This equality check is wrong, rather than returning the value of the check :
HORSE_HAPPY_IF_FED_WITHIN <= timestamp - horseFedTimestamp
It returns this timestamp == horseFedTimestamp
Which is not what is expected by the solidity function. This check will most of the time be wrong
Almost complete DOS of the function isHappyHorse
as it will almost always return false.
Impact : high
Manual review
Update the equality so that it checks that HORSE_HAPPY_IF_FED_WITHIN == timestamp - horseFedTimestamp
. However, it should return 0 if this is the case in order to be coherent with the solidity function.
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.