In the getUtilizationRate() function in the RAACMinter.sol, the totalBorrowed is in e27 scale and totalDeposits is in e18 scale, this causes the utiliaztion rate to be always greater than the utilizationTarget (70), and thus cause emission to be always max emission.
The totalBorrowed is the usageIndex of the lending pool, which is in RAY thus is of the order 1e27.And the totalDeposits is the amount of RToken presen in the stability Pool and thus is of the order 1e18 (decimals of Rtoken). Thus the utiliaztion rate would be of ther oder
1e27*100/1e18 = 1e11.
This is greater than the utilization target of 70. Thus the calculation is incorrect.
More emission of RAAC token than intended.
manual review
scale them to the same order.
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.