The details of the pool can be changed after a loan has already been taken. Some attributes such as interest rate are not forwarded on to pre-existing loans. However when refinance
is called, the maxLoanRatio()
of the pool is called. By setting the ratio to 1 (the minimum accepted value) in the lender being unable to refinance their loans.
In this POC, the lender changed the maxLoanRatio
after the loan was already taken. As a result, the borrower's attempts to refinance reverts. This test should be copy-pasted to the bottom of the pre-existing Lender.t.sol
testfile.
Lender can permanently prevent borrower from repaying their loans
Foundry
Track the maxLoanRatio in the Loan Struct rather than the Pool Struct
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.