20,000 USDC
View results
Submission Details
Severity: medium
Valid

Lender can front-run borrowers to pay more interest

Summary

Lender can front-run borrower and apply unexpected interest rate for loan.

Vulnerability Details

scenario: Alice wants to borrow a loan from a pool that has interest rate of 10% , Bob (lender of the pool) front-runs Alice and sets pool interest rate to maxInterestRate (for example in this case 15%) . So Alice takes loan with a higher interest rate than she expected.

Impact

The borrower ends up with a loan that has a higher interest rate than expected.

Tools Used

Manual Review

Recommendations

During borrow take a max interest rate parameter as max interest that the borrower is willing to pay.

Support

FAQs

Can't find an answer? Chat with us on Discord, Twitter or Linkedin.

Give us feedback!