{"constructor_args":"0x0000000000000000000000001aa475b9bf0539d5133227e71d12a1c34b98a58e000000000000000000000000728da61583441bb4326481ae27edeaaaa2d75c19","is_partially_verified":false,"is_changed_bytecode":false,"abi":[{"inputs":[{"internalType":"address","name":"_admin","type":"address"},{"internalType":"address","name":"_accessRegistry","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"AccessControlBadConfirmation","type":"error"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"bytes32","name":"neededRole","type":"bytes32"}],"name":"AccessControlUnauthorizedAccount","type":"error"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"allowance","type":"uint256"},{"internalType":"uint256","name":"needed","type":"uint256"}],"name":"ERC20InsufficientAllowance","type":"error"},{"inputs":[{"internalType":"address","name":"sender","type":"address"},{"internalType":"uint256","name":"balance","type":"uint256"},{"internalType":"uint256","name":"needed","type":"uint256"}],"name":"ERC20InsufficientBalance","type":"error"},{"inputs":[{"internalType":"address","name":"approver","type":"address"}],"name":"ERC20InvalidApprover","type":"error"},{"inputs":[{"internalType":"address","name":"receiver","type":"address"}],"name":"ERC20InvalidReceiver","type":"error"},{"inputs":[{"internalType":"address","name":"sender","type":"address"}],"name":"ERC20InvalidSender","type":"error"},{"inputs":[{"internalType":"address","name":"spender","type":"address"}],"name":"ERC20InvalidSpender","type":"error"},{"inputs":[],"name":"TransferBlacklisted","type":"error"},{"inputs":[],"name":"ZeroAddress","type":"error"},{"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":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"previousAdminRole","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"newAdminRole","type":"bytes32"}],"name":"RoleAdminChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleGranted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleRevoked","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"},{"inputs":[],"name":"DEFAULT_ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MINTER_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"accessRegistry","outputs":[{"internalType":"contract IAccessRegistry","name":"","type":"address"}],"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":[{"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":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"}],"name":"getRoleAdmin","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"grantRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"hasRole","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_account","type":"address"}],"name":"isBlacklisted","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":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"callerConfirmation","type":"address"}],"name":"renounceRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"revokeRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","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"}],"conflicting_implementations":null,"certified":false,"additional_sources":[{"file_path":"lib/openzeppelin-contracts/contracts/access/AccessControl.sol","source_code":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (access/AccessControl.sol)\n\npragma solidity ^0.8.20;\n\nimport {IAccessControl} from \"./IAccessControl.sol\";\nimport {Context} from \"../utils/Context.sol\";\nimport {IERC165, ERC165} from \"../utils/introspection/ERC165.sol\";\n\n/**\n * @dev Contract module that allows children to implement role-based access\n * control mechanisms. This is a lightweight version that doesn't allow enumerating role\n * members except through off-chain means by accessing the contract event logs. Some\n * applications may benefit from on-chain enumerability, for those cases see\n * {AccessControlEnumerable}.\n *\n * Roles are referred to by their `bytes32` identifier. These should be exposed\n * in the external API and be unique. The best way to achieve this is by\n * using `public constant` hash digests:\n *\n * ```solidity\n * bytes32 public constant MY_ROLE = keccak256(\"MY_ROLE\");\n * ```\n *\n * Roles can be used to represent a set of permissions. To restrict access to a\n * function call, use {hasRole}:\n *\n * ```solidity\n * function foo() public {\n *     require(hasRole(MY_ROLE, msg.sender));\n *     ...\n * }\n * ```\n *\n * Roles can be granted and revoked dynamically via the {grantRole} and\n * {revokeRole} functions. Each role has an associated admin role, and only\n * accounts that have a role's admin role can call {grantRole} and {revokeRole}.\n *\n * By default, the admin role for all roles is `DEFAULT_ADMIN_ROLE`, which means\n * that only accounts with this role will be able to grant or revoke other\n * roles. More complex role relationships can be created by using\n * {_setRoleAdmin}.\n *\n * WARNING: The `DEFAULT_ADMIN_ROLE` is also its own admin: it has permission to\n * grant and revoke this role. Extra precautions should be taken to secure\n * accounts that have been granted it. We recommend using {AccessControlDefaultAdminRules}\n * to enforce additional security measures for this role.\n */\nabstract contract AccessControl is Context, IAccessControl, ERC165 {\n    struct RoleData {\n        mapping(address account => bool) hasRole;\n        bytes32 adminRole;\n    }\n\n    mapping(bytes32 role => RoleData) private _roles;\n\n    bytes32 public constant DEFAULT_ADMIN_ROLE = 0x00;\n\n    /**\n     * @dev Modifier that checks that an account has a specific role. Reverts\n     * with an {AccessControlUnauthorizedAccount} error including the required role.\n     */\n    modifier onlyRole(bytes32 role) {\n        _checkRole(role);\n        _;\n    }\n\n    /// @inheritdoc IERC165\n    function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {\n        return interfaceId == type(IAccessControl).interfaceId || super.supportsInterface(interfaceId);\n    }\n\n    /**\n     * @dev Returns `true` if `account` has been granted `role`.\n     */\n    function hasRole(bytes32 role, address account) public view virtual returns (bool) {\n        return _roles[role].hasRole[account];\n    }\n\n    /**\n     * @dev Reverts with an {AccessControlUnauthorizedAccount} error if `_msgSender()`\n     * is missing `role`. Overriding this function changes the behavior of the {onlyRole} modifier.\n     */\n    function _checkRole(bytes32 role) internal view virtual {\n        _checkRole(role, _msgSender());\n    }\n\n    /**\n     * @dev Reverts with an {AccessControlUnauthorizedAccount} error if `account`\n     * is missing `role`.\n     */\n    function _checkRole(bytes32 role, address account) internal view virtual {\n        if (!hasRole(role, account)) {\n            revert AccessControlUnauthorizedAccount(account, role);\n        }\n    }\n\n    /**\n     * @dev Returns the admin role that controls `role`. See {grantRole} and\n     * {revokeRole}.\n     *\n     * To change a role's admin, use {_setRoleAdmin}.\n     */\n    function getRoleAdmin(bytes32 role) public view virtual returns (bytes32) {\n        return _roles[role].adminRole;\n    }\n\n    /**\n     * @dev Grants `role` to `account`.\n     *\n     * If `account` had not been already granted `role`, emits a {RoleGranted}\n     * event.\n     *\n     * Requirements:\n     *\n     * - the caller must have ``role``'s admin role.\n     *\n     * May emit a {RoleGranted} event.\n     */\n    function grantRole(bytes32 role, address account) public virtual onlyRole(getRoleAdmin(role)) {\n        _grantRole(role, account);\n    }\n\n    /**\n     * @dev Revokes `role` from `account`.\n     *\n     * If `account` had been granted `role`, emits a {RoleRevoked} event.\n     *\n     * Requirements:\n     *\n     * - the caller must have ``role``'s admin role.\n     *\n     * May emit a {RoleRevoked} event.\n     */\n    function revokeRole(bytes32 role, address account) public virtual onlyRole(getRoleAdmin(role)) {\n        _revokeRole(role, account);\n    }\n\n    /**\n     * @dev Revokes `role` from the calling account.\n     *\n     * Roles are often managed via {grantRole} and {revokeRole}: this function's\n     * purpose is to provide a mechanism for accounts to lose their privileges\n     * if they are compromised (such as when a trusted device is misplaced).\n     *\n     * If the calling account had been revoked `role`, emits a {RoleRevoked}\n     * event.\n     *\n     * Requirements:\n     *\n     * - the caller must be `callerConfirmation`.\n     *\n     * May emit a {RoleRevoked} event.\n     */\n    function renounceRole(bytes32 role, address callerConfirmation) public virtual {\n        if (callerConfirmation != _msgSender()) {\n            revert AccessControlBadConfirmation();\n        }\n\n        _revokeRole(role, callerConfirmation);\n    }\n\n    /**\n     * @dev Sets `adminRole` as ``role``'s admin role.\n     *\n     * Emits a {RoleAdminChanged} event.\n     */\n    function _setRoleAdmin(bytes32 role, bytes32 adminRole) internal virtual {\n        bytes32 previousAdminRole = getRoleAdmin(role);\n        _roles[role].adminRole = adminRole;\n        emit RoleAdminChanged(role, previousAdminRole, adminRole);\n    }\n\n    /**\n     * @dev Attempts to grant `role` to `account` and returns a boolean indicating if `role` was granted.\n     *\n     * Internal function without access restriction.\n     *\n     * May emit a {RoleGranted} event.\n     */\n    function _grantRole(bytes32 role, address account) internal virtual returns (bool) {\n        if (!hasRole(role, account)) {\n            _roles[role].hasRole[account] = true;\n            emit RoleGranted(role, account, _msgSender());\n            return true;\n        } else {\n            return false;\n        }\n    }\n\n    /**\n     * @dev Attempts to revoke `role` from `account` and returns a boolean indicating if `role` was revoked.\n     *\n     * Internal function without access restriction.\n     *\n     * May emit a {RoleRevoked} event.\n     */\n    function _revokeRole(bytes32 role, address account) internal virtual returns (bool) {\n        if (hasRole(role, account)) {\n            _roles[role].hasRole[account] = false;\n            emit RoleRevoked(role, account, _msgSender());\n            return true;\n        } else {\n            return false;\n        }\n    }\n}\n"},{"file_path":"lib/openzeppelin-contracts/contracts/access/IAccessControl.sol","source_code":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (access/IAccessControl.sol)\n\npragma solidity >=0.8.4;\n\n/**\n * @dev External interface of AccessControl declared to support ERC-165 detection.\n */\ninterface IAccessControl {\n    /**\n     * @dev The `account` is missing a role.\n     */\n    error AccessControlUnauthorizedAccount(address account, bytes32 neededRole);\n\n    /**\n     * @dev The caller of a function is not the expected one.\n     *\n     * NOTE: Don't confuse with {AccessControlUnauthorizedAccount}.\n     */\n    error AccessControlBadConfirmation();\n\n    /**\n     * @dev Emitted when `newAdminRole` is set as ``role``'s admin role, replacing `previousAdminRole`\n     *\n     * `DEFAULT_ADMIN_ROLE` is the starting admin for all roles, despite\n     * {RoleAdminChanged} not being emitted to signal this.\n     */\n    event RoleAdminChanged(bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole);\n\n    /**\n     * @dev Emitted when `account` is granted `role`.\n     *\n     * `sender` is the account that originated the contract call. This account bears the admin role (for the granted role).\n     * Expected in cases where the role was granted using the internal {AccessControl-_grantRole}.\n     */\n    event RoleGranted(bytes32 indexed role, address indexed account, address indexed sender);\n\n    /**\n     * @dev Emitted when `account` is revoked `role`.\n     *\n     * `sender` is the account that originated the contract call:\n     *   - if using `revokeRole`, it is the admin role bearer\n     *   - if using `renounceRole`, it is the role bearer (i.e. `account`)\n     */\n    event RoleRevoked(bytes32 indexed role, address indexed account, address indexed sender);\n\n    /**\n     * @dev Returns `true` if `account` has been granted `role`.\n     */\n    function hasRole(bytes32 role, address account) external view returns (bool);\n\n    /**\n     * @dev Returns the admin role that controls `role`. See {grantRole} and\n     * {revokeRole}.\n     *\n     * To change a role's admin, use {AccessControl-_setRoleAdmin}.\n     */\n    function getRoleAdmin(bytes32 role) external view returns (bytes32);\n\n    /**\n     * @dev Grants `role` to `account`.\n     *\n     * If `account` had not been already granted `role`, emits a {RoleGranted}\n     * event.\n     *\n     * Requirements:\n     *\n     * - the caller must have ``role``'s admin role.\n     */\n    function grantRole(bytes32 role, address account) external;\n\n    /**\n     * @dev Revokes `role` from `account`.\n     *\n     * If `account` had been granted `role`, emits a {RoleRevoked} event.\n     *\n     * Requirements:\n     *\n     * - the caller must have ``role``'s admin role.\n     */\n    function revokeRole(bytes32 role, address account) external;\n\n    /**\n     * @dev Revokes `role` from the calling account.\n     *\n     * Roles are often managed via {grantRole} and {revokeRole}: this function's\n     * purpose is to provide a mechanism for accounts to lose their privileges\n     * if they are compromised (such as when a trusted device is misplaced).\n     *\n     * If the calling account had been granted `role`, emits a {RoleRevoked}\n     * event.\n     *\n     * Requirements:\n     *\n     * - the caller must be `callerConfirmation`.\n     */\n    function renounceRole(bytes32 role, address callerConfirmation) external;\n}\n"},{"file_path":"lib/openzeppelin-contracts/contracts/interfaces/draft-IERC6093.sol","source_code":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/draft-IERC6093.sol)\npragma solidity >=0.8.4;\n\n/**\n * @dev Standard ERC-20 Errors\n * Interface of the https://eips.ethereum.org/EIPS/eip-6093[ERC-6093] custom errors for ERC-20 tokens.\n */\ninterface IERC20Errors {\n    /**\n     * @dev Indicates an error related to the current `balance` of a `sender`. Used in transfers.\n     * @param sender Address whose tokens are being transferred.\n     * @param balance Current balance for the interacting account.\n     * @param needed Minimum amount required to perform a transfer.\n     */\n    error ERC20InsufficientBalance(address sender, uint256 balance, uint256 needed);\n\n    /**\n     * @dev Indicates a failure with the token `sender`. Used in transfers.\n     * @param sender Address whose tokens are being transferred.\n     */\n    error ERC20InvalidSender(address sender);\n\n    /**\n     * @dev Indicates a failure with the token `receiver`. Used in transfers.\n     * @param receiver Address to which tokens are being transferred.\n     */\n    error ERC20InvalidReceiver(address receiver);\n\n    /**\n     * @dev Indicates a failure with the `spender`’s `allowance`. Used in transfers.\n     * @param spender Address that may be allowed to operate on tokens without being their owner.\n     * @param allowance Amount of tokens a `spender` is allowed to operate with.\n     * @param needed Minimum amount required to perform a transfer.\n     */\n    error ERC20InsufficientAllowance(address spender, uint256 allowance, uint256 needed);\n\n    /**\n     * @dev Indicates a failure with the `approver` of a token to be approved. Used in approvals.\n     * @param approver Address initiating an approval operation.\n     */\n    error ERC20InvalidApprover(address approver);\n\n    /**\n     * @dev Indicates a failure with the `spender` to be approved. Used in approvals.\n     * @param spender Address that may be allowed to operate on tokens without being their owner.\n     */\n    error ERC20InvalidSpender(address spender);\n}\n\n/**\n * @dev Standard ERC-721 Errors\n * Interface of the https://eips.ethereum.org/EIPS/eip-6093[ERC-6093] custom errors for ERC-721 tokens.\n */\ninterface IERC721Errors {\n    /**\n     * @dev Indicates that an address can't be an owner. For example, `address(0)` is a forbidden owner in ERC-20.\n     * Used in balance queries.\n     * @param owner Address of the current owner of a token.\n     */\n    error ERC721InvalidOwner(address owner);\n\n    /**\n     * @dev Indicates a `tokenId` whose `owner` is the zero address.\n     * @param tokenId Identifier number of a token.\n     */\n    error ERC721NonexistentToken(uint256 tokenId);\n\n    /**\n     * @dev Indicates an error related to the ownership over a particular token. Used in transfers.\n     * @param sender Address whose tokens are being transferred.\n     * @param tokenId Identifier number of a token.\n     * @param owner Address of the current owner of a token.\n     */\n    error ERC721IncorrectOwner(address sender, uint256 tokenId, address owner);\n\n    /**\n     * @dev Indicates a failure with the token `sender`. Used in transfers.\n     * @param sender Address whose tokens are being transferred.\n     */\n    error ERC721InvalidSender(address sender);\n\n    /**\n     * @dev Indicates a failure with the token `receiver`. Used in transfers.\n     * @param receiver Address to which tokens are being transferred.\n     */\n    error ERC721InvalidReceiver(address receiver);\n\n    /**\n     * @dev Indicates a failure with the `operator`’s approval. Used in transfers.\n     * @param operator Address that may be allowed to operate on tokens without being their owner.\n     * @param tokenId Identifier number of a token.\n     */\n    error ERC721InsufficientApproval(address operator, uint256 tokenId);\n\n    /**\n     * @dev Indicates a failure with the `approver` of a token to be approved. Used in approvals.\n     * @param approver Address initiating an approval operation.\n     */\n    error ERC721InvalidApprover(address approver);\n\n    /**\n     * @dev Indicates a failure with the `operator` to be approved. Used in approvals.\n     * @param operator Address that may be allowed to operate on tokens without being their owner.\n     */\n    error ERC721InvalidOperator(address operator);\n}\n\n/**\n * @dev Standard ERC-1155 Errors\n * Interface of the https://eips.ethereum.org/EIPS/eip-6093[ERC-6093] custom errors for ERC-1155 tokens.\n */\ninterface IERC1155Errors {\n    /**\n     * @dev Indicates an error related to the current `balance` of a `sender`. Used in transfers.\n     * @param sender Address whose tokens are being transferred.\n     * @param balance Current balance for the interacting account.\n     * @param needed Minimum amount required to perform a transfer.\n     * @param tokenId Identifier number of a token.\n     */\n    error ERC1155InsufficientBalance(address sender, uint256 balance, uint256 needed, uint256 tokenId);\n\n    /**\n     * @dev Indicates a failure with the token `sender`. Used in transfers.\n     * @param sender Address whose tokens are being transferred.\n     */\n    error ERC1155InvalidSender(address sender);\n\n    /**\n     * @dev Indicates a failure with the token `receiver`. Used in transfers.\n     * @param receiver Address to which tokens are being transferred.\n     */\n    error ERC1155InvalidReceiver(address receiver);\n\n    /**\n     * @dev Indicates a failure with the `operator`’s approval. Used in transfers.\n     * @param operator Address that may be allowed to operate on tokens without being their owner.\n     * @param owner Address of the current owner of a token.\n     */\n    error ERC1155MissingApprovalForAll(address operator, address owner);\n\n    /**\n     * @dev Indicates a failure with the `approver` of a token to be approved. Used in approvals.\n     * @param approver Address initiating an approval operation.\n     */\n    error ERC1155InvalidApprover(address approver);\n\n    /**\n     * @dev Indicates a failure with the `operator` to be approved. Used in approvals.\n     * @param operator Address that may be allowed to operate on tokens without being their owner.\n     */\n    error ERC1155InvalidOperator(address operator);\n\n    /**\n     * @dev Indicates an array length mismatch between ids and values in a safeBatchTransferFrom operation.\n     * Used in batch transfers.\n     * @param idsLength Length of the array of token identifiers\n     * @param valuesLength Length of the array of token amounts\n     */\n    error ERC1155InvalidArrayLength(uint256 idsLength, uint256 valuesLength);\n}\n"},{"file_path":"lib/openzeppelin-contracts/contracts/token/ERC20/ERC20.sol","source_code":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (token/ERC20/ERC20.sol)\n\npragma solidity ^0.8.20;\n\nimport {IERC20} from \"./IERC20.sol\";\nimport {IERC20Metadata} from \"./extensions/IERC20Metadata.sol\";\nimport {Context} from \"../../utils/Context.sol\";\nimport {IERC20Errors} from \"../../interfaces/draft-IERC6093.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 *\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 ERC-20\n * applications.\n */\nabstract contract ERC20 is Context, IERC20, IERC20Metadata, IERC20Errors {\n    mapping(address account => uint256) private _balances;\n\n    mapping(address account => mapping(address spender => 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     * Both values are immutable: they can only be set once during construction.\n     */\n    constructor(string memory name_, string memory symbol_) {\n        _name = name_;\n        _symbol = symbol_;\n    }\n\n    /**\n     * @dev Returns the name of the token.\n     */\n    function name() public view virtual 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 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 returns (uint8) {\n        return 18;\n    }\n\n    /// @inheritdoc IERC20\n    function totalSupply() public view virtual returns (uint256) {\n        return _totalSupply;\n    }\n\n    /// @inheritdoc IERC20\n    function balanceOf(address account) public view virtual 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 `value`.\n     */\n    function transfer(address to, uint256 value) public virtual returns (bool) {\n        address owner = _msgSender();\n        _transfer(owner, to, value);\n        return true;\n    }\n\n    /// @inheritdoc IERC20\n    function allowance(address owner, address spender) public view virtual returns (uint256) {\n        return _allowances[owner][spender];\n    }\n\n    /**\n     * @dev See {IERC20-approve}.\n     *\n     * NOTE: If `value` 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 value) public virtual returns (bool) {\n        address owner = _msgSender();\n        _approve(owner, spender, value);\n        return true;\n    }\n\n    /**\n     * @dev See {IERC20-transferFrom}.\n     *\n     * Skips emitting an {Approval} event indicating an allowance update. This is not\n     * required by the ERC. See {xref-ERC20-_approve-address-address-uint256-bool-}[_approve].\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 `value`.\n     * - the caller must have allowance for ``from``'s tokens of at least\n     * `value`.\n     */\n    function transferFrom(address from, address to, uint256 value) public virtual returns (bool) {\n        address spender = _msgSender();\n        _spendAllowance(from, spender, value);\n        _transfer(from, to, value);\n        return true;\n    }\n\n    /**\n     * @dev Moves a `value` 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     * NOTE: This function is not virtual, {_update} should be overridden instead.\n     */\n    function _transfer(address from, address to, uint256 value) internal {\n        if (from == address(0)) {\n            revert ERC20InvalidSender(address(0));\n        }\n        if (to == address(0)) {\n            revert ERC20InvalidReceiver(address(0));\n        }\n        _update(from, to, value);\n    }\n\n    /**\n     * @dev Transfers a `value` amount of tokens from `from` to `to`, or alternatively mints (or burns) if `from`\n     * (or `to`) is the zero address. All customizations to transfers, mints, and burns should be done by overriding\n     * this function.\n     *\n     * Emits a {Transfer} event.\n     */\n    function _update(address from, address to, uint256 value) internal virtual {\n        if (from == address(0)) {\n            // Overflow check required: The rest of the code assumes that totalSupply never overflows\n            _totalSupply += value;\n        } else {\n            uint256 fromBalance = _balances[from];\n            if (fromBalance < value) {\n                revert ERC20InsufficientBalance(from, fromBalance, value);\n            }\n            unchecked {\n                // Overflow not possible: value <= fromBalance <= totalSupply.\n                _balances[from] = fromBalance - value;\n            }\n        }\n\n        if (to == address(0)) {\n            unchecked {\n                // Overflow not possible: value <= totalSupply or value <= fromBalance <= totalSupply.\n                _totalSupply -= value;\n            }\n        } else {\n            unchecked {\n                // Overflow not possible: balance + value is at most totalSupply, which we know fits into a uint256.\n                _balances[to] += value;\n            }\n        }\n\n        emit Transfer(from, to, value);\n    }\n\n    /**\n     * @dev Creates a `value` amount of tokens and assigns them to `account`, by transferring it from address(0).\n     * Relies on the `_update` mechanism\n     *\n     * Emits a {Transfer} event with `from` set to the zero address.\n     *\n     * NOTE: This function is not virtual, {_update} should be overridden instead.\n     */\n    function _mint(address account, uint256 value) internal {\n        if (account == address(0)) {\n            revert ERC20InvalidReceiver(address(0));\n        }\n        _update(address(0), account, value);\n    }\n\n    /**\n     * @dev Destroys a `value` amount of tokens from `account`, lowering the total supply.\n     * Relies on the `_update` mechanism.\n     *\n     * Emits a {Transfer} event with `to` set to the zero address.\n     *\n     * NOTE: This function is not virtual, {_update} should be overridden instead\n     */\n    function _burn(address account, uint256 value) internal {\n        if (account == address(0)) {\n            revert ERC20InvalidSender(address(0));\n        }\n        _update(account, address(0), value);\n    }\n\n    /**\n     * @dev Sets `value` 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     * Overrides to this logic should be done to the variant with an additional `bool emitEvent` argument.\n     */\n    function _approve(address owner, address spender, uint256 value) internal {\n        _approve(owner, spender, value, true);\n    }\n\n    /**\n     * @dev Variant of {_approve} with an optional flag to enable or disable the {Approval} event.\n     *\n     * By default (when calling {_approve}) the flag is set to true. On the other hand, approval changes made by\n     * `_spendAllowance` during the `transferFrom` operation set the flag to false. This saves gas by not emitting any\n     * `Approval` event during `transferFrom` operations.\n     *\n     * Anyone who wishes to continue emitting `Approval` events on the`transferFrom` operation can force the flag to\n     * true using the following override:\n     *\n     * ```solidity\n     * function _approve(address owner, address spender, uint256 value, bool) internal virtual override {\n     *     super._approve(owner, spender, value, true);\n     * }\n     * ```\n     *\n     * Requirements are the same as {_approve}.\n     */\n    function _approve(address owner, address spender, uint256 value, bool emitEvent) internal virtual {\n        if (owner == address(0)) {\n            revert ERC20InvalidApprover(address(0));\n        }\n        if (spender == address(0)) {\n            revert ERC20InvalidSpender(address(0));\n        }\n        _allowances[owner][spender] = value;\n        if (emitEvent) {\n            emit Approval(owner, spender, value);\n        }\n    }\n\n    /**\n     * @dev Updates `owner`'s allowance for `spender` based on spent `value`.\n     *\n     * Does not update the allowance value in case of infinite allowance.\n     * Revert if not enough allowance is available.\n     *\n     * Does not emit an {Approval} event.\n     */\n    function _spendAllowance(address owner, address spender, uint256 value) internal virtual {\n        uint256 currentAllowance = allowance(owner, spender);\n        if (currentAllowance < type(uint256).max) {\n            if (currentAllowance < value) {\n                revert ERC20InsufficientAllowance(spender, currentAllowance, value);\n            }\n            unchecked {\n                _approve(owner, spender, currentAllowance - value, false);\n            }\n        }\n    }\n}\n"},{"file_path":"lib/openzeppelin-contracts/contracts/token/ERC20/IERC20.sol","source_code":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (token/ERC20/IERC20.sol)\n\npragma solidity >=0.4.16;\n\n/**\n * @dev Interface of the ERC-20 standard as defined in the ERC.\n */\ninterface IERC20 {\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 value of tokens in existence.\n     */\n    function totalSupply() external view returns (uint256);\n\n    /**\n     * @dev Returns the value of tokens owned by `account`.\n     */\n    function balanceOf(address account) external view returns (uint256);\n\n    /**\n     * @dev Moves a `value` amount of 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 value) 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 a `value` amount of tokens as the allowance of `spender` over the\n     * 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 value) external returns (bool);\n\n    /**\n     * @dev Moves a `value` amount of tokens from `from` to `to` using the\n     * allowance mechanism. `value` 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 value) external returns (bool);\n}\n"},{"file_path":"lib/openzeppelin-contracts/contracts/token/ERC20/extensions/IERC20Metadata.sol","source_code":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (token/ERC20/extensions/IERC20Metadata.sol)\n\npragma solidity >=0.6.2;\n\nimport {IERC20} from \"../IERC20.sol\";\n\n/**\n * @dev Interface for the optional metadata functions from the ERC-20 standard.\n */\ninterface IERC20Metadata is IERC20 {\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/contracts/utils/Context.sol","source_code":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol)\n\npragma solidity ^0.8.20;\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 Context {\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"},{"file_path":"lib/openzeppelin-contracts/contracts/utils/introspection/ERC165.sol","source_code":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (utils/introspection/ERC165.sol)\n\npragma solidity ^0.8.20;\n\nimport {IERC165} from \"./IERC165.sol\";\n\n/**\n * @dev Implementation of the {IERC165} interface.\n *\n * Contracts that want to implement ERC-165 should inherit from this contract and override {supportsInterface} to check\n * for the additional interface id that will be supported. For example:\n *\n * ```solidity\n * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {\n *     return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId);\n * }\n * ```\n */\nabstract contract ERC165 is IERC165 {\n    /// @inheritdoc IERC165\n    function supportsInterface(bytes4 interfaceId) public view virtual returns (bool) {\n        return interfaceId == type(IERC165).interfaceId;\n    }\n}\n"},{"file_path":"lib/openzeppelin-contracts/contracts/utils/introspection/IERC165.sol","source_code":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (utils/introspection/IERC165.sol)\n\npragma solidity >=0.4.16;\n\n/**\n * @dev Interface of the ERC-165 standard, as defined in the\n * https://eips.ethereum.org/EIPS/eip-165[ERC].\n *\n * Implementers can declare support of contract interfaces, which can then be\n * queried by others ({ERC165Checker}).\n *\n * For an implementation, see {ERC165}.\n */\ninterface IERC165 {\n    /**\n     * @dev Returns true if this contract implements the interface defined by\n     * `interfaceId`. See the corresponding\n     * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[ERC section]\n     * to learn more about how these ids are created.\n     *\n     * This function call must use less than 30 000 gas.\n     */\n    function supportsInterface(bytes4 interfaceId) external view returns (bool);\n}\n"},{"file_path":"src/interfaces/IAccessRegistry.sol","source_code":"// SPDX-License-Identifier: BUSL-1.1\npragma solidity ^0.8.26;\n\n/// @title IAccessRegistry\n/// @author luoyhang003\n/// @notice Interface for managing access control via whitelist and blacklist\n/// @dev Provides events and view functions to track and query account permissions\ninterface IAccessRegistry {\n    /*//////////////////////////////////////////////////////////////////////////\n                                    EVENTS\n    //////////////////////////////////////////////////////////////////////////*/\n\n    /// @notice Emitted when an array of users is added to the whitelist.\n    /// @param users An array of addresses added to the whitelist.\n    event WhitelistAdded(address[] users);\n\n    /// @notice Emitted when an array of users is added to the blacklist.\n    /// @param users An array of addresses added to the blacklist.\n    event BlacklistAdded(address[] users);\n\n    /// @notice Emitted when an array of users is removed from the whitelist.\n    /// @param users An array of addresses removed from the whitelist.\n    event WhitelistRemoved(address[] users);\n\n    /// @notice Emitted when an array of users is removed from the blacklist.\n    /// @param users An array of addresses removed from the blacklist.\n    event BlacklistRemoved(address[] users);\n\n    /// @notice Emitted when whitelist state changes\n    /// @param enabled The new whitelist state - true if enabled, false if disabled.\n    event WhitelistToggled(bool enabled);\n\n    /*//////////////////////////////////////////////////////////////////////////\n                                    VIEW FUNCTIONS\n    //////////////////////////////////////////////////////////////////////////*/\n\n    /// @notice Checks whether a given address is whitelisted\n    /// @param _account The address to check\n    /// @return True if the address is whitelisted, false otherwise\n    function isWhitelisted(address _account) external view returns (bool);\n\n    /// @notice Checks whether a given address is blacklisted\n    /// @param _account The address to check\n    /// @return True if the address is blacklisted, false otherwise\n    function isBlacklisted(address _account) external view returns (bool);\n}\n"},{"file_path":"src/libraries/Errors.sol","source_code":"// SPDX-License-Identifier: BUSL-1.1\npragma solidity ^0.8.26;\n\n/// @title Errors Library\n/// @author luoyhang003\n/// @notice Centralized custom errors for all contracts in the protocol.\n/// @dev Each error saves gas compared to revert strings. The @dev comment\n///      also includes the corresponding 4-byte selector for debugging\n///      and off-chain tooling.\nlibrary Errors {\n    /*//////////////////////////////////////////////////////////////////////////\n                                    GENERAL\n    //////////////////////////////////////////////////////////////////////////*/\n\n    /// @notice Thrown when array lengths do not match or are zero.\n    /// @dev Selector: 0x9d89020a\n    error InvalidArrayLength();\n\n    /// @notice Thrown when a provided address is zero.\n    /// @dev Selector: 0xd92e233d\n    error ZeroAddress();\n\n    /// @notice Thrown when a provided amount is zero.\n    /// @dev Selector: 0x1f2a2005\n    error ZeroAmount();\n\n    /// @notice Thrown when an index is out of bounds.\n    /// @dev Selector: 0x4e23d035\n    error IndexOutOfBounds();\n\n    /// @notice Thrown when a user is not whitelisted but tries to interact.\n    /// @dev Selector: 0x2ba75b25\n    error UserNotWhitelisted();\n\n    /// @notice Thrown when a token has invalid decimals (e.g., >18).\n    /// @dev Selector: 0xd25598a0\n    error InvalidDecimals();\n\n    /// @notice Thrown when an asset is not supported.\n    /// @dev Selector: 0x24a01144\n    error UnsupportedAsset();\n\n    /// @notice Thrown when trying to add an already added asset.\n    /// @dev Selector: 0x5ed26801\n    error AssetAlreadyAdded();\n\n    /// @notice Thrown when trying to remove an asset that was already removed.\n    /// @dev Selector: 0x422afd8f\n    error AssetAlreadyRemoved();\n\n    /// @notice Thrown when a common token address conflict with the vault token address.\n    /// @dev Selector: 0x8a7ea521\n    error ConflictiveToken();\n\n    /// @notice Thrown when an array is reach to the length limit.\n    /// @dev Selector: 0x951becfa\n    error ExceedArrayLengthLimit();\n\n    /*//////////////////////////////////////////////////////////////////////////\n                                    Token.sol\n    //////////////////////////////////////////////////////////////////////////*/\n\n    /// @notice Thrown when transfer is attempted by/for a blacklisted address.\n    /// @dev Selector: 0x6554e8c5\n    error TransferBlacklisted();\n\n    /*//////////////////////////////////////////////////////////////////////////\n                                    DepositVault.sol\n    //////////////////////////////////////////////////////////////////////////*/\n\n    /// @notice Thrown when deposits are paused.\n    /// @dev Selector: 0x35edea30\n    error DepositPaused();\n\n    /// @notice Thrown when a deposit exceeds per-token deposit cap.\n    /// @dev Selector: 0xcc60dc5b\n    error ExceedTokenDepositCap();\n\n    /// @notice Thrown when a deposit exceeds global deposit cap.\n    /// @dev Selector: 0x5054f250\n    error ExceedTotalDepositCap();\n\n    /// @notice Thrown when minting results in zero shares.\n    /// @dev Selector: 0x1d31001e\n    error MintZeroShare();\n\n    /// @notice Thrown when attempting to deposit zero assets.\n    /// @dev Selector: 0xd69b89cc\n    error DepositZeroAsset();\n\n    /// @notice Thrown when the oracle for an asset is invalid or missing.\n    /// @dev Selector: 0x9589a27d\n    error InvalidOracle();\n\n    /*//////////////////////////////////////////////////////////////////////////\n                                WithdrawController.sol\n    //////////////////////////////////////////////////////////////////////////*/\n\n    /// @notice Thrown when withdrawals are paused.\n    /// @dev Selector: 0xe0a39803\n    error WithdrawPaused();\n\n    /// @notice Thrown when attempting to request withdrawal of zero shares.\n    /// @dev Selector: 0xef9c351b\n    error RequestZeroShare();\n\n    /// @notice Thrown when a withdrawal receipt has invalid status for the operation.\n    /// @dev Selector: 0x3bb3ba88\n    error InvalidReceiptStatus();\n\n    /// @notice Thrown when a caller is not the original withdrawal requester.\n    /// @dev Selector: 0xe39da59e\n    error NotRequester();\n\n    /// @notice Thrown when a caller is blacklisted.\n    /// @dev Selector: 0x473250af\n    error UserBlacklisted();\n\n    /*//////////////////////////////////////////////////////////////////////////\n                                  AssetsRouter.sol\n    //////////////////////////////////////////////////////////////////////////*/\n\n    /// @notice Thrown when a recipient is already added.\n    /// @dev Selector: 0xce2c4eb3\n    error RecipientAlreadyAdded();\n\n    /// @notice Thrown when a recipient is already removed.\n    /// @dev Selector: 0x1c7dcc84\n    error RecipientAlreadyRemoved();\n\n    /// @notice Thrown when attempting to set auto-route to its current state.\n    /// @dev Selector: 0xdf2e473d\n    error InvalidRouteEnabledStatus();\n\n    /// @notice Thrown when a non-registered recipient is used.\n    /// @dev Selector: 0xf29851db\n    error NotRouterRecipient();\n\n    /// @notice Thrown when attempting to remove the currently active recipient.\n    /// @dev Selector: 0xa453bd1b\n    error RemoveActiveRouter();\n\n    /// @notice Thrown when attempting to manual route the asstes when auto route is enabled.\n    /// @dev Selector: 0x92d56bf7\n    error AutoRouteEnabled();\n\n    /// @notice Thrown when setting the same router address.\n    /// @dev Selector: 0x23b920b6\n    error SameRouterAddress();\n\n    /*//////////////////////////////////////////////////////////////////////////\n                                  AccessRegistry.sol\n    //////////////////////////////////////////////////////////////////////////*/\n\n    /// @notice Thrown when trying to blacklist an already blacklisted user.\n    /// @dev Selector: 0xf53de75f\n    error AlreadyBlacklisted();\n\n    /// @notice Thrown when trying to whitelist an already whitelisted user.\n    /// @dev Selector: 0xb73e95e1\n    error AlreadyWhitelisted();\n\n    /// @notice Reverts when the requested state matches the current state.\n    /// @dev Selector: 0x3fbc93f3\n    error AlreadyInSameState();\n\n    /*//////////////////////////////////////////////////////////////////////////\n                                  OracleRegister.sol\n    //////////////////////////////////////////////////////////////////////////*/\n\n    /// @notice Thrown when an oracle is already registered for an asset.\n    /// @dev Selector: 0x652a449e\n    error OracleAlreadyAdded();\n\n    /// @notice Thrown when an oracle does not exist for an asset.\n    /// @dev Selector: 0x4dca4f7d\n    error OracleNotExist();\n\n    /// @notice Thrown when price deviation exceeds maximum allowed.\n    /// @dev Selector: 0x8774ad87\n    error ExceedMaxDeviation();\n\n    /// @notice Thrown when price updates are attempted too frequently.\n    /// @dev Selector: 0x8f46908a\n    error PriceUpdateTooFrequent();\n\n    /// @notice Thrown when a price validity period has expired.\n    /// @dev Selector: 0x7c9d063a\n    error PriceValidityExpired();\n\n    /// @notice Thrown when a price is zero.\n    /// @dev Selector: 0x10256287\n    error InvalidZeroPrice();\n\n    /*//////////////////////////////////////////////////////////////////////////\n                                  ParamRegister.sol\n    //////////////////////////////////////////////////////////////////////////*/\n\n    /// @notice Thrown when tolerance basis points exceed maximum deviation.\n    /// @dev Selector: 0xb8d855e2\n    error ExceedMaxDeviationBps();\n\n    /// @notice Thrown when price update interval is invalid.\n    /// @dev Selector: 0xfff67f52\n    error InvalidPriceUpdateInterval();\n\n    /// @notice Thrown when price validity duration exceeds allowed maximum.\n    /// @dev Selector: 0x6eca7e24\n    error PriceMaxValidityExceeded();\n\n    /// @notice Thrown when mint fee rate exceeds maximum allowed.\n    /// @dev Selector: 0x8f59faf8\n    error ExceedMaxMintFeeRate();\n\n    /// @notice Thrown when redeem fee rate exceeds maximum allowed.\n    /// @dev Selector: 0x86871089\n    error ExceedMaxRedeemFeeRate();\n\n    /*//////////////////////////////////////////////////////////////////////////\n                              ChainlinkOracleFeed.sol\n    //////////////////////////////////////////////////////////////////////////*/\n\n    /// @notice Thrown when a reported price is invalid.\n    /// @dev Selector: 0x00bfc921\n    error InvalidPrice();\n\n    /// @notice Thrown when a reported price is stale.\n    /// @dev Selector: 0x19abf40e\n    error StalePrice();\n\n    /// @notice Thrown when a Chainlink round is incomplete.\n    /// @dev Selector: 0x8ad52bdd\n    error IncompleteRound();\n}\n"}],"is_verified_via_sourcify":true,"can_be_visualized_via_sol2uml":true,"evm_version":"cancun","language":"solidity","is_verified_via_eth_bytecode_db":true,"is_fully_verified":true,"license_type":"none","is_blueprint":false,"name":"Token","creation_bytecode":"0x60a060405234801561000f575f80fd5b5060405161213b38038061213b83398181016040528101906100319190610331565b6040518060400160405280600e81526020017f5374616b6553746f6e65205553440000000000000000000000000000000000008152506040518060400160405280600881526020017f53544f4e4555534400000000000000000000000000000000000000000000000081525081600390816100ac91906105a9565b5080600490816100bc91906105a9565b5050505f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603610124576040517fd92e233d00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6101365f801b8361017260201b60201c565b508073ffffffffffffffffffffffffffffffffffffffff1660808173ffffffffffffffffffffffffffffffffffffffff16815250505050610678565b5f610183838361026860201b60201c565b61025e57600160055f8581526020019081526020015f205f015f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f6101000a81548160ff0219169083151502179055506101fb6102cc60201b60201c565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16847f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a460019050610262565b5f90505b92915050565b5f60055f8481526020019081526020015f205f015f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff16905092915050565b5f33905090565b5f80fd5b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f610300826102d7565b9050919050565b610310816102f6565b811461031a575f80fd5b50565b5f8151905061032b81610307565b92915050565b5f8060408385031215610347576103466102d3565b5b5f6103548582860161031d565b92505060206103658582860161031d565b9150509250929050565b5f81519050919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52604160045260245ffd5b7f4e487b71000000000000000000000000000000000000000000000000000000005f52602260045260245ffd5b5f60028204905060018216806103ea57607f821691505b6020821081036103fd576103fc6103a6565b5b50919050565b5f819050815f5260205f209050919050565b5f6020601f8301049050919050565b5f82821b905092915050565b5f6008830261045f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82610424565b6104698683610424565b95508019841693508086168417925050509392505050565b5f819050919050565b5f819050919050565b5f6104ad6104a86104a384610481565b61048a565b610481565b9050919050565b5f819050919050565b6104c683610493565b6104da6104d2826104b4565b848454610430565b825550505050565b5f90565b6104ee6104e2565b6104f98184846104bd565b505050565b5b8181101561051c576105115f826104e6565b6001810190506104ff565b5050565b601f8211156105615761053281610403565b61053b84610415565b8101602085101561054a578190505b61055e61055685610415565b8301826104fe565b50505b505050565b5f82821c905092915050565b5f6105815f1984600802610566565b1980831691505092915050565b5f6105998383610572565b9150826002028217905092915050565b6105b28261036f565b67ffffffffffffffff8111156105cb576105ca610379565b5b6105d582546103d3565b6105e0828285610520565b5f60209050601f831160018114610611575f84156105ff578287015190505b610609858261058e565b865550610670565b601f19841661061f86610403565b5f5b8281101561064657848901518255600182019150602085019450602081019050610621565b86831015610663578489015161065f601f891682610572565b8355505b6001600288020188555050505b505050505050565b608051611a966106a55f395f81816108dc015281816109010152818161105a01526110f80152611a965ff3fe608060405234801561000f575f80fd5b5060043610610135575f3560e01c806342966c68116100b6578063a9059cbb1161007a578063a9059cbb1461035f578063d53913931461038f578063d547741f146103ad578063dd62ed3e146103c9578063e6f29b05146103f9578063fe575a871461041757610135565b806342966c68146102a757806370a08231146102c357806391d14854146102f357806395d89b4114610323578063a217fddf1461034157610135565b8063248a9ca3116100fd578063248a9ca3146102055780632f2ff15d14610235578063313ce5671461025157806336568abe1461026f57806340c10f191461028b57610135565b806301ffc9a71461013957806306fdde0314610169578063095ea7b31461018757806318160ddd146101b757806323b872dd146101d5575b5f80fd5b610153600480360381019061014e9190611499565b610447565b60405161016091906114de565b60405180910390f35b6101716104c0565b60405161017e9190611567565b60405180910390f35b6101a1600480360381019061019c9190611614565b610550565b6040516101ae91906114de565b60405180910390f35b6101bf610572565b6040516101cc9190611661565b60405180910390f35b6101ef60048036038101906101ea919061167a565b61057b565b6040516101fc91906114de565b60405180910390f35b61021f600480360381019061021a91906116fd565b6105a9565b60405161022c9190611737565b60405180910390f35b61024f600480360381019061024a9190611750565b6105c6565b005b6102596105e8565b60405161026691906117a9565b60405180910390f35b61028960048036038101906102849190611750565b6105f0565b005b6102a560048036038101906102a09190611614565b61066b565b005b6102c160048036038101906102bc91906117c2565b6106a4565b005b6102dd60048036038101906102d891906117ed565b6106b1565b6040516102ea9190611661565b60405180910390f35b61030d60048036038101906103089190611750565b6106f6565b60405161031a91906114de565b60405180910390f35b61032b61075a565b6040516103389190611567565b60405180910390f35b6103496107ea565b6040516103569190611737565b60405180910390f35b61037960048036038101906103749190611614565b6107f0565b60405161038691906114de565b60405180910390f35b610397610812565b6040516103a49190611737565b60405180910390f35b6103c760048036038101906103c29190611750565b610836565b005b6103e360048036038101906103de9190611818565b610858565b6040516103f09190611661565b60405180910390f35b6104016108da565b60405161040e91906118b1565b60405180910390f35b610431600480360381019061042c91906117ed565b6108fe565b60405161043e91906114de565b60405180910390f35b5f7f7965db0b000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806104b957506104b88261099e565b5b9050919050565b6060600380546104cf906118f7565b80601f01602080910402602001604051908101604052809291908181526020018280546104fb906118f7565b80156105465780601f1061051d57610100808354040283529160200191610546565b820191905f5260205f20905b81548152906001019060200180831161052957829003601f168201915b5050505050905090565b5f8061055a610a07565b9050610567818585610a0e565b600191505092915050565b5f600254905090565b5f80610585610a07565b9050610592858285610a20565b61059d858585610ab3565b60019150509392505050565b5f60055f8381526020019081526020015f20600101549050919050565b6105cf826105a9565b6105d881610ba3565b6105e28383610bb7565b50505050565b5f6012905090565b6105f8610a07565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161461065c576040517f6697b23200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6106668282610ca1565b505050565b7f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a661069581610ba3565b61069f8383610d8b565b505050565b6106ae3382610e0a565b50565b5f805f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20549050919050565b5f60055f8481526020019081526020015f205f015f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff16905092915050565b606060048054610769906118f7565b80601f0160208091040260200160405190810160405280929190818152602001828054610795906118f7565b80156107e05780601f106107b7576101008083540402835291602001916107e0565b820191905f5260205f20905b8154815290600101906020018083116107c357829003601f168201915b5050505050905090565b5f801b81565b5f806107fa610a07565b9050610807818585610ab3565b600191505092915050565b7f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a681565b61083f826105a9565b61084881610ba3565b6108528383610ca1565b50505050565b5f60015f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2054905092915050565b7f000000000000000000000000000000000000000000000000000000000000000081565b5f7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1663fe575a87836040518263ffffffff1660e01b81526004016109589190611936565b602060405180830381865afa158015610973573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906109979190611979565b9050919050565b5f7f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b5f33905090565b610a1b8383836001610e89565b505050565b5f610a2b8484610858565b90507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff811015610aad5781811015610a9e578281836040517ffb8f41b2000000000000000000000000000000000000000000000000000000008152600401610a95939291906119a4565b60405180910390fd5b610aac84848484035f610e89565b5b50505050565b5f73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603610b23575f6040517f96c6fd1e000000000000000000000000000000000000000000000000000000008152600401610b1a9190611936565b60405180910390fd5b5f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603610b93575f6040517fec442f05000000000000000000000000000000000000000000000000000000008152600401610b8a9190611936565b60405180910390fd5b610b9e838383611058565b505050565b610bb481610baf610a07565b6111d6565b50565b5f610bc283836106f6565b610c9757600160055f8581526020019081526020015f205f015f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f6101000a81548160ff021916908315150217905550610c34610a07565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16847f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a460019050610c9b565b5f90505b92915050565b5f610cac83836106f6565b15610d81575f60055f8581526020019081526020015f205f015f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f6101000a81548160ff021916908315150217905550610d1e610a07565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16847ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b60405160405180910390a460019050610d85565b5f90505b92915050565b5f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603610dfb575f6040517fec442f05000000000000000000000000000000000000000000000000000000008152600401610df29190611936565b60405180910390fd5b610e065f8383611058565b5050565b5f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603610e7a575f6040517f96c6fd1e000000000000000000000000000000000000000000000000000000008152600401610e719190611936565b60405180910390fd5b610e85825f83611058565b5050565b5f73ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1603610ef9575f6040517fe602df05000000000000000000000000000000000000000000000000000000008152600401610ef09190611936565b60405180910390fd5b5f73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603610f69575f6040517f94280d62000000000000000000000000000000000000000000000000000000008152600401610f609190611936565b60405180910390fd5b8160015f8673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20819055508015611052578273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925846040516110499190611661565b60405180910390a35b50505050565b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1663fe575a87846040518263ffffffff1660e01b81526004016110b19190611936565b602060405180830381865afa1580156110cc573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906110f09190611979565b8061118f57507f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1663fe575a87836040518263ffffffff1660e01b815260040161114f9190611936565b602060405180830381865afa15801561116a573d5f803e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061118e9190611979565b5b156111c6576040517f6554e8c500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6111d1838383611227565b505050565b6111e082826106f6565b6112235780826040517fe2517d3f00000000000000000000000000000000000000000000000000000000815260040161121a9291906119d9565b60405180910390fd5b5050565b5f73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603611277578060025f82825461126b9190611a2d565b92505081905550611345565b5f805f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2054905081811015611300578381836040517fe450d38c0000000000000000000000000000000000000000000000000000000081526004016112f7939291906119a4565b60405180910390fd5b8181035f808673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2081905550505b5f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff160361138c578060025f82825403925050819055506113d6565b805f808473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f82825401925050819055505b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef836040516114339190611661565b60405180910390a3505050565b5f80fd5b5f7fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b61147881611444565b8114611482575f80fd5b50565b5f813590506114938161146f565b92915050565b5f602082840312156114ae576114ad611440565b5b5f6114bb84828501611485565b91505092915050565b5f8115159050919050565b6114d8816114c4565b82525050565b5f6020820190506114f15f8301846114cf565b92915050565b5f81519050919050565b5f82825260208201905092915050565b8281835e5f83830152505050565b5f601f19601f8301169050919050565b5f611539826114f7565b6115438185611501565b9350611553818560208601611511565b61155c8161151f565b840191505092915050565b5f6020820190508181035f83015261157f818461152f565b905092915050565b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f6115b082611587565b9050919050565b6115c0816115a6565b81146115ca575f80fd5b50565b5f813590506115db816115b7565b92915050565b5f819050919050565b6115f3816115e1565b81146115fd575f80fd5b50565b5f8135905061160e816115ea565b92915050565b5f806040838503121561162a57611629611440565b5b5f611637858286016115cd565b925050602061164885828601611600565b9150509250929050565b61165b816115e1565b82525050565b5f6020820190506116745f830184611652565b92915050565b5f805f6060848603121561169157611690611440565b5b5f61169e868287016115cd565b93505060206116af868287016115cd565b92505060406116c086828701611600565b9150509250925092565b5f819050919050565b6116dc816116ca565b81146116e6575f80fd5b50565b5f813590506116f7816116d3565b92915050565b5f6020828403121561171257611711611440565b5b5f61171f848285016116e9565b91505092915050565b611731816116ca565b82525050565b5f60208201905061174a5f830184611728565b92915050565b5f806040838503121561176657611765611440565b5b5f611773858286016116e9565b9250506020611784858286016115cd565b9150509250929050565b5f60ff82169050919050565b6117a38161178e565b82525050565b5f6020820190506117bc5f83018461179a565b92915050565b5f602082840312156117d7576117d6611440565b5b5f6117e484828501611600565b91505092915050565b5f6020828403121561180257611801611440565b5b5f61180f848285016115cd565b91505092915050565b5f806040838503121561182e5761182d611440565b5b5f61183b858286016115cd565b925050602061184c858286016115cd565b9150509250929050565b5f819050919050565b5f61187961187461186f84611587565b611856565b611587565b9050919050565b5f61188a8261185f565b9050919050565b5f61189b82611880565b9050919050565b6118ab81611891565b82525050565b5f6020820190506118c45f8301846118a2565b92915050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52602260045260245ffd5b5f600282049050600182168061190e57607f821691505b602082108103611921576119206118ca565b5b50919050565b611930816115a6565b82525050565b5f6020820190506119495f830184611927565b92915050565b611958816114c4565b8114611962575f80fd5b50565b5f815190506119738161194f565b92915050565b5f6020828403121561198e5761198d611440565b5b5f61199b84828501611965565b91505092915050565b5f6060820190506119b75f830186611927565b6119c46020830185611652565b6119d16040830184611652565b949350505050565b5f6040820190506119ec5f830185611927565b6119f96020830184611728565b9392505050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601160045260245ffd5b5f611a37826115e1565b9150611a42836115e1565b9250828201905080821115611a5a57611a59611a00565b5b9291505056fea26469706673582212208c88a7e4ad0d67f25df28934d38609618ddee11bdb24db7279c6fca2fa03394a64736f6c634300081a00330000000000000000000000001aa475b9bf0539d5133227e71d12a1c34b98a58e000000000000000000000000728da61583441bb4326481ae27edeaaaa2d75c19","external_libraries":[],"proxy_type":null,"implementations":[],"verified_at":"2025-10-30T11:27:35.156428Z","is_verified_via_verifier_alliance":false,"compiler_version":"0.8.26+commit.8a97fa7a","decoded_constructor_args":[["0x1aA475b9Bf0539D5133227e71d12A1c34b98A58e",{"internalType":"address","name":"_admin","type":"address"}],["0x728da61583441bB4326481Ae27EdEAaAA2D75c19",{"internalType":"address","name":"_accessRegistry","type":"address"}]],"sourcify_repo_url":"https://repo.sourcify.dev/1/0x6A6E3a4396993A4eC98a6f4A654Cc0819538721e","optimization_runs":null,"compiler_settings":{"evmVersion":"cancun","libraries":{},"metadata":{"bytecodeHash":"ipfs"},"optimizer":{"enabled":false,"runs":200},"remappings":[":@chainlink/contracts/src/v0.8/=lib/chainlink-evm/contracts/src/v0.8/shared/",":@openzeppelin/contracts/=lib/openzeppelin-contracts/contracts/",":@uniswap/v3-periphery/contracts/=lib/v3-periphery/contracts/",":chainlink-evm/=lib/chainlink-evm/",":erc4626-tests/=lib/openzeppelin-contracts/lib/erc4626-tests/",":forge-std/=lib/forge-std/src/",":halmos-cheatcodes/=lib/openzeppelin-contracts/lib/halmos-cheatcodes/src/",":openzeppelin-contracts/=lib/openzeppelin-contracts/",":v3-periphery/=lib/v3-periphery/contracts/"]},"is_verified":true,"verified_twin_address_hash":null,"optimization_enabled":false,"deployed_bytecode":"0x608060405234801561000f575f80fd5b5060043610610135575f3560e01c806342966c68116100b6578063a9059cbb1161007a578063a9059cbb1461035f578063d53913931461038f578063d547741f146103ad578063dd62ed3e146103c9578063e6f29b05146103f9578063fe575a871461041757610135565b806342966c68146102a757806370a08231146102c357806391d14854146102f357806395d89b4114610323578063a217fddf1461034157610135565b8063248a9ca3116100fd578063248a9ca3146102055780632f2ff15d14610235578063313ce5671461025157806336568abe1461026f57806340c10f191461028b57610135565b806301ffc9a71461013957806306fdde0314610169578063095ea7b31461018757806318160ddd146101b757806323b872dd146101d5575b5f80fd5b610153600480360381019061014e9190611499565b610447565b60405161016091906114de565b60405180910390f35b6101716104c0565b60405161017e9190611567565b60405180910390f35b6101a1600480360381019061019c9190611614565b610550565b6040516101ae91906114de565b60405180910390f35b6101bf610572565b6040516101cc9190611661565b60405180910390f35b6101ef60048036038101906101ea919061167a565b61057b565b6040516101fc91906114de565b60405180910390f35b61021f600480360381019061021a91906116fd565b6105a9565b60405161022c9190611737565b60405180910390f35b61024f600480360381019061024a9190611750565b6105c6565b005b6102596105e8565b60405161026691906117a9565b60405180910390f35b61028960048036038101906102849190611750565b6105f0565b005b6102a560048036038101906102a09190611614565b61066b565b005b6102c160048036038101906102bc91906117c2565b6106a4565b005b6102dd60048036038101906102d891906117ed565b6106b1565b6040516102ea9190611661565b60405180910390f35b61030d60048036038101906103089190611750565b6106f6565b60405161031a91906114de565b60405180910390f35b61032b61075a565b6040516103389190611567565b60405180910390f35b6103496107ea565b6040516103569190611737565b60405180910390f35b61037960048036038101906103749190611614565b6107f0565b60405161038691906114de565b60405180910390f35b610397610812565b6040516103a49190611737565b60405180910390f35b6103c760048036038101906103c29190611750565b610836565b005b6103e360048036038101906103de9190611818565b610858565b6040516103f09190611661565b60405180910390f35b6104016108da565b60405161040e91906118b1565b60405180910390f35b610431600480360381019061042c91906117ed565b6108fe565b60405161043e91906114de565b60405180910390f35b5f7f7965db0b000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806104b957506104b88261099e565b5b9050919050565b6060600380546104cf906118f7565b80601f01602080910402602001604051908101604052809291908181526020018280546104fb906118f7565b80156105465780601f1061051d57610100808354040283529160200191610546565b820191905f5260205f20905b81548152906001019060200180831161052957829003601f168201915b5050505050905090565b5f8061055a610a07565b9050610567818585610a0e565b600191505092915050565b5f600254905090565b5f80610585610a07565b9050610592858285610a20565b61059d858585610ab3565b60019150509392505050565b5f60055f8381526020019081526020015f20600101549050919050565b6105cf826105a9565b6105d881610ba3565b6105e28383610bb7565b50505050565b5f6012905090565b6105f8610a07565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161461065c576040517f6697b23200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6106668282610ca1565b505050565b7f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a661069581610ba3565b61069f8383610d8b565b505050565b6106ae3382610e0a565b50565b5f805f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20549050919050565b5f60055f8481526020019081526020015f205f015f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff16905092915050565b606060048054610769906118f7565b80601f0160208091040260200160405190810160405280929190818152602001828054610795906118f7565b80156107e05780601f106107b7576101008083540402835291602001916107e0565b820191905f5260205f20905b8154815290600101906020018083116107c357829003601f168201915b5050505050905090565b5f801b81565b5f806107fa610a07565b9050610807818585610ab3565b600191505092915050565b7f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a681565b61083f826105a9565b61084881610ba3565b6108528383610ca1565b50505050565b5f60015f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2054905092915050565b7f000000000000000000000000728da61583441bb4326481ae27edeaaaa2d75c1981565b5f7f000000000000000000000000728da61583441bb4326481ae27edeaaaa2d75c1973ffffffffffffffffffffffffffffffffffffffff1663fe575a87836040518263ffffffff1660e01b81526004016109589190611936565b602060405180830381865afa158015610973573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906109979190611979565b9050919050565b5f7f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b5f33905090565b610a1b8383836001610e89565b505050565b5f610a2b8484610858565b90507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff811015610aad5781811015610a9e578281836040517ffb8f41b2000000000000000000000000000000000000000000000000000000008152600401610a95939291906119a4565b60405180910390fd5b610aac84848484035f610e89565b5b50505050565b5f73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603610b23575f6040517f96c6fd1e000000000000000000000000000000000000000000000000000000008152600401610b1a9190611936565b60405180910390fd5b5f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603610b93575f6040517fec442f05000000000000000000000000000000000000000000000000000000008152600401610b8a9190611936565b60405180910390fd5b610b9e838383611058565b505050565b610bb481610baf610a07565b6111d6565b50565b5f610bc283836106f6565b610c9757600160055f8581526020019081526020015f205f015f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f6101000a81548160ff021916908315150217905550610c34610a07565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16847f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a460019050610c9b565b5f90505b92915050565b5f610cac83836106f6565b15610d81575f60055f8581526020019081526020015f205f015f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f6101000a81548160ff021916908315150217905550610d1e610a07565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16847ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b60405160405180910390a460019050610d85565b5f90505b92915050565b5f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603610dfb575f6040517fec442f05000000000000000000000000000000000000000000000000000000008152600401610df29190611936565b60405180910390fd5b610e065f8383611058565b5050565b5f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603610e7a575f6040517f96c6fd1e000000000000000000000000000000000000000000000000000000008152600401610e719190611936565b60405180910390fd5b610e85825f83611058565b5050565b5f73ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1603610ef9575f6040517fe602df05000000000000000000000000000000000000000000000000000000008152600401610ef09190611936565b60405180910390fd5b5f73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603610f69575f6040517f94280d62000000000000000000000000000000000000000000000000000000008152600401610f609190611936565b60405180910390fd5b8160015f8673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20819055508015611052578273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925846040516110499190611661565b60405180910390a35b50505050565b7f000000000000000000000000728da61583441bb4326481ae27edeaaaa2d75c1973ffffffffffffffffffffffffffffffffffffffff1663fe575a87846040518263ffffffff1660e01b81526004016110b19190611936565b602060405180830381865afa1580156110cc573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906110f09190611979565b8061118f57507f000000000000000000000000728da61583441bb4326481ae27edeaaaa2d75c1973ffffffffffffffffffffffffffffffffffffffff1663fe575a87836040518263ffffffff1660e01b815260040161114f9190611936565b602060405180830381865afa15801561116a573d5f803e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061118e9190611979565b5b156111c6576040517f6554e8c500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6111d1838383611227565b505050565b6111e082826106f6565b6112235780826040517fe2517d3f00000000000000000000000000000000000000000000000000000000815260040161121a9291906119d9565b60405180910390fd5b5050565b5f73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603611277578060025f82825461126b9190611a2d565b92505081905550611345565b5f805f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2054905081811015611300578381836040517fe450d38c0000000000000000000000000000000000000000000000000000000081526004016112f7939291906119a4565b60405180910390fd5b8181035f808673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2081905550505b5f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff160361138c578060025f82825403925050819055506113d6565b805f808473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f82825401925050819055505b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef836040516114339190611661565b60405180910390a3505050565b5f80fd5b5f7fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b61147881611444565b8114611482575f80fd5b50565b5f813590506114938161146f565b92915050565b5f602082840312156114ae576114ad611440565b5b5f6114bb84828501611485565b91505092915050565b5f8115159050919050565b6114d8816114c4565b82525050565b5f6020820190506114f15f8301846114cf565b92915050565b5f81519050919050565b5f82825260208201905092915050565b8281835e5f83830152505050565b5f601f19601f8301169050919050565b5f611539826114f7565b6115438185611501565b9350611553818560208601611511565b61155c8161151f565b840191505092915050565b5f6020820190508181035f83015261157f818461152f565b905092915050565b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f6115b082611587565b9050919050565b6115c0816115a6565b81146115ca575f80fd5b50565b5f813590506115db816115b7565b92915050565b5f819050919050565b6115f3816115e1565b81146115fd575f80fd5b50565b5f8135905061160e816115ea565b92915050565b5f806040838503121561162a57611629611440565b5b5f611637858286016115cd565b925050602061164885828601611600565b9150509250929050565b61165b816115e1565b82525050565b5f6020820190506116745f830184611652565b92915050565b5f805f6060848603121561169157611690611440565b5b5f61169e868287016115cd565b93505060206116af868287016115cd565b92505060406116c086828701611600565b9150509250925092565b5f819050919050565b6116dc816116ca565b81146116e6575f80fd5b50565b5f813590506116f7816116d3565b92915050565b5f6020828403121561171257611711611440565b5b5f61171f848285016116e9565b91505092915050565b611731816116ca565b82525050565b5f60208201905061174a5f830184611728565b92915050565b5f806040838503121561176657611765611440565b5b5f611773858286016116e9565b9250506020611784858286016115cd565b9150509250929050565b5f60ff82169050919050565b6117a38161178e565b82525050565b5f6020820190506117bc5f83018461179a565b92915050565b5f602082840312156117d7576117d6611440565b5b5f6117e484828501611600565b91505092915050565b5f6020828403121561180257611801611440565b5b5f61180f848285016115cd565b91505092915050565b5f806040838503121561182e5761182d611440565b5b5f61183b858286016115cd565b925050602061184c858286016115cd565b9150509250929050565b5f819050919050565b5f61187961187461186f84611587565b611856565b611587565b9050919050565b5f61188a8261185f565b9050919050565b5f61189b82611880565b9050919050565b6118ab81611891565b82525050565b5f6020820190506118c45f8301846118a2565b92915050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52602260045260245ffd5b5f600282049050600182168061190e57607f821691505b602082108103611921576119206118ca565b5b50919050565b611930816115a6565b82525050565b5f6020820190506119495f830184611927565b92915050565b611958816114c4565b8114611962575f80fd5b50565b5f815190506119738161194f565b92915050565b5f6020828403121561198e5761198d611440565b5b5f61199b84828501611965565b91505092915050565b5f6060820190506119b75f830186611927565b6119c46020830185611652565b6119d16040830184611652565b949350505050565b5f6040820190506119ec5f830185611927565b6119f96020830184611728565b9392505050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601160045260245ffd5b5f611a37826115e1565b9150611a42836115e1565b9250828201905080821115611a5a57611a59611a00565b5b9291505056fea26469706673582212208c88a7e4ad0d67f25df28934d38609618ddee11bdb24db7279c6fca2fa03394a64736f6c634300081a0033","source_code":"// SPDX-License-Identifier: BUSL-1.1\npragma solidity ^0.8.26;\n\nimport {ERC20} from \"@openzeppelin/contracts/token/ERC20/ERC20.sol\";\nimport {AccessControl} from \"@openzeppelin/contracts/access/AccessControl.sol\";\n\nimport {IAccessRegistry} from \"./interfaces/IAccessRegistry.sol\";\nimport {Errors} from \"./libraries/Errors.sol\";\n\n/// @title StakeStone USD Token (SSUSD)\n/// @author luoyhang003\n/// @notice ERC20 token with minting and blacklist transfer restrictions\n/// @dev Combines OpenZeppelin ERC20 and AccessControl\ncontract Token is ERC20, AccessControl {\n    /*//////////////////////////////////////////////////////////////////////////\n                                    STATE VARIABLES\n    //////////////////////////////////////////////////////////////////////////*/\n\n    /// @notice Role identifier for minter accounts(contracts).\n    /// @dev Calculated as keccak256(\"MINTER_ROLE\").\n    bytes32 public constant MINTER_ROLE = keccak256(\"MINTER_ROLE\");\n\n    /// @notice Reference to the access registry contract used for blacklist checks\n    /// @dev Must implement the IAccessRegistry interface\n    IAccessRegistry public immutable accessRegistry;\n\n    /*//////////////////////////////////////////////////////////////////////////\n                                    CONSTRUCTOR\n    //////////////////////////////////////////////////////////////////////////*/\n\n    /// @notice Deploys the token and assigns DEFAULT_ADMIN_ROLE\n    /// @param _admin Address that will receive the default admin role\n    /// @param _accessRegistry Address of the access registry contract used for blacklist validation\n    constructor(\n        address _admin,\n        address _accessRegistry\n    ) ERC20(\"StakeStone USD\", \"STONEUSD\") {\n        if (_admin == address(0)) revert Errors.ZeroAddress();\n\n        _grantRole(DEFAULT_ADMIN_ROLE, _admin);\n\n        accessRegistry = IAccessRegistry(_accessRegistry);\n    }\n\n    /*//////////////////////////////////////////////////////////////////////////\n                                    VIEW FUNCTIONS\n    //////////////////////////////////////////////////////////////////////////*/\n\n    /// @notice Checks whether a given address is blacklisted\n    /// @param _account The address to check\n    /// @return True if the address is blacklisted, false otherwise\n    function isBlacklisted(address _account) external view returns (bool) {\n        return accessRegistry.isBlacklisted(_account);\n    }\n\n    /*//////////////////////////////////////////////////////////////////////////\n                                    ADMIN FUNCTIONS\n    //////////////////////////////////////////////////////////////////////////*/\n\n    /// @notice Mint new tokens to a given address\n    /// @dev Only callable by addresses with MINTER_ROLE\n    /// @param _to The address to receive the minted tokens\n    /// @param _amount The amount of tokens to mint\n    function mint(address _to, uint256 _amount) external onlyRole(MINTER_ROLE) {\n        _mint(_to, _amount);\n    }\n\n    /// @notice Burn tokens\n    /// @param _amount The amount of tokens to burn\n    function burn(uint256 _amount) external {\n        _burn(msg.sender, _amount);\n    }\n\n    /*//////////////////////////////////////////////////////////////////////////\n                                    INTERNAL FUNCTIONS\n    //////////////////////////////////////////////////////////////////////////*/\n\n    /// @notice Overrides the _update function to enforce transfer restrictions\n    /// @dev Prevents transfers if either sender or receiver is blacklisted\n    /// @param _from the address tokens are being transferred from\n    /// @param _to the address tokens are being transferred to\n    /// @param _amount the amount of tokens being transferred\n    function _update(\n        address _from,\n        address _to,\n        uint256 _amount\n    ) internal override {\n        if (\n            accessRegistry.isBlacklisted(_from) ||\n            accessRegistry.isBlacklisted(_to)\n        ) revert Errors.TransferBlacklisted();\n\n        super._update(_from, _to, _amount);\n    }\n}\n","creation_status":"success","file_path":"src/Token.sol"}