Prime rate is important in the calculation of the borrow rate and thus in the liquidity rate. These rates determine how the interest grows for the lenders and the borrowers. When a new prime rate is set, the interest of the lenders and the borrowers till then is not updated, rather the borrow rate and liquidity rate is directly changed and only after this is the interest on the lenders and borrowers applied. This will result in higher/lower interest on the lenders and the borrowers than expected.
As many borrowers/lenders must have seen the current prime rate and only then lent/borrowed, changing this without proper accounting is unfair to them (it may lead to loss of protocol funds if the prime rate is lowered).
As the interest accrued by users during a time delta depends on the borrow/liquidity rate (hence the prime rate by extension), when updating the prime rate, the previous borrow/liquidity rate must be applied to the previous time delta first.(the relation between prime rate and borrow rate can be seein the calculateBorrowRate in the reserveLibrary.sol)
If the prime rate is decreased, the protocol will gain less fees than expected (as borrow rate and fees are linked during calculation of liquidty rate).If it is increased the users will face a loss of funds.
manual review
update the interest first before updating 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.