The lender can scam the borrower by changing the interest rate
When the lender creates a new pool, he sest an initial interest rate for future borrowers. If he create a pool with popular tokens and a very low interest rate, most of the borrowers will prefer his pool because it is more profitable for them. Currently, every lender can change the interest rate of their pool at any time. This opens up the potential for lenders to scam their borrowers as they increase the interest rate when they see a borrowing transaction in their pool (front-run attack). The lender will increase the interest rate and as a result, the borrower will have to pay more interest fees than initially expected.
The borrower will lose money because he has to pay more interest.
Manual review
Add an interestRate
parameter in the Borrow
struct. The borrower will provide the interest rate of the pool and in the borrow
function, add check if the interest rates match with the given and actual rates of the 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.