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

Wrong calculation of loan ratio

Summary

Wrong calculation of loan ratio

Vulnerability Details

Currently, the loan ratio is wrongly calculated if the loan token and collateral token have different decimals than 18. For example, in a situation where the collateral token has 4 decimals and the loan token has 24 decimals, the calculation will be incorrect.

Impact

Possible risk of bad debt

Tools Used

Manual review

Recommendations

Include token decimals in the formula for calculating the loan ratio.

Support

FAQs

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