{
    "Function": "slitherConstructorConstantVariables",
    "File": "contracts/libraries/IndexLibrary.sol",
    "Parent Contracts": [],
    "High-Level Calls": [],
    "Internal Calls": [],
    "Library Calls": [],
    "Low-Level Calls": [],
    "Code": "library IndexLibrary {\n    using FullMath for uint;\n\n    /// @notice Initial index quantity to mint\n    uint constant INITIAL_QUANTITY = 10000;\n\n    /// @notice Total assets weight within an index\n    uint8 constant MAX_WEIGHT = type(uint8).max;\n\n    /// @notice Returns amount of asset equivalent to the given parameters\n    /// @param _assetPerBaseInUQ Asset per base price in UQ\n    /// @param _weight Weight of the given asset\n    /// @param _amountInBase Total assets amount in base\n    /// @return Amount of asset\n    function amountInAsset(\n        uint _assetPerBaseInUQ,\n        uint8 _weight,\n        uint _amountInBase\n    ) internal pure returns (uint) {\n        require(_assetPerBaseInUQ > 0, \"IndexLibrary: ORACLE\");\n\n        return ((_amountInBase * _weight) / MAX_WEIGHT).mulDiv(_assetPerBaseInUQ, FixedPoint112.Q112);\n    }\n}"
}