Updating the prime rate will change the interest for a time that was already passed
setPrimeRate doesn't update the interest before setting the new price.
https://github.com/Cyfrin/2025-02-raac/blob/main/contracts/libraries/pools/ReserveLibrary.sol#L399-L414
This will mean that if the lat update was at time T and prime is updated at T+1day, even though it is updated now it would take account for all of the interest generated between T and T+1day, aka. it will change the rate for time that has already passed.
Updating the price will change rates for a time that has already passed. That is not good as it would cause an instant spike or decrease and internal accounting errors as some function take the rate without updating it, like getNormalizedDebt.
Manual review
Update the rates before changing the prime rate.
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.