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

Refinance emit Repaid data

Summary

Repaid Event data

Vulnerability Details

The data for debt and collateral sent to the emit Repaid event is incorrect in refinance. The values passed are debt and collateral and these are the values that the loan is being refinanced to. The repaid values should come from the existing loan.

Impact

Low impact.

Tools Used

None

Recommendations

Correct the data emitted to match the loan that was repaid vs the new loan taken out

emit Repaid(
msg.sender,
loan.lender,
loanId,
loan.debt,
loan.collateral,
loan.interestRate,
loan.startTimestamp
);

Support

FAQs

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

Give us feedback!