The calculateUtilizationRate function is responsible for determining the utilization rate of a reserve, which is later used to compute borrow rates. However, due to precision loss in the computation, the function always returns zero. This issue arises from the usage of rayDiv when dividing totalDebt by totalLiquidity + totalDebt, beacause totaDebt always is smaller than sum of totalDebt + totalLiquidty, so result of this calculation always is zero, and utiliztion rate always is 0 despite that it isn't.
Potential Underflow Issue: always totalDebt is smaller than totalLiquidity + totalDebt, the division result would have a zero value.
Zero Utilization Rate: This results in incorrect interest rate calculations.
The contest is live. Earn rewards by submitting a finding.
This is your time to appeal against judgements on your submissions.
Appeals are being carefully reviewed by our judges.