diff --git a/src/SpeedJumpIrm.sol b/src/SpeedJumpIrm.sol index 286f96a2..372588ad 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) { - uint256 steeringCoeff = err < 0 ? WAD - WAD.wDivDown(CURVE_STEEPNESS) : CURVE_STEEPNESS - WAD; + uint256 coeff = 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); + return uint256(coeff.wMulDown(err) + WAD_INT).wMulDown(_rateAtTarget); } }