Check for pool.maxLoanRatio is wrong and can cause issues.
In setPool of Lender.sol the check for maxLoanRatio is not done correctly, which can enable the borrower to borrow funds greater than the collateral as long as the loanRatio
is below pool.maxLoanRatio
.
Suppose Alice sets the pool
with pool.maxLoanRatio
greater than 1 then Bob can deposit 10 ETH as collateral and get 10 * loanRatio
as debt which in this case can enable Bob to have debt greater than the deposited collateral.
Borrower can put down less collateral and can withdraw more debt.
Manual review
pool.maxLoanRatio
can be set to be between 0-1.
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.