pool balance will be incorrectly update when calling refinance().
refinance() is callable by borrower and refinance a loan to new offer. However, when borrower call refinance() function. it updates the pool balance twice, and this is incorrect. For example, pool A
has pool.balance of 500, and borrower want to refinance this loan to pool A.
When borrower calls the refinance(), the pool balance will update twice and become 300.
Since it cannot update balance correctly again, lender will loss funds
vscode
delete 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.