reserve state such as liquidity index, debt index should be updated before set a new primeRate
LendingPool::setPrimeRate() is meant for setting a new PrimeRate for the reserve. After the PrimeRate changes, reserve will updated to a new usageRate, which will results to new debt Index. Debt will be accumulated at a different debt rate.
Therefor reserve state: liquidity index/debt index must be updated before such a change.
protocol may accumulate an unfair debt under different debt index.
manual
consider updating reserve state before setPrimeRate()
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.