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

The `refinance` function is updating the newpool value twice

Summary

The refinance function is updating the newpool value twice

Vulnerability Details

When Borrower use refinance to traswer his loan to new pool, the function drains debt from the newPool twice.

Impact

Loss of funds, DOS, revert, Miss Calculations

Tools Used

Manual Review

Recommendations

updatePoolBalance only once.

Support

FAQs

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