There is double accounting problem for pool balance in a refinance.
A pool would be refinanced to by a loan if it provides better offer to the loan.
Refinance is done by refinance method, the loan debt will be added to pool's outstandingLoans and pool balance will be reduced by loan debt as well.
However, pool balance is reduced by loan debt twice in the method.
First time:
This is obviouly wrong and pool balance is not correctly accounted.
Loss of funds.
Manual Review
To account correlty, pool balance should only be reduced by loan debt once.
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.