20,000 USDC
View results
Submission Details
Severity: medium

Missing Minimum Amount Check in BuyLoan Function

Summary

It has been identified that the buyLoan function does not check if the debt is higher than the minimum amount of the new pool that the loan is being transferred to.

Vulnerability Details

The vulnerability arises from the buyLoan function, which allows someone to buy a loan in auction. The function does not check if the debt is higher than the minimum amount of the new pool that the loan is being transferred to. This can lead to inconsistencies and potential inaccuracies in the loan transfer process.

Impact

This vulnerability can lead to significant inaccuracies in the loan transfer process, which can affect the fairness of the loan terms and potentially lead to financial losses for either the borrower or the lender.

Tools Used

Manual Review

Recommendations

To mitigate this vulnerability, it is recommended to revise the buyLoan function to include a check that ensures the debt is higher than the minimum amount of the new pool that the loan is being transferred to.

Support

FAQs

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