You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
avgBorrowRate is calculated using the unbounded value of newBorrowRate, so there may be a case where newBorrowRate > MAX_RATE leading to avgBorrowRate being over-evaluated with regard to the bounded value newBorrowRate returned by _borrowRate
The same applies symmetrically to the minimum bound
The text was updated successfully, but these errors were encountered:
Context
https://github.com/morpho-labs/morpho-blue-irm/blob/8440cb45c70866542330b97db0b8ebc03aec284b/src/SpeedJumpIrm.sol#L152
Issue
avgBorrowRate
is calculated using the unbounded value ofnewBorrowRate
, so there may be a case wherenewBorrowRate > MAX_RATE
leading toavgBorrowRate
being over-evaluated with regard to the bounded valuenewBorrowRate
returned by_borrowRate
The same applies symmetrically to the minimum bound
The text was updated successfully, but these errors were encountered: