The following check - if (pools[poolId].lender != msg.sender) revert Unauthorized(); is observed 4 times in Lender.sol
The check if (pools[poolId].lender != msg.sender) revert Unauthorized(); occurs 4 times in Lender.sol. This check is implemented in Lender.addToPool(); Lender.removeFromPool() ; Lender.updateMaxLoanRatio(); and Lender.updateInterestRate();
Manual Review
Consider creating a modifier onlyLender that implements this check and attach it to the above mentioned functions.
The modifier can look like this :
modifier onlyLender() {
if (pools[poolId].lender != msg.sender) revert Unauthorized();
_;
}
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.