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

lack of loan token check in buyLoan

Summary

BuyLoan function does not check that both pool's loan tokens are same as it was checked in giveLoan function .

Vulnerability Details

buyLoan transfers a loan from a pool to another pool and both pools should have same loan token , but there is no check to ensure equality of loan tokens addresses so it can leads to loss of funds for one of lenders if a loan has been transferred from a pool to another pool that different loan token .

Impact

loss of funds for one of lenders .

Tools Used

Manual Review

Recommendations

Check both loan tokens are the same .

Support

FAQs

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