When refinancing a loan, at one point in the logic, the new pool takes up the newly calculated debt (that includes the old debt and interest plus fees). This new debt, however is incorrectly deducted twice leading to lender funds being stuck in the contract.
Refinancing a loan via Lender:refinance
updates the new pool's balance by subtracting the necessary debt. This misstakenly is done twice:
first time (the correct time)
where Lender::_updatePoolBalance
is:
second time (should be deleted)
Lender funds will be permanently stuck in the contract due to internal accounting issue.
Manual analysis.
Delete the second pool updated from line 698
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.