The equation seems to be calculating interest and fees wrong
Due to the division by 365 days the numbers in the formula would have to be very big to avoid floor rounding when dividing. To achieve that we can multiply by 10**18.
Wrong calculations which leads to wrong transactions and loss of funds
Manual review
Rewrite the function in similar fashion:
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.