To compute the emission rate, the protocol calculates the utilization rate. However, the protocol uses an incorrect formula, causing the emission rate to be completely inaccurate.
The utilization rate is used to determine the emission rate, as seen in RAACMinter at L-220. The protocol relies on the function getNormalizedDebt to obtain the debt.
And the utilisation rate use the function getNormalizedDebt
to have the debt.
The issue is that this function does not return the total borrowed amount but instead returns the usage index, as shown here:
As a result, the emission rate may sometimes decrease when it should increase or increase when it should decrease.
This leads to an incorrect computation of the emission rate, disrupting a critical functionality of the protocol.
Manual review
the protocol should refactor the getUtilizationRate function to use the borrowed amount
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.