The calculateUtilizationRate function in ReserveLibrary uses a non-standard formula for calculating utilization rate that results in significantly lower rates compared to established DeFi protocols like AAVE. This could lead to unexpected behavior in interest rate calculations.
There is no clear documentation of the expected Utilization Rate calculation but I noticed that the RAAC protocol has copied the logic of the AAVE protocol and modified the code.
The formula used is:
utilizationRate = totalDebt / (totalLiquidity + totalDebt)
This differs from the standard DeFi formula used by protocols like AAVE []:
utilizationRate = totalDebt / totalLiquidity
The current formula will always result in lower utilization rates than the standard formula. For example:
With 80 totalDebt and 100 totalLiquidity:
Standard formula: 80/100 = 80% utilization
Current formula: 80/(100+80) = 44% utilization
Since interest rates are based on utilization, this leads to:
Lower borrow rates than might be intended
Lower supply rates than might be intended
The severity is rated as Low because:
The system remains functional
No funds are at direct risk
The calculation is consistent, just different from standard practice
Manual review
Consider aligning with the standard utilization rate formula:
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.