20,000 USDC
View results
Submission Details
Severity: gas

Unoffical flashloan available to anyone as `Lender.borrow()` and `Lender.repay()` can be executed in same transaction.

Summary

Lender.borrow() and Lender.repay() can be executed in same transaction.

It allows unoffical flashloan feature to anyone without paying any interest.

The flashloan borrower should only pay for borrowing fee.

Impact

Unoffical flashloan feature could not be unintentional use cases.

Tools Used

Manual Review

Recommendations

There should be a minium loan duration between borrow and repay.

Support

FAQs

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