```\n    function isDeviatingWithBpsCheck(\n        uint256 value0_,\n        uint256 value1_,\n        uint256 deviationBps_,\n        uint256 deviationMax_\n    ) internal pure returns (bool) {\n        if (deviationBps_ > deviationMax_)\n            revert Deviation_InvalidDeviationBps(deviationBps_, deviationMax_);\n\n        return isDeviating(value0_, value1_, deviationBps_, deviationMax_);\n    }\n\n    function isDeviating(\n        uint256 value0_,\n        uint256 value1_,\n        uint256 deviationBps_,\n        uint256 deviationMax_\n    ) internal pure returns (bool) {\n        return\n            (value0_ < value1_)\n                ? _isDeviating(value1_, value0_, deviationBps_, deviationMax_)\n                : _isDeviating(value0_, value1_, deviationBps_, deviationMax_);\n    }\n```\n