20,000 USDC
View results
Submission Details
Severity: gas

Free flash swaps

Summary

Free flash swaps can be done using the protocol

Vulnerability Details

Borrow and repayment in the same transaction allows for interest free and feeless flash swaps because no time would have elapsed hence no interest and fees are calculated based on interest.

Impact

Free flash swaps

Tools Used

Recommendations

If the protocol wants fees to always be paid, the loan time may be stored and we can ensure than the repayment time must be after a minimum amount of time has passed

Support

FAQs

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