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

Loss of pool funds due multiple balance debt deduction

Summary

When a borrower calls the ṙefinance function in the Lender contract the new pools balance updated multiple times.

Vulnerability Details

Borrower calls ṙefinance function in the Lender contract.
The debt is deducted two times from the new pools balance.

Impact

Loss of funds for the lender's pool

Tools Used

Manual review

Recommendations

Remove line https://github.com/Cyfrin/2023-07-beedle/blob/main/src/Lender.sol#L698

Support

FAQs

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

Give us feedback!