The debt amount is calculated as:
However, the user debt already comes updated from the lending pool according to the last stored index. In order to properly cover the user debt, this function should update the usage index for the accrued interest since the last update and the second multiplication should not be performed.
Manual review.
Update the index before calculating the debt and avoid duplicated multiplication.
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.