{"constructor_args":null,"is_partially_verified":false,"is_changed_bytecode":false,"abi":[{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_account","type":"address"}],"name":"AddressFrozen","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_account","type":"address"}],"name":"AddressUnfrozen","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint8","name":"oldAssetProtectionRole","type":"uint8"},{"indexed":true,"internalType":"uint8","name":"newAssetProtectionRole","type":"uint8"}],"name":"AssetProtectionRoleSet","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"burner","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Burn","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"string","name":"newCurrencyName","type":"string"}],"name":"CurrencyNameUpdated","type":"event"},{"anonymous":false,"inputs":[],"name":"EIP712DomainChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint8","name":"version","type":"uint8"}],"name":"Initialized","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"minter","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Mint","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"minter","type":"address"},{"indexed":false,"internalType":"uint256","name":"minterAllowedAmount","type":"uint256"}],"name":"MinterConfigured","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"oldMinter","type":"address"}],"name":"MinterRemoved","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint8","name":"oldMinterRoleId","type":"uint8"},{"indexed":true,"internalType":"uint8","name":"newMinterRoleId","type":"uint8"}],"name":"MinterRoleSet","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"newRbacAddress","type":"address"}],"name":"RBACAddressUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"oldProvider","type":"address"},{"indexed":true,"internalType":"address","name":"newProvider","type":"address"}],"name":"TransferProviderChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"inputs":[],"name":"DOMAIN_SEPARATOR","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_spender","type":"address"},{"internalType":"uint256","name":"_value","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"assetProtectionRoleId","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_from","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"burnFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_newProvider","type":"address"}],"name":"changeTransferProvider","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"minterAddress","type":"address"},{"internalType":"uint256","name":"minterAllowedAmount","type":"uint256"}],"name":"configureMinter","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"currency","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"decrement","type":"uint256"}],"name":"decreaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"eip712Domain","outputs":[{"internalType":"bytes1","name":"fields","type":"bytes1"},{"internalType":"string","name":"name","type":"string"},{"internalType":"string","name":"version","type":"string"},{"internalType":"uint256","name":"chainId","type":"uint256"},{"internalType":"address","name":"verifyingContract","type":"address"},{"internalType":"bytes32","name":"salt","type":"bytes32"},{"internalType":"uint256[]","name":"extensions","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_addr","type":"address"}],"name":"freeze","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"increment","type":"uint256"}],"name":"increaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_tokenName","type":"string"},{"internalType":"string","name":"_tokenSymbol","type":"string"},{"internalType":"string","name":"_tokenCurrency","type":"string"},{"internalType":"uint8","name":"_assetProtectionRoleId","type":"uint8"},{"internalType":"uint8","name":"_minterRoleId","type":"uint8"},{"internalType":"address","name":"_rbac","type":"address"},{"internalType":"address","name":"_initTransferProvider","type":"address"},{"internalType":"uint256","name":"_minterAllowance","type":"uint256"}],"name":"initialize","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"isAdmin","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isAssetProtector","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_account","type":"address"}],"name":"isFrozen","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isMinter","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"mint","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"minter","type":"address"}],"name":"minterAllowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"minterRoleId","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"nonces","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"},{"internalType":"uint256","name":"deadline","type":"uint256"},{"internalType":"uint8","name":"v","type":"uint8"},{"internalType":"bytes32","name":"r","type":"bytes32"},{"internalType":"bytes32","name":"s","type":"bytes32"}],"name":"permit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_addr","type":"address"}],"name":"reclaimTokensFromFrozenAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"minterAddress","type":"address"}],"name":"removeMinter","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint8","name":"_newAssetProtectionRoleId","type":"uint8"}],"name":"setAssetProtectionRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint8","name":"_newMinterRoleId","type":"uint8"}],"name":"setMinterRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_addr","type":"address"}],"name":"unFreeze","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"unpause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_newCurrencyName","type":"string"}],"name":"updateCurrencyName","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_newRbacAddress","type":"address"}],"name":"updateRBACAddress","outputs":[],"stateMutability":"nonpayable","type":"function"}],"conflicting_implementations":null,"certified":false,"additional_sources":[{"file_path":"@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol","source_code":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v4.9.0) (access/Ownable.sol)\n\npragma solidity ^0.8.0;\n\nimport \"../utils/ContextUpgradeable.sol\";\nimport {Initializable} from \"../proxy/utils/Initializable.sol\";\n\n/**\n * @dev Contract module which provides a basic access control mechanism, where\n * there is an account (an owner) that can be granted exclusive access to\n * specific functions.\n *\n * By default, the owner account will be the one that deploys the contract. This\n * can later be changed with {transferOwnership}.\n *\n * This module is used through inheritance. It will make available the modifier\n * `onlyOwner`, which can be applied to your functions to restrict their use to\n * the owner.\n */\nabstract contract OwnableUpgradeable is Initializable, ContextUpgradeable {\n    address private _owner;\n\n    event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);\n\n    /**\n     * @dev Initializes the contract setting the deployer as the initial owner.\n     */\n    function __Ownable_init() internal onlyInitializing {\n        __Ownable_init_unchained();\n    }\n\n    function __Ownable_init_unchained() internal onlyInitializing {\n        _transferOwnership(_msgSender());\n    }\n\n    /**\n     * @dev Throws if called by any account other than the owner.\n     */\n    modifier onlyOwner() {\n        _checkOwner();\n        _;\n    }\n\n    /**\n     * @dev Returns the address of the current owner.\n     */\n    function owner() public view virtual returns (address) {\n        return _owner;\n    }\n\n    /**\n     * @dev Throws if the sender is not the owner.\n     */\n    function _checkOwner() internal view virtual {\n        require(owner() == _msgSender(), \"Ownable: caller is not the owner\");\n    }\n\n    /**\n     * @dev Leaves the contract without owner. It will not be possible to call\n     * `onlyOwner` functions. Can only be called by the current owner.\n     *\n     * NOTE: Renouncing ownership will leave the contract without an owner,\n     * thereby disabling any functionality that is only available to the owner.\n     */\n    function renounceOwnership() public virtual onlyOwner {\n        _transferOwnership(address(0));\n    }\n\n    /**\n     * @dev Transfers ownership of the contract to a new account (`newOwner`).\n     * Can only be called by the current owner.\n     */\n    function transferOwnership(address newOwner) public virtual onlyOwner {\n        require(newOwner != address(0), \"Ownable: new owner is the zero address\");\n        _transferOwnership(newOwner);\n    }\n\n    /**\n     * @dev Transfers ownership of the contract to a new account (`newOwner`).\n     * Internal function without access restriction.\n     */\n    function _transferOwnership(address newOwner) internal virtual {\n        address oldOwner = _owner;\n        _owner = newOwner;\n        emit OwnershipTransferred(oldOwner, newOwner);\n    }\n\n    /**\n     * @dev This empty reserved space is put in place to allow future versions to add new\n     * variables without shifting down storage in the inheritance chain.\n     * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps\n     */\n    uint256[49] private __gap;\n}\n"},{"file_path":"@openzeppelin/contracts-upgradeable/interfaces/IERC5267Upgradeable.sol","source_code":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v4.9.0) (interfaces/IERC5267.sol)\n\npragma solidity ^0.8.0;\n\ninterface IERC5267Upgradeable {\n    /**\n     * @dev MAY be emitted to signal that the domain could have changed.\n     */\n    event EIP712DomainChanged();\n\n    /**\n     * @dev returns the fields and values that describe the domain separator used by this contract for EIP-712\n     * signature.\n     */\n    function eip712Domain()\n        external\n        view\n        returns (\n            bytes1 fields,\n            string memory name,\n            string memory version,\n            uint256 chainId,\n            address verifyingContract,\n            bytes32 salt,\n            uint256[] memory extensions\n        );\n}\n"},{"file_path":"@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol","source_code":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v4.9.0) (proxy/utils/Initializable.sol)\n\npragma solidity ^0.8.2;\n\nimport \"../../utils/AddressUpgradeable.sol\";\n\n/**\n * @dev This is a base contract to aid in writing upgradeable contracts, or any kind of contract that will be deployed\n * behind a proxy. Since proxied contracts do not make use of a constructor, it's common to move constructor logic to an\n * external initializer function, usually called `initialize`. It then becomes necessary to protect this initializer\n * function so it can only be called once. The {initializer} modifier provided by this contract will have this effect.\n *\n * The initialization functions use a version number. Once a version number is used, it is consumed and cannot be\n * reused. This mechanism prevents re-execution of each \"step\" but allows the creation of new initialization steps in\n * case an upgrade adds a module that needs to be initialized.\n *\n * For example:\n *\n * [.hljs-theme-light.nopadding]\n * ```solidity\n * contract MyToken is ERC20Upgradeable {\n *     function initialize() initializer public {\n *         __ERC20_init(\"MyToken\", \"MTK\");\n *     }\n * }\n *\n * contract MyTokenV2 is MyToken, ERC20PermitUpgradeable {\n *     function initializeV2() reinitializer(2) public {\n *         __ERC20Permit_init(\"MyToken\");\n *     }\n * }\n * ```\n *\n * TIP: To avoid leaving the proxy in an uninitialized state, the initializer function should be called as early as\n * possible by providing the encoded function call as the `_data` argument to {ERC1967Proxy-constructor}.\n *\n * CAUTION: When used with inheritance, manual care must be taken to not invoke a parent initializer twice, or to ensure\n * that all initializers are idempotent. This is not verified automatically as constructors are by Solidity.\n *\n * [CAUTION]\n * ====\n * Avoid leaving a contract uninitialized.\n *\n * An uninitialized contract can be taken over by an attacker. This applies to both a proxy and its implementation\n * contract, which may impact the proxy. To prevent the implementation contract from being used, you should invoke\n * the {_disableInitializers} function in the constructor to automatically lock it when it is deployed:\n *\n * [.hljs-theme-light.nopadding]\n * ```\n * /// @custom:oz-upgrades-unsafe-allow constructor\n * constructor() {\n *     _disableInitializers();\n * }\n * ```\n * ====\n */\nabstract contract Initializable {\n    /**\n     * @dev Indicates that the contract has been initialized.\n     * @custom:oz-retyped-from bool\n     */\n    uint8 private _initialized;\n\n    /**\n     * @dev Indicates that the contract is in the process of being initialized.\n     */\n    bool private _initializing;\n\n    /**\n     * @dev Triggered when the contract has been initialized or reinitialized.\n     */\n    event Initialized(uint8 version);\n\n    /**\n     * @dev A modifier that defines a protected initializer function that can be invoked at most once. In its scope,\n     * `onlyInitializing` functions can be used to initialize parent contracts.\n     *\n     * Similar to `reinitializer(1)`, except that functions marked with `initializer` can be nested in the context of a\n     * constructor.\n     *\n     * Emits an {Initialized} event.\n     */\n    modifier initializer() {\n        bool isTopLevelCall = !_initializing;\n        require(\n            (isTopLevelCall && _initialized < 1) || (!AddressUpgradeable.isContract(address(this)) && _initialized == 1),\n            \"Initializable: contract is already initialized\"\n        );\n        _initialized = 1;\n        if (isTopLevelCall) {\n            _initializing = true;\n        }\n        _;\n        if (isTopLevelCall) {\n            _initializing = false;\n            emit Initialized(1);\n        }\n    }\n\n    /**\n     * @dev A modifier that defines a protected reinitializer function that can be invoked at most once, and only if the\n     * contract hasn't been initialized to a greater version before. In its scope, `onlyInitializing` functions can be\n     * used to initialize parent contracts.\n     *\n     * A reinitializer may be used after the original initialization step. This is essential to configure modules that\n     * are added through upgrades and that require initialization.\n     *\n     * When `version` is 1, this modifier is similar to `initializer`, except that functions marked with `reinitializer`\n     * cannot be nested. If one is invoked in the context of another, execution will revert.\n     *\n     * Note that versions can jump in increments greater than 1; this implies that if multiple reinitializers coexist in\n     * a contract, executing them in the right order is up to the developer or operator.\n     *\n     * WARNING: setting the version to 255 will prevent any future reinitialization.\n     *\n     * Emits an {Initialized} event.\n     */\n    modifier reinitializer(uint8 version) {\n        require(!_initializing && _initialized < version, \"Initializable: contract is already initialized\");\n        _initialized = version;\n        _initializing = true;\n        _;\n        _initializing = false;\n        emit Initialized(version);\n    }\n\n    /**\n     * @dev Modifier to protect an initialization function so that it can only be invoked by functions with the\n     * {initializer} and {reinitializer} modifiers, directly or indirectly.\n     */\n    modifier onlyInitializing() {\n        require(_initializing, \"Initializable: contract is not initializing\");\n        _;\n    }\n\n    /**\n     * @dev Locks the contract, preventing any future reinitialization. This cannot be part of an initializer call.\n     * Calling this in the constructor of a contract will prevent that contract from being initialized or reinitialized\n     * to any version. It is recommended to use this to lock implementation contracts that are designed to be called\n     * through proxies.\n     *\n     * Emits an {Initialized} event the first time it is successfully executed.\n     */\n    function _disableInitializers() internal virtual {\n        require(!_initializing, \"Initializable: contract is initializing\");\n        if (_initialized != type(uint8).max) {\n            _initialized = type(uint8).max;\n            emit Initialized(type(uint8).max);\n        }\n    }\n\n    /**\n     * @dev Returns the highest version that has been initialized. See {reinitializer}.\n     */\n    function _getInitializedVersion() internal view returns (uint8) {\n        return _initialized;\n    }\n\n    /**\n     * @dev Returns `true` if the contract is currently initializing. See {onlyInitializing}.\n     */\n    function _isInitializing() internal view returns (bool) {\n        return _initializing;\n    }\n}\n"},{"file_path":"@openzeppelin/contracts-upgradeable/security/PausableUpgradeable.sol","source_code":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v4.7.0) (security/Pausable.sol)\n\npragma solidity ^0.8.0;\n\nimport \"../utils/ContextUpgradeable.sol\";\nimport {Initializable} from \"../proxy/utils/Initializable.sol\";\n\n/**\n * @dev Contract module which allows children to implement an emergency stop\n * mechanism that can be triggered by an authorized account.\n *\n * This module is used through inheritance. It will make available the\n * modifiers `whenNotPaused` and `whenPaused`, which can be applied to\n * the functions of your contract. Note that they will not be pausable by\n * simply including this module, only once the modifiers are put in place.\n */\nabstract contract PausableUpgradeable is Initializable, ContextUpgradeable {\n    /**\n     * @dev Emitted when the pause is triggered by `account`.\n     */\n    event Paused(address account);\n\n    /**\n     * @dev Emitted when the pause is lifted by `account`.\n     */\n    event Unpaused(address account);\n\n    bool private _paused;\n\n    /**\n     * @dev Initializes the contract in unpaused state.\n     */\n    function __Pausable_init() internal onlyInitializing {\n        __Pausable_init_unchained();\n    }\n\n    function __Pausable_init_unchained() internal onlyInitializing {\n        _paused = false;\n    }\n\n    /**\n     * @dev Modifier to make a function callable only when the contract is not paused.\n     *\n     * Requirements:\n     *\n     * - The contract must not be paused.\n     */\n    modifier whenNotPaused() {\n        _requireNotPaused();\n        _;\n    }\n\n    /**\n     * @dev Modifier to make a function callable only when the contract is paused.\n     *\n     * Requirements:\n     *\n     * - The contract must be paused.\n     */\n    modifier whenPaused() {\n        _requirePaused();\n        _;\n    }\n\n    /**\n     * @dev Returns true if the contract is paused, and false otherwise.\n     */\n    function paused() public view virtual returns (bool) {\n        return _paused;\n    }\n\n    /**\n     * @dev Throws if the contract is paused.\n     */\n    function _requireNotPaused() internal view virtual {\n        require(!paused(), \"Pausable: paused\");\n    }\n\n    /**\n     * @dev Throws if the contract is not paused.\n     */\n    function _requirePaused() internal view virtual {\n        require(paused(), \"Pausable: not paused\");\n    }\n\n    /**\n     * @dev Triggers stopped state.\n     *\n     * Requirements:\n     *\n     * - The contract must not be paused.\n     */\n    function _pause() internal virtual whenNotPaused {\n        _paused = true;\n        emit Paused(_msgSender());\n    }\n\n    /**\n     * @dev Returns to normal state.\n     *\n     * Requirements:\n     *\n     * - The contract must be paused.\n     */\n    function _unpause() internal virtual whenPaused {\n        _paused = false;\n        emit Unpaused(_msgSender());\n    }\n\n    /**\n     * @dev This empty reserved space is put in place to allow future versions to add new\n     * variables without shifting down storage in the inheritance chain.\n     * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps\n     */\n    uint256[49] private __gap;\n}\n"},{"file_path":"@openzeppelin/contracts-upgradeable/token/ERC20/ERC20Upgradeable.sol","source_code":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v4.9.0) (token/ERC20/ERC20.sol)\n\npragma solidity ^0.8.0;\n\nimport \"./IERC20Upgradeable.sol\";\nimport \"./extensions/IERC20MetadataUpgradeable.sol\";\nimport \"../../utils/ContextUpgradeable.sol\";\nimport {Initializable} from \"../../proxy/utils/Initializable.sol\";\n\n/**\n * @dev Implementation of the {IERC20} interface.\n *\n * This implementation is agnostic to the way tokens are created. This means\n * that a supply mechanism has to be added in a derived contract using {_mint}.\n * For a generic mechanism see {ERC20PresetMinterPauser}.\n *\n * TIP: For a detailed writeup see our guide\n * https://forum.openzeppelin.com/t/how-to-implement-erc20-supply-mechanisms/226[How\n * to implement supply mechanisms].\n *\n * The default value of {decimals} is 18. To change this, you should override\n * this function so it returns a different value.\n *\n * We have followed general OpenZeppelin Contracts guidelines: functions revert\n * instead returning `false` on failure. This behavior is nonetheless\n * conventional and does not conflict with the expectations of ERC20\n * applications.\n *\n * Additionally, an {Approval} event is emitted on calls to {transferFrom}.\n * This allows applications to reconstruct the allowance for all accounts just\n * by listening to said events. Other implementations of the EIP may not emit\n * these events, as it isn't required by the specification.\n *\n * Finally, the non-standard {decreaseAllowance} and {increaseAllowance}\n * functions have been added to mitigate the well-known issues around setting\n * allowances. See {IERC20-approve}.\n */\ncontract ERC20Upgradeable is Initializable, ContextUpgradeable, IERC20Upgradeable, IERC20MetadataUpgradeable {\n    mapping(address => uint256) private _balances;\n\n    mapping(address => mapping(address => uint256)) private _allowances;\n\n    uint256 private _totalSupply;\n\n    string private _name;\n    string private _symbol;\n\n    /**\n     * @dev Sets the values for {name} and {symbol}.\n     *\n     * All two of these values are immutable: they can only be set once during\n     * construction.\n     */\n    function __ERC20_init(string memory name_, string memory symbol_) internal onlyInitializing {\n        __ERC20_init_unchained(name_, symbol_);\n    }\n\n    function __ERC20_init_unchained(string memory name_, string memory symbol_) internal onlyInitializing {\n        _name = name_;\n        _symbol = symbol_;\n    }\n\n    /**\n     * @dev Returns the name of the token.\n     */\n    function name() public view virtual override returns (string memory) {\n        return _name;\n    }\n\n    /**\n     * @dev Returns the symbol of the token, usually a shorter version of the\n     * name.\n     */\n    function symbol() public view virtual override returns (string memory) {\n        return _symbol;\n    }\n\n    /**\n     * @dev Returns the number of decimals used to get its user representation.\n     * For example, if `decimals` equals `2`, a balance of `505` tokens should\n     * be displayed to a user as `5.05` (`505 / 10 ** 2`).\n     *\n     * Tokens usually opt for a value of 18, imitating the relationship between\n     * Ether and Wei. This is the default value returned by this function, unless\n     * it's overridden.\n     *\n     * NOTE: This information is only used for _display_ purposes: it in\n     * no way affects any of the arithmetic of the contract, including\n     * {IERC20-balanceOf} and {IERC20-transfer}.\n     */\n    function decimals() public view virtual override returns (uint8) {\n        return 18;\n    }\n\n    /**\n     * @dev See {IERC20-totalSupply}.\n     */\n    function totalSupply() public view virtual override returns (uint256) {\n        return _totalSupply;\n    }\n\n    /**\n     * @dev See {IERC20-balanceOf}.\n     */\n    function balanceOf(address account) public view virtual override returns (uint256) {\n        return _balances[account];\n    }\n\n    /**\n     * @dev See {IERC20-transfer}.\n     *\n     * Requirements:\n     *\n     * - `to` cannot be the zero address.\n     * - the caller must have a balance of at least `amount`.\n     */\n    function transfer(address to, uint256 amount) public virtual override returns (bool) {\n        address owner = _msgSender();\n        _transfer(owner, to, amount);\n        return true;\n    }\n\n    /**\n     * @dev See {IERC20-allowance}.\n     */\n    function allowance(address owner, address spender) public view virtual override returns (uint256) {\n        return _allowances[owner][spender];\n    }\n\n    /**\n     * @dev See {IERC20-approve}.\n     *\n     * NOTE: If `amount` is the maximum `uint256`, the allowance is not updated on\n     * `transferFrom`. This is semantically equivalent to an infinite approval.\n     *\n     * Requirements:\n     *\n     * - `spender` cannot be the zero address.\n     */\n    function approve(address spender, uint256 amount) public virtual override returns (bool) {\n        address owner = _msgSender();\n        _approve(owner, spender, amount);\n        return true;\n    }\n\n    /**\n     * @dev See {IERC20-transferFrom}.\n     *\n     * Emits an {Approval} event indicating the updated allowance. This is not\n     * required by the EIP. See the note at the beginning of {ERC20}.\n     *\n     * NOTE: Does not update the allowance if the current allowance\n     * is the maximum `uint256`.\n     *\n     * Requirements:\n     *\n     * - `from` and `to` cannot be the zero address.\n     * - `from` must have a balance of at least `amount`.\n     * - the caller must have allowance for ``from``'s tokens of at least\n     * `amount`.\n     */\n    function transferFrom(address from, address to, uint256 amount) public virtual override returns (bool) {\n        address spender = _msgSender();\n        _spendAllowance(from, spender, amount);\n        _transfer(from, to, amount);\n        return true;\n    }\n\n    /**\n     * @dev Atomically increases the allowance granted to `spender` by the caller.\n     *\n     * This is an alternative to {approve} that can be used as a mitigation for\n     * problems described in {IERC20-approve}.\n     *\n     * Emits an {Approval} event indicating the updated allowance.\n     *\n     * Requirements:\n     *\n     * - `spender` cannot be the zero address.\n     */\n    function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) {\n        address owner = _msgSender();\n        _approve(owner, spender, allowance(owner, spender) + addedValue);\n        return true;\n    }\n\n    /**\n     * @dev Atomically decreases the allowance granted to `spender` by the caller.\n     *\n     * This is an alternative to {approve} that can be used as a mitigation for\n     * problems described in {IERC20-approve}.\n     *\n     * Emits an {Approval} event indicating the updated allowance.\n     *\n     * Requirements:\n     *\n     * - `spender` cannot be the zero address.\n     * - `spender` must have allowance for the caller of at least\n     * `subtractedValue`.\n     */\n    function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) {\n        address owner = _msgSender();\n        uint256 currentAllowance = allowance(owner, spender);\n        require(currentAllowance >= subtractedValue, \"ERC20: decreased allowance below zero\");\n        unchecked {\n            _approve(owner, spender, currentAllowance - subtractedValue);\n        }\n\n        return true;\n    }\n\n    /**\n     * @dev Moves `amount` of tokens from `from` to `to`.\n     *\n     * This internal function is equivalent to {transfer}, and can be used to\n     * e.g. implement automatic token fees, slashing mechanisms, etc.\n     *\n     * Emits a {Transfer} event.\n     *\n     * Requirements:\n     *\n     * - `from` cannot be the zero address.\n     * - `to` cannot be the zero address.\n     * - `from` must have a balance of at least `amount`.\n     */\n    function _transfer(address from, address to, uint256 amount) internal virtual {\n        require(from != address(0), \"ERC20: transfer from the zero address\");\n        require(to != address(0), \"ERC20: transfer to the zero address\");\n\n        _beforeTokenTransfer(from, to, amount);\n\n        uint256 fromBalance = _balances[from];\n        require(fromBalance >= amount, \"ERC20: transfer amount exceeds balance\");\n        unchecked {\n            _balances[from] = fromBalance - amount;\n            // Overflow not possible: the sum of all balances is capped by totalSupply, and the sum is preserved by\n            // decrementing then incrementing.\n            _balances[to] += amount;\n        }\n\n        emit Transfer(from, to, amount);\n\n        _afterTokenTransfer(from, to, amount);\n    }\n\n    /** @dev Creates `amount` tokens and assigns them to `account`, increasing\n     * the total supply.\n     *\n     * Emits a {Transfer} event with `from` set to the zero address.\n     *\n     * Requirements:\n     *\n     * - `account` cannot be the zero address.\n     */\n    function _mint(address account, uint256 amount) internal virtual {\n        require(account != address(0), \"ERC20: mint to the zero address\");\n\n        _beforeTokenTransfer(address(0), account, amount);\n\n        _totalSupply += amount;\n        unchecked {\n            // Overflow not possible: balance + amount is at most totalSupply + amount, which is checked above.\n            _balances[account] += amount;\n        }\n        emit Transfer(address(0), account, amount);\n\n        _afterTokenTransfer(address(0), account, amount);\n    }\n\n    /**\n     * @dev Destroys `amount` tokens from `account`, reducing the\n     * total supply.\n     *\n     * Emits a {Transfer} event with `to` set to the zero address.\n     *\n     * Requirements:\n     *\n     * - `account` cannot be the zero address.\n     * - `account` must have at least `amount` tokens.\n     */\n    function _burn(address account, uint256 amount) internal virtual {\n        require(account != address(0), \"ERC20: burn from the zero address\");\n\n        _beforeTokenTransfer(account, address(0), amount);\n\n        uint256 accountBalance = _balances[account];\n        require(accountBalance >= amount, \"ERC20: burn amount exceeds balance\");\n        unchecked {\n            _balances[account] = accountBalance - amount;\n            // Overflow not possible: amount <= accountBalance <= totalSupply.\n            _totalSupply -= amount;\n        }\n\n        emit Transfer(account, address(0), amount);\n\n        _afterTokenTransfer(account, address(0), amount);\n    }\n\n    /**\n     * @dev Sets `amount` as the allowance of `spender` over the `owner` s tokens.\n     *\n     * This internal function is equivalent to `approve`, and can be used to\n     * e.g. set automatic allowances for certain subsystems, etc.\n     *\n     * Emits an {Approval} event.\n     *\n     * Requirements:\n     *\n     * - `owner` cannot be the zero address.\n     * - `spender` cannot be the zero address.\n     */\n    function _approve(address owner, address spender, uint256 amount) internal virtual {\n        require(owner != address(0), \"ERC20: approve from the zero address\");\n        require(spender != address(0), \"ERC20: approve to the zero address\");\n\n        _allowances[owner][spender] = amount;\n        emit Approval(owner, spender, amount);\n    }\n\n    /**\n     * @dev Updates `owner` s allowance for `spender` based on spent `amount`.\n     *\n     * Does not update the allowance amount in case of infinite allowance.\n     * Revert if not enough allowance is available.\n     *\n     * Might emit an {Approval} event.\n     */\n    function _spendAllowance(address owner, address spender, uint256 amount) internal virtual {\n        uint256 currentAllowance = allowance(owner, spender);\n        if (currentAllowance != type(uint256).max) {\n            require(currentAllowance >= amount, \"ERC20: insufficient allowance\");\n            unchecked {\n                _approve(owner, spender, currentAllowance - amount);\n            }\n        }\n    }\n\n    /**\n     * @dev Hook that is called before any transfer of tokens. This includes\n     * minting and burning.\n     *\n     * Calling conditions:\n     *\n     * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens\n     * will be transferred to `to`.\n     * - when `from` is zero, `amount` tokens will be minted for `to`.\n     * - when `to` is zero, `amount` of ``from``'s tokens will be burned.\n     * - `from` and `to` are never both zero.\n     *\n     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].\n     */\n    function _beforeTokenTransfer(address from, address to, uint256 amount) internal virtual {}\n\n    /**\n     * @dev Hook that is called after any transfer of tokens. This includes\n     * minting and burning.\n     *\n     * Calling conditions:\n     *\n     * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens\n     * has been transferred to `to`.\n     * - when `from` is zero, `amount` tokens have been minted for `to`.\n     * - when `to` is zero, `amount` of ``from``'s tokens have been burned.\n     * - `from` and `to` are never both zero.\n     *\n     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].\n     */\n    function _afterTokenTransfer(address from, address to, uint256 amount) internal virtual {}\n\n    /**\n     * @dev This empty reserved space is put in place to allow future versions to add new\n     * variables without shifting down storage in the inheritance chain.\n     * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps\n     */\n    uint256[45] private __gap;\n}\n"},{"file_path":"@openzeppelin/contracts-upgradeable/token/ERC20/IERC20Upgradeable.sol","source_code":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v4.9.0) (token/ERC20/IERC20.sol)\n\npragma solidity ^0.8.0;\n\n/**\n * @dev Interface of the ERC20 standard as defined in the EIP.\n */\ninterface IERC20Upgradeable {\n    /**\n     * @dev Emitted when `value` tokens are moved from one account (`from`) to\n     * another (`to`).\n     *\n     * Note that `value` may be zero.\n     */\n    event Transfer(address indexed from, address indexed to, uint256 value);\n\n    /**\n     * @dev Emitted when the allowance of a `spender` for an `owner` is set by\n     * a call to {approve}. `value` is the new allowance.\n     */\n    event Approval(address indexed owner, address indexed spender, uint256 value);\n\n    /**\n     * @dev Returns the amount of tokens in existence.\n     */\n    function totalSupply() external view returns (uint256);\n\n    /**\n     * @dev Returns the amount of tokens owned by `account`.\n     */\n    function balanceOf(address account) external view returns (uint256);\n\n    /**\n     * @dev Moves `amount` tokens from the caller's account to `to`.\n     *\n     * Returns a boolean value indicating whether the operation succeeded.\n     *\n     * Emits a {Transfer} event.\n     */\n    function transfer(address to, uint256 amount) external returns (bool);\n\n    /**\n     * @dev Returns the remaining number of tokens that `spender` will be\n     * allowed to spend on behalf of `owner` through {transferFrom}. This is\n     * zero by default.\n     *\n     * This value changes when {approve} or {transferFrom} are called.\n     */\n    function allowance(address owner, address spender) external view returns (uint256);\n\n    /**\n     * @dev Sets `amount` as the allowance of `spender` over the caller's tokens.\n     *\n     * Returns a boolean value indicating whether the operation succeeded.\n     *\n     * IMPORTANT: Beware that changing an allowance with this method brings the risk\n     * that someone may use both the old and the new allowance by unfortunate\n     * transaction ordering. One possible solution to mitigate this race\n     * condition is to first reduce the spender's allowance to 0 and set the\n     * desired value afterwards:\n     * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729\n     *\n     * Emits an {Approval} event.\n     */\n    function approve(address spender, uint256 amount) external returns (bool);\n\n    /**\n     * @dev Moves `amount` tokens from `from` to `to` using the\n     * allowance mechanism. `amount` is then deducted from the caller's\n     * allowance.\n     *\n     * Returns a boolean value indicating whether the operation succeeded.\n     *\n     * Emits a {Transfer} event.\n     */\n    function transferFrom(address from, address to, uint256 amount) external returns (bool);\n}\n"},{"file_path":"@openzeppelin/contracts-upgradeable/token/ERC20/extensions/ERC20PausableUpgradeable.sol","source_code":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v4.9.0) (token/ERC20/extensions/ERC20Pausable.sol)\n\npragma solidity ^0.8.0;\n\nimport \"../ERC20Upgradeable.sol\";\nimport \"../../../security/PausableUpgradeable.sol\";\nimport {Initializable} from \"../../../proxy/utils/Initializable.sol\";\n\n/**\n * @dev ERC20 token with pausable token transfers, minting and burning.\n *\n * Useful for scenarios such as preventing trades until the end of an evaluation\n * period, or having an emergency switch for freezing all token transfers in the\n * event of a large bug.\n *\n * IMPORTANT: This contract does not include public pause and unpause functions. In\n * addition to inheriting this contract, you must define both functions, invoking the\n * {Pausable-_pause} and {Pausable-_unpause} internal functions, with appropriate\n * access control, e.g. using {AccessControl} or {Ownable}. Not doing so will\n * make the contract unpausable.\n */\nabstract contract ERC20PausableUpgradeable is Initializable, ERC20Upgradeable, PausableUpgradeable {\n    function __ERC20Pausable_init() internal onlyInitializing {\n        __Pausable_init_unchained();\n    }\n\n    function __ERC20Pausable_init_unchained() internal onlyInitializing {\n    }\n    /**\n     * @dev See {ERC20-_beforeTokenTransfer}.\n     *\n     * Requirements:\n     *\n     * - the contract must not be paused.\n     */\n    function _beforeTokenTransfer(address from, address to, uint256 amount) internal virtual override {\n        super._beforeTokenTransfer(from, to, amount);\n\n        require(!paused(), \"ERC20Pausable: token transfer while paused\");\n    }\n\n    /**\n     * @dev This empty reserved space is put in place to allow future versions to add new\n     * variables without shifting down storage in the inheritance chain.\n     * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps\n     */\n    uint256[50] private __gap;\n}\n"},{"file_path":"@openzeppelin/contracts-upgradeable/token/ERC20/extensions/ERC20PermitUpgradeable.sol","source_code":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v4.9.4) (token/ERC20/extensions/ERC20Permit.sol)\n\npragma solidity ^0.8.0;\n\nimport \"./IERC20PermitUpgradeable.sol\";\nimport \"../ERC20Upgradeable.sol\";\nimport \"../../../utils/cryptography/ECDSAUpgradeable.sol\";\nimport \"../../../utils/cryptography/EIP712Upgradeable.sol\";\nimport \"../../../utils/CountersUpgradeable.sol\";\nimport {Initializable} from \"../../../proxy/utils/Initializable.sol\";\n\n/**\n * @dev Implementation of the ERC20 Permit extension allowing approvals to be made via signatures, as defined in\n * https://eips.ethereum.org/EIPS/eip-2612[EIP-2612].\n *\n * Adds the {permit} method, which can be used to change an account's ERC20 allowance (see {IERC20-allowance}) by\n * presenting a message signed by the account. By not relying on `{IERC20-approve}`, the token holder account doesn't\n * need to send a transaction, and thus is not required to hold Ether at all.\n *\n * _Available since v3.4._\n *\n * @custom:storage-size 51\n */\nabstract contract ERC20PermitUpgradeable is Initializable, ERC20Upgradeable, IERC20PermitUpgradeable, EIP712Upgradeable {\n    using CountersUpgradeable for CountersUpgradeable.Counter;\n\n    mapping(address => CountersUpgradeable.Counter) private _nonces;\n\n    // solhint-disable-next-line var-name-mixedcase\n    bytes32 private constant _PERMIT_TYPEHASH =\n        keccak256(\"Permit(address owner,address spender,uint256 value,uint256 nonce,uint256 deadline)\");\n    /**\n     * @dev In previous versions `_PERMIT_TYPEHASH` was declared as `immutable`.\n     * However, to ensure consistency with the upgradeable transpiler, we will continue\n     * to reserve a slot.\n     * @custom:oz-renamed-from _PERMIT_TYPEHASH\n     */\n    // solhint-disable-next-line var-name-mixedcase\n    bytes32 private _PERMIT_TYPEHASH_DEPRECATED_SLOT;\n\n    /**\n     * @dev Initializes the {EIP712} domain separator using the `name` parameter, and setting `version` to `\"1\"`.\n     *\n     * It's a good idea to use the same `name` that is defined as the ERC20 token name.\n     */\n    function __ERC20Permit_init(string memory name) internal onlyInitializing {\n        __EIP712_init_unchained(name, \"1\");\n    }\n\n    function __ERC20Permit_init_unchained(string memory) internal onlyInitializing {}\n\n    /**\n     * @inheritdoc IERC20PermitUpgradeable\n     */\n    function permit(\n        address owner,\n        address spender,\n        uint256 value,\n        uint256 deadline,\n        uint8 v,\n        bytes32 r,\n        bytes32 s\n    ) public virtual override {\n        require(block.timestamp <= deadline, \"ERC20Permit: expired deadline\");\n\n        bytes32 structHash = keccak256(abi.encode(_PERMIT_TYPEHASH, owner, spender, value, _useNonce(owner), deadline));\n\n        bytes32 hash = _hashTypedDataV4(structHash);\n\n        address signer = ECDSAUpgradeable.recover(hash, v, r, s);\n        require(signer == owner, \"ERC20Permit: invalid signature\");\n\n        _approve(owner, spender, value);\n    }\n\n    /**\n     * @inheritdoc IERC20PermitUpgradeable\n     */\n    function nonces(address owner) public view virtual override returns (uint256) {\n        return _nonces[owner].current();\n    }\n\n    /**\n     * @inheritdoc IERC20PermitUpgradeable\n     */\n    // solhint-disable-next-line func-name-mixedcase\n    function DOMAIN_SEPARATOR() external view override returns (bytes32) {\n        return _domainSeparatorV4();\n    }\n\n    /**\n     * @dev \"Consume a nonce\": return the current value and increment.\n     *\n     * _Available since v4.1._\n     */\n    function _useNonce(address owner) internal virtual returns (uint256 current) {\n        CountersUpgradeable.Counter storage nonce = _nonces[owner];\n        current = nonce.current();\n        nonce.increment();\n    }\n\n    /**\n     * @dev This empty reserved space is put in place to allow future versions to add new\n     * variables without shifting down storage in the inheritance chain.\n     * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps\n     */\n    uint256[49] private __gap;\n}\n"},{"file_path":"@openzeppelin/contracts-upgradeable/token/ERC20/extensions/IERC20MetadataUpgradeable.sol","source_code":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/IERC20Metadata.sol)\n\npragma solidity ^0.8.0;\n\nimport \"../IERC20Upgradeable.sol\";\n\n/**\n * @dev Interface for the optional metadata functions from the ERC20 standard.\n *\n * _Available since v4.1._\n */\ninterface IERC20MetadataUpgradeable is IERC20Upgradeable {\n    /**\n     * @dev Returns the name of the token.\n     */\n    function name() external view returns (string memory);\n\n    /**\n     * @dev Returns the symbol of the token.\n     */\n    function symbol() external view returns (string memory);\n\n    /**\n     * @dev Returns the decimals places of the token.\n     */\n    function decimals() external view returns (uint8);\n}\n"},{"file_path":"@openzeppelin/contracts-upgradeable/token/ERC20/extensions/IERC20PermitUpgradeable.sol","source_code":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v4.9.4) (token/ERC20/extensions/IERC20Permit.sol)\n\npragma solidity ^0.8.0;\n\n/**\n * @dev Interface of the ERC20 Permit extension allowing approvals to be made via signatures, as defined in\n * https://eips.ethereum.org/EIPS/eip-2612[EIP-2612].\n *\n * Adds the {permit} method, which can be used to change an account's ERC20 allowance (see {IERC20-allowance}) by\n * presenting a message signed by the account. By not relying on {IERC20-approve}, the token holder account doesn't\n * need to send a transaction, and thus is not required to hold Ether at all.\n *\n * ==== Security Considerations\n *\n * There are two important considerations concerning the use of `permit`. The first is that a valid permit signature\n * expresses an allowance, and it should not be assumed to convey additional meaning. In particular, it should not be\n * considered as an intention to spend the allowance in any specific way. The second is that because permits have\n * built-in replay protection and can be submitted by anyone, they can be frontrun. A protocol that uses permits should\n * take this into consideration and allow a `permit` call to fail. Combining these two aspects, a pattern that may be\n * generally recommended is:\n *\n * ```solidity\n * function doThingWithPermit(..., uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s) public {\n *     try token.permit(msg.sender, address(this), value, deadline, v, r, s) {} catch {}\n *     doThing(..., value);\n * }\n *\n * function doThing(..., uint256 value) public {\n *     token.safeTransferFrom(msg.sender, address(this), value);\n *     ...\n * }\n * ```\n *\n * Observe that: 1) `msg.sender` is used as the owner, leaving no ambiguity as to the signer intent, and 2) the use of\n * `try/catch` allows the permit to fail and makes the code tolerant to frontrunning. (See also\n * {SafeERC20-safeTransferFrom}).\n *\n * Additionally, note that smart contract wallets (such as Argent or Safe) are not able to produce permit signatures, so\n * contracts should have entry points that don't rely on permit.\n */\ninterface IERC20PermitUpgradeable {\n    /**\n     * @dev Sets `value` as the allowance of `spender` over ``owner``'s tokens,\n     * given ``owner``'s signed approval.\n     *\n     * IMPORTANT: The same issues {IERC20-approve} has related to transaction\n     * ordering also apply here.\n     *\n     * Emits an {Approval} event.\n     *\n     * Requirements:\n     *\n     * - `spender` cannot be the zero address.\n     * - `deadline` must be a timestamp in the future.\n     * - `v`, `r` and `s` must be a valid `secp256k1` signature from `owner`\n     * over the EIP712-formatted function arguments.\n     * - the signature must use ``owner``'s current nonce (see {nonces}).\n     *\n     * For more information on the signature format, see the\n     * https://eips.ethereum.org/EIPS/eip-2612#specification[relevant EIP\n     * section].\n     *\n     * CAUTION: See Security Considerations above.\n     */\n    function permit(\n        address owner,\n        address spender,\n        uint256 value,\n        uint256 deadline,\n        uint8 v,\n        bytes32 r,\n        bytes32 s\n    ) external;\n\n    /**\n     * @dev Returns the current nonce for `owner`. This value must be\n     * included whenever a signature is generated for {permit}.\n     *\n     * Every successful call to {permit} increases ``owner``'s nonce by one. This\n     * prevents a signature from being used multiple times.\n     */\n    function nonces(address owner) external view returns (uint256);\n\n    /**\n     * @dev Returns the domain separator used in the encoding of the signature for {permit}, as defined by {EIP712}.\n     */\n    // solhint-disable-next-line func-name-mixedcase\n    function DOMAIN_SEPARATOR() external view returns (bytes32);\n}\n"},{"file_path":"@openzeppelin/contracts-upgradeable/token/ERC20/extensions/draft-ERC20PermitUpgradeable.sol","source_code":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v4.9.0) (token/ERC20/extensions/draft-ERC20Permit.sol)\n\npragma solidity ^0.8.0;\n\n// EIP-2612 is Final as of 2022-11-01. This file is deprecated.\n\nimport \"./ERC20PermitUpgradeable.sol\";\n"},{"file_path":"@openzeppelin/contracts-upgradeable/utils/AddressUpgradeable.sol","source_code":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v4.9.0) (utils/Address.sol)\n\npragma solidity ^0.8.1;\n\n/**\n * @dev Collection of functions related to the address type\n */\nlibrary AddressUpgradeable {\n    /**\n     * @dev Returns true if `account` is a contract.\n     *\n     * [IMPORTANT]\n     * ====\n     * It is unsafe to assume that an address for which this function returns\n     * false is an externally-owned account (EOA) and not a contract.\n     *\n     * Among others, `isContract` will return false for the following\n     * types of addresses:\n     *\n     *  - an externally-owned account\n     *  - a contract in construction\n     *  - an address where a contract will be created\n     *  - an address where a contract lived, but was destroyed\n     *\n     * Furthermore, `isContract` will also return true if the target contract within\n     * the same transaction is already scheduled for destruction by `SELFDESTRUCT`,\n     * which only has an effect at the end of a transaction.\n     * ====\n     *\n     * [IMPORTANT]\n     * ====\n     * You shouldn't rely on `isContract` to protect against flash loan attacks!\n     *\n     * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets\n     * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract\n     * constructor.\n     * ====\n     */\n    function isContract(address account) internal view returns (bool) {\n        // This method relies on extcodesize/address.code.length, which returns 0\n        // for contracts in construction, since the code is only stored at the end\n        // of the constructor execution.\n\n        return account.code.length > 0;\n    }\n\n    /**\n     * @dev Replacement for Solidity's `transfer`: sends `amount` wei to\n     * `recipient`, forwarding all available gas and reverting on errors.\n     *\n     * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost\n     * of certain opcodes, possibly making contracts go over the 2300 gas limit\n     * imposed by `transfer`, making them unable to receive funds via\n     * `transfer`. {sendValue} removes this limitation.\n     *\n     * https://consensys.net/diligence/blog/2019/09/stop-using-soliditys-transfer-now/[Learn more].\n     *\n     * IMPORTANT: because control is transferred to `recipient`, care must be\n     * taken to not create reentrancy vulnerabilities. Consider using\n     * {ReentrancyGuard} or the\n     * https://solidity.readthedocs.io/en/v0.8.0/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].\n     */\n    function sendValue(address payable recipient, uint256 amount) internal {\n        require(address(this).balance >= amount, \"Address: insufficient balance\");\n\n        (bool success, ) = recipient.call{value: amount}(\"\");\n        require(success, \"Address: unable to send value, recipient may have reverted\");\n    }\n\n    /**\n     * @dev Performs a Solidity function call using a low level `call`. A\n     * plain `call` is an unsafe replacement for a function call: use this\n     * function instead.\n     *\n     * If `target` reverts with a revert reason, it is bubbled up by this\n     * function (like regular Solidity function calls).\n     *\n     * Returns the raw returned data. To convert to the expected return value,\n     * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].\n     *\n     * Requirements:\n     *\n     * - `target` must be a contract.\n     * - calling `target` with `data` must not revert.\n     *\n     * _Available since v3.1._\n     */\n    function functionCall(address target, bytes memory data) internal returns (bytes memory) {\n        return functionCallWithValue(target, data, 0, \"Address: low-level call failed\");\n    }\n\n    /**\n     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with\n     * `errorMessage` as a fallback revert reason when `target` reverts.\n     *\n     * _Available since v3.1._\n     */\n    function functionCall(\n        address target,\n        bytes memory data,\n        string memory errorMessage\n    ) internal returns (bytes memory) {\n        return functionCallWithValue(target, data, 0, errorMessage);\n    }\n\n    /**\n     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\n     * but also transferring `value` wei to `target`.\n     *\n     * Requirements:\n     *\n     * - the calling contract must have an ETH balance of at least `value`.\n     * - the called Solidity function must be `payable`.\n     *\n     * _Available since v3.1._\n     */\n    function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) {\n        return functionCallWithValue(target, data, value, \"Address: low-level call with value failed\");\n    }\n\n    /**\n     * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but\n     * with `errorMessage` as a fallback revert reason when `target` reverts.\n     *\n     * _Available since v3.1._\n     */\n    function functionCallWithValue(\n        address target,\n        bytes memory data,\n        uint256 value,\n        string memory errorMessage\n    ) internal returns (bytes memory) {\n        require(address(this).balance >= value, \"Address: insufficient balance for call\");\n        (bool success, bytes memory returndata) = target.call{value: value}(data);\n        return verifyCallResultFromTarget(target, success, returndata, errorMessage);\n    }\n\n    /**\n     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\n     * but performing a static call.\n     *\n     * _Available since v3.3._\n     */\n    function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {\n        return functionStaticCall(target, data, \"Address: low-level static call failed\");\n    }\n\n    /**\n     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],\n     * but performing a static call.\n     *\n     * _Available since v3.3._\n     */\n    function functionStaticCall(\n        address target,\n        bytes memory data,\n        string memory errorMessage\n    ) internal view returns (bytes memory) {\n        (bool success, bytes memory returndata) = target.staticcall(data);\n        return verifyCallResultFromTarget(target, success, returndata, errorMessage);\n    }\n\n    /**\n     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\n     * but performing a delegate call.\n     *\n     * _Available since v3.4._\n     */\n    function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {\n        return functionDelegateCall(target, data, \"Address: low-level delegate call failed\");\n    }\n\n    /**\n     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],\n     * but performing a delegate call.\n     *\n     * _Available since v3.4._\n     */\n    function functionDelegateCall(\n        address target,\n        bytes memory data,\n        string memory errorMessage\n    ) internal returns (bytes memory) {\n        (bool success, bytes memory returndata) = target.delegatecall(data);\n        return verifyCallResultFromTarget(target, success, returndata, errorMessage);\n    }\n\n    /**\n     * @dev Tool to verify that a low level call to smart-contract was successful, and revert (either by bubbling\n     * the revert reason or using the provided one) in case of unsuccessful call or if target was not a contract.\n     *\n     * _Available since v4.8._\n     */\n    function verifyCallResultFromTarget(\n        address target,\n        bool success,\n        bytes memory returndata,\n        string memory errorMessage\n    ) internal view returns (bytes memory) {\n        if (success) {\n            if (returndata.length == 0) {\n                // only check isContract if the call was successful and the return data is empty\n                // otherwise we already know that it was a contract\n                require(isContract(target), \"Address: call to non-contract\");\n            }\n            return returndata;\n        } else {\n            _revert(returndata, errorMessage);\n        }\n    }\n\n    /**\n     * @dev Tool to verify that a low level call was successful, and revert if it wasn't, either by bubbling the\n     * revert reason or using the provided one.\n     *\n     * _Available since v4.3._\n     */\n    function verifyCallResult(\n        bool success,\n        bytes memory returndata,\n        string memory errorMessage\n    ) internal pure returns (bytes memory) {\n        if (success) {\n            return returndata;\n        } else {\n            _revert(returndata, errorMessage);\n        }\n    }\n\n    function _revert(bytes memory returndata, string memory errorMessage) private pure {\n        // Look for revert reason and bubble it up if present\n        if (returndata.length > 0) {\n            // The easiest way to bubble the revert reason is using memory via assembly\n            /// @solidity memory-safe-assembly\n            assembly {\n                let returndata_size := mload(returndata)\n                revert(add(32, returndata), returndata_size)\n            }\n        } else {\n            revert(errorMessage);\n        }\n    }\n}\n"},{"file_path":"@openzeppelin/contracts-upgradeable/utils/ContextUpgradeable.sol","source_code":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v4.9.4) (utils/Context.sol)\n\npragma solidity ^0.8.0;\nimport {Initializable} from \"../proxy/utils/Initializable.sol\";\n\n/**\n * @dev Provides information about the current execution context, including the\n * sender of the transaction and its data. While these are generally available\n * via msg.sender and msg.data, they should not be accessed in such a direct\n * manner, since when dealing with meta-transactions the account sending and\n * paying for execution may not be the actual sender (as far as an application\n * is concerned).\n *\n * This contract is only required for intermediate, library-like contracts.\n */\nabstract contract ContextUpgradeable is Initializable {\n    function __Context_init() internal onlyInitializing {\n    }\n\n    function __Context_init_unchained() internal onlyInitializing {\n    }\n    function _msgSender() internal view virtual returns (address) {\n        return msg.sender;\n    }\n\n    function _msgData() internal view virtual returns (bytes calldata) {\n        return msg.data;\n    }\n\n    function _contextSuffixLength() internal view virtual returns (uint256) {\n        return 0;\n    }\n\n    /**\n     * @dev This empty reserved space is put in place to allow future versions to add new\n     * variables without shifting down storage in the inheritance chain.\n     * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps\n     */\n    uint256[50] private __gap;\n}\n"},{"file_path":"@openzeppelin/contracts-upgradeable/utils/CountersUpgradeable.sol","source_code":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts v4.4.1 (utils/Counters.sol)\n\npragma solidity ^0.8.0;\n\n/**\n * @title Counters\n * @author Matt Condon (@shrugs)\n * @dev Provides counters that can only be incremented, decremented or reset. This can be used e.g. to track the number\n * of elements in a mapping, issuing ERC721 ids, or counting request ids.\n *\n * Include with `using Counters for Counters.Counter;`\n */\nlibrary CountersUpgradeable {\n    struct Counter {\n        // This variable should never be directly accessed by users of the library: interactions must be restricted to\n        // the library's function. As of Solidity v0.5.2, this cannot be enforced, though there is a proposal to add\n        // this feature: see https://github.com/ethereum/solidity/issues/4637\n        uint256 _value; // default: 0\n    }\n\n    function current(Counter storage counter) internal view returns (uint256) {\n        return counter._value;\n    }\n\n    function increment(Counter storage counter) internal {\n        unchecked {\n            counter._value += 1;\n        }\n    }\n\n    function decrement(Counter storage counter) internal {\n        uint256 value = counter._value;\n        require(value > 0, \"Counter: decrement overflow\");\n        unchecked {\n            counter._value = value - 1;\n        }\n    }\n\n    function reset(Counter storage counter) internal {\n        counter._value = 0;\n    }\n}\n"},{"file_path":"@openzeppelin/contracts-upgradeable/utils/StringsUpgradeable.sol","source_code":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v4.9.0) (utils/Strings.sol)\n\npragma solidity ^0.8.0;\n\nimport \"./math/MathUpgradeable.sol\";\nimport \"./math/SignedMathUpgradeable.sol\";\n\n/**\n * @dev String operations.\n */\nlibrary StringsUpgradeable {\n    bytes16 private constant _SYMBOLS = \"0123456789abcdef\";\n    uint8 private constant _ADDRESS_LENGTH = 20;\n\n    /**\n     * @dev Converts a `uint256` to its ASCII `string` decimal representation.\n     */\n    function toString(uint256 value) internal pure returns (string memory) {\n        unchecked {\n            uint256 length = MathUpgradeable.log10(value) + 1;\n            string memory buffer = new string(length);\n            uint256 ptr;\n            /// @solidity memory-safe-assembly\n            assembly {\n                ptr := add(buffer, add(32, length))\n            }\n            while (true) {\n                ptr--;\n                /// @solidity memory-safe-assembly\n                assembly {\n                    mstore8(ptr, byte(mod(value, 10), _SYMBOLS))\n                }\n                value /= 10;\n                if (value == 0) break;\n            }\n            return buffer;\n        }\n    }\n\n    /**\n     * @dev Converts a `int256` to its ASCII `string` decimal representation.\n     */\n    function toString(int256 value) internal pure returns (string memory) {\n        return string(abi.encodePacked(value < 0 ? \"-\" : \"\", toString(SignedMathUpgradeable.abs(value))));\n    }\n\n    /**\n     * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation.\n     */\n    function toHexString(uint256 value) internal pure returns (string memory) {\n        unchecked {\n            return toHexString(value, MathUpgradeable.log256(value) + 1);\n        }\n    }\n\n    /**\n     * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length.\n     */\n    function toHexString(uint256 value, uint256 length) internal pure returns (string memory) {\n        bytes memory buffer = new bytes(2 * length + 2);\n        buffer[0] = \"0\";\n        buffer[1] = \"x\";\n        for (uint256 i = 2 * length + 1; i > 1; --i) {\n            buffer[i] = _SYMBOLS[value & 0xf];\n            value >>= 4;\n        }\n        require(value == 0, \"Strings: hex length insufficient\");\n        return string(buffer);\n    }\n\n    /**\n     * @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal representation.\n     */\n    function toHexString(address addr) internal pure returns (string memory) {\n        return toHexString(uint256(uint160(addr)), _ADDRESS_LENGTH);\n    }\n\n    /**\n     * @dev Returns true if the two strings are equal.\n     */\n    function equal(string memory a, string memory b) internal pure returns (bool) {\n        return keccak256(bytes(a)) == keccak256(bytes(b));\n    }\n}\n"},{"file_path":"@openzeppelin/contracts-upgradeable/utils/cryptography/ECDSAUpgradeable.sol","source_code":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v4.9.0) (utils/cryptography/ECDSA.sol)\n\npragma solidity ^0.8.0;\n\nimport \"../StringsUpgradeable.sol\";\n\n/**\n * @dev Elliptic Curve Digital Signature Algorithm (ECDSA) operations.\n *\n * These functions can be used to verify that a message was signed by the holder\n * of the private keys of a given address.\n */\nlibrary ECDSAUpgradeable {\n    enum RecoverError {\n        NoError,\n        InvalidSignature,\n        InvalidSignatureLength,\n        InvalidSignatureS,\n        InvalidSignatureV // Deprecated in v4.8\n    }\n\n    function _throwError(RecoverError error) private pure {\n        if (error == RecoverError.NoError) {\n            return; // no error: do nothing\n        } else if (error == RecoverError.InvalidSignature) {\n            revert(\"ECDSA: invalid signature\");\n        } else if (error == RecoverError.InvalidSignatureLength) {\n            revert(\"ECDSA: invalid signature length\");\n        } else if (error == RecoverError.InvalidSignatureS) {\n            revert(\"ECDSA: invalid signature 's' value\");\n        }\n    }\n\n    /**\n     * @dev Returns the address that signed a hashed message (`hash`) with\n     * `signature` or error string. This address can then be used for verification purposes.\n     *\n     * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures:\n     * this function rejects them by requiring the `s` value to be in the lower\n     * half order, and the `v` value to be either 27 or 28.\n     *\n     * IMPORTANT: `hash` _must_ be the result of a hash operation for the\n     * verification to be secure: it is possible to craft signatures that\n     * recover to arbitrary addresses for non-hashed data. A safe way to ensure\n     * this is by receiving a hash of the original message (which may otherwise\n     * be too long), and then calling {toEthSignedMessageHash} on it.\n     *\n     * Documentation for signature generation:\n     * - with https://web3js.readthedocs.io/en/v1.3.4/web3-eth-accounts.html#sign[Web3.js]\n     * - with https://docs.ethers.io/v5/api/signer/#Signer-signMessage[ethers]\n     *\n     * _Available since v4.3._\n     */\n    function tryRecover(bytes32 hash, bytes memory signature) internal pure returns (address, RecoverError) {\n        if (signature.length == 65) {\n            bytes32 r;\n            bytes32 s;\n            uint8 v;\n            // ecrecover takes the signature parameters, and the only way to get them\n            // currently is to use assembly.\n            /// @solidity memory-safe-assembly\n            assembly {\n                r := mload(add(signature, 0x20))\n                s := mload(add(signature, 0x40))\n                v := byte(0, mload(add(signature, 0x60)))\n            }\n            return tryRecover(hash, v, r, s);\n        } else {\n            return (address(0), RecoverError.InvalidSignatureLength);\n        }\n    }\n\n    /**\n     * @dev Returns the address that signed a hashed message (`hash`) with\n     * `signature`. This address can then be used for verification purposes.\n     *\n     * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures:\n     * this function rejects them by requiring the `s` value to be in the lower\n     * half order, and the `v` value to be either 27 or 28.\n     *\n     * IMPORTANT: `hash` _must_ be the result of a hash operation for the\n     * verification to be secure: it is possible to craft signatures that\n     * recover to arbitrary addresses for non-hashed data. A safe way to ensure\n     * this is by receiving a hash of the original message (which may otherwise\n     * be too long), and then calling {toEthSignedMessageHash} on it.\n     */\n    function recover(bytes32 hash, bytes memory signature) internal pure returns (address) {\n        (address recovered, RecoverError error) = tryRecover(hash, signature);\n        _throwError(error);\n        return recovered;\n    }\n\n    /**\n     * @dev Overload of {ECDSA-tryRecover} that receives the `r` and `vs` short-signature fields separately.\n     *\n     * See https://eips.ethereum.org/EIPS/eip-2098[EIP-2098 short signatures]\n     *\n     * _Available since v4.3._\n     */\n    function tryRecover(bytes32 hash, bytes32 r, bytes32 vs) internal pure returns (address, RecoverError) {\n        bytes32 s = vs & bytes32(0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff);\n        uint8 v = uint8((uint256(vs) >> 255) + 27);\n        return tryRecover(hash, v, r, s);\n    }\n\n    /**\n     * @dev Overload of {ECDSA-recover} that receives the `r and `vs` short-signature fields separately.\n     *\n     * _Available since v4.2._\n     */\n    function recover(bytes32 hash, bytes32 r, bytes32 vs) internal pure returns (address) {\n        (address recovered, RecoverError error) = tryRecover(hash, r, vs);\n        _throwError(error);\n        return recovered;\n    }\n\n    /**\n     * @dev Overload of {ECDSA-tryRecover} that receives the `v`,\n     * `r` and `s` signature fields separately.\n     *\n     * _Available since v4.3._\n     */\n    function tryRecover(bytes32 hash, uint8 v, bytes32 r, bytes32 s) internal pure returns (address, RecoverError) {\n        // EIP-2 still allows signature malleability for ecrecover(). Remove this possibility and make the signature\n        // unique. Appendix F in the Ethereum Yellow paper (https://ethereum.github.io/yellowpaper/paper.pdf), defines\n        // the valid range for s in (301): 0 < s < secp256k1n ÷ 2 + 1, and for v in (302): v ∈ {27, 28}. Most\n        // signatures from current libraries generate a unique signature with an s-value in the lower half order.\n        //\n        // If your library generates malleable signatures, such as s-values in the upper range, calculate a new s-value\n        // with 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364141 - s1 and flip v from 27 to 28 or\n        // vice versa. If your library also generates signatures with 0/1 for v instead 27/28, add 27 to v to accept\n        // these malleable signatures as well.\n        if (uint256(s) > 0x7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF5D576E7357A4501DDFE92F46681B20A0) {\n            return (address(0), RecoverError.InvalidSignatureS);\n        }\n\n        // If the signature is valid (and not malleable), return the signer address\n        address signer = ecrecover(hash, v, r, s);\n        if (signer == address(0)) {\n            return (address(0), RecoverError.InvalidSignature);\n        }\n\n        return (signer, RecoverError.NoError);\n    }\n\n    /**\n     * @dev Overload of {ECDSA-recover} that receives the `v`,\n     * `r` and `s` signature fields separately.\n     */\n    function recover(bytes32 hash, uint8 v, bytes32 r, bytes32 s) internal pure returns (address) {\n        (address recovered, RecoverError error) = tryRecover(hash, v, r, s);\n        _throwError(error);\n        return recovered;\n    }\n\n    /**\n     * @dev Returns an Ethereum Signed Message, created from a `hash`. This\n     * produces hash corresponding to the one signed with the\n     * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`]\n     * JSON-RPC method as part of EIP-191.\n     *\n     * See {recover}.\n     */\n    function toEthSignedMessageHash(bytes32 hash) internal pure returns (bytes32 message) {\n        // 32 is the length in bytes of hash,\n        // enforced by the type signature above\n        /// @solidity memory-safe-assembly\n        assembly {\n            mstore(0x00, \"\\x19Ethereum Signed Message:\\n32\")\n            mstore(0x1c, hash)\n            message := keccak256(0x00, 0x3c)\n        }\n    }\n\n    /**\n     * @dev Returns an Ethereum Signed Message, created from `s`. This\n     * produces hash corresponding to the one signed with the\n     * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`]\n     * JSON-RPC method as part of EIP-191.\n     *\n     * See {recover}.\n     */\n    function toEthSignedMessageHash(bytes memory s) internal pure returns (bytes32) {\n        return keccak256(abi.encodePacked(\"\\x19Ethereum Signed Message:\\n\", StringsUpgradeable.toString(s.length), s));\n    }\n\n    /**\n     * @dev Returns an Ethereum Signed Typed Data, created from a\n     * `domainSeparator` and a `structHash`. This produces hash corresponding\n     * to the one signed with the\n     * https://eips.ethereum.org/EIPS/eip-712[`eth_signTypedData`]\n     * JSON-RPC method as part of EIP-712.\n     *\n     * See {recover}.\n     */\n    function toTypedDataHash(bytes32 domainSeparator, bytes32 structHash) internal pure returns (bytes32 data) {\n        /// @solidity memory-safe-assembly\n        assembly {\n            let ptr := mload(0x40)\n            mstore(ptr, \"\\x19\\x01\")\n            mstore(add(ptr, 0x02), domainSeparator)\n            mstore(add(ptr, 0x22), structHash)\n            data := keccak256(ptr, 0x42)\n        }\n    }\n\n    /**\n     * @dev Returns an Ethereum Signed Data with intended validator, created from a\n     * `validator` and `data` according to the version 0 of EIP-191.\n     *\n     * See {recover}.\n     */\n    function toDataWithIntendedValidatorHash(address validator, bytes memory data) internal pure returns (bytes32) {\n        return keccak256(abi.encodePacked(\"\\x19\\x00\", validator, data));\n    }\n}\n"},{"file_path":"@openzeppelin/contracts-upgradeable/utils/cryptography/EIP712Upgradeable.sol","source_code":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v4.9.0) (utils/cryptography/EIP712.sol)\n\npragma solidity ^0.8.8;\n\nimport \"./ECDSAUpgradeable.sol\";\nimport \"../../interfaces/IERC5267Upgradeable.sol\";\nimport {Initializable} from \"../../proxy/utils/Initializable.sol\";\n\n/**\n * @dev https://eips.ethereum.org/EIPS/eip-712[EIP 712] is a standard for hashing and signing of typed structured data.\n *\n * The encoding specified in the EIP is very generic, and such a generic implementation in Solidity is not feasible,\n * thus this contract does not implement the encoding itself. Protocols need to implement the type-specific encoding\n * they need in their contracts using a combination of `abi.encode` and `keccak256`.\n *\n * This contract implements the EIP 712 domain separator ({_domainSeparatorV4}) that is used as part of the encoding\n * scheme, and the final step of the encoding to obtain the message digest that is then signed via ECDSA\n * ({_hashTypedDataV4}).\n *\n * The implementation of the domain separator was designed to be as efficient as possible while still properly updating\n * the chain id to protect against replay attacks on an eventual fork of the chain.\n *\n * NOTE: This contract implements the version of the encoding known as \"v4\", as implemented by the JSON RPC method\n * https://docs.metamask.io/guide/signing-data.html[`eth_signTypedDataV4` in MetaMask].\n *\n * NOTE: In the upgradeable version of this contract, the cached values will correspond to the address, and the domain\n * separator of the implementation contract. This will cause the `_domainSeparatorV4` function to always rebuild the\n * separator from the immutable values, which is cheaper than accessing a cached version in cold storage.\n *\n * _Available since v3.4._\n *\n * @custom:storage-size 52\n */\nabstract contract EIP712Upgradeable is Initializable, IERC5267Upgradeable {\n    bytes32 private constant _TYPE_HASH =\n        keccak256(\"EIP712Domain(string name,string version,uint256 chainId,address verifyingContract)\");\n\n    /// @custom:oz-renamed-from _HASHED_NAME\n    bytes32 private _hashedName;\n    /// @custom:oz-renamed-from _HASHED_VERSION\n    bytes32 private _hashedVersion;\n\n    string private _name;\n    string private _version;\n\n    /**\n     * @dev Initializes the domain separator and parameter caches.\n     *\n     * The meaning of `name` and `version` is specified in\n     * https://eips.ethereum.org/EIPS/eip-712#definition-of-domainseparator[EIP 712]:\n     *\n     * - `name`: the user readable name of the signing domain, i.e. the name of the DApp or the protocol.\n     * - `version`: the current major version of the signing domain.\n     *\n     * NOTE: These parameters cannot be changed except through a xref:learn::upgrading-smart-contracts.adoc[smart\n     * contract upgrade].\n     */\n    function __EIP712_init(string memory name, string memory version) internal onlyInitializing {\n        __EIP712_init_unchained(name, version);\n    }\n\n    function __EIP712_init_unchained(string memory name, string memory version) internal onlyInitializing {\n        _name = name;\n        _version = version;\n\n        // Reset prior values in storage if upgrading\n        _hashedName = 0;\n        _hashedVersion = 0;\n    }\n\n    /**\n     * @dev Returns the domain separator for the current chain.\n     */\n    function _domainSeparatorV4() internal view returns (bytes32) {\n        return _buildDomainSeparator();\n    }\n\n    function _buildDomainSeparator() private view returns (bytes32) {\n        return keccak256(abi.encode(_TYPE_HASH, _EIP712NameHash(), _EIP712VersionHash(), block.chainid, address(this)));\n    }\n\n    /**\n     * @dev Given an already https://eips.ethereum.org/EIPS/eip-712#definition-of-hashstruct[hashed struct], this\n     * function returns the hash of the fully encoded EIP712 message for this domain.\n     *\n     * This hash can be used together with {ECDSA-recover} to obtain the signer of a message. For example:\n     *\n     * ```solidity\n     * bytes32 digest = _hashTypedDataV4(keccak256(abi.encode(\n     *     keccak256(\"Mail(address to,string contents)\"),\n     *     mailTo,\n     *     keccak256(bytes(mailContents))\n     * )));\n     * address signer = ECDSA.recover(digest, signature);\n     * ```\n     */\n    function _hashTypedDataV4(bytes32 structHash) internal view virtual returns (bytes32) {\n        return ECDSAUpgradeable.toTypedDataHash(_domainSeparatorV4(), structHash);\n    }\n\n    /**\n     * @dev See {EIP-5267}.\n     *\n     * _Available since v4.9._\n     */\n    function eip712Domain()\n        public\n        view\n        virtual\n        override\n        returns (\n            bytes1 fields,\n            string memory name,\n            string memory version,\n            uint256 chainId,\n            address verifyingContract,\n            bytes32 salt,\n            uint256[] memory extensions\n        )\n    {\n        // If the hashed name and version in storage are non-zero, the contract hasn't been properly initialized\n        // and the EIP712 domain is not reliable, as it will be missing name and version.\n        require(_hashedName == 0 && _hashedVersion == 0, \"EIP712: Uninitialized\");\n\n        return (\n            hex\"0f\", // 01111\n            _EIP712Name(),\n            _EIP712Version(),\n            block.chainid,\n            address(this),\n            bytes32(0),\n            new uint256[](0)\n        );\n    }\n\n    /**\n     * @dev The name parameter for the EIP712 domain.\n     *\n     * NOTE: This function reads from storage by default, but can be redefined to return a constant value if gas costs\n     * are a concern.\n     */\n    function _EIP712Name() internal virtual view returns (string memory) {\n        return _name;\n    }\n\n    /**\n     * @dev The version parameter for the EIP712 domain.\n     *\n     * NOTE: This function reads from storage by default, but can be redefined to return a constant value if gas costs\n     * are a concern.\n     */\n    function _EIP712Version() internal virtual view returns (string memory) {\n        return _version;\n    }\n\n    /**\n     * @dev The hash of the name parameter for the EIP712 domain.\n     *\n     * NOTE: In previous versions this function was virtual. In this version you should override `_EIP712Name` instead.\n     */\n    function _EIP712NameHash() internal view returns (bytes32) {\n        string memory name = _EIP712Name();\n        if (bytes(name).length > 0) {\n            return keccak256(bytes(name));\n        } else {\n            // If the name is empty, the contract may have been upgraded without initializing the new storage.\n            // We return the name hash in storage if non-zero, otherwise we assume the name is empty by design.\n            bytes32 hashedName = _hashedName;\n            if (hashedName != 0) {\n                return hashedName;\n            } else {\n                return keccak256(\"\");\n            }\n        }\n    }\n\n    /**\n     * @dev The hash of the version parameter for the EIP712 domain.\n     *\n     * NOTE: In previous versions this function was virtual. In this version you should override `_EIP712Version` instead.\n     */\n    function _EIP712VersionHash() internal view returns (bytes32) {\n        string memory version = _EIP712Version();\n        if (bytes(version).length > 0) {\n            return keccak256(bytes(version));\n        } else {\n            // If the version is empty, the contract may have been upgraded without initializing the new storage.\n            // We return the version hash in storage if non-zero, otherwise we assume the version is empty by design.\n            bytes32 hashedVersion = _hashedVersion;\n            if (hashedVersion != 0) {\n                return hashedVersion;\n            } else {\n                return keccak256(\"\");\n            }\n        }\n    }\n\n    /**\n     * @dev This empty reserved space is put in place to allow future versions to add new\n     * variables without shifting down storage in the inheritance chain.\n     * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps\n     */\n    uint256[48] private __gap;\n}\n"},{"file_path":"@openzeppelin/contracts-upgradeable/utils/math/MathUpgradeable.sol","source_code":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v4.9.0) (utils/math/Math.sol)\n\npragma solidity ^0.8.0;\n\n/**\n * @dev Standard math utilities missing in the Solidity language.\n */\nlibrary MathUpgradeable {\n    enum Rounding {\n        Down, // Toward negative infinity\n        Up, // Toward infinity\n        Zero // Toward zero\n    }\n\n    /**\n     * @dev Returns the largest of two numbers.\n     */\n    function max(uint256 a, uint256 b) internal pure returns (uint256) {\n        return a > b ? a : b;\n    }\n\n    /**\n     * @dev Returns the smallest of two numbers.\n     */\n    function min(uint256 a, uint256 b) internal pure returns (uint256) {\n        return a < b ? a : b;\n    }\n\n    /**\n     * @dev Returns the average of two numbers. The result is rounded towards\n     * zero.\n     */\n    function average(uint256 a, uint256 b) internal pure returns (uint256) {\n        // (a + b) / 2 can overflow.\n        return (a & b) + (a ^ b) / 2;\n    }\n\n    /**\n     * @dev Returns the ceiling of the division of two numbers.\n     *\n     * This differs from standard division with `/` in that it rounds up instead\n     * of rounding down.\n     */\n    function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) {\n        // (a + b - 1) / b can overflow on addition, so we distribute.\n        return a == 0 ? 0 : (a - 1) / b + 1;\n    }\n\n    /**\n     * @notice Calculates floor(x * y / denominator) with full precision. Throws if result overflows a uint256 or denominator == 0\n     * @dev Original credit to Remco Bloemen under MIT license (https://xn--2-umb.com/21/muldiv)\n     * with further edits by Uniswap Labs also under MIT license.\n     */\n    function mulDiv(uint256 x, uint256 y, uint256 denominator) internal pure returns (uint256 result) {\n        unchecked {\n            // 512-bit multiply [prod1 prod0] = x * y. Compute the product mod 2^256 and mod 2^256 - 1, then use\n            // use the Chinese Remainder Theorem to reconstruct the 512 bit result. The result is stored in two 256\n            // variables such that product = prod1 * 2^256 + prod0.\n            uint256 prod0; // Least significant 256 bits of the product\n            uint256 prod1; // Most significant 256 bits of the product\n            assembly {\n                let mm := mulmod(x, y, not(0))\n                prod0 := mul(x, y)\n                prod1 := sub(sub(mm, prod0), lt(mm, prod0))\n            }\n\n            // Handle non-overflow cases, 256 by 256 division.\n            if (prod1 == 0) {\n                // Solidity will revert if denominator == 0, unlike the div opcode on its own.\n                // The surrounding unchecked block does not change this fact.\n                // See https://docs.soliditylang.org/en/latest/control-structures.html#checked-or-unchecked-arithmetic.\n                return prod0 / denominator;\n            }\n\n            // Make sure the result is less than 2^256. Also prevents denominator == 0.\n            require(denominator > prod1, \"Math: mulDiv overflow\");\n\n            ///////////////////////////////////////////////\n            // 512 by 256 division.\n            ///////////////////////////////////////////////\n\n            // Make division exact by subtracting the remainder from [prod1 prod0].\n            uint256 remainder;\n            assembly {\n                // Compute remainder using mulmod.\n                remainder := mulmod(x, y, denominator)\n\n                // Subtract 256 bit number from 512 bit number.\n                prod1 := sub(prod1, gt(remainder, prod0))\n                prod0 := sub(prod0, remainder)\n            }\n\n            // Factor powers of two out of denominator and compute largest power of two divisor of denominator. Always >= 1.\n            // See https://cs.stackexchange.com/q/138556/92363.\n\n            // Does not overflow because the denominator cannot be zero at this stage in the function.\n            uint256 twos = denominator & (~denominator + 1);\n            assembly {\n                // Divide denominator by twos.\n                denominator := div(denominator, twos)\n\n                // Divide [prod1 prod0] by twos.\n                prod0 := div(prod0, twos)\n\n                // Flip twos such that it is 2^256 / twos. If twos is zero, then it becomes one.\n                twos := add(div(sub(0, twos), twos), 1)\n            }\n\n            // Shift in bits from prod1 into prod0.\n            prod0 |= prod1 * twos;\n\n            // Invert denominator mod 2^256. Now that denominator is an odd number, it has an inverse modulo 2^256 such\n            // that denominator * inv = 1 mod 2^256. Compute the inverse by starting with a seed that is correct for\n            // four bits. That is, denominator * inv = 1 mod 2^4.\n            uint256 inverse = (3 * denominator) ^ 2;\n\n            // Use the Newton-Raphson iteration to improve the precision. Thanks to Hensel's lifting lemma, this also works\n            // in modular arithmetic, doubling the correct bits in each step.\n            inverse *= 2 - denominator * inverse; // inverse mod 2^8\n            inverse *= 2 - denominator * inverse; // inverse mod 2^16\n            inverse *= 2 - denominator * inverse; // inverse mod 2^32\n            inverse *= 2 - denominator * inverse; // inverse mod 2^64\n            inverse *= 2 - denominator * inverse; // inverse mod 2^128\n            inverse *= 2 - denominator * inverse; // inverse mod 2^256\n\n            // Because the division is now exact we can divide by multiplying with the modular inverse of denominator.\n            // This will give us the correct result modulo 2^256. Since the preconditions guarantee that the outcome is\n            // less than 2^256, this is the final result. We don't need to compute the high bits of the result and prod1\n            // is no longer required.\n            result = prod0 * inverse;\n            return result;\n        }\n    }\n\n    /**\n     * @notice Calculates x * y / denominator with full precision, following the selected rounding direction.\n     */\n    function mulDiv(uint256 x, uint256 y, uint256 denominator, Rounding rounding) internal pure returns (uint256) {\n        uint256 result = mulDiv(x, y, denominator);\n        if (rounding == Rounding.Up && mulmod(x, y, denominator) > 0) {\n            result += 1;\n        }\n        return result;\n    }\n\n    /**\n     * @dev Returns the square root of a number. If the number is not a perfect square, the value is rounded down.\n     *\n     * Inspired by Henry S. Warren, Jr.'s \"Hacker's Delight\" (Chapter 11).\n     */\n    function sqrt(uint256 a) internal pure returns (uint256) {\n        if (a == 0) {\n            return 0;\n        }\n\n        // For our first guess, we get the biggest power of 2 which is smaller than the square root of the target.\n        //\n        // We know that the \"msb\" (most significant bit) of our target number `a` is a power of 2 such that we have\n        // `msb(a) <= a < 2*msb(a)`. This value can be written `msb(a)=2**k` with `k=log2(a)`.\n        //\n        // This can be rewritten `2**log2(a) <= a < 2**(log2(a) + 1)`\n        // → `sqrt(2**k) <= sqrt(a) < sqrt(2**(k+1))`\n        // → `2**(k/2) <= sqrt(a) < 2**((k+1)/2) <= 2**(k/2 + 1)`\n        //\n        // Consequently, `2**(log2(a) / 2)` is a good first approximation of `sqrt(a)` with at least 1 correct bit.\n        uint256 result = 1 << (log2(a) >> 1);\n\n        // At this point `result` is an estimation with one bit of precision. We know the true value is a uint128,\n        // since it is the square root of a uint256. Newton's method converges quadratically (precision doubles at\n        // every iteration). We thus need at most 7 iteration to turn our partial result with one bit of precision\n        // into the expected uint128 result.\n        unchecked {\n            result = (result + a / result) >> 1;\n            result = (result + a / result) >> 1;\n            result = (result + a / result) >> 1;\n            result = (result + a / result) >> 1;\n            result = (result + a / result) >> 1;\n            result = (result + a / result) >> 1;\n            result = (result + a / result) >> 1;\n            return min(result, a / result);\n        }\n    }\n\n    /**\n     * @notice Calculates sqrt(a), following the selected rounding direction.\n     */\n    function sqrt(uint256 a, Rounding rounding) internal pure returns (uint256) {\n        unchecked {\n            uint256 result = sqrt(a);\n            return result + (rounding == Rounding.Up && result * result < a ? 1 : 0);\n        }\n    }\n\n    /**\n     * @dev Return the log in base 2, rounded down, of a positive value.\n     * Returns 0 if given 0.\n     */\n    function log2(uint256 value) internal pure returns (uint256) {\n        uint256 result = 0;\n        unchecked {\n            if (value >> 128 > 0) {\n                value >>= 128;\n                result += 128;\n            }\n            if (value >> 64 > 0) {\n                value >>= 64;\n                result += 64;\n            }\n            if (value >> 32 > 0) {\n                value >>= 32;\n                result += 32;\n            }\n            if (value >> 16 > 0) {\n                value >>= 16;\n                result += 16;\n            }\n            if (value >> 8 > 0) {\n                value >>= 8;\n                result += 8;\n            }\n            if (value >> 4 > 0) {\n                value >>= 4;\n                result += 4;\n            }\n            if (value >> 2 > 0) {\n                value >>= 2;\n                result += 2;\n            }\n            if (value >> 1 > 0) {\n                result += 1;\n            }\n        }\n        return result;\n    }\n\n    /**\n     * @dev Return the log in base 2, following the selected rounding direction, of a positive value.\n     * Returns 0 if given 0.\n     */\n    function log2(uint256 value, Rounding rounding) internal pure returns (uint256) {\n        unchecked {\n            uint256 result = log2(value);\n            return result + (rounding == Rounding.Up && 1 << result < value ? 1 : 0);\n        }\n    }\n\n    /**\n     * @dev Return the log in base 10, rounded down, of a positive value.\n     * Returns 0 if given 0.\n     */\n    function log10(uint256 value) internal pure returns (uint256) {\n        uint256 result = 0;\n        unchecked {\n            if (value >= 10 ** 64) {\n                value /= 10 ** 64;\n                result += 64;\n            }\n            if (value >= 10 ** 32) {\n                value /= 10 ** 32;\n                result += 32;\n            }\n            if (value >= 10 ** 16) {\n                value /= 10 ** 16;\n                result += 16;\n            }\n            if (value >= 10 ** 8) {\n                value /= 10 ** 8;\n                result += 8;\n            }\n            if (value >= 10 ** 4) {\n                value /= 10 ** 4;\n                result += 4;\n            }\n            if (value >= 10 ** 2) {\n                value /= 10 ** 2;\n                result += 2;\n            }\n            if (value >= 10 ** 1) {\n                result += 1;\n            }\n        }\n        return result;\n    }\n\n    /**\n     * @dev Return the log in base 10, following the selected rounding direction, of a positive value.\n     * Returns 0 if given 0.\n     */\n    function log10(uint256 value, Rounding rounding) internal pure returns (uint256) {\n        unchecked {\n            uint256 result = log10(value);\n            return result + (rounding == Rounding.Up && 10 ** result < value ? 1 : 0);\n        }\n    }\n\n    /**\n     * @dev Return the log in base 256, rounded down, of a positive value.\n     * Returns 0 if given 0.\n     *\n     * Adding one to the result gives the number of pairs of hex symbols needed to represent `value` as a hex string.\n     */\n    function log256(uint256 value) internal pure returns (uint256) {\n        uint256 result = 0;\n        unchecked {\n            if (value >> 128 > 0) {\n                value >>= 128;\n                result += 16;\n            }\n            if (value >> 64 > 0) {\n                value >>= 64;\n                result += 8;\n            }\n            if (value >> 32 > 0) {\n                value >>= 32;\n                result += 4;\n            }\n            if (value >> 16 > 0) {\n                value >>= 16;\n                result += 2;\n            }\n            if (value >> 8 > 0) {\n                result += 1;\n            }\n        }\n        return result;\n    }\n\n    /**\n     * @dev Return the log in base 256, following the selected rounding direction, of a positive value.\n     * Returns 0 if given 0.\n     */\n    function log256(uint256 value, Rounding rounding) internal pure returns (uint256) {\n        unchecked {\n            uint256 result = log256(value);\n            return result + (rounding == Rounding.Up && 1 << (result << 3) < value ? 1 : 0);\n        }\n    }\n}\n"},{"file_path":"@openzeppelin/contracts-upgradeable/utils/math/SignedMathUpgradeable.sol","source_code":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v4.8.0) (utils/math/SignedMath.sol)\n\npragma solidity ^0.8.0;\n\n/**\n * @dev Standard signed math utilities missing in the Solidity language.\n */\nlibrary SignedMathUpgradeable {\n    /**\n     * @dev Returns the largest of two signed numbers.\n     */\n    function max(int256 a, int256 b) internal pure returns (int256) {\n        return a > b ? a : b;\n    }\n\n    /**\n     * @dev Returns the smallest of two signed numbers.\n     */\n    function min(int256 a, int256 b) internal pure returns (int256) {\n        return a < b ? a : b;\n    }\n\n    /**\n     * @dev Returns the average of two signed numbers without overflow.\n     * The result is rounded towards zero.\n     */\n    function average(int256 a, int256 b) internal pure returns (int256) {\n        // Formula from the book \"Hacker's Delight\"\n        int256 x = (a & b) + ((a ^ b) >> 1);\n        return x + (int256(uint256(x) >> 255) & (a ^ b));\n    }\n\n    /**\n     * @dev Returns the absolute unsigned value of a signed value.\n     */\n    function abs(int256 n) internal pure returns (uint256) {\n        unchecked {\n            // must be unchecked in order to support `n = type(int256).min`\n            return uint256(n >= 0 ? n : -n);\n        }\n    }\n}\n"},{"file_path":"@openzeppelin/contracts/utils/math/SafeMath.sol","source_code":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v4.9.0) (utils/math/SafeMath.sol)\n\npragma solidity ^0.8.0;\n\n// CAUTION\n// This version of SafeMath should only be used with Solidity 0.8 or later,\n// because it relies on the compiler's built in overflow checks.\n\n/**\n * @dev Wrappers over Solidity's arithmetic operations.\n *\n * NOTE: `SafeMath` is generally not needed starting with Solidity 0.8, since the compiler\n * now has built in overflow checking.\n */\nlibrary SafeMath {\n    /**\n     * @dev Returns the addition of two unsigned integers, with an overflow flag.\n     *\n     * _Available since v3.4._\n     */\n    function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) {\n        unchecked {\n            uint256 c = a + b;\n            if (c < a) return (false, 0);\n            return (true, c);\n        }\n    }\n\n    /**\n     * @dev Returns the subtraction of two unsigned integers, with an overflow flag.\n     *\n     * _Available since v3.4._\n     */\n    function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) {\n        unchecked {\n            if (b > a) return (false, 0);\n            return (true, a - b);\n        }\n    }\n\n    /**\n     * @dev Returns the multiplication of two unsigned integers, with an overflow flag.\n     *\n     * _Available since v3.4._\n     */\n    function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) {\n        unchecked {\n            // Gas optimization: this is cheaper than requiring 'a' not being zero, but the\n            // benefit is lost if 'b' is also tested.\n            // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522\n            if (a == 0) return (true, 0);\n            uint256 c = a * b;\n            if (c / a != b) return (false, 0);\n            return (true, c);\n        }\n    }\n\n    /**\n     * @dev Returns the division of two unsigned integers, with a division by zero flag.\n     *\n     * _Available since v3.4._\n     */\n    function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) {\n        unchecked {\n            if (b == 0) return (false, 0);\n            return (true, a / b);\n        }\n    }\n\n    /**\n     * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag.\n     *\n     * _Available since v3.4._\n     */\n    function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) {\n        unchecked {\n            if (b == 0) return (false, 0);\n            return (true, a % b);\n        }\n    }\n\n    /**\n     * @dev Returns the addition of two unsigned integers, reverting on\n     * overflow.\n     *\n     * Counterpart to Solidity's `+` operator.\n     *\n     * Requirements:\n     *\n     * - Addition cannot overflow.\n     */\n    function add(uint256 a, uint256 b) internal pure returns (uint256) {\n        return a + b;\n    }\n\n    /**\n     * @dev Returns the subtraction of two unsigned integers, reverting on\n     * overflow (when the result is negative).\n     *\n     * Counterpart to Solidity's `-` operator.\n     *\n     * Requirements:\n     *\n     * - Subtraction cannot overflow.\n     */\n    function sub(uint256 a, uint256 b) internal pure returns (uint256) {\n        return a - b;\n    }\n\n    /**\n     * @dev Returns the multiplication of two unsigned integers, reverting on\n     * overflow.\n     *\n     * Counterpart to Solidity's `*` operator.\n     *\n     * Requirements:\n     *\n     * - Multiplication cannot overflow.\n     */\n    function mul(uint256 a, uint256 b) internal pure returns (uint256) {\n        return a * b;\n    }\n\n    /**\n     * @dev Returns the integer division of two unsigned integers, reverting on\n     * division by zero. The result is rounded towards zero.\n     *\n     * Counterpart to Solidity's `/` operator.\n     *\n     * Requirements:\n     *\n     * - The divisor cannot be zero.\n     */\n    function div(uint256 a, uint256 b) internal pure returns (uint256) {\n        return a / b;\n    }\n\n    /**\n     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),\n     * reverting when dividing by zero.\n     *\n     * Counterpart to Solidity's `%` operator. This function uses a `revert`\n     * opcode (which leaves remaining gas untouched) while Solidity uses an\n     * invalid opcode to revert (consuming all remaining gas).\n     *\n     * Requirements:\n     *\n     * - The divisor cannot be zero.\n     */\n    function mod(uint256 a, uint256 b) internal pure returns (uint256) {\n        return a % b;\n    }\n\n    /**\n     * @dev Returns the subtraction of two unsigned integers, reverting with custom message on\n     * overflow (when the result is negative).\n     *\n     * CAUTION: This function is deprecated because it requires allocating memory for the error\n     * message unnecessarily. For custom revert reasons use {trySub}.\n     *\n     * Counterpart to Solidity's `-` operator.\n     *\n     * Requirements:\n     *\n     * - Subtraction cannot overflow.\n     */\n    function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {\n        unchecked {\n            require(b <= a, errorMessage);\n            return a - b;\n        }\n    }\n\n    /**\n     * @dev Returns the integer division of two unsigned integers, reverting with custom message on\n     * division by zero. The result is rounded towards zero.\n     *\n     * Counterpart to Solidity's `/` operator. Note: this function uses a\n     * `revert` opcode (which leaves remaining gas untouched) while Solidity\n     * uses an invalid opcode to revert (consuming all remaining gas).\n     *\n     * Requirements:\n     *\n     * - The divisor cannot be zero.\n     */\n    function div(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {\n        unchecked {\n            require(b > 0, errorMessage);\n            return a / b;\n        }\n    }\n\n    /**\n     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),\n     * reverting with custom message when dividing by zero.\n     *\n     * CAUTION: This function is deprecated because it requires allocating memory for the error\n     * message unnecessarily. For custom revert reasons use {tryMod}.\n     *\n     * Counterpart to Solidity's `%` operator. This function uses a `revert`\n     * opcode (which leaves remaining gas untouched) while Solidity uses an\n     * invalid opcode to revert (consuming all remaining gas).\n     *\n     * Requirements:\n     *\n     * - The divisor cannot be zero.\n     */\n    function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {\n        unchecked {\n            require(b > 0, errorMessage);\n            return a % b;\n        }\n    }\n}\n"},{"file_path":"project:/contracts/ITransferProvider.sol","source_code":"// SPDX-License-Identifier: MIT\r\npragma solidity ^0.8.0;\r\n\r\ninterface ITransferProvider {\r\n  event TransferApproved(address indexed from, address indexed to, uint256 value);\r\n  event TransferDeclined(address indexed from, address indexed to, uint256 value);\r\n\r\n  /* function approve transfer upon its own rules and return true or false */\r\n  function approveTransfer(address from, address to, uint256 value, address spender) external returns(bool);\r\n\r\n  /* function to inform provider about transfer on admin behalf to take it into providers account */\r\n  function considerTransfer(address from, address to, uint256 value) external returns(bool);\r\n}\r\n"},{"file_path":"project:/contracts/irbac.sol","source_code":"/**\r\n * VNX Role Base Access Control Smart Contract\r\n * Updated:   17.07.2025\r\n * (c) Copyright by VNX S.A, Luxembourg.\r\n **/\r\n\r\n// SPDX-License-Identifier: MIT\r\npragma solidity ^0.8.0;\r\n\r\ninterface IRBAC {\r\n  event RoleCreated(uint256 role);\r\n  event BearerAdded(address indexed account, uint256 role);\r\n  event BearerRemoved(address indexed account, uint256 role);\r\n\r\n  function addRootRole(string calldata roleDescription) external returns(uint256);\r\n  function removeBearer(address account, uint256 role) external;\r\n  function addRole(string calldata roleDescription, uint256 admin) external returns(uint256);\r\n  function totalRoles() external view returns(uint256);\r\n  function hasRole(address account, uint256 role) external view returns(bool);\r\n  function addBearer(address account, uint256 role) external;\r\n}\r\n"}],"is_verified_via_sourcify":false,"can_be_visualized_via_sol2uml":true,"evm_version":"paris","language":"solidity","is_verified_via_eth_bytecode_db":false,"is_fully_verified":true,"license_type":"none","is_blueprint":false,"name":"VNXCToken","creation_bytecode":"0x6080806040523461001657613464908161001c8239f35b600080fdfe608080604052600436101561001357600080fd5b60003560e01c90816306fdde031461241a57508063095ea7b3146123aa57806318160ddd1461238c57806323b872dd146122f25780633092afd51461228457806330b19a4d146120ef578063313ce567146120d35780633644e515146120b0578063395093511461201f57806339547e75146120045780633f4ba83a14611f6d57806340c10f1914611c6357806342966c6814611bf35780634e44d95614611b7357806350e59eb314611b585780635c975abb14611b355780636145302d14611b1057806370a0823114611ad6578063715018a614611a79578063776bbac3146119c057806379cc67901461190a5780637ecebe00146118cf57806383cfab421461181c5780638456cb59146117bf57806384b0196e1461156d57806384bba475146115485780638a6db9c31461150d5780638d1fdf2f146114865780638da5cb5b1461145d57806395d89b41146113a1578063a0a49a0114610a29578063a457c2d714610935578063a9059cbb146108be578063b5af0d7a146107d8578063b6db75a0146107b3578063c746645c146106f3578063cde599c214610644578063d505accf1461048e578063dd62ed3e1461043d578063ded81f04146103a6578063e583983614610366578063e5a6b10f1461028c5763f2fde38b146101f857600080fd5b34610287576020366003190112610287576102116124f3565b6102196125f0565b6001600160a01b038116156102335761023190612648565b005b60405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608490fd5b600080fd5b3461028757600036600319011261028757604051600061016280546102b0816125b6565b8085529160019180831690811561033c57506001146102f2575b6102ee856102da8187038261251f565b6040519182916020835260208301906124ce565b0390f35b6000908152925060008051602061340f8339815191525b8284106103245750505081016020016102da826102ee6102ca565b80546020858701810191909152909301928101610309565b8695506102ee969350602092506102da94915060ff191682840152151560051b82010192936102ca565b34610287576020366003190112610287576001600160a01b036103876124f3565b16600052610165602052602060ff604060002054166040519015158152f35b34610287576020366003190112610287576103bf6124f3565b6103cf6103ca612c6f565b61330d565b6001600160a01b0381166000818152610165602052604090205490919060ff161561040e57610231916000526065602052604060002054903390612dee565b60405162461bcd60e51b815260206004820152600760248201526610a33937bd32b760c91b6044820152606490fd5b34610287576040366003190112610287576104566124f3565b61045e612509565b9060018060a01b038091166000526066602052604060002091166000526020526020604060002054604051908152f35b346102875760e0366003190112610287576104a76124f3565b6104af612509565b604435906064356104be6125a6565b908042116105ff5760018060a01b0390818616928360005261012f6020526040600020908154916001830190556040519260208401927f6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c98452866040860152858816606086015288608086015260a085015260c084015260c0835260e08301918383106001600160401b038411176105e9576105959361058d9360405251902061056661293c565b906040519161190160f01b83526002830152602282015260c43591604260a43592206128ad565b919091612793565b16036105a45761023192612691565b60405162461bcd60e51b815260206004820152601e60248201527f45524332305065726d69743a20696e76616c6964207369676e617475726500006044820152606490fd5b634e487b7160e01b600052604160045260246000fd5b60405162461bcd60e51b815260206004820152601d60248201527f45524332305065726d69743a206578706972656420646561646c696e650000006044820152606490fd5b346102875760203660031901126102875761065d6124f3565b6106656125f0565b6001600160a01b031680156106ae5761016480546001600160a01b031916821790557fae0d8fc8132901c0a3275d543cc82256466b4597164846938d409ab9e58733b6600080a2005b60405162461bcd60e51b815260206004820152601b60248201527f5242414320616464726573732063616e6e6f74206265207a65726f00000000006044820152606490fd5b346102875760203660031901126102875761070c612596565b61071c610717612bbe565b612b68565b6101649081549060ff8260a01c1660ff821690818114610775577fa85b58a559e8225961a31f8e6fe0d3a186c02e0de5686bb16eaba4f82c77afc7600080a360ff60a01b1990911660a09190911b60ff60a01b16179055005b60405162461bcd60e51b815260206004820152601660248201527553616d652041737365742050726f746563742049642160501b6044820152606490fd5b346102875760003660031901126102875760206107ce612bbe565b6040519015158152f35b34610287576020366003190112610287576107f16124f3565b6107fc610717612bbe565b610163805490916001600160a01b03908116919081168281146108885782156108555782907fb39f188b693b7c8f56d8cc9c1975403ed4705a4f09fc9ed99477698f0f713a05600080a36001600160a01b031916179055005b60405162461bcd60e51b815260206004820152600b60248201526a50726f76696465723d302160a81b6044820152606490fd5b60405162461bcd60e51b815260206004820152600e60248201526d53616d652070726f76696465722160901b6044820152606490fd5b346102875760403660031901126102875761092a6108da6124f3565b6108e2612d87565b33600052610165806020526108ff60ff6040600020541615612d47565b60018060a01b03821660005260205261092060ff6040600020541615612d47565b6024359033612dee565b602060405160018152f35b346102875760403660031901126102875761094e6124f3565b6024359061095a612d87565b336000526101659060209180835261097a60ff6040600020541615612d47565b6001600160a01b038216600081815291845260409091205461099f9060ff1615612d47565b33600052606683526040600020906000528252604060002054928084106109d6576109cd9293039033612691565b60405160018152f35b60405162461bcd60e51b815260048101849052602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b6064820152608490fd5b3461028757610100366003190112610287576004356001600160401b03811161028757610a5a903690600401612540565b6024356001600160401b03811161028757610a79903690600401612540565b6044356001600160401b03811161028757610a98903690600401612540565b9160ff606435166064350361028757610aaf6125a6565b6001600160a01b039160a4359083821682036102875760c435948486168603610287576000549660ff8860081c161597888099611394575b801561137d575b156113215760ff1981166001176000558861130f575b50858716156112e057858416156112aa578051906001600160401b0382116105e9578190610b34610162546125b6565b601f8111611235575b50602090601f83116001146111bb576000926111b0575b50508160011b916000199060031b1c191617610162555b610b8560ff60005460081c16610b8081612ca4565b612ca4565b81516001600160401b0381116105e957610ba06068546125b6565b601f8111611147575b50806020601f82116001146110d4576000916110c9575b508160011b916000199060031b1c1916176068555b8051906001600160401b0382116105e9578190610bf36069546125b6565b601f8111611055575b50602090601f8311600114610fdd57600092610fd2575b50508160011b916000199060031b1c1916176069555b610c3e60ff60005460081c16610b8081612ca4565b610c4733612648565b60ff60005460081c1690610c5a82612ca4565b610c6382612ca4565b60ff1960975416609755610c7682612ca4565b6040519160408301908382106001600160401b038311176105e957610cab9160405260018452603160f81b6020850152612ca4565b8051906001600160401b0382116105e9578190610cc960fd546125b6565b601f8111610f5e575b50602090601f8311600114610ee657600092610edb575b50508160011b916000199060031b1c19161760fd555b8051906001600160401b0382116105e9578190610d1d60fe546125b6565b601f8111610e7d575b50602090601f8311600114610e0957600092610dfe575b50508160011b916000199060031b1c19161760fe555b600060fb55600060fc55610164918383549160ff60a81b9060a81b1692169069ffffffffffffffffffff60b01b161760ff60a01b60643560a01b161717905561016391166bffffffffffffffffffffffff60a01b8254161790553360005261016660205260e435604060002055610dc657005b61ff0019600054166000557f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb3847402498602060405160018152a1005b015190508780610d3d565b60fe60009081526000805160206133cf8339815191529350601f198516905b818110610e655750908460019594939210610e4c575b505050811b0160fe55610d53565b015160001960f88460031b161c19169055878080610e3e565b92936020600181928786015181550195019301610e28565b90915060fe6000526000805160206133cf833981519152601f840160051c81019160208510610ed1575b90601f859493920160051c01905b818110610ec25750610d26565b60008155849350600101610eb5565b9091508190610ea7565b015190508880610ce9565b925060fd6000526000805160206133af833981519152906000935b601f1984168510610f43576001945083601f19811610610f2a575b505050811b0160fd55610cff565b015160001960f88460031b161c19169055888080610f1c565b81810151835560209485019460019093019290910190610f01565b90915060fd600052601f830160051c6000805160206133af8339815191520160208410610fbd575b908392915b601f820160051c6000805160206133af833981519152018110610fae5750610cd2565b60008155849350600101610f8b565b506000805160206133af833981519152610f86565b015190508880610c13565b9250606960005260008051602061338f833981519152906000935b601f198416851061103a576001945083601f19811610611021575b505050811b01606955610c29565b015160001960f88460031b161c19169055888080611013565b81810151835560209485019460019093019290910190610ff8565b9091506069600052601f830160051c60008051602061338f83398151915201602084106110b4575b908392915b601f820160051c60008051602061338f8339815191520181106110a55750610bfc565b60008155849350600101611082565b5060008051602061338f83398151915261107d565b905083015189610bc0565b915060686000526000805160206133ef8339815191526000925b601f198316841061112f576001935082601f19811610611116575b5050811b01606855610bd5565b85015160001960f88460031b161c191690558980611109565b858101518255602093840193600190920191016110ee565b6068600052601f820160051c6000805160206133ef833981519152016020831061119b575b601f820160051c6000805160206133ef83398151915201811061118f5750610ba9565b6000815560010161116c565b506000805160206133ef83398151915261116c565b015190508980610b54565b925061016260005260008051602061340f833981519152906000935b601f198416851061121a576001945083601f19811610611201575b505050811b0161016255610b6b565b015160001960f88460031b161c191690558980806111f2565b818101518355602094850194600190930192909101906111d7565b909150610162600052601f830160051c60008051602061340f8339815191520160208410611295575b908392915b601f820160051c60008051602061340f8339815191520181106112865750610b3d565b60008155849350600101611263565b5060008051602061340f83398151915261125e565b60405162461bcd60e51b815260206004820152600e60248201526d726261634d616e616765723d302160901b6044820152606490fd5b60405162461bcd60e51b8152602060048201526007602482015266496e69743d302160c81b6044820152606490fd5b61ffff19166101011760005588610b04565b60405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b6064820152608490fd5b50303b158015610aee5750600160ff821614610aee565b50600160ff821610610ae7565b346102875760003660031901126102875760405160006069546113c3816125b6565b8084529060019081811690811561143657506001146113ed575b6102ee846102da8186038261251f565b60696000908152925060008051602061338f8339815191525b82841061141e5750505081016020016102da826113dd565b80546020858701810191909152909301928101611406565b60ff191660208087019190915292151560051b850190920192506102da91508390506113dd565b34610287576000366003190112610287576033546040516001600160a01b039091168152602090f35b346102875760203660031901126102875761149f6124f3565b6114aa6103ca612c6f565b60018060a01b031680600052610165806020526114cf60ff6040600020541615613359565b816000526020526040600020600160ff198254161790557f90811a8edd3b3c17eeaefffc17f639cc69145d41a359c9843994dc2538203690600080a2005b34610287576020366003190112610287576001600160a01b0361152e6124f3565b166000526101666020526020604060002054604051908152f35b3461028757600036600319011261028757602060ff6101645460a81c16604051908152f35b346102875760003660031901126102875760fb5415806117b5575b156117785760405160fd54906000816115a0846125b6565b918282526001948581169081600014611759575060011461170a575b6115c89250038261251f565b60405160fe548160006115da836125b6565b808352928681169081156116eb575060011461169c575b6115fd9250038261251f565b6040516020808201928284106001600160401b038511176105e957908492816116558894876040526000845261164760405197600f60f81b895260e0858a015260e08901906124ce565b9087820360408901526124ce565b91466060870152306080870152600060a087015285830360c0870152519182815201949160005b8281106116895785870386f35b835187529581019592810192840161167c565b509060fe6000526000805160206133cf83398151915290856000925b8284106116d1575050509060206115fd928201016115f1565b6020929450805483858801015201910190918584936116b8565b602092506115fd94915060ff191682840152151560051b8201016115f1565b509060fd6000526000805160206133af83398151915290846000925b82841061173f575050509060206115c8928201016115bc565b602092945080548385880101520191019091848493611726565b602092506115c894915060ff191682840152151560051b8201016115bc565b60405162461bcd60e51b81526020600482015260156024820152741152540dcc4c8e88155b9a5b9a5d1a585b1a5e9959605a1b6044820152606490fd5b5060fc5415611588565b34610287576000366003190112610287576117db6103ca612c6f565b6117e3612d87565b600160ff1960975416176097557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586020604051338152a1005b34610287576020366003190112610287576118356124f3565b6118406103ca612c6f565b6001600160a01b03166000818152610165602081905260409091205460ff161561189f5781600052602052604060002060ff1981541690557fc3776b472ebf54114339eec9e4dc924e7ce307a97f5c1ee72b6d474e6e5e8b7c600080a2005b60405162461bcd60e51b81526020600482015260086024820152672ab7333937bd32b760c11b6044820152606490fd5b34610287576020366003190112610287576001600160a01b036118f06124f3565b1660005261012f6020526020604060002054604051908152f35b34610287576040366003190112610287576119236124f3565b7fcc16f5dbb4873280815c1ee09dbd06736cffcc184412cf7a71a0fdb75d397ca56020602435611951612d87565b61196161195c612c1f565b612d04565b336000526119b7816101659586855261198260ff6040600020541615612d47565b6001600160a01b03811660008181529786526040909720546119a79060ff1615612d47565b6119b2823383613065565b6130fd565b604051908152a2005b34610287576020366003190112610287576119d9612596565b6119e4610717612bbe565b6101649081549060ff8260a81c1660ff821690808214611a3d577f42dcf0e478501125311a035ce1f285846b24d04b18668022677c3f07059ce2d9600080a360ff60a81b1990911660a89190911b60ff60a81b16179055005b60405162461bcd60e51b815260206004820152601460248201527353616d65206d696e74657220726f6c652069642160601b6044820152606490fd5b3461028757600036600319011261028757611a926125f0565b603380546001600160a01b031981169091556000906001600160a01b03167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08280a3005b34610287576020366003190112610287576001600160a01b03611af76124f3565b1660005260656020526020604060002054604051908152f35b3461028757600036600319011261028757602060ff6101645460a01c16604051908152f35b3461028757600036600319011261028757602060ff609754166040519015158152f35b346102875760003660031901126102875760206107ce612c1f565b3461028757604036600319011261028757611b8c6124f3565b7f46980fca912ef9bcdbd36877427b6b90e860769f604e89c0e67720cece530d20602060243592611bbb612d87565b611bc6610717612bbe565b6001600160a01b0316600081815261016683526040908190208590555193845292a2602060405160018152f35b3461028757602036600319011261028757600435611c0f612d87565b33600052610165602052611c2b60ff6040600020541615612d47565b611c3581336130fd565b6040519081527fcc16f5dbb4873280815c1ee09dbd06736cffcc184412cf7a71a0fdb75d397ca560203392a2005b3461028757604036600319011261028757611c7c6124f3565b60248035611c88612d87565b611c9361195c612c1f565b3360005261016591602093838552611cb360ff6040600020541615612d47565b6001600160a01b039081166000818152948652604090942054611cd99060ff1615612d47565b8315611f3c578215611f07573360005261016680865260406000205490818511611ec357848203918211611eae5791869160009333855283526040842055610163541660846040518094819363afe9a9a560e01b835281600484015289888401528860448401523360648401525af1908115611ea257600091611e75575b5015611e405760ff60975416611dea5750611d7481606754612dcb565b606755816000526065835260406000208181540190558160007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef85604051858152a36040519081527fab8530f87dc9b59234c4623bf917212bb2536d647574c8e7e5da92c2ede0c9f8833392a360405160018152f35b83602a6084926040519262461bcd60e51b845260048401528201527f45524332305061757361626c653a20746f6b656e207472616e736665722077686044820152691a5b19481c185d5cd95960b21b6064820152fd5b83600f6064926040519262461bcd60e51b845260048401528201526e4465636c696e65642062792054502160881b6044820152fd5b611e959150853d8711611e9b575b611e8d818361251f565b810190612ba6565b85611d57565b503d611e83565b6040513d6000823e3d90fd5b83634e487b7160e01b60005260116004526000fd5b60405162461bcd60e51b815260048101889052601c818601527f6d696e745f616d6f756e743e6d696e746572416c6c6f77616e636521000000006044820152606490fd5b60405162461bcd60e51b815260048101869052600e818401526d6d696e7420616d6f756e743c302160901b6044820152606490fd5b60405162461bcd60e51b815260048101869052600a81840152696d696e7420746f3d302160b01b6044820152606490fd5b3461028757600036600319011261028757611f896103ca612c6f565b60975460ff811615611fc85760ff19166097557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa6020604051338152a1005b60405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b6044820152606490fd5b346102875760003660031901126102875760206107ce612c6f565b346102875760403660031901126102875761092a61203b6124f3565b612043612d87565b336000526101658060205261206060ff6040600020541615612d47565b60018060a01b038216908160005260205261208360ff6040600020541615612d47565b3360005260666020526040600020906000526020526120a9602435604060002054612dcb565b9033612691565b346102875760003660031901126102875760206120cb61293c565b604051908152f35b3461028757600036600319011261028757602060405160128152f35b3461028757602080600319360112610287576001600160401b039060043582811161028757612122903690600401612540565b9061212b6125f0565b81519283116105e95761016261214181546125b6565b601f8111612233575b508193601f81116001146121c2578061218b956000916121b7575b508160011b916000199060031b1c19161790555b604051928284809451938492016124ab565b81010390207f4fbdbb37d5e7062be889a1d23ddd3cdbdd24887daf956a0bba8f30c8038b88dc600080a2005b905084015186612165565b601f198116948260005260008051602061340f8339815191529560005b81811061221c575095829160019361218b9810612203575b5050811b019055612179565b86015160001960f88460031b161c1916905586806121f7565b8683015188556001909701969185019185016121df565b8160005260008051602061340f833981519152601f860160051c81019184871061227a575b601f0160051c01905b81811061226e575061214a565b60008155600101612261565b9091508190612258565b3461028757602036600319011261028757602061229f6124f3565b6122aa610717612bbe565b6001600160a01b03166000818152610166835260408082208290555191907fe94479a9f7e1952cc78f2d6baab678adc1b772d936c6583def489e524cb666929080a260018152f35b346102875760603660031901126102875761092a61230e6124f3565b612316612509565b60443591612322612d87565b336000526101658060205261233f60ff6040600020541615612d47565b60018060a01b038083166000528160205261236260ff6040600020541615612d47565b831660005260205261237c60ff6040600020541615612d47565b612387833383613065565b612dee565b34610287576000366003190112610287576020606754604051908152f35b346102875760403660031901126102875761092a6123c66124f3565b6123ce612d87565b6001600160a01b0381166000908152610165602052604090205460ff161580612405575b6123fb90613359565b6024359033612691565b50336000908152604090205460ff16156123f2565b34610287576000366003190112610287576000606854612439816125b6565b808452906001908181169081156114365750600114612462576102ee846102da8186038261251f565b6068600090815292506000805160206133ef8339815191525b8284106124935750505081016020016102da826113dd565b8054602085870181019190915290930192810161247b565b60005b8381106124be5750506000910152565b81810151838201526020016124ae565b906020916124e7815180928185528580860191016124ab565b601f01601f1916010190565b600435906001600160a01b038216820361028757565b602435906001600160a01b038216820361028757565b90601f801991011681019081106001600160401b038211176105e957604052565b81601f82011215610287578035906001600160401b0382116105e95760405192612574601f8401601f19166020018561251f565b8284526020838301011161028757816000926020809301838601378301015290565b6004359060ff8216820361028757565b6084359060ff8216820361028757565b90600182811c921680156125e6575b60208310146125d057565b634e487b7160e01b600052602260045260246000fd5b91607f16916125c5565b6033546001600160a01b0316330361260457565b606460405162461bcd60e51b815260206004820152602060248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152fd5b603380546001600160a01b039283166001600160a01b0319821681179092559091167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0600080a3565b6001600160a01b0390811691821561274257169182156126f25760207f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925918360005260668252604060002085600052825280604060002055604051908152a3565b60405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b6064820152608490fd5b60405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b6064820152608490fd5b600581101561289757806127a45750565b600181036127f15760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e617475726500000000000000006044820152606490fd5b6002810361283e5760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e677468006044820152606490fd5b60031461284757565b60405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b6064820152608490fd5b634e487b7160e01b600052602160045260246000fd5b9291907f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a083116129305791608094939160ff602094604051948552168484015260408301526060820152600093849182805260015afa156129235781516001600160a01b0381161561291d579190565b50600190565b50604051903d90823e3d90fd5b50505050600090600390565b6129446129b1565b61294c612a9f565b6040519060208201927f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f8452604083015260608201524660808201523060a082015260a0815260c081018181106001600160401b038211176105e95760405251902090565b60405160fd54906000816129c4846125b6565b91828252602092838301956001908181169081600014612a815750600114612a34575b50506129f59250038261251f565b51908115612a01572090565b505060fb548015612a0f5790565b507fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a47090565b9093915060fd6000526000805160206133af833981519152936000915b818310612a695750506129f5935082010138806129e7565b85548784018501529485019486945091830191612a51565b9150506129f594925060ff19168652151560051b82010138806129e7565b60405160fe5490600081612ab2846125b6565b91828252602092838301956001908181169081600014612b4a5750600114612afd575b5050612ae39250038261251f565b51908115612aef572090565b505060fc548015612a0f5790565b9093915060fe6000526000805160206133cf833981519152936000915b818310612b32575050612ae393508201013880612ad5565b85548784018501529485019486945091830191612b1a565b915050612ae394925060ff19168652151560051b8201013880612ad5565b15612b6f57565b60405162461bcd60e51b815260206004820152600f60248201526e4f6e6c792041646d696e20726f6c6560881b6044820152606490fd5b90816020910312610287575180151581036102875790565b61016454604051632e4bfa5160e11b81523360048201526000602482015290602090829060449082906001600160a01b03165afa908115611ea257600091612c04575090565b612c1c915060203d8111611e9b57611e8d818361251f565b90565b61016454604051632e4bfa5160e11b815233600482015260a882901c60ff1660248201529060209082908180604481015b03916001600160a01b03165afa908115611ea257600091612c04575090565b61016454604051632e4bfa5160e11b815233600482015260a082901c60ff166024820152906020908290818060448101612c50565b15612cab57565b60405162461bcd60e51b815260206004820152602b60248201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960448201526a6e697469616c697a696e6760a81b6064820152608490fd5b15612d0b57565b60405162461bcd60e51b815260206004820152601460248201527331b0b63632b91034b9903737ba1026b4b73a32b960611b6044820152606490fd5b15612d4e57565b60405162461bcd60e51b815260206004820152601160248201527030b1b1b7bab73a1034b990333937bd32b760791b6044820152606490fd5b60ff60975416612d9357565b60405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b6044820152606490fd5b91908201809211612dd857565b634e487b7160e01b600052601160045260246000fd5b6001600160a01b0392908316918215613012578316928315612fc157610163541690604080519263afe9a9a560e01b84528460048501528560248501528260448501523360648501526020938481608481600080965af1908115612fb7578291612f9a575b5015612f645760ff60975416612f0d578481526065845281812054838110612eba579181847fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef969594888495526065875203828220558781522082815401905551908152a3565b825162461bcd60e51b815260048101869052602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b6064820152608490fd5b815162461bcd60e51b815260048101859052602a60248201527f45524332305061757361626c653a20746f6b656e207472616e736665722077686044820152691a5b19481c185d5cd95960b21b6064820152608490fd5b815162461bcd60e51b815260048101859052600f60248201526e4465636c696e65642062792054502160881b6044820152606490fd5b612fb19150853d8711611e9b57611e8d818361251f565b38612e53565b83513d84823e3d90fd5b60405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b6064820152608490fd5b60405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b6064820152608490fd5b9060018060a01b038083166000526066602052604060002090821660005260205260406000205492600019840361309d575b50505050565b8084106130b8576130af930391612691565b38808080613097565b60405162461bcd60e51b815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e63650000006044820152606490fd5b6001600160a01b039081169081156132be57610163541660409283519363afe9a9a560e01b855283600486015260009485938460248301528360448301523360648301528160848160209788945af19081156132b4578691613297575b50156132625760ff6097541661320c5783855260658352808520548281106131bd5790827fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef949392868852606585520381872055816067540360675551908152a3565b815162461bcd60e51b815260048101859052602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e604482015261636560f01b6064820152608490fd5b5162461bcd60e51b815260048101839052602a60248201527f45524332305061757361626c653a20746f6b656e207472616e736665722077686044820152691a5b19481c185d5cd95960b21b6064820152608490fd5b5162461bcd60e51b815260048101839052600f60248201526e4465636c696e65642062792054502160881b6044820152606490fd5b6132ae9150843d8611611e9b57611e8d818361251f565b3861315a565b82513d88823e3d90fd5b60405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736044820152607360f81b6064820152608490fd5b1561331457565b60405162461bcd60e51b815260206004820152601d60248201527f63616c6c6572206973206e6f742041737365742050726f746563746f720000006044820152606490fd5b1561336057565b60405162461bcd60e51b8152602060048201526006602482015265233937bd32b760d11b6044820152606490fdfe7fb4302e8e91f9110a6554c2c0a24601252c2a42c2220ca988efcfe3999143089346ac6dd7de6b96975fec380d4d994c4c12e6a8897544f22915316cc6cca28054075df80ec1ae6ac9100e1fd0ebf3246c17f5c933137af392011f4c5f61513aa2153420d844928b4421650203c77babc8b33d7f2e7b450e2966db0c2209775329af0939a5988989bfee913a9ad10b9335cb63ebc9fd2b69e5f877d0455ac919a2646970667358221220970e67daf07425e1ccfb77c5386b55e505e28603dafd518f0662308ccd15924d64736f6c63430008140033","external_libraries":[],"proxy_type":null,"implementations":[],"verified_at":"2026-04-08T12:48:50.801146Z","is_verified_via_verifier_alliance":false,"compiler_version":"v0.8.20+commit.a1b79de6","decoded_constructor_args":null,"sourcify_repo_url":null,"optimization_runs":200,"compiler_settings":{"evmVersion":"paris","libraries":{},"metadata":{"bytecodeHash":"ipfs"},"optimizer":{"enabled":true,"runs":200},"outputSelection":{"*":{"":["*"],"*":["*"]}},"viaIR":true},"is_verified":true,"verified_twin_address_hash":null,"optimization_enabled":true,"deployed_bytecode":"0x608080604052600436101561001357600080fd5b60003560e01c90816306fdde031461241a57508063095ea7b3146123aa57806318160ddd1461238c57806323b872dd146122f25780633092afd51461228457806330b19a4d146120ef578063313ce567146120d35780633644e515146120b0578063395093511461201f57806339547e75146120045780633f4ba83a14611f6d57806340c10f1914611c6357806342966c6814611bf35780634e44d95614611b7357806350e59eb314611b585780635c975abb14611b355780636145302d14611b1057806370a0823114611ad6578063715018a614611a79578063776bbac3146119c057806379cc67901461190a5780637ecebe00146118cf57806383cfab421461181c5780638456cb59146117bf57806384b0196e1461156d57806384bba475146115485780638a6db9c31461150d5780638d1fdf2f146114865780638da5cb5b1461145d57806395d89b41146113a1578063a0a49a0114610a29578063a457c2d714610935578063a9059cbb146108be578063b5af0d7a146107d8578063b6db75a0146107b3578063c746645c146106f3578063cde599c214610644578063d505accf1461048e578063dd62ed3e1461043d578063ded81f04146103a6578063e583983614610366578063e5a6b10f1461028c5763f2fde38b146101f857600080fd5b34610287576020366003190112610287576102116124f3565b6102196125f0565b6001600160a01b038116156102335761023190612648565b005b60405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608490fd5b600080fd5b3461028757600036600319011261028757604051600061016280546102b0816125b6565b8085529160019180831690811561033c57506001146102f2575b6102ee856102da8187038261251f565b6040519182916020835260208301906124ce565b0390f35b6000908152925060008051602061340f8339815191525b8284106103245750505081016020016102da826102ee6102ca565b80546020858701810191909152909301928101610309565b8695506102ee969350602092506102da94915060ff191682840152151560051b82010192936102ca565b34610287576020366003190112610287576001600160a01b036103876124f3565b16600052610165602052602060ff604060002054166040519015158152f35b34610287576020366003190112610287576103bf6124f3565b6103cf6103ca612c6f565b61330d565b6001600160a01b0381166000818152610165602052604090205490919060ff161561040e57610231916000526065602052604060002054903390612dee565b60405162461bcd60e51b815260206004820152600760248201526610a33937bd32b760c91b6044820152606490fd5b34610287576040366003190112610287576104566124f3565b61045e612509565b9060018060a01b038091166000526066602052604060002091166000526020526020604060002054604051908152f35b346102875760e0366003190112610287576104a76124f3565b6104af612509565b604435906064356104be6125a6565b908042116105ff5760018060a01b0390818616928360005261012f6020526040600020908154916001830190556040519260208401927f6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c98452866040860152858816606086015288608086015260a085015260c084015260c0835260e08301918383106001600160401b038411176105e9576105959361058d9360405251902061056661293c565b906040519161190160f01b83526002830152602282015260c43591604260a43592206128ad565b919091612793565b16036105a45761023192612691565b60405162461bcd60e51b815260206004820152601e60248201527f45524332305065726d69743a20696e76616c6964207369676e617475726500006044820152606490fd5b634e487b7160e01b600052604160045260246000fd5b60405162461bcd60e51b815260206004820152601d60248201527f45524332305065726d69743a206578706972656420646561646c696e650000006044820152606490fd5b346102875760203660031901126102875761065d6124f3565b6106656125f0565b6001600160a01b031680156106ae5761016480546001600160a01b031916821790557fae0d8fc8132901c0a3275d543cc82256466b4597164846938d409ab9e58733b6600080a2005b60405162461bcd60e51b815260206004820152601b60248201527f5242414320616464726573732063616e6e6f74206265207a65726f00000000006044820152606490fd5b346102875760203660031901126102875761070c612596565b61071c610717612bbe565b612b68565b6101649081549060ff8260a01c1660ff821690818114610775577fa85b58a559e8225961a31f8e6fe0d3a186c02e0de5686bb16eaba4f82c77afc7600080a360ff60a01b1990911660a09190911b60ff60a01b16179055005b60405162461bcd60e51b815260206004820152601660248201527553616d652041737365742050726f746563742049642160501b6044820152606490fd5b346102875760003660031901126102875760206107ce612bbe565b6040519015158152f35b34610287576020366003190112610287576107f16124f3565b6107fc610717612bbe565b610163805490916001600160a01b03908116919081168281146108885782156108555782907fb39f188b693b7c8f56d8cc9c1975403ed4705a4f09fc9ed99477698f0f713a05600080a36001600160a01b031916179055005b60405162461bcd60e51b815260206004820152600b60248201526a50726f76696465723d302160a81b6044820152606490fd5b60405162461bcd60e51b815260206004820152600e60248201526d53616d652070726f76696465722160901b6044820152606490fd5b346102875760403660031901126102875761092a6108da6124f3565b6108e2612d87565b33600052610165806020526108ff60ff6040600020541615612d47565b60018060a01b03821660005260205261092060ff6040600020541615612d47565b6024359033612dee565b602060405160018152f35b346102875760403660031901126102875761094e6124f3565b6024359061095a612d87565b336000526101659060209180835261097a60ff6040600020541615612d47565b6001600160a01b038216600081815291845260409091205461099f9060ff1615612d47565b33600052606683526040600020906000528252604060002054928084106109d6576109cd9293039033612691565b60405160018152f35b60405162461bcd60e51b815260048101849052602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b6064820152608490fd5b3461028757610100366003190112610287576004356001600160401b03811161028757610a5a903690600401612540565b6024356001600160401b03811161028757610a79903690600401612540565b6044356001600160401b03811161028757610a98903690600401612540565b9160ff606435166064350361028757610aaf6125a6565b6001600160a01b039160a4359083821682036102875760c435948486168603610287576000549660ff8860081c161597888099611394575b801561137d575b156113215760ff1981166001176000558861130f575b50858716156112e057858416156112aa578051906001600160401b0382116105e9578190610b34610162546125b6565b601f8111611235575b50602090601f83116001146111bb576000926111b0575b50508160011b916000199060031b1c191617610162555b610b8560ff60005460081c16610b8081612ca4565b612ca4565b81516001600160401b0381116105e957610ba06068546125b6565b601f8111611147575b50806020601f82116001146110d4576000916110c9575b508160011b916000199060031b1c1916176068555b8051906001600160401b0382116105e9578190610bf36069546125b6565b601f8111611055575b50602090601f8311600114610fdd57600092610fd2575b50508160011b916000199060031b1c1916176069555b610c3e60ff60005460081c16610b8081612ca4565b610c4733612648565b60ff60005460081c1690610c5a82612ca4565b610c6382612ca4565b60ff1960975416609755610c7682612ca4565b6040519160408301908382106001600160401b038311176105e957610cab9160405260018452603160f81b6020850152612ca4565b8051906001600160401b0382116105e9578190610cc960fd546125b6565b601f8111610f5e575b50602090601f8311600114610ee657600092610edb575b50508160011b916000199060031b1c19161760fd555b8051906001600160401b0382116105e9578190610d1d60fe546125b6565b601f8111610e7d575b50602090601f8311600114610e0957600092610dfe575b50508160011b916000199060031b1c19161760fe555b600060fb55600060fc55610164918383549160ff60a81b9060a81b1692169069ffffffffffffffffffff60b01b161760ff60a01b60643560a01b161717905561016391166bffffffffffffffffffffffff60a01b8254161790553360005261016660205260e435604060002055610dc657005b61ff0019600054166000557f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb3847402498602060405160018152a1005b015190508780610d3d565b60fe60009081526000805160206133cf8339815191529350601f198516905b818110610e655750908460019594939210610e4c575b505050811b0160fe55610d53565b015160001960f88460031b161c19169055878080610e3e565b92936020600181928786015181550195019301610e28565b90915060fe6000526000805160206133cf833981519152601f840160051c81019160208510610ed1575b90601f859493920160051c01905b818110610ec25750610d26565b60008155849350600101610eb5565b9091508190610ea7565b015190508880610ce9565b925060fd6000526000805160206133af833981519152906000935b601f1984168510610f43576001945083601f19811610610f2a575b505050811b0160fd55610cff565b015160001960f88460031b161c19169055888080610f1c565b81810151835560209485019460019093019290910190610f01565b90915060fd600052601f830160051c6000805160206133af8339815191520160208410610fbd575b908392915b601f820160051c6000805160206133af833981519152018110610fae5750610cd2565b60008155849350600101610f8b565b506000805160206133af833981519152610f86565b015190508880610c13565b9250606960005260008051602061338f833981519152906000935b601f198416851061103a576001945083601f19811610611021575b505050811b01606955610c29565b015160001960f88460031b161c19169055888080611013565b81810151835560209485019460019093019290910190610ff8565b9091506069600052601f830160051c60008051602061338f83398151915201602084106110b4575b908392915b601f820160051c60008051602061338f8339815191520181106110a55750610bfc565b60008155849350600101611082565b5060008051602061338f83398151915261107d565b905083015189610bc0565b915060686000526000805160206133ef8339815191526000925b601f198316841061112f576001935082601f19811610611116575b5050811b01606855610bd5565b85015160001960f88460031b161c191690558980611109565b858101518255602093840193600190920191016110ee565b6068600052601f820160051c6000805160206133ef833981519152016020831061119b575b601f820160051c6000805160206133ef83398151915201811061118f5750610ba9565b6000815560010161116c565b506000805160206133ef83398151915261116c565b015190508980610b54565b925061016260005260008051602061340f833981519152906000935b601f198416851061121a576001945083601f19811610611201575b505050811b0161016255610b6b565b015160001960f88460031b161c191690558980806111f2565b818101518355602094850194600190930192909101906111d7565b909150610162600052601f830160051c60008051602061340f8339815191520160208410611295575b908392915b601f820160051c60008051602061340f8339815191520181106112865750610b3d565b60008155849350600101611263565b5060008051602061340f83398151915261125e565b60405162461bcd60e51b815260206004820152600e60248201526d726261634d616e616765723d302160901b6044820152606490fd5b60405162461bcd60e51b8152602060048201526007602482015266496e69743d302160c81b6044820152606490fd5b61ffff19166101011760005588610b04565b60405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b6064820152608490fd5b50303b158015610aee5750600160ff821614610aee565b50600160ff821610610ae7565b346102875760003660031901126102875760405160006069546113c3816125b6565b8084529060019081811690811561143657506001146113ed575b6102ee846102da8186038261251f565b60696000908152925060008051602061338f8339815191525b82841061141e5750505081016020016102da826113dd565b80546020858701810191909152909301928101611406565b60ff191660208087019190915292151560051b850190920192506102da91508390506113dd565b34610287576000366003190112610287576033546040516001600160a01b039091168152602090f35b346102875760203660031901126102875761149f6124f3565b6114aa6103ca612c6f565b60018060a01b031680600052610165806020526114cf60ff6040600020541615613359565b816000526020526040600020600160ff198254161790557f90811a8edd3b3c17eeaefffc17f639cc69145d41a359c9843994dc2538203690600080a2005b34610287576020366003190112610287576001600160a01b0361152e6124f3565b166000526101666020526020604060002054604051908152f35b3461028757600036600319011261028757602060ff6101645460a81c16604051908152f35b346102875760003660031901126102875760fb5415806117b5575b156117785760405160fd54906000816115a0846125b6565b918282526001948581169081600014611759575060011461170a575b6115c89250038261251f565b60405160fe548160006115da836125b6565b808352928681169081156116eb575060011461169c575b6115fd9250038261251f565b6040516020808201928284106001600160401b038511176105e957908492816116558894876040526000845261164760405197600f60f81b895260e0858a015260e08901906124ce565b9087820360408901526124ce565b91466060870152306080870152600060a087015285830360c0870152519182815201949160005b8281106116895785870386f35b835187529581019592810192840161167c565b509060fe6000526000805160206133cf83398151915290856000925b8284106116d1575050509060206115fd928201016115f1565b6020929450805483858801015201910190918584936116b8565b602092506115fd94915060ff191682840152151560051b8201016115f1565b509060fd6000526000805160206133af83398151915290846000925b82841061173f575050509060206115c8928201016115bc565b602092945080548385880101520191019091848493611726565b602092506115c894915060ff191682840152151560051b8201016115bc565b60405162461bcd60e51b81526020600482015260156024820152741152540dcc4c8e88155b9a5b9a5d1a585b1a5e9959605a1b6044820152606490fd5b5060fc5415611588565b34610287576000366003190112610287576117db6103ca612c6f565b6117e3612d87565b600160ff1960975416176097557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586020604051338152a1005b34610287576020366003190112610287576118356124f3565b6118406103ca612c6f565b6001600160a01b03166000818152610165602081905260409091205460ff161561189f5781600052602052604060002060ff1981541690557fc3776b472ebf54114339eec9e4dc924e7ce307a97f5c1ee72b6d474e6e5e8b7c600080a2005b60405162461bcd60e51b81526020600482015260086024820152672ab7333937bd32b760c11b6044820152606490fd5b34610287576020366003190112610287576001600160a01b036118f06124f3565b1660005261012f6020526020604060002054604051908152f35b34610287576040366003190112610287576119236124f3565b7fcc16f5dbb4873280815c1ee09dbd06736cffcc184412cf7a71a0fdb75d397ca56020602435611951612d87565b61196161195c612c1f565b612d04565b336000526119b7816101659586855261198260ff6040600020541615612d47565b6001600160a01b03811660008181529786526040909720546119a79060ff1615612d47565b6119b2823383613065565b6130fd565b604051908152a2005b34610287576020366003190112610287576119d9612596565b6119e4610717612bbe565b6101649081549060ff8260a81c1660ff821690808214611a3d577f42dcf0e478501125311a035ce1f285846b24d04b18668022677c3f07059ce2d9600080a360ff60a81b1990911660a89190911b60ff60a81b16179055005b60405162461bcd60e51b815260206004820152601460248201527353616d65206d696e74657220726f6c652069642160601b6044820152606490fd5b3461028757600036600319011261028757611a926125f0565b603380546001600160a01b031981169091556000906001600160a01b03167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08280a3005b34610287576020366003190112610287576001600160a01b03611af76124f3565b1660005260656020526020604060002054604051908152f35b3461028757600036600319011261028757602060ff6101645460a01c16604051908152f35b3461028757600036600319011261028757602060ff609754166040519015158152f35b346102875760003660031901126102875760206107ce612c1f565b3461028757604036600319011261028757611b8c6124f3565b7f46980fca912ef9bcdbd36877427b6b90e860769f604e89c0e67720cece530d20602060243592611bbb612d87565b611bc6610717612bbe565b6001600160a01b0316600081815261016683526040908190208590555193845292a2602060405160018152f35b3461028757602036600319011261028757600435611c0f612d87565b33600052610165602052611c2b60ff6040600020541615612d47565b611c3581336130fd565b6040519081527fcc16f5dbb4873280815c1ee09dbd06736cffcc184412cf7a71a0fdb75d397ca560203392a2005b3461028757604036600319011261028757611c7c6124f3565b60248035611c88612d87565b611c9361195c612c1f565b3360005261016591602093838552611cb360ff6040600020541615612d47565b6001600160a01b039081166000818152948652604090942054611cd99060ff1615612d47565b8315611f3c578215611f07573360005261016680865260406000205490818511611ec357848203918211611eae5791869160009333855283526040842055610163541660846040518094819363afe9a9a560e01b835281600484015289888401528860448401523360648401525af1908115611ea257600091611e75575b5015611e405760ff60975416611dea5750611d7481606754612dcb565b606755816000526065835260406000208181540190558160007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef85604051858152a36040519081527fab8530f87dc9b59234c4623bf917212bb2536d647574c8e7e5da92c2ede0c9f8833392a360405160018152f35b83602a6084926040519262461bcd60e51b845260048401528201527f45524332305061757361626c653a20746f6b656e207472616e736665722077686044820152691a5b19481c185d5cd95960b21b6064820152fd5b83600f6064926040519262461bcd60e51b845260048401528201526e4465636c696e65642062792054502160881b6044820152fd5b611e959150853d8711611e9b575b611e8d818361251f565b810190612ba6565b85611d57565b503d611e83565b6040513d6000823e3d90fd5b83634e487b7160e01b60005260116004526000fd5b60405162461bcd60e51b815260048101889052601c818601527f6d696e745f616d6f756e743e6d696e746572416c6c6f77616e636521000000006044820152606490fd5b60405162461bcd60e51b815260048101869052600e818401526d6d696e7420616d6f756e743c302160901b6044820152606490fd5b60405162461bcd60e51b815260048101869052600a81840152696d696e7420746f3d302160b01b6044820152606490fd5b3461028757600036600319011261028757611f896103ca612c6f565b60975460ff811615611fc85760ff19166097557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa6020604051338152a1005b60405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b6044820152606490fd5b346102875760003660031901126102875760206107ce612c6f565b346102875760403660031901126102875761092a61203b6124f3565b612043612d87565b336000526101658060205261206060ff6040600020541615612d47565b60018060a01b038216908160005260205261208360ff6040600020541615612d47565b3360005260666020526040600020906000526020526120a9602435604060002054612dcb565b9033612691565b346102875760003660031901126102875760206120cb61293c565b604051908152f35b3461028757600036600319011261028757602060405160128152f35b3461028757602080600319360112610287576001600160401b039060043582811161028757612122903690600401612540565b9061212b6125f0565b81519283116105e95761016261214181546125b6565b601f8111612233575b508193601f81116001146121c2578061218b956000916121b7575b508160011b916000199060031b1c19161790555b604051928284809451938492016124ab565b81010390207f4fbdbb37d5e7062be889a1d23ddd3cdbdd24887daf956a0bba8f30c8038b88dc600080a2005b905084015186612165565b601f198116948260005260008051602061340f8339815191529560005b81811061221c575095829160019361218b9810612203575b5050811b019055612179565b86015160001960f88460031b161c1916905586806121f7565b8683015188556001909701969185019185016121df565b8160005260008051602061340f833981519152601f860160051c81019184871061227a575b601f0160051c01905b81811061226e575061214a565b60008155600101612261565b9091508190612258565b3461028757602036600319011261028757602061229f6124f3565b6122aa610717612bbe565b6001600160a01b03166000818152610166835260408082208290555191907fe94479a9f7e1952cc78f2d6baab678adc1b772d936c6583def489e524cb666929080a260018152f35b346102875760603660031901126102875761092a61230e6124f3565b612316612509565b60443591612322612d87565b336000526101658060205261233f60ff6040600020541615612d47565b60018060a01b038083166000528160205261236260ff6040600020541615612d47565b831660005260205261237c60ff6040600020541615612d47565b612387833383613065565b612dee565b34610287576000366003190112610287576020606754604051908152f35b346102875760403660031901126102875761092a6123c66124f3565b6123ce612d87565b6001600160a01b0381166000908152610165602052604090205460ff161580612405575b6123fb90613359565b6024359033612691565b50336000908152604090205460ff16156123f2565b34610287576000366003190112610287576000606854612439816125b6565b808452906001908181169081156114365750600114612462576102ee846102da8186038261251f565b6068600090815292506000805160206133ef8339815191525b8284106124935750505081016020016102da826113dd565b8054602085870181019190915290930192810161247b565b60005b8381106124be5750506000910152565b81810151838201526020016124ae565b906020916124e7815180928185528580860191016124ab565b601f01601f1916010190565b600435906001600160a01b038216820361028757565b602435906001600160a01b038216820361028757565b90601f801991011681019081106001600160401b038211176105e957604052565b81601f82011215610287578035906001600160401b0382116105e95760405192612574601f8401601f19166020018561251f565b8284526020838301011161028757816000926020809301838601378301015290565b6004359060ff8216820361028757565b6084359060ff8216820361028757565b90600182811c921680156125e6575b60208310146125d057565b634e487b7160e01b600052602260045260246000fd5b91607f16916125c5565b6033546001600160a01b0316330361260457565b606460405162461bcd60e51b815260206004820152602060248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152fd5b603380546001600160a01b039283166001600160a01b0319821681179092559091167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0600080a3565b6001600160a01b0390811691821561274257169182156126f25760207f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925918360005260668252604060002085600052825280604060002055604051908152a3565b60405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b6064820152608490fd5b60405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b6064820152608490fd5b600581101561289757806127a45750565b600181036127f15760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e617475726500000000000000006044820152606490fd5b6002810361283e5760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e677468006044820152606490fd5b60031461284757565b60405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b6064820152608490fd5b634e487b7160e01b600052602160045260246000fd5b9291907f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a083116129305791608094939160ff602094604051948552168484015260408301526060820152600093849182805260015afa156129235781516001600160a01b0381161561291d579190565b50600190565b50604051903d90823e3d90fd5b50505050600090600390565b6129446129b1565b61294c612a9f565b6040519060208201927f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f8452604083015260608201524660808201523060a082015260a0815260c081018181106001600160401b038211176105e95760405251902090565b60405160fd54906000816129c4846125b6565b91828252602092838301956001908181169081600014612a815750600114612a34575b50506129f59250038261251f565b51908115612a01572090565b505060fb548015612a0f5790565b507fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a47090565b9093915060fd6000526000805160206133af833981519152936000915b818310612a695750506129f5935082010138806129e7565b85548784018501529485019486945091830191612a51565b9150506129f594925060ff19168652151560051b82010138806129e7565b60405160fe5490600081612ab2846125b6565b91828252602092838301956001908181169081600014612b4a5750600114612afd575b5050612ae39250038261251f565b51908115612aef572090565b505060fc548015612a0f5790565b9093915060fe6000526000805160206133cf833981519152936000915b818310612b32575050612ae393508201013880612ad5565b85548784018501529485019486945091830191612b1a565b915050612ae394925060ff19168652151560051b8201013880612ad5565b15612b6f57565b60405162461bcd60e51b815260206004820152600f60248201526e4f6e6c792041646d696e20726f6c6560881b6044820152606490fd5b90816020910312610287575180151581036102875790565b61016454604051632e4bfa5160e11b81523360048201526000602482015290602090829060449082906001600160a01b03165afa908115611ea257600091612c04575090565b612c1c915060203d8111611e9b57611e8d818361251f565b90565b61016454604051632e4bfa5160e11b815233600482015260a882901c60ff1660248201529060209082908180604481015b03916001600160a01b03165afa908115611ea257600091612c04575090565b61016454604051632e4bfa5160e11b815233600482015260a082901c60ff166024820152906020908290818060448101612c50565b15612cab57565b60405162461bcd60e51b815260206004820152602b60248201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960448201526a6e697469616c697a696e6760a81b6064820152608490fd5b15612d0b57565b60405162461bcd60e51b815260206004820152601460248201527331b0b63632b91034b9903737ba1026b4b73a32b960611b6044820152606490fd5b15612d4e57565b60405162461bcd60e51b815260206004820152601160248201527030b1b1b7bab73a1034b990333937bd32b760791b6044820152606490fd5b60ff60975416612d9357565b60405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b6044820152606490fd5b91908201809211612dd857565b634e487b7160e01b600052601160045260246000fd5b6001600160a01b0392908316918215613012578316928315612fc157610163541690604080519263afe9a9a560e01b84528460048501528560248501528260448501523360648501526020938481608481600080965af1908115612fb7578291612f9a575b5015612f645760ff60975416612f0d578481526065845281812054838110612eba579181847fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef969594888495526065875203828220558781522082815401905551908152a3565b825162461bcd60e51b815260048101869052602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b6064820152608490fd5b815162461bcd60e51b815260048101859052602a60248201527f45524332305061757361626c653a20746f6b656e207472616e736665722077686044820152691a5b19481c185d5cd95960b21b6064820152608490fd5b815162461bcd60e51b815260048101859052600f60248201526e4465636c696e65642062792054502160881b6044820152606490fd5b612fb19150853d8711611e9b57611e8d818361251f565b38612e53565b83513d84823e3d90fd5b60405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b6064820152608490fd5b60405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b6064820152608490fd5b9060018060a01b038083166000526066602052604060002090821660005260205260406000205492600019840361309d575b50505050565b8084106130b8576130af930391612691565b38808080613097565b60405162461bcd60e51b815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e63650000006044820152606490fd5b6001600160a01b039081169081156132be57610163541660409283519363afe9a9a560e01b855283600486015260009485938460248301528360448301523360648301528160848160209788945af19081156132b4578691613297575b50156132625760ff6097541661320c5783855260658352808520548281106131bd5790827fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef949392868852606585520381872055816067540360675551908152a3565b815162461bcd60e51b815260048101859052602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e604482015261636560f01b6064820152608490fd5b5162461bcd60e51b815260048101839052602a60248201527f45524332305061757361626c653a20746f6b656e207472616e736665722077686044820152691a5b19481c185d5cd95960b21b6064820152608490fd5b5162461bcd60e51b815260048101839052600f60248201526e4465636c696e65642062792054502160881b6044820152606490fd5b6132ae9150843d8611611e9b57611e8d818361251f565b3861315a565b82513d88823e3d90fd5b60405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736044820152607360f81b6064820152608490fd5b1561331457565b60405162461bcd60e51b815260206004820152601d60248201527f63616c6c6572206973206e6f742041737365742050726f746563746f720000006044820152606490fd5b1561336057565b60405162461bcd60e51b8152602060048201526006602482015265233937bd32b760d11b6044820152606490fdfe7fb4302e8e91f9110a6554c2c0a24601252c2a42c2220ca988efcfe3999143089346ac6dd7de6b96975fec380d4d994c4c12e6a8897544f22915316cc6cca28054075df80ec1ae6ac9100e1fd0ebf3246c17f5c933137af392011f4c5f61513aa2153420d844928b4421650203c77babc8b33d7f2e7b450e2966db0c2209775329af0939a5988989bfee913a9ad10b9335cb63ebc9fd2b69e5f877d0455ac919a2646970667358221220970e67daf07425e1ccfb77c5386b55e505e28603dafd518f0662308ccd15924d64736f6c63430008140033","source_code":"/**\n * VNX Stablecoin Smart Contract\n * Author:    Wazen SHBAIR - wazen.shbair@vnx.io\n * Created:   30.10.2022\n * Updated:   07.08.2025\n * (c) Copyright by VNX S.A, Luxembourg.\n **/\n\n// SPDX-License-Identifier: MIT\npragma solidity ^0.8.0;\nimport { SafeMath } from \"@openzeppelin/contracts/utils/math/SafeMath.sol\";\nimport \"@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol\";\nimport \"@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol\";\nimport \"@openzeppelin/contracts-upgradeable/token/ERC20/extensions/ERC20PausableUpgradeable.sol\";\nimport \"@openzeppelin/contracts-upgradeable/token/ERC20/IERC20Upgradeable.sol\";\nimport \"@openzeppelin/contracts-upgradeable/token/ERC20/extensions/draft-ERC20PermitUpgradeable.sol\";\nimport \"./irbac.sol\";\nimport \"./ITransferProvider.sol\";\n\n\n/**\n * @title VNXC - VNX Stablecoin smart contract\n * @dev ERC20 Token backed by fiat/crypto reserves\n */\ncontract VNXCToken is Initializable, OwnableUpgradeable, ERC20PausableUpgradeable, ERC20PermitUpgradeable {\n    using SafeMath for uint256;\n\n    string public currency;\n\n    /**\n     * @dev Role manager and transfer control\n     */\n    ITransferProvider private transferProvider;\n    IRBAC private rbacManager;\n    uint8 public assetProtectionRoleId;\n    uint8 public minterRoleId;\n    mapping(address => bool) internal frozenList;\n    mapping(address => uint256) internal minterAllowed;\n\n    event Mint(address indexed minter, address indexed to, uint256 amount);\n    event Burn(address indexed burner, uint256 amount);\n    event MinterConfigured(address indexed minter, uint256 minterAllowedAmount);\n    event MinterRemoved(address indexed oldMinter);\n    event AssetProtectionRoleSet (uint8 indexed oldAssetProtectionRole, uint8 indexed newAssetProtectionRole);\n    event MinterRoleSet (uint8 indexed oldMinterRoleId, uint8 indexed newMinterRoleId);\n    event TransferProviderChanged(address indexed oldProvider, address indexed newProvider);\n    event AddressFrozen(address indexed _account);\n    event AddressUnfrozen(address indexed _account);\n    event RBACAddressUpdated(address indexed newRbacAddress);\n    event CurrencyNameUpdated(string indexed newCurrencyName);\n\n    /**\n     * @dev Modifier to make a function callable only by an account \n     * that belongs to the Admin role.\n     */\n    modifier onlyAdmin() {\n        require(isAdmin(), \"Only Admin role\");\n        _;\n    }\n\n    /**\n     * @dev Throws if called by any account other than a minter\n     */\n    modifier onlyMinters() {\n        require(isMinter(), \"caller is not Minter\");\n        _;\n    }\n\n    /**\n     * @dev throws if called by any account other than Asset Protector\n     */\n    modifier onlyAssetProtector() {\n        require(isAssetProtector(), \"caller is not Asset Protector\");\n        _;\n    }\n\n     /**\n     * @dev Throws if argument account is blacklisted\n     * @param _account The address to check\n     */\n    modifier notFrozen(address _account) {\n        require(!isFrozen(_account), \"account is frozen\");\n        _;\n    }\n\n    /**\n     * @dev Checks if account is frozen\n     * @param _account The address to check\n     */\n    function isFrozen(address _account) public view returns (bool) {\n        return frozenList[_account];\n    }\n    \n\n    /**\n     * @dev Sets a new Minter role id.\n     * @param _newMinterRoleId The new role id that is allowed to burn/mint \n     * tokens to control supply.\n     */\n    function setMinterRole(uint8 _newMinterRoleId) external onlyAdmin {\n        require(_newMinterRoleId != minterRoleId, \"Same minter role id!\");\n        emit MinterRoleSet(minterRoleId, _newMinterRoleId);\n        minterRoleId = _newMinterRoleId;\n    }\n\n    /**\n     * @dev Sets a new asset protection role id.\n     * @param _newAssetProtectionRoleId The new role id that is allowed to \n     * freeze/unfreeze addresses and seize their tokens.\n     */\n    function setAssetProtectionRole(uint8 _newAssetProtectionRoleId) external onlyAdmin {\n        require(assetProtectionRoleId != _newAssetProtectionRoleId, \"Same Asset Protect Id!\");\n        emit AssetProtectionRoleSet(assetProtectionRoleId, _newAssetProtectionRoleId);\n        assetProtectionRoleId = _newAssetProtectionRoleId;\n    }\n\n    /**\n     * @dev Sets a new transfers control provider contract address.\n     * @param _newProvider The address of the new transfers control contract.\n     */\n    function changeTransferProvider(address _newProvider) external onlyAdmin {\n        require(address(transferProvider) != _newProvider, \"Same provider!\");\n        require(_newProvider != address(0), \"Provider=0!\");\n        emit TransferProviderChanged(address(transferProvider), _newProvider);\n        transferProvider = ITransferProvider(_newProvider);\n    }\n\n    /**\n     * @dev Returns true if the caller has the admin role\n     */\n    function isAdmin() public view returns (bool) {\n        return rbacManager.hasRole(msg.sender, 0);\n    }\n\n    /**\n     * @dev Returns true if the caller is the admin role\n     */\n    function isMinter() public view returns (bool) {\n        return rbacManager.hasRole(msg.sender, minterRoleId);\n    }\n\n    /**\n     * @dev Returns true if the caller has the Asset Protector role\n     */\n    function isAssetProtector() public view returns (bool) {\n        return rbacManager.hasRole(msg.sender, assetProtectionRoleId);\n    }\n\n    /**\n     * @dev Initialization function\n     * @param _tokenName Token name\n     * @param _tokenSymbol Token symbol \n     * @param _tokenCurrency Backed fiat currency  \n     * @param _assetProtectionRoleId Asset protector role number \n     * @param _minterRoleId minter role number\n     * @param _rbac the RBAC manger address \n     * @param _initTransferProvider Transfer provider address\n     * @param _minterAllowance Owner minting allowance\n     */\n    function initialize( string memory _tokenName, string memory _tokenSymbol,\n    string memory _tokenCurrency, uint8 _assetProtectionRoleId,\n    uint8 _minterRoleId, address _rbac,\n    address _initTransferProvider, uint256 _minterAllowance ) public initializer {\n\n        require(_initTransferProvider != address(0), \"Init=0!\");\n        require(_rbac != address(0), \"rbacManager=0!\");\n\n        currency = _tokenCurrency;\n        __ERC20_init(_tokenName, _tokenSymbol);\n        __Ownable_init();\n        __ERC20Pausable_init();\n        __ERC20Permit_init(_tokenName);\n        rbacManager = IRBAC(_rbac);\n        assetProtectionRoleId = _assetProtectionRoleId;\n        minterRoleId = _minterRoleId;\n        transferProvider = ITransferProvider(_initTransferProvider);\n        minterAllowed[_msgSender()] = _minterAllowance;\n    }\n\n    /**\n     * @dev A hook to be called before transfer/mint/burn tokens function call.\n     * @param from  Payer's address\n     * @param to    Payee's address\n     * @param amount Transfer amount\n     */\n    function _beforeTokenTransfer( address from, address to, uint256 amount) \n                internal override(ERC20Upgradeable, ERC20PausableUpgradeable) {\n        require(transferProvider.approveTransfer(from, to, amount, _msgSender()), \"Declined by TP!\");\n        super._beforeTokenTransfer(from, to, amount);\n    }\n\n    /**\n     * @dev Function to mint tokens\n     * @param _to The address that will receive the minted tokens.\n     * @param _amount The amount of tokens to mint. Must be less than or equal\n     * to the minterAllowance of the caller.\n     * @return A boolean that indicates if the operation was successful.\n     */\n    function mint(address _to, uint256 _amount) external\n        whenNotPaused\n        onlyMinters\n        notFrozen(_msgSender())\n        notFrozen(_to)\n        returns (bool)\n    {\n        require(_to != address(0), \"mint to=0!\");\n        require(_amount > 0, \"mint amount<0!\");\n\n        uint256 mintingAllowedAmount = minterAllowed[_msgSender()];\n        require(\n            _amount <= mintingAllowedAmount,\n            \"mint_amount>minterAllowance!\"\n        );\n        minterAllowed[_msgSender()] = mintingAllowedAmount.sub(_amount);\n        _mint(_to, _amount);\n        emit Mint(_msgSender(), _to, _amount);\n        return true;\n    }\n\n    /**\n     * @dev Get minter allowance for an account\n     * @param minter The address of the minter\n     */\n    function minterAllowance(address minter) external view returns (uint256) {\n        return minterAllowed[minter];\n    }\n\n    /**\n     * @notice Transfer tokens by spending allowance \n     * @param from  Payer's address\n     * @param to    Payee's address\n     * @param value Transfer amount\n     * @return True if successful\n     */\n    function transferFrom( address from, address to, uint256 value)\n        public\n        override\n        whenNotPaused\n        notFrozen(_msgSender())\n        notFrozen(from)\n        notFrozen(to)\n        returns (bool)\n    {\n        return super.transferFrom(from, to, value);\n    }\n\n    /**\n     * @notice Transfer the tokens to a specified address from msg.sender\n     * @param to    The address to transfer to\n     * @param value The amount to be transferred.\n     * @return True if successful\n     */\n    function transfer(address to, uint256 value)\n        public\n        override\n        whenNotPaused\n        notFrozen(_msgSender())\n        notFrozen(to)\n        returns (bool)\n    {\n        return super.transfer(to, value);\n    }\n\n/**\n     * @dev Function to add/update a new minter\n     * @param minterAddress The address of the minter\n     * @param minterAllowedAmount The minting amount allowed for the minter\n     * @return True if the operation was successful.\n     */\n    function configureMinter(address minterAddress, uint256 minterAllowedAmount)\n        external\n        whenNotPaused\n        onlyAdmin\n        returns (bool)\n    {\n        minterAllowed[minterAddress] = minterAllowedAmount;\n        emit MinterConfigured(minterAddress, minterAllowedAmount);\n        return true;\n    }\n\n    /**\n     * @dev Function to remove a minter\n     * @param minterAddress The address of the minter to remove\n     * @return True if the operation was successful.\n     */\n    function removeMinter(address minterAddress)\n        external\n        onlyAdmin\n        returns (bool)\n    {\n        minterAllowed[minterAddress] = 0;\n        emit MinterRemoved(minterAddress);\n        return true;\n    }\n\n    /**\n     * @dev Destroys `amount` tokens from the caller.\n     *\n     * See {ERC20-_burn}.\n     */\n    function burn(uint256 _amount) public virtual\n        whenNotPaused\n        notFrozen(_msgSender())\n    {\n        _burn(_msgSender(), _amount);\n        emit Burn(_msgSender(), _amount);\n    }\n\n    /**\n     * @dev allows a minter to burn tokens\n     * Validates that caller is a minter and that sender is not frozen\n     * amount is less than or equal to the minter's account balance\n     * @param _amount uint256 the amount of tokens to be burned\n     */\n    function burnFrom(address _from, uint256 _amount) public virtual \n        whenNotPaused\n        onlyMinters\n        notFrozen(_msgSender())\n        notFrozen(_from)\n    {\n        _spendAllowance(_from, _msgSender(), _amount);\n        _burn(_from, _amount);\n        emit Burn(_from, _amount);\n    }\n\n    /**\n     * @notice Increase the allowance by a given increment\n     * @param spender   Spender's address\n     * @param increment Amount of increase in allowance\n     * @return True if successful\n     */\n    function increaseAllowance(address spender, uint256 increment)\n        public\n        override\n        whenNotPaused\n        notFrozen(_msgSender())\n        notFrozen(spender)\n        returns (bool)\n    {\n        return super.increaseAllowance(spender, increment);\n    }\n\n    /**\n     * @notice Decrease the allowance by a given decrement\n     * @param spender   Spender's address\n     * @param decrement Amount of decrease in allowance\n     */\n    function decreaseAllowance(address spender, uint256 decrement)\n        public\n        override\n        whenNotPaused\n        notFrozen(_msgSender())\n        notFrozen(spender)\n        returns (bool)\n\n    {\n        return super.decreaseAllowance(spender, decrement);\n    }\n     /**\n     * @dev Freezes address balance from being transferred.\n     * @param _addr The new address to freeze.\n     */\n    function freeze(address _addr) external onlyAssetProtector {\n        require(!isFrozen(_addr), \"Frozen\");\n        frozenList[_addr] = true;\n        emit AddressFrozen(_addr);\n    }\n\n    /**\n     * @dev Unfreezes address balance allowing transfers.\n     * @param _addr The new address to unfreeze.\n     */\n    function unFreeze(address _addr) external onlyAssetProtector {\n        require(isFrozen(_addr), \"Unfrozen\");\n        frozenList[_addr] = false;\n        emit AddressUnfrozen(_addr);\n    }\n\n    /**\n      * @dev Reclaim the FRTs from a specific frozen user address and send them to the wallet of the sender (asset protection address).\n      * @param _addr The frozen address to reclaim the tokens from.\n    */\n    function reclaimTokensFromFrozenAddress(address _addr) external onlyAssetProtector {\n        require(isFrozen(_addr), \"!Frozen\");\n        super._transfer(_addr, _msgSender(), balanceOf(_addr));\n    }\n\n    /**\n    * @dev Pauses all transfer operations on token\n    */\n    function pause() external onlyAssetProtector\n    {\n        _pause();\n    }\n\n    /**\n    * @dev Unpauses all transfer operations on token\n    */\n    function unpause() external onlyAssetProtector\n    {\n        _unpause();\n    }\n\n    /**\n     * @dev Approve the address _spender to spend the specified amount of tokens on behalf of msg.sender.\n     * @param _spender The address that will be allowed to spend the tokens.\n     * @param _value The amount of tokens to be spent.\n     */\n    function approve(address _spender, uint256 _value) public whenNotPaused override returns (bool) {\n        require(!isFrozen(_spender) && !isFrozen(_msgSender()), \"Frozen\");\n        return super.approve(_spender, _value);\n    }\n\n    /**\n     * @dev Update the currency\n     * @param _newCurrencyName the new of new currency\n     */\n    function updateCurrencyName (string memory _newCurrencyName) public onlyOwner\n    {\n        currency = _newCurrencyName;\n        emit CurrencyNameUpdated(_newCurrencyName);\n    }\n\n    /**\n     * @dev Update the RBAC address\n     * @param _newRbacAddress the new RBAC address\n     */\n    function updateRBACAddress(address _newRbacAddress) public onlyOwner\n    {\n        require(_newRbacAddress != address(0), \"RBAC address cannot be zero\");\n        rbacManager = IRBAC(_newRbacAddress);\n        emit RBACAddressUpdated(_newRbacAddress);\n    }\n}\n","creation_status":"success","file_path":"project:/contracts/vnxc.sol"}