20,000 USDC
View results
Submission Details
Severity: gas

Wrong Events emitted

Summary

buyLoan() and refinance() functions in Lender.sol emit a lot of events that may confuse the end user.

Vulnerability Details

Both functions have their own Events but also emit Repaid and Borrowed events at the end.

Impact

A lot of events emitted can confuse the end user.

Tools Used

Manual

Recommendations

Emit only one event with the updated data and only the ones needed by the Dapp, this will also make the code more readable.

Support

FAQs

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