LendingPool.borrow is checking less collateralization ratio but it should be higher than 100%(atleast). Current implementation makes user to get a loan more than his collataral .
borrow function allows user to get a loan,
collateralValue < userTotalDebt.percentMul(liquidationThreshold)
ie . collateralValue x 10000/8000 < userTotalDebt
Meaning user able to get a loan up to collateralValue x 10 / 8 . which is more than user collateral value . it caused protocol insolvency. same issue here as well.
Incorrect comparision of Collateral Ratio(CR) caused protocol insolvency.
Manual Review
Collateralization Ratio (CR) should be more than 100%, ideally 150% or 120%, to ensure safe liquidation operations.
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.