Lender can buy his own loan to increase the interest rate
When a lender no longer wants to keep the loan, they can start an auction to sell the loan. During the auction, the interest rate increases over time. In principle, the lender cannot change the interest rate of the loan. However, they can adjust the interest rate by buying their own loan.
For example, let's assume that the LoanToken is USDT and the collateral token is DAI.
Lender of Pool A start an auction of Loan B (interest rate of 1%, Auction Length: 1 day)
Lender of Pool A wait for 10 minute
(MAX_INTEREST_RATE * timeElapsed) / loan.auctionLength = (100000*600)/86400 = 694.4444444444
The loan’s interest rate is now 6.94%
Now Lender of Pool A buys the loan at a higher interest.
Borrower will get a loss because of higher interest rate than he expected
The borrower needs to pay more interest than he expected.\
vscode
It is recommended to discourage the lender from buying a loan that is in their own pool.
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.