{
    "Function": "slitherConstructorConstantVariables",
    "File": "contracts/libraries/AUMCalculationLibrary.sol",
    "Parent Contracts": [],
    "High-Level Calls": [],
    "Internal Calls": [],
    "Library Calls": [],
    "Low-Level Calls": [],
    "Code": "library AUMCalculationLibrary {\n    /// @dev A constant used for AUM fee calculation to prevent underflow\n    uint constant RATE_SCALE_BASE = 1e27;\n\n    /// @notice Power function for AUM fee calculation\n    /// @param _x Base number\n    /// @param _n Exponent number\n    /// @param _base Base number multiplier\n    /// @return z_ Returns value of `_x` raised to power of `_n`\n    function rpow(\n        uint _x,\n        uint _n,\n        uint _base\n    ) internal pure returns (uint z_) {\n        assembly {\n            switch _x\n            case 0 {\n                switch _n\n                case 0 {\n                    z_ := _base\n                }\n                default {\n                    z_ := 0\n                }\n            }\n            default {\n                switch mod(_n, 2)\n                case 0 {\n                    z_ := _base\n                }\n                default {\n                    z_ := _x\n                }\n                let half := div(_base, 2)\n                for {\n                    _n := div(_n, 2)\n                } _n {\n                    _n := div(_n, 2)\n                } {\n                    let xx := mul(_x, _x)\n                    if iszero(eq(div(xx, _x), _x)) {\n                        revert(0, 0)\n                    }\n                    let xxRound := add(xx, half)\n                    if lt(xxRound, xx) {\n                        revert(0, 0)\n                    }\n                    _x := div(xxRound, _base)\n                    if mod(_n, 2) {\n                        let zx := mul(z_, _x)\n                        if and(iszero(iszero(_x)), iszero(eq(div(zx, _x), z_))) {\n                            revert(0, 0)\n                        }\n                        let zxRound := add(zx, half)\n                        if lt(zxRound, zx) {\n                            revert(0, 0)\n                        }\n                        z_ := div(zxRound, _base)\n                    }\n                }\n            }\n        }\n\n        return z_;\n    }\n}"
}