MaxLoanRatio
is the ratio of debt to collateral and should always be multiplied by 10**18. But while setting or updating maxLoanRatio
there are no checks.
Pool lender can mistakely or unknowingly set pool.maxLoanRatio
more than what it should be when multiplied by 10**18 or while updating maxLoanRatio
, pool lender can set it more than what it should be. For example a 200%
collateralization is, 5*10**17
but lender can mistakely set/update it to 5*10**18
which is only 20
percent collaterization.
It causes borrowers to borrow more debt with less collateral.
It may be impossible to give loan to another pool or refinance a loan to another pool.
Manual Analysis
Instead of using ratio multiplied by 10**18 set by the lender, use collateralization percentage and calculate ratio in 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.