RAACMinter.getUtilizationRate returns a incorrect utilization rate.
Utilization rate should be calulated based on total borrow and total deposit. But here utilization rate is calculated based on reserve.usageIndex
(global debit rate) and balance of R token in stablity pool. usageIndex
is in Ray(in e27) and R token balance(in e18) so (totalBorrowed * 100) / totalDeposits
is return very large number meaning it exeed the 100% .
Incorrect calulcation of utilization rate caused incorrect emission rate of raac token. Users able to claim more raac token rewards even if the correct utilization rate is low.
Manual Review
Calculate utilization rate based on total borrow and total deposit.
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.