20,000 USDC
View results
Submission Details
Severity: gas

Repay optimisation for empty loans

Gas - add a check to check if a loan has any debt to it in order to save gas from the unnecessary calculations that would be done in the repay() method. Since a user might accidentally front-run a repay to the same loan, making the second tx only eat away gas.

Support

FAQs

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