The interest calculation maybe to 0 if timeElapsed is too short.
The interest calculation formula: interest = (l.interestRate * l.debt * timeElapsed) / 10000 / 365 days; may be 0 if timeElapsed is too short which would cause interest calculation error and cause the lenders or borrowers to lose money.
Lenders or borrowers can lose money if interest calculation is 0.
vscode, Manual Review
Change the formula to make sure interest calculation is not 0 even if timeElapsed is too short.
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.