Lenders couldn't update already existing pools by borrowers who want to keep the original settings.
Lenders can update their pool settings using setPool().
It checks if the new pool contains the same outstandingLoans as the old pool but it might revert due to borrowers.
A lender has a pool and there are several borrowers already.
After noticing the pool's interest ratio is too low, he's going to increase the rate using setPool().
But borrowers don't want to pay higher interest and they front runs borrow() or repay() to change outstandingLoans.
Then setPool() will revert here because outstandingLoans was changed.
Lenders couldn't update their pool settings properly.
Manual Review
I think we don't need to validate outstandingLoans in setPool(). Instead, we can set the old pool's outstandingLoans for the new pool here.
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.