{
    "Function": "initialize",
    "File": "src/kuma-protocol/KIBToken.sol",
    "Parent Contracts": [
        "lib/openzeppelin-contracts/contracts/proxy/utils/UUPSUpgradeable.sol",
        "lib/openzeppelin-contracts/contracts/proxy/ERC1967/ERC1967Upgrade.sol",
        "lib/openzeppelin-contracts/contracts/interfaces/draft-IERC1822.sol",
        "lib/openzeppelin-contracts-upgradeable/contracts/token/ERC20/extensions/ERC20PermitUpgradeable.sol",
        "lib/openzeppelin-contracts-upgradeable/contracts/utils/cryptography/EIP712Upgradeable.sol",
        "src/kuma-protocol/interfaces/IKIBToken.sol",
        "lib/openzeppelin-contracts-upgradeable/contracts/token/ERC20/extensions/IERC20PermitUpgradeable.sol",
        "lib/openzeppelin-contracts-upgradeable/contracts/token/ERC20/ERC20Upgradeable.sol",
        "lib/openzeppelin-contracts-upgradeable/contracts/token/ERC20/extensions/IERC20MetadataUpgradeable.sol",
        "lib/openzeppelin-contracts-upgradeable/contracts/token/ERC20/IERC20Upgradeable.sol",
        "lib/openzeppelin-contracts-upgradeable/contracts/utils/ContextUpgradeable.sol",
        "lib/openzeppelin-contracts-upgradeable/contracts/proxy/utils/Initializable.sol"
    ],
    "High-Level Calls": [],
    "Internal Calls": [
        "revert CANNOT_SET_TO_ADDRESS_ZERO()",
        "initializer",
        "revert WRONG_RISK_CATEGORY()",
        "abi.encode()",
        "__ERC20Permit_init",
        "revert EPOCH_LENGTH_CANNOT_BE_ZERO()",
        "keccak256(bytes)",
        "__ERC20_init"
    ],
    "Library Calls": [],
    "Low-Level Calls": [],
    "Code": "function initialize(\n        string memory name,\n        string memory symbol,\n        uint256 epochLength,\n        IKUMAAddressProvider KUMAAddressProvider,\n        bytes4 currency,\n        bytes4 country,\n        uint64 term\n    ) external override initializer {\n        if (epochLength == 0) {\n            revert Errors.EPOCH_LENGTH_CANNOT_BE_ZERO();\n        }\n        if (address(KUMAAddressProvider) == address(0)) {\n            revert Errors.CANNOT_SET_TO_ADDRESS_ZERO();\n        }\n        if (currency == bytes4(0) || country == bytes4(0) || term == 0) {\n            revert Errors.WRONG_RISK_CATEGORY();\n        }\n        _yield = MIN_YIELD;\n        _epochLength = epochLength;\n        _lastRefresh = block.timestamp % epochLength == 0\n            ? block.timestamp\n            : (block.timestamp / epochLength) * epochLength + epochLength;\n        _cumulativeYield = MIN_YIELD;\n        _previousEpochCumulativeYield = MIN_YIELD;\n        _KUMAAddressProvider = KUMAAddressProvider;\n        _riskCategory = keccak256(abi.encode(currency, country, term));\n        __ERC20_init(name, symbol);\n        __ERC20Permit_init(name);\n\n        emit CumulativeYieldUpdated(0, MIN_YIELD);\n        emit EpochLengthSet(0, epochLength);\n        emit KUMAAddressProviderSet(address(KUMAAddressProvider));\n        emit PreviousEpochCumulativeYieldUpdated(0, MIN_YIELD);\n        emit RiskCategorySet(_riskCategory);\n        emit YieldUpdated(0, MIN_YIELD);\n    }"
}