The Lender.sol contract has a design oversight which allows loans to bypass the defined maximum loan ratio due to the accumulation of interest over time this is due to the fact that the design doesn't have a mechanism to prevent a loan from exceeding the maximum loan ratio due to accrued interest.
The Lender contract allows a user to borrow up to the defined maximum loan ratio. However, as interest accrues over time, the total debt (original loan + accrued interest) can exceed the initial maximum loan ratio.
Relevant code snippets:
Setting the maximum loan ratio for a pool:
A loan's effective ratio to could sidestep the defined maximum loan ratio, thus circumventing the contract's risk management rules.
Manual Audit
Implement a mechanism that enforces the maximum loan ratio even after interest accrual.
One possible solution could involve a regular check on outstanding loans and their accrued interest. If the accrued interest pushes the loan beyond the defined maximum loan ratio, a trigger of partial liquidation to bring the loan back within the maximum loan ratio could be done.
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.