The loan ratio calculation assumes every token has 18 decimals to work, this does not always hold true and can break the system in different ways like for example DoS, or loss of funds.
There are tokens with more or less than 18 decimals, which would break the formula.
The loan ratio formula used multiple times inside Lender.sol:
Loss of funds by taking out loans with an unfair loan ratio, or DoS as the the loan ratio is always bigger than 100%.
Manual Review, Foundry, VSCode
Update the formula in a way that fits tokens with different precision. The optional decimal function of ERC20 tokens could come in handy to do so.
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.