20,000 USDC
View results
Submission Details
Severity: gas

A year is not always 365 days

Summary and Vulnerability Details

On leap years, the number of days is 366, so calculations during those years will return the wrong value

interest = (l.interestRate * l.debt * timeElapsed) / 10000 / 365 days;

Tools Used

Manual Review

Support

FAQs

Can't find an answer? Chat with us on Discord, Twitter or Linkedin.