The Lender::setFeeReceiver() lacks checking the address(0), leading to transaction reverts on the borrow(), repay(), giveLoan(), buyLoan(), seizeLoan(), and refinance().
The feeReceiver variable can be set by an admin through the setFeeReceiver(). The function does not check if the address(0) is inputted, though.
https://github.com/Cyfrin/2023-07-beedle/blob/658e046bda8b010a5b82d2d85e824f3823602d27/src/Lender.sol#L101
If the address(0) is inputted by mistake, the following functions will revert transactions.
Manual Review
I recommend reverting a transaction if the address(0) is inputted to the setFeeReceiver().
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.