{
    "Function": "slitherConstructorConstantVariables",
    "File": "contracts/v3/alchemix/libraries/FixedPointMath.sol",
    "Parent Contracts": [],
    "High-Level Calls": [],
    "Internal Calls": [],
    "Library Calls": [],
    "Low-Level Calls": [],
    "Code": "library FixedPointMath {\n  uint256 public constant DECIMALS = 18;\n  uint256 public constant SCALAR = 10**DECIMALS;\n\n  struct FixedDecimal {\n    uint256 x;\n  }\n\n  function fromU256(uint256 value) internal pure returns (FixedDecimal memory) {\n    uint256 x;\n    require(value == 0 || (x = value * SCALAR) / SCALAR == value);\n    return FixedDecimal(x);\n  }\n\n  function maximumValue() internal pure returns (FixedDecimal memory) {\n    return FixedDecimal(uint256(-1));\n  }\n\n  function add(FixedDecimal memory self, FixedDecimal memory value) internal pure returns (FixedDecimal memory) {\n    uint256 x;\n    require((x = self.x + value.x) >= self.x);\n    return FixedDecimal(x);\n  }\n\n  function add(FixedDecimal memory self, uint256 value) internal pure returns (FixedDecimal memory) {\n    return add(self, fromU256(value));\n  }\n\n  function sub(FixedDecimal memory self, FixedDecimal memory value) internal pure returns (FixedDecimal memory) {\n    uint256 x;\n    require((x = self.x - value.x) <= self.x);\n    return FixedDecimal(x);\n  }\n\n  function sub(FixedDecimal memory self, uint256 value) internal pure returns (FixedDecimal memory) {\n    return sub(self, fromU256(value));\n  }\n\n  function mul(FixedDecimal memory self, uint256 value) internal pure returns (FixedDecimal memory) {\n    uint256 x;\n    require(value == 0 || (x = self.x * value) / value == self.x);\n    return FixedDecimal(x);\n  }\n\n  function div(FixedDecimal memory self, uint256 value) internal pure returns (FixedDecimal memory) {\n    require(value != 0);\n    return FixedDecimal(self.x / value);\n  }\n\n  function cmp(FixedDecimal memory self, FixedDecimal memory value) internal pure returns (int256) {\n    if (self.x < value.x) {\n      return -1;\n    }\n\n    if (self.x > value.x) {\n      return 1;\n    }\n\n    return 0;\n  }\n\n  function decode(FixedDecimal memory self) internal pure returns (uint256) {\n    return self.x / SCALAR;\n  }\n}"
}