The functions addToPool(), removeFromPool(), updateMaxLoanRatio(), and updateInterestRate() contain repeated checks to
verify if the caller is the poolId lender. These checks can be extracted into a modifier that takes an address as an
input parameter. By doing this, the code can benefit from improved code reusability, readability, and easier
maintenance.
There is no vulnerability in the code. However, the current implementation lacks readability.
The current implementation of the code lacks readability, making it harder to maintain.
Manual Inspection
Extract the duplicated checks into a separate modifier. Doing so will enhance code readability and promote better code
maintenance. By reusing the modifier, you can avoid redundancy and improve the overall structure of the contract.
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.