20,000 USDC
View results
Submission Details
Severity: medium

Divide-before-multiply

Summary

Performing division before multiplication can lead to precision loss.

Vulnerability Details

In borrow() function of Lender.sol this calculation performs division before multiplication which can lead to precision loss and potential loss of funds.

Impact

Calculation error can lead to precision loss and potential loss of funds.

Tools Used

Slither

Recommendations

Consider ordering multiplication before division.

Support

FAQs

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