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

Missing event emissions when borrowing,repaying loans

Summary

Missing event emissions when borrowing,repaying loans

Vulnerability Details

The functions borrow and repay do not emit fee payment events

Impact

Difficult to monitor contracts once contracts are deployed

Tools Used

Manual review

Recommendations

On line 268 add event emission

emit FeePaid(loans.length - 1,feeReceiver, fees);

On line 342 add event emission

emit FeePaid(loanId,feeReceiver, protocolInterest);

Support

FAQs

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