The smart contract's calculations are based on the assumption that a year always consists of 365 days. However, this approach is flawed as it does not account for leap years, leading to incorrect values during those years.
The contract's calculations and logic do not consider leap years, which consist of 366 days instead of the usual 365. Consequently, any time-sensitive operations or calculations performed by the contract during leap years will yield inaccurate results.
The failure to account for leap years can have significant consequences, particularly if time-related functionalities are critical to the smart contract's operations.
Manual Review
Modify the contract's logic to account for leap years correctly. Implement checks and adjustments to ensure that time-based operations yield accurate results during both regular and leap years.
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.