Lender.refinance decreases target pool 2 times. So malicious borrower can use this function just to burn funds.
Lender.refinance function is used to repay 1 loan and then create new loan.
This function decreases new pool balance 2 times: here and here. This is error and this is very severe error for the owner of the pool and it allows for malicious borrower to burn all available funds, by refinancing to new pool.
Funds are lost
VsCode
Remove second pool balance decrease.
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.