setPool() should check if p.minLoanSize < p.poolBalance. If p.minLoanSize > p.poolBalance,it will cause borrower can not borrow the fund. Because when borrowing , borrow() function will check if (debt < pool.minLoanSize) and if (debt > pool.poolBalance)
https://github.com/Cyfrin/2023-07-beedle/blob/main/src/Lender.sol#L242
https://github.com/Cyfrin/2023-07-beedle/blob/main/src/Lender.sol#L134
It will cause pool useless
manual
check if p.minLoanSize < p.poolBalance
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.