diff --git a/src/SpeedJumpIrm.sol b/src/SpeedJumpIrm.sol index de2193b5..286f96a2 100644 --- a/src/SpeedJumpIrm.sol +++ b/src/SpeedJumpIrm.sol @@ -164,9 +164,9 @@ contract AdaptativeCurveIrm is IIrm { /// r = ((1-1/C)*err + 1) * rateAtTarget if err < 0 /// ((C-1)*err + 1) * rateAtTarget else. function _curve(uint256 _rateAtTarget, int256 err) private view returns (uint256) { - // Safe "unchecked" cast because err >= -1 (in WAD). uint256 steeringCoeff = err < 0 ? WAD - WAD.wDivDown(CURVE_STEEPNESS) : CURVE_STEEPNESS - WAD; + // Safe "unchecked" cast because err >= -1 (in WAD). return uint256(steeringCoeff.wMulDown(err) + WAD_INT).wMulDown(_rateAtTarget); } }