getUtilizationRate is using an incorrect variable, leading to excessively inflated rate and constant max emissions.
getUtilizationRate fetches 2 variables - totalBorrowed and totalDeposits
getTotalDeposits checks the rToken balance of the stability pool. However getNormalizedDebt returns the usageIndex which is a number expressed in RAY (1e27).
The return value of getUtilizationRate will be larger than 1e9, while utilizationRate is expected to be a 2-digit number.
Emission rate calculation will always perform calculations based on max utilization. Protocol will always operate on maxEmissionRate leading to overdistribution and loss of funds.
Unfair emission distribution, loss of funds for the protocol
Use the actual total debt, not the usage index.
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.