{"constructor_args":null,"is_partially_verified":false,"is_changed_bytecode":false,"abi":[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"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":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"DestroyedBlackFunds","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":"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":"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":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"oldAddress","type":"address"},{"indexed":true,"internalType":"address","name":"newAddress","type":"address"}],"name":"UpdateAdminOperations","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"oldAddress","type":"address"},{"indexed":true,"internalType":"address","name":"newAddress","type":"address"}],"name":"UpdateForwarderContract","type":"event"},{"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":"amount","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","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":"burnByUser","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_blackListedUser","type":"address"}],"name":"destroyBlackFunds","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_trustedForwarderContract","type":"address"},{"internalType":"address","name":"_adminOperationsContract","type":"address"}],"name":"initialize","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"forwarder","type":"address"}],"name":"isTrustedForwarder","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"},{"internalType":"address","name":"_mintTo","type":"address"}],"name":"mint","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pause","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","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":"amount","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":"amount","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":[],"name":"unpause","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_newForwarderContract","type":"address"}],"name":"updateForwarderContract","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"}],"conflicting_implementations":null,"certified":false,"additional_sources":[{"file_path":"contracts/IOperations.sol","source_code":"// SPDX-License-Identifier: MIT\npragma solidity ^0.8.7;\n\ninterface IAdmin {\n    function canForward(address user) external view returns (bool);\n\n    function canMint(address user) external view returns (bool);\n\n    function mintAmount(address user) external view returns (uint256);\n\n    function isBlackListed(address user) external view returns (bool);\n\n    function trustedContract(\n        address contractAddress\n    ) external view returns (bool);\n\n    function isExternalSenderWhitelisted(\n        address user\n    ) external view returns (bool);\n\n    function isInternalUserWhitelisted(\n        address user\n    ) external view returns (bool);\n\n    function addCanMint(address user) external returns (bool);\n\n    function removeCanMint(address user) external returns (bool);\n\n    function addMintAmount(\n        address user,\n        uint256 amount\n    ) external returns (bool);\n\n    function removeMintAmount(address user) external returns (bool);\n\n    function whitelistInternalUser(address user) external returns (bool);\n\n    function blacklistInternalUser(address user) external returns (bool);\n\n    function whitelistExternalSender(address user) external returns (bool);\n\n    function blacklistExternalSender(address user) external returns (bool);\n\n    function addCanForward(address user) external returns (bool);\n\n    function removeCanForward(address user) external returns (bool);\n\n    function addTrustedContract(\n        address contractAddress\n    ) external returns (bool);\n\n    function removeTrustedContract(\n        address contractAddress\n    ) external returns (bool);\n\n    function addBlackList(address evilUser) external returns (bool);\n\n    function removeBlackList(address clearedUser) external returns (bool);\n}"},{"file_path":"lib/openzeppelin-contracts-upgradeable/contracts/access/OwnableUpgradeable.sol","source_code":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v4.7.0) (access/Ownable.sol)\n\npragma solidity ^0.8.0;\n\nimport \"../utils/ContextUpgradeable.sol\";\nimport \"../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 anymore. Can only be called by the current owner.\n     *\n     * NOTE: Renouncing ownership will leave the contract without an owner,\n     * thereby removing 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":"lib/openzeppelin-contracts-upgradeable/contracts/proxy/utils/Initializable.sol","source_code":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v4.8.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 * ```\n * contract MyToken is ERC20Upgradeable {\n *     function initialize() initializer public {\n *         __ERC20_init(\"MyToken\", \"MTK\");\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 Internal function that returns the initialized version. Returns `_initialized`\n     */\n    function _getInitializedVersion() internal view returns (uint8) {\n        return _initialized;\n    }\n\n    /**\n     * @dev Internal function that returns the initialized version. Returns `_initializing`\n     */\n    function _isInitializing() internal view returns (bool) {\n        return _initializing;\n    }\n}\n"},{"file_path":"lib/openzeppelin-contracts-upgradeable/contracts/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 \"../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":"lib/openzeppelin-contracts-upgradeable/contracts/security/ReentrancyGuardUpgradeable.sol","source_code":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v4.8.0) (security/ReentrancyGuard.sol)\n\npragma solidity ^0.8.0;\nimport \"../proxy/utils/Initializable.sol\";\n\n/**\n * @dev Contract module that helps prevent reentrant calls to a function.\n *\n * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier\n * available, which can be applied to functions to make sure there are no nested\n * (reentrant) calls to them.\n *\n * Note that because there is a single `nonReentrant` guard, functions marked as\n * `nonReentrant` may not call one another. This can be worked around by making\n * those functions `private`, and then adding `external` `nonReentrant` entry\n * points to them.\n *\n * TIP: If you would like to learn more about reentrancy and alternative ways\n * to protect against it, check out our blog post\n * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul].\n */\nabstract contract ReentrancyGuardUpgradeable is Initializable {\n    // Booleans are more expensive than uint256 or any type that takes up a full\n    // word because each write operation emits an extra SLOAD to first read the\n    // slot's contents, replace the bits taken up by the boolean, and then write\n    // back. This is the compiler's defense against contract upgrades and\n    // pointer aliasing, and it cannot be disabled.\n\n    // The values being non-zero value makes deployment a bit more expensive,\n    // but in exchange the refund on every call to nonReentrant will be lower in\n    // amount. Since refunds are capped to a percentage of the total\n    // transaction's gas, it is best to keep them low in cases like this one, to\n    // increase the likelihood of the full refund coming into effect.\n    uint256 private constant _NOT_ENTERED = 1;\n    uint256 private constant _ENTERED = 2;\n\n    uint256 private _status;\n\n    function __ReentrancyGuard_init() internal onlyInitializing {\n        __ReentrancyGuard_init_unchained();\n    }\n\n    function __ReentrancyGuard_init_unchained() internal onlyInitializing {\n        _status = _NOT_ENTERED;\n    }\n\n    /**\n     * @dev Prevents a contract from calling itself, directly or indirectly.\n     * Calling a `nonReentrant` function from another `nonReentrant`\n     * function is not supported. It is possible to prevent this from happening\n     * by making the `nonReentrant` function external, and making it call a\n     * `private` function that does the actual work.\n     */\n    modifier nonReentrant() {\n        _nonReentrantBefore();\n        _;\n        _nonReentrantAfter();\n    }\n\n    function _nonReentrantBefore() private {\n        // On the first call to nonReentrant, _status will be _NOT_ENTERED\n        require(_status != _ENTERED, \"ReentrancyGuard: reentrant call\");\n\n        // Any calls to nonReentrant after this point will fail\n        _status = _ENTERED;\n    }\n\n    function _nonReentrantAfter() private {\n        // By storing the original value once again, a refund is triggered (see\n        // https://eips.ethereum.org/EIPS/eip-2200)\n        _status = _NOT_ENTERED;\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":"lib/openzeppelin-contracts-upgradeable/contracts/token/ERC20/IERC20Upgradeable.sol","source_code":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v4.6.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(\n        address from,\n        address to,\n        uint256 amount\n    ) external returns (bool);\n}\n"},{"file_path":"lib/openzeppelin-contracts-upgradeable/contracts/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":"lib/openzeppelin-contracts-upgradeable/contracts/utils/AddressUpgradeable.sol","source_code":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v4.8.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     *\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://diligence.consensys.net/posts/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.5.11/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(\n        address target,\n        bytes memory data,\n        uint256 value\n    ) 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 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":"lib/openzeppelin-contracts-upgradeable/contracts/utils/ContextUpgradeable.sol","source_code":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)\n\npragma solidity ^0.8.0;\nimport \"../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    /**\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"}],"is_verified_via_sourcify":false,"can_be_visualized_via_sol2uml":true,"evm_version":"paris","language":"solidity","is_verified_via_eth_bytecode_db":true,"is_fully_verified":true,"license_type":"none","is_blueprint":false,"name":"Cngn3","creation_bytecode":"0x6080604052348015600f57600080fd5b506016601a565b60d8565b600054610100900460ff161560855760405162461bcd60e51b815260206004820152602760248201527f496e697469616c697a61626c653a20636f6e747261637420697320696e697469604482015266616c697a696e6760c81b606482015260840160405180910390fd5b60005460ff908116101560d6576000805460ff191660ff9081179091556040519081527f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb38474024989060200160405180910390a15b565b61202f806100e76000396000f3fe608060405234801561001057600080fd5b50600436106101375760003560e01c8063715018a6116100b857806395d89b411161007c57806395d89b4114610275578063a9059cbb1461027d578063b7d5b1ef14610290578063dd62ed3e146102a3578063f2fde38b146102dc578063f3bdc228146102ef57600080fd5b8063715018a6146102245780637742af461461022c5780638456cb591461023f5780638da5cb5b1461024757806394bf804d1461026257600080fd5b80633f4ba83a116100ff5780633f4ba83a146101b1578063485cc955146101b9578063572b6c05146101ce5780635c975abb146101f057806370a08231146101fb57600080fd5b806306fdde031461013c578063095ea7b31461015a57806318160ddd1461017d57806323b872dd1461018f578063313ce567146101a2575b600080fd5b610144610302565b6040516101519190611c9f565b60405180910390f35b61016d610168366004611d04565b610394565b6040519015158152602001610151565b60cb545b604051908152602001610151565b61016d61019d366004611d2e565b6103b8565b60405160068152602001610151565b61016d610726565b6101cc6101c7366004611d6b565b61073e565b005b61016d6101dc366004611d9e565b60ce546001600160a01b0391821691161490565b60655460ff1661016d565b610181610209366004611d9e565b6001600160a01b0316600090815260c9602052604090205490565b6101cc6108d3565b61016d61023a366004611db9565b6108e7565b61016d6109e0565b6033546040516001600160a01b039091168152602001610151565b61016d610270366004611dd2565b6109f2565b610144610de3565b61016d61028b366004611d04565b610df2565b61016d61029e366004611d9e565b611086565b6101816102b1366004611d6b565b6001600160a01b03918216600090815260ca6020908152604080832093909416825291909152205490565b6101cc6102ea366004611d9e565b61115b565b61016d6102fd366004611d9e565b6111d4565b606060cc805461031190611df5565b80601f016020809104026020016040519081016040528092919081815260200182805461033d90611df5565b801561038a5780601f1061035f5761010080835404028352916020019161038a565b820191906000526020600020905b81548152906001019060200180831161036d57829003601f168201915b5050505050905090565b60008061039f611307565b90506103ac81858561133b565b60019150505b92915050565b60006103c261145f565b6103ca6114a5565b60006103d4611307565b60cf54604051630723eb0360e51b81526001600160a01b03808416600483015292935091169063e47d606090602401602060405180830381865afa158015610420573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104449190611e2f565b1561048f5760405162461bcd60e51b815260206004820152601660248201527514dc195b99195c881a5cc8189b1858dadb1a5cdd195960521b60448201526064015b60405180910390fd5b60cf54604051630723eb0360e51b81526001600160a01b0387811660048301529091169063e47d606090602401602060405180830381865afa1580156104d9573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104fd9190611e2f565b156105425760405162461bcd60e51b815260206004820152601560248201527414d95b99195c881a5cc8189b1858dadb1a5cdd1959605a1b6044820152606401610486565b60cf54604051630723eb0360e51b81526001600160a01b0386811660048301529091169063e47d606090602401602060405180830381865afa15801561058c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105b09190611e2f565b156105f85760405162461bcd60e51b8152602060048201526018602482015277149958da5c1a595b9d081a5cc8189b1858dadb1a5cdd195960421b6044820152606401610486565b6106038582856114fe565b60cf54604051631fe84b3760e11b81526001600160a01b03868116600483015290911690633fd0966e90602401602060405180830381865afa15801561064d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106719190611e2f565b80156106e6575060cf54604051635efd376560e01b81526001600160a01b03878116600483015290911690635efd376590602401602060405180830381865afa1580156106c2573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106e69190611e2f565b15610705576106f6858585611590565b6107008484611746565b610710565b610710858585611590565b600191505061071f6001609755565b9392505050565b600061073061188d565b610738611906565b50600190565b600054610100900460ff161580801561075e5750600054600160ff909116105b806107785750303b158015610778575060005460ff166001145b6107db5760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b6064820152608401610486565b6000805460ff1916600117905580156107fe576000805461ff0019166101001790555b6108406040518060400160405280600481526020016331a723a760e11b8152506040518060400160405280600481526020016331a723a760e11b81525061195e565b610848611993565b6108506119c2565b6108586119f1565b60ce80546001600160a01b038086166001600160a01b03199283161790925560cf80549285169290911691909117905580156108ce576000805461ff0019169055604051600181527f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb38474024989060200160405180910390a15b505050565b6108db61188d565b6108e56000611a20565b565b60006108f161145f565b6108f96114a5565b60cf546001600160a01b031663e47d6060610912611307565b6040516001600160e01b031960e084901b1681526001600160a01b039091166004820152602401602060405180830381865afa158015610956573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061097a9190611e2f565b156109bd5760405162461bcd60e51b8152602060048201526013602482015272155cd95c881a5cc8189b1858dadb1a5cdd1959606a1b6044820152606401610486565b6109ce6109c8611307565b83611746565b5060016109db6001609755565b919050565b60006109ea61188d565b610738611a72565b60006109fc61145f565b610a046114a5565b6000610a0e611307565b60cf54604051630723eb0360e51b81526001600160a01b03808416600483015292935091169063e47d606090602401602060405180830381865afa158015610a5a573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a7e9190611e2f565b15610ac35760405162461bcd60e51b815260206004820152601560248201527414da59db995c881a5cc8189b1858dadb1a5cdd1959605a1b6044820152606401610486565b60cf54604051630723eb0360e51b81526001600160a01b0385811660048301529091169063e47d606090602401602060405180830381865afa158015610b0d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b319190611e2f565b15610b7e5760405162461bcd60e51b815260206004820152601760248201527f526563656976657220697320626c61636b6c69737465640000000000000000006044820152606401610486565b60cf546040516330ae91d160e21b81526001600160a01b0383811660048301529091169063c2ba474490602401602060405180830381865afa158015610bc8573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610bec9190611e2f565b610c385760405162461bcd60e51b815260206004820152601d60248201527f4d696e746572206e6f7420617574686f72697a656420746f207369676e0000006044820152606401610486565b60cf54604051630157608b60e21b81526001600160a01b0383811660048301528692169063055d822c90602401602060405180830381865afa158015610c82573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ca69190611e51565b14610cff5760405162461bcd60e51b8152602060048201526024808201527f417474656d7074696e6720746f206d696e74206d6f7265207468616e20616c6c6044820152631bddd95960e21b6064820152608401610486565b610d098385611ab0565b60cf54604051634527056760e11b81526001600160a01b03838116600483015290911690638a4e0ace906024016020604051808303816000875af1158015610d55573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d799190611e2f565b610dd45760405162461bcd60e51b815260206004820152602660248201527f4661696c656420746f207265766f6b65206d696e74696e6720617574686f72696044820152653d30ba34b7b760d11b6064820152608401610486565b60019150506103b26001609755565b606060cd805461031190611df5565b6000610dfc61145f565b610e046114a5565b6000610e0e611307565b60cf54604051630723eb0360e51b81526001600160a01b03808416600483015292935091169063e47d606090602401602060405180830381865afa158015610e5a573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e7e9190611e2f565b15610ec35760405162461bcd60e51b815260206004820152601560248201527414d95b99195c881a5cc8189b1858dadb1a5cdd1959605a1b6044820152606401610486565b60cf54604051630723eb0360e51b81526001600160a01b0386811660048301529091169063e47d606090602401602060405180830381865afa158015610f0d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f319190611e2f565b15610f795760405162461bcd60e51b8152602060048201526018602482015277149958da5c1a595b9d081a5cc8189b1858dadb1a5cdd195960421b6044820152606401610486565b60cf54604051631fe84b3760e11b81526001600160a01b03868116600483015290911690633fd0966e90602401602060405180830381865afa158015610fc3573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610fe79190611e2f565b801561105c575060cf54604051635efd376560e01b81526001600160a01b03838116600483015290911690635efd376590602401602060405180830381865afa158015611038573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061105c9190611e2f565b1561107b5761106c818585611590565b6110768484611746565b610dd4565b610dd4818585611590565b600061109061188d565b6001600160a01b0382166110fc5760405162461bcd60e51b815260206004820152602d60248201527f4e657720666f7277617264657220636f6e74726163742061646472657373206360448201526c616e6e6f74206265207a65726f60981b6064820152608401610486565b60ce546040516001600160a01b038085169216907f144e3fe32a3415ebced68e12351d707da04e37445b8513e146b7441e110fd82e90600090a35060ce80546001600160a01b0383166001600160a01b03199091161790556001919050565b61116361188d565b6001600160a01b0381166111c85760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610486565b6111d181611a20565b50565b60006111de61188d565b6111e66114a5565b60cf54604051630723eb0360e51b81526001600160a01b0384811660048301529091169063e47d606090602401602060405180830381865afa158015611230573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112549190611e2f565b6112925760405162461bcd60e51b815260206004820152600f60248201526e139bdd08189b1858dadb1a5cdd1959608a1b6044820152606401610486565b6001600160a01b038216600090815260c960205260409020546112b58382611746565b826001600160a01b03167f61e6e66b0d6339b2980aecc6ccc0039736791f0ccde9ed512e789a7fbdd698c6826040516112f091815260200190565b60405180910390a260019150506109db6001609755565b600060143610801590611324575060ce546001600160a01b031633145b15611336575060131936013560601c90565b503390565b6001600160a01b03831661139d5760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b6064820152608401610486565b6001600160a01b0382166113fe5760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b6064820152608401610486565b6001600160a01b03838116600081815260ca602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b60655460ff16156108e55760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b6044820152606401610486565b6002609754036114f75760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610486565b6002609755565b6001600160a01b03838116600090815260ca6020908152604080832093861683529290522054600019811461158a578181101561157d5760405162461bcd60e51b815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e63650000006044820152606401610486565b61158a848484840361133b565b50505050565b6001600160a01b0383166115f45760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b6064820152608401610486565b6001600160a01b0382166116565760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b6064820152608401610486565b611661838383611b7d565b6001600160a01b038316600090815260c96020526040902054818110156116d95760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b6064820152608401610486565b6001600160a01b03808516600081815260c9602052604080822086860390559286168082529083902080548601905591517fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef906117399086815260200190565b60405180910390a361158a565b6001600160a01b0382166117a65760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736044820152607360f81b6064820152608401610486565b6117b282600083611b7d565b6001600160a01b038216600090815260c96020526040902054818110156118265760405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e604482015261636560f01b6064820152608401610486565b6001600160a01b038316600081815260c960209081526040808320868603905560cb80548790039055518581529192917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a3505050565b6001609755565b611895611307565b6001600160a01b03166118b06033546001600160a01b031690565b6001600160a01b0316146108e55760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610486565b61190e611b85565b6065805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa611941611307565b6040516001600160a01b03909116815260200160405180910390a1565b600054610100900460ff166119855760405162461bcd60e51b815260040161048690611e6a565b61198f8282611bce565b5050565b600054610100900460ff166119ba5760405162461bcd60e51b815260040161048690611e6a565b6108e5611c0e565b600054610100900460ff166119e95760405162461bcd60e51b815260040161048690611e6a565b6108e5611c45565b600054610100900460ff16611a185760405162461bcd60e51b815260040161048690611e6a565b6108e5611c78565b603380546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b611a7a61145f565b6065805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258611941611307565b6001600160a01b038216611b065760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f2061646472657373006044820152606401610486565b611b1260008383611b7d565b8060cb6000828254611b249190611eb5565b90915550506001600160a01b038216600081815260c960209081526040808320805486019055518481527fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a35050565b6108ce61145f565b60655460ff166108e55760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b6044820152606401610486565b600054610100900460ff16611bf55760405162461bcd60e51b815260040161048690611e6a565b60cc611c018382611f3a565b5060cd6108ce8282611f3a565b600054610100900460ff16611c355760405162461bcd60e51b815260040161048690611e6a565b6108e5611c40611307565b611a20565b600054610100900460ff16611c6c5760405162461bcd60e51b815260040161048690611e6a565b6065805460ff19169055565b600054610100900460ff166118865760405162461bcd60e51b815260040161048690611e6a565b602081526000825180602084015260005b81811015611ccd5760208186018101516040868401015201611cb0565b506000604082850101526040601f19601f83011684010191505092915050565b80356001600160a01b03811681146109db57600080fd5b60008060408385031215611d1757600080fd5b611d2083611ced565b946020939093013593505050565b600080600060608486031215611d4357600080fd5b611d4c84611ced565b9250611d5a60208501611ced565b929592945050506040919091013590565b60008060408385031215611d7e57600080fd5b611d8783611ced565b9150611d9560208401611ced565b90509250929050565b600060208284031215611db057600080fd5b61071f82611ced565b600060208284031215611dcb57600080fd5b5035919050565b60008060408385031215611de557600080fd5b82359150611d9560208401611ced565b600181811c90821680611e0957607f821691505b602082108103611e2957634e487b7160e01b600052602260045260246000fd5b50919050565b600060208284031215611e4157600080fd5b8151801515811461071f57600080fd5b600060208284031215611e6357600080fd5b5051919050565b6020808252602b908201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960408201526a6e697469616c697a696e6760a81b606082015260800190565b808201808211156103b257634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052604160045260246000fd5b601f8211156108ce57806000526020600020601f840160051c81016020851015611f135750805b601f840160051c820191505b81811015611f335760008155600101611f1f565b5050505050565b815167ffffffffffffffff811115611f5457611f54611ed6565b611f6881611f628454611df5565b84611eec565b6020601f821160018114611f9c5760008315611f845750848201515b600019600385901b1c1916600184901b178455611f33565b600084815260208120601f198516915b82811015611fcc5787850151825560209485019460019092019101611fac565b5084821015611fea5786840151600019600387901b60f8161c191681555b50505050600190811b0190555056fea264697066735822122067eb73f4e61c1f0bc2faa887da0a044cc959e66a21df097fee5c08ee29a32af264736f6c634300081c0033","external_libraries":[],"proxy_type":null,"implementations":[],"verified_at":"2026-03-03T18:21:19.027694Z","is_verified_via_verifier_alliance":false,"compiler_version":"v0.8.28+commit.7893614a","decoded_constructor_args":null,"sourcify_repo_url":null,"optimization_runs":200,"compiler_settings":{"evmVersion":"paris","libraries":{},"metadata":{"appendCBOR":true,"bytecodeHash":"ipfs","useLiteralContent":false},"optimizer":{"enabled":true,"runs":200},"outputSelection":{"*":{"":["*"],"*":["*"]}},"remappings":["forge-std/=lib/forge-std/src/","@openzeppelin/contracts-upgradeable/=lib/openzeppelin-contracts-upgradeable/contracts/","@openzeppelin/contracts/=lib/openzeppelin-contracts/contracts/","ds-test/=lib/openzeppelin-contracts-upgradeable/lib/forge-std/lib/ds-test/src/","erc4626-tests/=lib/openzeppelin-contracts-upgradeable/lib/erc4626-tests/","openzeppelin-contracts-upgradeable/=lib/openzeppelin-contracts-upgradeable/","openzeppelin-contracts/=lib/openzeppelin-contracts/"],"viaIR":false},"is_verified":true,"verified_twin_address_hash":null,"optimization_enabled":true,"deployed_bytecode":"0x608060405234801561001057600080fd5b50600436106101375760003560e01c8063715018a6116100b857806395d89b411161007c57806395d89b4114610275578063a9059cbb1461027d578063b7d5b1ef14610290578063dd62ed3e146102a3578063f2fde38b146102dc578063f3bdc228146102ef57600080fd5b8063715018a6146102245780637742af461461022c5780638456cb591461023f5780638da5cb5b1461024757806394bf804d1461026257600080fd5b80633f4ba83a116100ff5780633f4ba83a146101b1578063485cc955146101b9578063572b6c05146101ce5780635c975abb146101f057806370a08231146101fb57600080fd5b806306fdde031461013c578063095ea7b31461015a57806318160ddd1461017d57806323b872dd1461018f578063313ce567146101a2575b600080fd5b610144610302565b6040516101519190611c9f565b60405180910390f35b61016d610168366004611d04565b610394565b6040519015158152602001610151565b60cb545b604051908152602001610151565b61016d61019d366004611d2e565b6103b8565b60405160068152602001610151565b61016d610726565b6101cc6101c7366004611d6b565b61073e565b005b61016d6101dc366004611d9e565b60ce546001600160a01b0391821691161490565b60655460ff1661016d565b610181610209366004611d9e565b6001600160a01b0316600090815260c9602052604090205490565b6101cc6108d3565b61016d61023a366004611db9565b6108e7565b61016d6109e0565b6033546040516001600160a01b039091168152602001610151565b61016d610270366004611dd2565b6109f2565b610144610de3565b61016d61028b366004611d04565b610df2565b61016d61029e366004611d9e565b611086565b6101816102b1366004611d6b565b6001600160a01b03918216600090815260ca6020908152604080832093909416825291909152205490565b6101cc6102ea366004611d9e565b61115b565b61016d6102fd366004611d9e565b6111d4565b606060cc805461031190611df5565b80601f016020809104026020016040519081016040528092919081815260200182805461033d90611df5565b801561038a5780601f1061035f5761010080835404028352916020019161038a565b820191906000526020600020905b81548152906001019060200180831161036d57829003601f168201915b5050505050905090565b60008061039f611307565b90506103ac81858561133b565b60019150505b92915050565b60006103c261145f565b6103ca6114a5565b60006103d4611307565b60cf54604051630723eb0360e51b81526001600160a01b03808416600483015292935091169063e47d606090602401602060405180830381865afa158015610420573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104449190611e2f565b1561048f5760405162461bcd60e51b815260206004820152601660248201527514dc195b99195c881a5cc8189b1858dadb1a5cdd195960521b60448201526064015b60405180910390fd5b60cf54604051630723eb0360e51b81526001600160a01b0387811660048301529091169063e47d606090602401602060405180830381865afa1580156104d9573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104fd9190611e2f565b156105425760405162461bcd60e51b815260206004820152601560248201527414d95b99195c881a5cc8189b1858dadb1a5cdd1959605a1b6044820152606401610486565b60cf54604051630723eb0360e51b81526001600160a01b0386811660048301529091169063e47d606090602401602060405180830381865afa15801561058c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105b09190611e2f565b156105f85760405162461bcd60e51b8152602060048201526018602482015277149958da5c1a595b9d081a5cc8189b1858dadb1a5cdd195960421b6044820152606401610486565b6106038582856114fe565b60cf54604051631fe84b3760e11b81526001600160a01b03868116600483015290911690633fd0966e90602401602060405180830381865afa15801561064d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106719190611e2f565b80156106e6575060cf54604051635efd376560e01b81526001600160a01b03878116600483015290911690635efd376590602401602060405180830381865afa1580156106c2573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106e69190611e2f565b15610705576106f6858585611590565b6107008484611746565b610710565b610710858585611590565b600191505061071f6001609755565b9392505050565b600061073061188d565b610738611906565b50600190565b600054610100900460ff161580801561075e5750600054600160ff909116105b806107785750303b158015610778575060005460ff166001145b6107db5760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b6064820152608401610486565b6000805460ff1916600117905580156107fe576000805461ff0019166101001790555b6108406040518060400160405280600481526020016331a723a760e11b8152506040518060400160405280600481526020016331a723a760e11b81525061195e565b610848611993565b6108506119c2565b6108586119f1565b60ce80546001600160a01b038086166001600160a01b03199283161790925560cf80549285169290911691909117905580156108ce576000805461ff0019169055604051600181527f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb38474024989060200160405180910390a15b505050565b6108db61188d565b6108e56000611a20565b565b60006108f161145f565b6108f96114a5565b60cf546001600160a01b031663e47d6060610912611307565b6040516001600160e01b031960e084901b1681526001600160a01b039091166004820152602401602060405180830381865afa158015610956573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061097a9190611e2f565b156109bd5760405162461bcd60e51b8152602060048201526013602482015272155cd95c881a5cc8189b1858dadb1a5cdd1959606a1b6044820152606401610486565b6109ce6109c8611307565b83611746565b5060016109db6001609755565b919050565b60006109ea61188d565b610738611a72565b60006109fc61145f565b610a046114a5565b6000610a0e611307565b60cf54604051630723eb0360e51b81526001600160a01b03808416600483015292935091169063e47d606090602401602060405180830381865afa158015610a5a573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a7e9190611e2f565b15610ac35760405162461bcd60e51b815260206004820152601560248201527414da59db995c881a5cc8189b1858dadb1a5cdd1959605a1b6044820152606401610486565b60cf54604051630723eb0360e51b81526001600160a01b0385811660048301529091169063e47d606090602401602060405180830381865afa158015610b0d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b319190611e2f565b15610b7e5760405162461bcd60e51b815260206004820152601760248201527f526563656976657220697320626c61636b6c69737465640000000000000000006044820152606401610486565b60cf546040516330ae91d160e21b81526001600160a01b0383811660048301529091169063c2ba474490602401602060405180830381865afa158015610bc8573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610bec9190611e2f565b610c385760405162461bcd60e51b815260206004820152601d60248201527f4d696e746572206e6f7420617574686f72697a656420746f207369676e0000006044820152606401610486565b60cf54604051630157608b60e21b81526001600160a01b0383811660048301528692169063055d822c90602401602060405180830381865afa158015610c82573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ca69190611e51565b14610cff5760405162461bcd60e51b8152602060048201526024808201527f417474656d7074696e6720746f206d696e74206d6f7265207468616e20616c6c6044820152631bddd95960e21b6064820152608401610486565b610d098385611ab0565b60cf54604051634527056760e11b81526001600160a01b03838116600483015290911690638a4e0ace906024016020604051808303816000875af1158015610d55573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d799190611e2f565b610dd45760405162461bcd60e51b815260206004820152602660248201527f4661696c656420746f207265766f6b65206d696e74696e6720617574686f72696044820152653d30ba34b7b760d11b6064820152608401610486565b60019150506103b26001609755565b606060cd805461031190611df5565b6000610dfc61145f565b610e046114a5565b6000610e0e611307565b60cf54604051630723eb0360e51b81526001600160a01b03808416600483015292935091169063e47d606090602401602060405180830381865afa158015610e5a573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e7e9190611e2f565b15610ec35760405162461bcd60e51b815260206004820152601560248201527414d95b99195c881a5cc8189b1858dadb1a5cdd1959605a1b6044820152606401610486565b60cf54604051630723eb0360e51b81526001600160a01b0386811660048301529091169063e47d606090602401602060405180830381865afa158015610f0d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f319190611e2f565b15610f795760405162461bcd60e51b8152602060048201526018602482015277149958da5c1a595b9d081a5cc8189b1858dadb1a5cdd195960421b6044820152606401610486565b60cf54604051631fe84b3760e11b81526001600160a01b03868116600483015290911690633fd0966e90602401602060405180830381865afa158015610fc3573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610fe79190611e2f565b801561105c575060cf54604051635efd376560e01b81526001600160a01b03838116600483015290911690635efd376590602401602060405180830381865afa158015611038573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061105c9190611e2f565b1561107b5761106c818585611590565b6110768484611746565b610dd4565b610dd4818585611590565b600061109061188d565b6001600160a01b0382166110fc5760405162461bcd60e51b815260206004820152602d60248201527f4e657720666f7277617264657220636f6e74726163742061646472657373206360448201526c616e6e6f74206265207a65726f60981b6064820152608401610486565b60ce546040516001600160a01b038085169216907f144e3fe32a3415ebced68e12351d707da04e37445b8513e146b7441e110fd82e90600090a35060ce80546001600160a01b0383166001600160a01b03199091161790556001919050565b61116361188d565b6001600160a01b0381166111c85760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610486565b6111d181611a20565b50565b60006111de61188d565b6111e66114a5565b60cf54604051630723eb0360e51b81526001600160a01b0384811660048301529091169063e47d606090602401602060405180830381865afa158015611230573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112549190611e2f565b6112925760405162461bcd60e51b815260206004820152600f60248201526e139bdd08189b1858dadb1a5cdd1959608a1b6044820152606401610486565b6001600160a01b038216600090815260c960205260409020546112b58382611746565b826001600160a01b03167f61e6e66b0d6339b2980aecc6ccc0039736791f0ccde9ed512e789a7fbdd698c6826040516112f091815260200190565b60405180910390a260019150506109db6001609755565b600060143610801590611324575060ce546001600160a01b031633145b15611336575060131936013560601c90565b503390565b6001600160a01b03831661139d5760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b6064820152608401610486565b6001600160a01b0382166113fe5760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b6064820152608401610486565b6001600160a01b03838116600081815260ca602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b60655460ff16156108e55760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b6044820152606401610486565b6002609754036114f75760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610486565b6002609755565b6001600160a01b03838116600090815260ca6020908152604080832093861683529290522054600019811461158a578181101561157d5760405162461bcd60e51b815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e63650000006044820152606401610486565b61158a848484840361133b565b50505050565b6001600160a01b0383166115f45760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b6064820152608401610486565b6001600160a01b0382166116565760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b6064820152608401610486565b611661838383611b7d565b6001600160a01b038316600090815260c96020526040902054818110156116d95760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b6064820152608401610486565b6001600160a01b03808516600081815260c9602052604080822086860390559286168082529083902080548601905591517fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef906117399086815260200190565b60405180910390a361158a565b6001600160a01b0382166117a65760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736044820152607360f81b6064820152608401610486565b6117b282600083611b7d565b6001600160a01b038216600090815260c96020526040902054818110156118265760405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e604482015261636560f01b6064820152608401610486565b6001600160a01b038316600081815260c960209081526040808320868603905560cb80548790039055518581529192917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a3505050565b6001609755565b611895611307565b6001600160a01b03166118b06033546001600160a01b031690565b6001600160a01b0316146108e55760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610486565b61190e611b85565b6065805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa611941611307565b6040516001600160a01b03909116815260200160405180910390a1565b600054610100900460ff166119855760405162461bcd60e51b815260040161048690611e6a565b61198f8282611bce565b5050565b600054610100900460ff166119ba5760405162461bcd60e51b815260040161048690611e6a565b6108e5611c0e565b600054610100900460ff166119e95760405162461bcd60e51b815260040161048690611e6a565b6108e5611c45565b600054610100900460ff16611a185760405162461bcd60e51b815260040161048690611e6a565b6108e5611c78565b603380546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b611a7a61145f565b6065805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258611941611307565b6001600160a01b038216611b065760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f2061646472657373006044820152606401610486565b611b1260008383611b7d565b8060cb6000828254611b249190611eb5565b90915550506001600160a01b038216600081815260c960209081526040808320805486019055518481527fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a35050565b6108ce61145f565b60655460ff166108e55760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b6044820152606401610486565b600054610100900460ff16611bf55760405162461bcd60e51b815260040161048690611e6a565b60cc611c018382611f3a565b5060cd6108ce8282611f3a565b600054610100900460ff16611c355760405162461bcd60e51b815260040161048690611e6a565b6108e5611c40611307565b611a20565b600054610100900460ff16611c6c5760405162461bcd60e51b815260040161048690611e6a565b6065805460ff19169055565b600054610100900460ff166118865760405162461bcd60e51b815260040161048690611e6a565b602081526000825180602084015260005b81811015611ccd5760208186018101516040868401015201611cb0565b506000604082850101526040601f19601f83011684010191505092915050565b80356001600160a01b03811681146109db57600080fd5b60008060408385031215611d1757600080fd5b611d2083611ced565b946020939093013593505050565b600080600060608486031215611d4357600080fd5b611d4c84611ced565b9250611d5a60208501611ced565b929592945050506040919091013590565b60008060408385031215611d7e57600080fd5b611d8783611ced565b9150611d9560208401611ced565b90509250929050565b600060208284031215611db057600080fd5b61071f82611ced565b600060208284031215611dcb57600080fd5b5035919050565b60008060408385031215611de557600080fd5b82359150611d9560208401611ced565b600181811c90821680611e0957607f821691505b602082108103611e2957634e487b7160e01b600052602260045260246000fd5b50919050565b600060208284031215611e4157600080fd5b8151801515811461071f57600080fd5b600060208284031215611e6357600080fd5b5051919050565b6020808252602b908201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960408201526a6e697469616c697a696e6760a81b606082015260800190565b808201808211156103b257634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052604160045260246000fd5b601f8211156108ce57806000526020600020601f840160051c81016020851015611f135750805b601f840160051c820191505b81811015611f335760008155600101611f1f565b5050505050565b815167ffffffffffffffff811115611f5457611f54611ed6565b611f6881611f628454611df5565b84611eec565b6020601f821160018114611f9c5760008315611f845750848201515b600019600385901b1c1916600184901b178455611f33565b600084815260208120601f198516915b82811015611fcc5787850151825560209485019460019092019101611fac565b5084821015611fea5786840151600019600387901b60f8161c191681555b50505050600190811b0190555056fea264697066735822122067eb73f4e61c1f0bc2faa887da0a044cc959e66a21df097fee5c08ee29a32af264736f6c634300081c0033","source_code":"// SPDX-License-Identifier: MIT\npragma solidity ^0.8.4;\n\nimport \"@openzeppelin/contracts-upgradeable/token/ERC20/IERC20Upgradeable.sol\";\nimport \"@openzeppelin/contracts-upgradeable/security/PausableUpgradeable.sol\";\nimport \"@openzeppelin/contracts-upgradeable/security/ReentrancyGuardUpgradeable.sol\";\nimport \"@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol\";\nimport \"@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol\";\nimport \"@openzeppelin/contracts-upgradeable/token/ERC20/extensions/IERC20MetadataUpgradeable.sol\";\nimport \"./IOperations.sol\";\n\ncontract Cngn3 is\n    Initializable,\n    OwnableUpgradeable,\n    IERC20Upgradeable,\n    IERC20MetadataUpgradeable,\n    PausableUpgradeable,\n    ReentrancyGuardUpgradeable \n{\n    event DestroyedBlackFunds(address indexed user, uint256 amount);\n    event UpdateAdminOperations(\n        address indexed oldAddress,\n        address indexed newAddress\n    );\n    event UpdateForwarderContract(\n        address indexed oldAddress,\n        address indexed newAddress\n    );\n\n    modifier onlyDeployerOrForwarder() {\n        require(\n            msg.sender == owner() || isTrustedForwarder(msg.sender),\n            \"Caller is not the deployer or the trusted forwarder\"\n        );\n        _;\n    }\n\n    modifier onlyAdmin() {\n        require(_msgSender() == owner(), \"Caller is not admin\");\n        _;\n    }\n\n    modifier onlyTrustedForwarderCaller() {\n        require(isTrustedForwarder(msg.sender), \"Not trusted forwarder\");\n        _;\n    }\n\n    /// @custom:oz-upgrades-unsafe-allow constructor\n    constructor() {\n        _disableInitializers();\n    }\n\n    function __ERC20_init(\n        string memory name_,\n        string memory symbol_\n    ) internal onlyInitializing {\n        __ERC20_init_unchained(name_, symbol_);\n    }\n\n    function __ERC20_init_unchained(\n        string memory name_,\n        string memory symbol_\n    ) internal onlyInitializing {\n        _name = name_;\n        _symbol = symbol_;\n    }\n\n    function initialize(\n        address _trustedForwarderContract,\n        address _adminOperationsContract\n    ) public initializer {\n        __ERC20_init(\"cNGN\", \"cNGN\");\n        __Ownable_init();\n        __Pausable_init();\n        __ReentrancyGuard_init();\n        trustedForwarderContract = _trustedForwarderContract;\n        adminOperationsContract = _adminOperationsContract;\n    }\n\n    function isTrustedForwarder(address forwarder) public view returns (bool) {\n        return forwarder == trustedForwarderContract;\n    }\n\n    // function updateAdminOperationsAddress(\n    //     address _newAdmin\n    // ) public virtual onlyOwner returns (bool) {\n    //     require(\n    //         _newAdmin != address(0),\n    //         \"New admin operations contract address cannot be zero\"\n    //     );\n    //     emit UpdateAdminOperations(adminOperationsContract, _newAdmin);\n    //     adminOperationsContract = _newAdmin;\n    //     return true;\n    // }\n\n    function updateForwarderContract(\n        address _newForwarderContract\n    ) public virtual onlyOwner returns (bool) {\n        require(\n            _newForwarderContract != address(0),\n            \"New forwarder contract address cannot be zero\"\n        );\n        emit UpdateForwarderContract(\n            trustedForwarderContract,\n            _newForwarderContract\n        );\n        trustedForwarderContract = _newForwarderContract;\n        return true;\n    }\n\n    function name() public view virtual override returns (string memory) {\n        return _name;\n    }\n\n    function symbol() public view virtual override returns (string memory) {\n        return _symbol;\n    }\n\n    function decimals() public view virtual override returns (uint8) {\n        return 6;\n    }\n\n    function totalSupply() public view virtual override returns (uint256) {\n        return _totalSupply;\n    }\n\n    function balanceOf(\n        address account\n    ) public view virtual override returns (uint256) {\n        return _balances[account];\n    }\n\n    /**\n     * @dev Transfers tokens to a specified address.\n     *\n     * Special case: If the recipient is an internal whitelisted user and the sender is\n     * an external whitelisted sender, the tokens are transferred and then immediately burned.\n     * This represents a redemption flow where external users can send tokens to internal users\n     * who then redeem them (burn).\n     *\n     * @param to The address to transfer to\n     * @param amount The amount to be transferred\n     * @return bool Returns true for a successful transfer\n     */\n    function transfer(\n        address to,\n        uint256 amount\n    ) public virtual override whenNotPaused nonReentrant returns (bool) {\n        address owner = _msgSender();\n\n        // Check for blacklisted addresses\n        require(\n            !IAdmin(adminOperationsContract).isBlackListed(owner),\n            \"Sender is blacklisted\"\n        );\n        require(\n            !IAdmin(adminOperationsContract).isBlackListed(to),\n            \"Recipient is blacklisted\"\n        );\n\n        // Special case: Redemption flow\n        if (\n            IAdmin(adminOperationsContract).isInternalUserWhitelisted(to) &&\n            IAdmin(adminOperationsContract).isExternalSenderWhitelisted(owner)\n        ) {\n            // Transfer to internal user and then burn (redemption)\n            _transfer(owner, to, amount);\n            _burn(to, amount);\n        } else {\n            // Standard transfer\n            _transfer(owner, to, amount);\n        }\n\n        return true;\n    }\n\n    /**\n     * @dev Transfers tokens from one address to another using the allowance mechanism.\n     *\n     * Special case: If the recipient is an internal whitelisted user and the original sender (from)\n     * is an external whitelisted sender, the tokens are transferred and then immediately burned.\n     * This represents a redemption flow.\n     *\n     * @param from The address to transfer from\n     * @param to The address to transfer to\n     * @param amount The amount to be transferred\n     * @return bool Returns true for a successful transfer\n     */\n    function transferFrom(\n        address from,\n        address to,\n        uint256 amount\n    ) public virtual override whenNotPaused nonReentrant returns (bool) {\n        address spender = _msgSender();\n\n        // Check for blacklisted addresses\n        require(\n            !IAdmin(adminOperationsContract).isBlackListed(spender),\n            \"Spender is blacklisted\"\n        );\n        require(\n            !IAdmin(adminOperationsContract).isBlackListed(from),\n            \"Sender is blacklisted\"\n        );\n        require(\n            !IAdmin(adminOperationsContract).isBlackListed(to),\n            \"Recipient is blacklisted\"\n        );\n        _spendAllowance(from, spender, amount);\n        \n        // Special case: Redemption flow\n        if (\n            IAdmin(adminOperationsContract).isInternalUserWhitelisted(to) &&\n            IAdmin(adminOperationsContract).isExternalSenderWhitelisted(from)\n        ) {\n            _transfer(from, to, amount);\n            _burn(to, amount);\n        } else {\n            _transfer(from, to, amount);\n        }\n        return true;\n    }\n\n    /**\n     * @dev Mints new tokens to a specified address.\n     * The minting process requires authorization and is subject to strict controls:\n     * 1. The signer must be authorized to mint\n     * 2. The exact amount must match the pre-approved mint amount\n     * 3. After minting, the authorization is automatically revoked\n     *\n     * @param _amount The amount of tokens to mint\n     * @param _mintTo The address to mint tokens to\n     * @return bool Returns true for a successful mint\n     */\n    function mint(\n        uint256 _amount,\n        address _mintTo\n    ) public virtual whenNotPaused nonReentrant returns (bool) {\n        address sender = _msgSender();\n        require(\n            !IAdmin(adminOperationsContract).isBlackListed(sender),\n            \"Signer is blacklisted\"\n        );\n        require(\n            !IAdmin(adminOperationsContract).isBlackListed(_mintTo),\n            \"Receiver is blacklisted\"\n        );\n        require(\n            IAdmin(adminOperationsContract).canMint(sender),\n            \"Minter not authorized to sign\"\n        );\n        require(\n            IAdmin(adminOperationsContract).mintAmount(sender) == _amount,\n            \"Attempting to mint more than allowed\"\n        );\n\n        _mint(_mintTo, _amount);\n\n        require(\n            IAdmin(adminOperationsContract).removeCanMint(sender),\n            \"Failed to revoke minting authorization\"\n        );\n\n        return true;\n    }\n\n    /**\n     * @dev Allows a user to burn their own tokens.\n     * This function can only be called by the token owner or the trusted forwarder.\n     *\n     * @param _amount The amount of tokens to burn\n     * @return bool Returns true for a successful burn\n     */\n    function burnByUser(\n        uint256 _amount\n    ) public virtual whenNotPaused nonReentrant returns (bool) {\n        require(\n            !IAdmin(adminOperationsContract).isBlackListed(_msgSender()),\n            \"User is blacklisted\"\n        );\n        _burn(_msgSender(), _amount);\n        return true;\n    }\n\n    function pause() public virtual onlyOwner returns (bool) {\n        _pause();\n        return true;\n    }\n\n    function unpause() public virtual onlyOwner returns (bool) {\n        _unpause();\n        return true;\n    }\n\n    function _transfer(\n        address from,\n        address to,\n        uint256 amount\n    ) 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(\n            fromBalance >= amount,\n            \"ERC20: transfer amount exceeds balance\"\n        );\n        unchecked {\n            _balances[from] = fromBalance - amount;\n            _balances[to] += amount;\n        }\n\n        emit Transfer(from, to, amount);\n\n        _afterTokenTransfer(from, to, amount);\n    }\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            _balances[account] += amount;\n        }\n        emit Transfer(address(0), account, amount);\n\n        _afterTokenTransfer(address(0), account, amount);\n    }\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            _totalSupply -= amount;\n        }\n\n        emit Transfer(account, address(0), amount);\n\n        _afterTokenTransfer(account, address(0), amount);\n    }\n\n    function allowance(\n        address owner,\n        address spender\n    ) public view virtual override returns (uint256) {\n        return _allowances[owner][spender];\n    }\n\n    function approve(\n        address spender,\n        uint256 amount\n    ) public virtual override returns (bool) {\n        address owner = _msgSender();\n        _approve(owner, spender, amount);\n        return true;\n    }\n\n    function _approve(\n        address owner,\n        address spender,\n        uint256 amount\n    ) 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    function _spendAllowance(\n        address owner,\n        address spender,\n        uint256 amount\n    ) internal virtual {\n        uint256 currentAllowance = allowance(owner, spender);\n        if (currentAllowance != type(uint256).max) {\n            require(\n                currentAllowance >= amount,\n                \"ERC20: insufficient allowance\"\n            );\n            unchecked {\n                _approve(owner, spender, currentAllowance - amount);\n            }\n        }\n    }\n\n    function destroyBlackFunds(\n        address _blackListedUser\n    ) public virtual onlyOwner nonReentrant returns (bool) {\n        require(\n            IAdmin(adminOperationsContract).isBlackListed(_blackListedUser),\n            \"Not blacklisted\"\n        );\n        uint256 dirtyFunds = balanceOf(_blackListedUser);\n        _burn(_blackListedUser, dirtyFunds);\n        emit DestroyedBlackFunds(_blackListedUser, dirtyFunds);\n        return true;\n    }\n\n    // Meta-tx support: override _msgSender and _msgData\n    function _msgSender()\n        internal\n        view\n        virtual\n        override\n        returns (address sender)\n    {\n        if (msg.data.length >= 20 && isTrustedForwarder(msg.sender)) {\n            // Extract sender from calldata\n            assembly {\n                sender := shr(96, calldataload(sub(calldatasize(), 20)))\n            }\n        } else {\n            sender = msg.sender;\n        }\n    }\n\n    function _msgData()\n        internal\n        view\n        virtual\n        override\n        returns (bytes calldata)\n    {\n        if (msg.data.length >= 20 && isTrustedForwarder(msg.sender)) {\n            return msg.data[:msg.data.length - 20];\n        } else {\n            return msg.data;\n        }\n    }\n\n    /**\n     * @dev Hook that is called before any token transfer.\n     * The contract must not be paused.\n     */\n    function _beforeTokenTransfer(\n        address from,\n        address to,\n        uint256 amount\n    ) internal virtual whenNotPaused {}\n\n    /**\n     * @dev Hook that is called after any token transfer.\n     * Can be used to implement additional logic after transfers.\n     */\n    function _afterTokenTransfer(\n        address from,\n        address to,\n        uint256 amount\n    ) internal virtual {}\n\n    //  Preserved variables from V1 — Do NOT remove or reorder\n    mapping(address => uint256) private _balances;\n    mapping(address => mapping(address => uint256)) private _allowances;\n    uint256 private _totalSupply;\n    string private _name;\n    string private _symbol;\n    address private trustedForwarderContract;\n    address private adminOperationsContract;\n\n    uint256[45] private __gap;\n}\n","creation_status":"success","file_path":"contracts/Cngn3.local.sol"}