The lack of initialization for lastFedTimeStamp upon minting a new horse could lead to confusion for users who might expect a newly minted horse to be happy by default.
The mintHorse function does not set the lastFedTimeStamp for newly minted horses.
Newly minted horses are incorrectly considered unhappy until they are fed for the first time, which could mislead users and affect the user experience.
Manual
To address the issue, the mintHorse function should be modified to set the lastFedTimeStamp for the newly minted horse to the current block.timestamp. This ensures that a newly minted horse is considered happy from the moment of its creation until the HORSE_HAPPY_IF_FED_WITHIN duration has passed without being fed.
Here is the updated mintHorse 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.