```\nfunction _calculateMinRepayUnits(uint256 _collateralRebalanceUnits, uint256 _slippageTolerance, ActionInfo memory _actionInfo) internal pure returns (uint256) {\n    return _collateralRebalanceUnits\n        .preciseMul(_actionInfo.collateralPrice)\n        .preciseDiv(_actionInfo.borrowPrice)\n        .preciseMul(PreciseUnitMath.preciseUnit().sub(_slippageTolerance));\n}\n```\n