The calculateUtilizationRate function currently returns a 100% utilization rate if total liquidity is less than 1, regardless of the debt value. This results in an incorrect rate when both liquidity and debt are zero.
In the function https://github.com/Cyfrin/2025-02-raac/blob/main/contracts/libraries/pools/ReserveLibrary.sol#L303
If both totalLiquidity and totalDebt are zero (a scenario likely during new lending pool), the function incorrectly returns 100% utilization instead of 0%, leading to artificially high calculated rates.
Incorrectly high utilization rate at initial launch may trigger excessively high borrow and debt rates.
Potential deterrence of early participants due to skewed interest pricing.
Manual Review
Modify calculateUtilizationRate to check for the case when both totalLiquidity and totalDebt are zero, returning 0% utilization in that scenario.
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.