diff --git a/src/SpeedJumpIrm.sol b/src/SpeedJumpIrm.sol index 801a7b18..8d965e6d 100644 --- a/src/SpeedJumpIrm.sol +++ b/src/SpeedJumpIrm.sol @@ -158,7 +158,7 @@ contract AdaptativeCurveIrm is IIrm { avgBorrowRate = uint256((int256(endBorrowRate) - int256(startBorrowRate)).wDivDown(linearAdaptation)); } - return (avgBorrowRate.bound(MIN_RATE_AT_TARGET, MAX_RATE_AT_TARGET), endRateAtTarget); + return (avgBorrowRate, endRateAtTarget); } } diff --git a/test/SpeedJumpIrmTest.sol b/test/SpeedJumpIrmTest.sol index 5c857e5e..451bb6ca 100644 --- a/test/SpeedJumpIrmTest.sol +++ b/test/SpeedJumpIrmTest.sol @@ -252,7 +252,7 @@ contract AdaptativeCurveIrmTest is Test { avgBorrowRate = uint256((int256(newBorrowRate) - int256(_curve(rateAtTarget, err))).wDivDown(linearAdaptation)); } - return avgBorrowRate.bound(irm.MIN_RATE_AT_TARGET(), irm.MAX_RATE_AT_TARGET()); + return avgBorrowRate; } function _curve(uint256 rateAtTarget, int256 err) internal pure returns (uint256) {