{"constructor_args":null,"is_partially_verified":true,"is_changed_bytecode":false,"abi":[{"inputs":[],"name":"AccessControlBadConfirmation","type":"error"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"bytes32","name":"neededRole","type":"bytes32"}],"name":"AccessControlUnauthorizedAccount","type":"error"},{"inputs":[],"name":"AlreadyInitialized","type":"error"},{"inputs":[],"name":"InvalidOFT","type":"error"},{"inputs":[],"name":"InvalidSender","type":"error"},{"inputs":[],"name":"IsolatedBackingEnabled","type":"error"},{"inputs":[],"name":"MustBeEvmAddress","type":"error"},{"inputs":[],"name":"MustPayNative","type":"error"},{"inputs":[],"name":"NotFromRouter","type":"error"},{"inputs":[],"name":"NotSupported","type":"error"},{"inputs":[],"name":"RefundFailed","type":"error"},{"inputs":[],"name":"RefundMustBeSelf","type":"error"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"SlippageExceeded","type":"error"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"oldHopAddress","type":"address"},{"indexed":false,"internalType":"address","name":"newHopAddress","type":"address"}],"name":"HopAddressUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint32","name":"eid","type":"uint32"},{"indexed":false,"internalType":"bytes32","name":"router","type":"bytes32"}],"name":"NonDeterministicAddressSet","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"},{"inputs":[],"name":"DEFAULT_ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"GLOBAL_COMPOSE_GAS","outputs":[{"internalType":"uint128","name":"","type":"uint128"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"RELAYER_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"SOMNIA_COMPOSE_GAS","outputs":[{"internalType":"uint128","name":"","type":"uint128"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"coin","outputs":[{"internalType":"contract IGDollar","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"custodian","outputs":[{"internalType":"contract IBrandedCustodian","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint32","name":"","type":"uint32"}],"name":"eidToNonDeterministicAddress","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"frxusd","outputs":[{"internalType":"contract IFrxUSD","name":"","type":"address"}],"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":"uint32","name":"srcEid","type":"uint32"},{"internalType":"bytes32","name":"sender","type":"bytes32"},{"internalType":"address","name":"oft","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"hopCompose","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_owner","type":"address"},{"internalType":"address","name":"_custodianAddress","type":"address"},{"internalType":"address","name":"_coin","type":"address"},{"internalType":"address","name":"_localFrxUSD","type":"address"},{"internalType":"address","name":"_localRemoteHop","type":"address"},{"internalType":"bool","name":"_isolatedBackingEnabled","type":"bool"}],"name":"initialize","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"isolatedBackingEnabled","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint32","name":"dstEid","type":"uint32"},{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"mintAndSend","outputs":[{"internalType":"uint256","name":"out","type":"uint256"}],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"oftLocal","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint32","name":"dstEid","type":"uint32"},{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"quote","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"components":[{"internalType":"uint32","name":"dstEid","type":"uint32"},{"internalType":"bytes32","name":"to","type":"bytes32"},{"internalType":"uint256","name":"amountLD","type":"uint256"},{"internalType":"uint256","name":"minAmountLD","type":"uint256"},{"internalType":"bytes","name":"extraOptions","type":"bytes"},{"internalType":"bytes","name":"composeMsg","type":"bytes"},{"internalType":"bytes","name":"oftCmd","type":"bytes"}],"internalType":"struct ILZSend.SendParam","name":"_sendParam","type":"tuple"},{"internalType":"bool","name":"_payInLzToken","type":"bool"}],"name":"quoteSend","outputs":[{"components":[{"internalType":"uint256","name":"nativeFee","type":"uint256"},{"internalType":"uint256","name":"lzTokenFee","type":"uint256"}],"internalType":"struct ILZSend.MessagingFee","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"remoteHopV2","outputs":[{"internalType":"contract IRemoteHopV2","name":"","type":"address"}],"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":[{"components":[{"internalType":"uint32","name":"dstEid","type":"uint32"},{"internalType":"bytes32","name":"to","type":"bytes32"},{"internalType":"uint256","name":"amountLD","type":"uint256"},{"internalType":"uint256","name":"minAmountLD","type":"uint256"},{"internalType":"bytes","name":"extraOptions","type":"bytes"},{"internalType":"bytes","name":"composeMsg","type":"bytes"},{"internalType":"bytes","name":"oftCmd","type":"bytes"}],"internalType":"struct ILZSend.SendParam","name":"_sendParam","type":"tuple"},{"components":[{"internalType":"uint256","name":"nativeFee","type":"uint256"},{"internalType":"uint256","name":"lzTokenFee","type":"uint256"}],"internalType":"struct ILZSend.MessagingFee","name":"_fee","type":"tuple"},{"internalType":"address","name":"_refundAddress","type":"address"}],"name":"send","outputs":[{"components":[{"internalType":"bytes32","name":"guid","type":"bytes32"},{"internalType":"uint64","name":"nonce","type":"uint64"},{"components":[{"internalType":"uint256","name":"nativeFee","type":"uint256"},{"internalType":"uint256","name":"lzTokenFee","type":"uint256"}],"internalType":"struct ILZSend.MessagingFee","name":"fee","type":"tuple"}],"internalType":"struct ILZSend.MessagingReceipt","name":"","type":"tuple"},{"components":[{"internalType":"uint256","name":"amountSentLD","type":"uint256"},{"internalType":"uint256","name":"amountReceivedLD","type":"uint256"}],"internalType":"struct ILZSend.OFTReceipt","name":"","type":"tuple"}],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint32","name":"dstEid","type":"uint32"},{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"send","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"_updatedAddress","type":"address"}],"name":"setHopV2Address","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint32","name":"eid","type":"uint32"},{"internalType":"bytes32","name":"value","type":"bytes32"}],"name":"setNonDeterministicRouterAddress","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":"wasInitialized","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"stateMutability":"payable","type":"receive"}],"conflicting_implementations":null,"certified":false,"additional_sources":[{"file_path":"node_modules/@openzeppelin/contracts/access/AccessControl.sol","source_code":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.0.0) (access/AccessControl.sol)\n\npragma solidity ^0.8.20;\n\nimport {IAccessControl} from \"./IAccessControl.sol\";\nimport {Context} from \"../utils/Context.sol\";\nimport {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    /**\n     * @dev See {IERC165-supportsInterface}.\n     */\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` to `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":"node_modules/@openzeppelin/contracts/access/IAccessControl.sol","source_code":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.1.0) (access/IAccessControl.sol)\n\npragma solidity ^0.8.20;\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 signaling 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":"node_modules/@openzeppelin/contracts/token/ERC20/IERC20.sol","source_code":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.1.0) (token/ERC20/IERC20.sol)\n\npragma solidity ^0.8.20;\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":"node_modules/@openzeppelin/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":"node_modules/@openzeppelin/contracts/utils/introspection/ERC165.sol","source_code":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.1.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    /**\n     * @dev See {IERC165-supportsInterface}.\n     */\n    function supportsInterface(bytes4 interfaceId) public view virtual returns (bool) {\n        return interfaceId == type(IERC165).interfaceId;\n    }\n}\n"},{"file_path":"node_modules/@openzeppelin/contracts/utils/introspection/IERC165.sol","source_code":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.1.0) (utils/introspection/IERC165.sol)\n\npragma solidity ^0.8.20;\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/BrandedStablecoin/interfaces/IBrandedCustodian.sol","source_code":"// SPDX-License-Identifier: UNLICENSED\npragma solidity ^0.8.4;\n\ninterface IBrandedCustodian {\n  error AmountTooHigh();\n  error ERC4626ExceededMaxDeposit(address receiver, uint256 assets, uint256 max);\n  error ERC4626ExceededMaxMint(address receiver, uint256 shares, uint256 max);\n  error ERC4626ExceededMaxRedeem(address owner, uint256 shares, uint256 max);\n  error ERC4626ExceededMaxWithdraw(address owner, uint256 assets, uint256 max);\n  error InitializeFailed();\n  error MintCapExceeded(address receiver, uint256 shares, uint256 mintCap);\n  error NotOperator();\n  error OwnableInvalidOwner(address owner);\n  error OwnableUnauthorizedAccount(address account);\n  error OwnerCannotInitToZeroAddress();\n  error ReentrancyGuardReentrantCall();\n  error SafeERC20FailedOperation(address token);\n  error SlippageTooHigh();\n  error TokenOwnerShouldBeSender();\n\n  event Deposit(address indexed sender, address indexed owner, uint256 assets, uint256 shares);\n  event MinAmountAfterShuffleSet(uint256 oldValue, uint256 newValue);\n  event MintCapSet(uint256 mintCap);\n  event OperatorStatusSet(address operator, bool status);\n  event OwnershipTransferStarted(address indexed previousOwner, address indexed newOwner);\n  event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);\n  event RecoveredERC20(address token, uint256 amount);\n  event Withdraw(\n    address indexed sender,\n    address indexed receiver,\n    address indexed owner,\n    uint256 assets,\n    uint256 shares\n  );\n  event custodianTknShuffledToRwa(uint256 custodianTknAmount, address targetRwa);\n\n  function acceptOwnership() external;\n  function asset() external view returns (address _custodianTkn);\n  function balanceOf(address _addr) external view returns (uint256 _balance);\n  function brandedCoinMinted() external view returns (uint256);\n  function brandedStablecoin() external view returns (address);\n  function brandedTknDecimals() external view returns (uint8);\n  function convertToAssets(uint256 _shares) external view returns (uint256 _assets);\n  function convertToShares(uint256 _assets) external view returns (uint256 _shares);\n  function custodianTkn() external view returns (address);\n  function custodianTknDecimals() external view returns (uint8);\n  function deposit(uint256 _assetsIn, address _receiver) external returns (uint256 _sharesOut);\n  function initialize(\n    address _brandedCoin,\n    address _owner,\n    uint256 _mintCap,\n    uint256 _mintFee,\n    uint256 _redeemFee\n  ) external;\n  function isApprovedOperator(address) external view returns (bool);\n  function maxDeposit(address _addr) external view returns (uint256 _maxAssetsIn);\n  function maxMint(address _addr) external view returns (uint256 _maxSharesOut);\n  function maxRedeem(address _owner) external view returns (uint256 _maxSharesIn);\n  function maxWithdraw(address _owner) external view returns (uint256 _maxAssetsOut);\n  function mdwrComboView()\n    external\n    view\n    returns (\n      uint256 _maxAssetsDepositable,\n      uint256 _maxSharesMintable,\n      uint256 _maxAssetsWithdrawable,\n      uint256 _maxSharesRedeemable\n    );\n  function minAfterShuffle() external view returns (uint256);\n  function mint(uint256 _sharesOut, address _receiver) external returns (uint256 _assetsIn);\n  function mintCap() external view returns (uint256);\n  function mintFee() external view returns (uint256);\n  function owner() external view returns (address);\n  function pendingOwner() external view returns (address);\n  function previewDeposit(uint256 _assetsIn) external view returns (uint256 _sharesOut);\n  function previewMint(uint256 _sharesOut) external view returns (uint256 _assetsIn);\n  function previewRedeem(uint256 _sharesIn) external view returns (uint256 _assetsOut);\n  function previewWithdraw(uint256 _assetsOut) external view returns (uint256 _sharesIn);\n  function pricePerShare() external view returns (uint256 _pricePerShare);\n  function recoverERC20(address _tokenAddress, uint256 _tokenAmount) external;\n  function redeem(uint256 _sharesIn, address _receiver, address _owner) external returns (uint256 _assetsOut);\n  function redeemFee() external view returns (uint256);\n  function renounceOwnership() external;\n  function setApprovedOperator(address _operator, bool _status) external;\n  function setMinAfterShuffle(uint256 _minAfterShuffle) external;\n  function setMintCap(uint256 _mintCap) external;\n  function setMintRedeemFee(uint256 _mintFee, uint256 _redeemFee) external;\n  function totalAssets() external view returns (uint256 _assets);\n  function totalSupply() external view returns (uint256 _supply);\n  function transferOwnership(address newOwner) external;\n  function wasInitialized() external view returns (bool);\n  function withdraw(uint256 _assetsOut, address _receiver, address _owner) external returns (uint256 _sharesIn);\n}\n"},{"file_path":"src/BrandedStablecoin/interfaces/IGDollar.sol","source_code":"// SPDX-License-Identifier: UNLICENSED\npragma solidity ^0.8.4;\n\ninterface IGDollar {\n  error AccessControlBadConfirmation();\n  error AccessControlUnauthorizedAccount(address account, bytes32 neededRole);\n  error ERC20InsufficientAllowance(address spender, uint256 allowance, uint256 needed);\n  error ERC20InsufficientBalance(address sender, uint256 balance, uint256 needed);\n  error ERC20InvalidApprover(address approver);\n  error ERC20InvalidReceiver(address receiver);\n  error ERC20InvalidSender(address sender);\n  error ERC20InvalidSpender(address spender);\n  error ExpiredAuthorization();\n  error InvalidAccountNonce(address account, uint256 currentNonce);\n  error InvalidAuthorization();\n  error InvalidInitialization();\n  error InvalidPayee(address caller, address payee);\n  error InvalidSignature();\n  error NotInitializing();\n  error UsedOrCanceledAuthorization();\n\n  event Approval(address indexed owner, address indexed spender, uint256 value);\n  event AuthorizationCanceled(address indexed authorizer, bytes32 indexed nonce);\n  event AuthorizationUsed(address indexed authorizer, bytes32 indexed nonce);\n  event EIP712DomainChanged();\n  event Initialized(uint64 version);\n  event RoleAdminChanged(bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole);\n  event RoleGranted(bytes32 indexed role, address indexed account, address indexed sender);\n  event RoleRevoked(bytes32 indexed role, address indexed account, address indexed sender);\n  event Transfer(address indexed from, address indexed to, uint256 value);\n\n  function DOMAIN_SEPARATOR() external view returns (bytes32);\n  function DEFAULT_ADMIN_ROLE() external view returns (bytes32);\n  function FACTORY_ROLE() external view returns (bytes32);\n  function MINTER_ROLE() external view returns (bytes32);\n  function allowance(address owner, address spender) external view returns (uint256);\n  function approve(address spender, uint256 value) external returns (bool);\n  function authorizationState(address authorizer, bytes32 nonce) external view returns (bool);\n  function balanceOf(address account) external view returns (uint256);\n  function burn(uint256 value) external;\n  function burnFrom(address account, uint256 value) external;\n  function cancelAuthorization(address authorizer, bytes32 nonce, uint8 v, bytes32 r, bytes32 s) external;\n  function cancelAuthorization(address authorizer, bytes32 nonce, bytes memory signature) external;\n  function decimals() external view returns (uint8);\n  function eip712Domain()\n    external\n    view\n    returns (\n      bytes1 fields,\n      string memory name,\n      string memory version,\n      uint256 chainId,\n      address verifyingContract,\n      bytes32 salt,\n      uint256[] memory extensions\n    );\n  function getRoleAdmin(bytes32 role) external view returns (bytes32);\n  function grantRole(bytes32 role, address account) external;\n  function hasRole(bytes32 role, address account) external view returns (bool);\n  function initialize(string memory name, string memory symbol, address proxyAdminOwner) external;\n  function mint(address account, uint256 value) external;\n  function name() external view returns (string memory);\n  function nonces(address owner) external view returns (uint256);\n  function permit(address owner, address spender, uint256 value, uint256 deadline, bytes memory signature) external;\n  function permit(\n    address owner,\n    address spender,\n    uint256 value,\n    uint256 deadline,\n    uint8 v,\n    bytes32 r,\n    bytes32 s\n  ) external;\n  function receiveWithAuthorization(\n    address from,\n    address to,\n    uint256 value,\n    uint256 validAfter,\n    uint256 validBefore,\n    bytes32 nonce,\n    bytes memory signature\n  ) external;\n  function receiveWithAuthorization(\n    address from,\n    address to,\n    uint256 value,\n    uint256 validAfter,\n    uint256 validBefore,\n    bytes32 nonce,\n    uint8 v,\n    bytes32 r,\n    bytes32 s\n  ) external;\n  function renounceRole(bytes32 role, address callerConfirmation) external;\n  function revokeRole(bytes32 role, address account) external;\n  function supportsInterface(bytes4 interfaceId) external view returns (bool);\n  function symbol() external view returns (string memory);\n  function totalSupply() external view returns (uint256);\n  function transfer(address to, uint256 value) external returns (bool);\n  function transferFrom(address from, address to, uint256 value) external returns (bool);\n  function transferWithAuthorization(\n    address from,\n    address to,\n    uint256 value,\n    uint256 validAfter,\n    uint256 validBefore,\n    bytes32 nonce,\n    bytes memory signature\n  ) external;\n  function transferWithAuthorization(\n    address from,\n    address to,\n    uint256 value,\n    uint256 validAfter,\n    uint256 validBefore,\n    bytes32 nonce,\n    uint8 v,\n    bytes32 r,\n    bytes32 s\n  ) external;\n}\n"},{"file_path":"src/BrandedStablecoin/interfaces/ILzSend.sol","source_code":"// SPDX-License-Identifier: ISC\npragma solidity ^0.8.19;\n\ninterface ILZSend {\n  struct SendParam {\n    uint32 dstEid;\n    bytes32 to;\n    uint256 amountLD;\n    uint256 minAmountLD;\n    bytes extraOptions;\n    bytes composeMsg;\n    bytes oftCmd;\n  }\n\n  struct MessagingFee {\n    uint256 nativeFee;\n    uint256 lzTokenFee;\n  }\n\n  struct MessagingReceipt {\n    bytes32 guid;\n    uint64 nonce;\n    MessagingFee fee;\n  }\n\n  struct OFTReceipt {\n    uint256 amountSentLD;\n    uint256 amountReceivedLD;\n  }\n\n  function quoteSend(SendParam calldata _sendParam, bool _payInLzToken) external view returns (MessagingFee memory);\n\n  function send(\n    SendParam calldata _sendParam,\n    MessagingFee calldata _fee,\n    address _refundAddress\n  ) external payable returns (MessagingReceipt memory, OFTReceipt memory);\n}\n"},{"file_path":"src/BrandedStablecoin/interfaces/IRemoteHopV2.sol","source_code":"// SPDX-License-Identifier: UNLICENSED\npragma solidity ^0.8.4;\n\ninterface IRemoteHopV2 {\n  struct MessagingFee {\n    uint256 nativeFee;\n    uint256 lzTokenFee;\n  }\n\n  error HopPaused();\n  error InsufficientFee();\n  error InvalidOFT();\n  error InvalidOptionType(uint16 optionType);\n  error InvalidSourceChain();\n  error InvalidSourceHop();\n  error NotEndpoint();\n  error OwnableInvalidOwner(address owner);\n  error OwnableUnauthorizedAccount(address account);\n  error RefundFailed();\n  error SafeCastOverflowedUintDowncast(uint8 bits, uint256 value);\n  error SafeERC20FailedOperation(address token);\n  error ZeroAmountSend();\n\n  event Hop(address oft, address indexed recipient, uint256 amount);\n  event MessageHash(address oft, uint64 indexed nonce, bytes32 indexed fraxtalHop);\n  event OwnershipTransferStarted(address indexed previousOwner, address indexed newOwner);\n  event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);\n  event SendOFT(address oft, address indexed sender, uint32 indexed dstEid, bytes32 indexed to, uint256 amountLD);\n\n  receive() external payable;\n\n  function DVN() external view returns (address);\n  function EID() external view returns (uint32);\n  function ENDPOINT() external view returns (address);\n  function EXECUTOR() external view returns (address);\n  function TREASURY() external view returns (address);\n  function acceptOwnership() external;\n  function approvedOft(address) external view returns (bool);\n  function executorOptions(uint32) external view returns (bytes memory);\n  function fraxtalHop() external view returns (bytes32);\n  function hopFee() external view returns (uint256);\n  function lzCompose(address _oft, bytes32, bytes memory _message, address, bytes memory) external payable;\n  function messageProcessed(bytes32) external view returns (bool);\n  function numDVNs() external view returns (uint256);\n  function owner() external view returns (address);\n  function pause(bool _paused) external;\n  function paused() external view returns (bool);\n  function pendingOwner() external view returns (address);\n  function quote(\n    address _oft,\n    uint32 _dstEid,\n    bytes32 _to,\n    uint256 _amountLD,\n    uint128 _composeGas,\n    bytes memory _composeMsg\n  ) external view returns (uint256 fee);\n\n  function quoteHop(\n    uint32 _dstEid,\n    uint128 _composeGas,\n    bytes memory _composeMsg\n  ) external view returns (uint256 finalFee);\n  function recoverERC20(address tokenAddress, address recipient, uint256 tokenAmount) external;\n  function recoverETH(address recipient, uint256 tokenAmount) external;\n  function renounceOwnership() external;\n  function sendOFT(address _oft, uint32 _dstEid, bytes32 _to, uint256 _amountLD) external payable;\n  function sendOFT(\n    address _oft,\n    uint32 _dstEid,\n    bytes32 _to,\n    uint256 _amountLD,\n    uint128 _composeGas,\n    bytes memory _composeMsg\n  ) external payable;\n  function setExecutorOptions(uint32 eid, bytes memory _options) external;\n  function setFraxtalHop(address _fraxtalHop) external;\n  function setFraxtalHop(bytes32 _fraxtalHop) external;\n  function setHopFee(uint256 _hopFee) external;\n  function setMessageProcessed(address oft, uint64 nonce, bytes32 fraxtalHop) external;\n  function setNumDVNs(uint256 _numDVNs) external;\n  function toggleOFTApproval(address _oft, bool _approved) external;\n  function transferOwnership(address newOwner) external;\n}\n"},{"file_path":"src/interfaces/IFrxUSD.sol","source_code":"// SPDX-License-Identifier: UNLICENSED\npragma solidity ^0.8.4;\n\nimport { IERC20 } from \"@openzeppelin/contracts/token/ERC20/IERC20.sol\";\n\ninterface IFrxUSD is IERC20 {\n  error ArrayMisMatch();\n  error ECDSAInvalidSignature();\n  error ECDSAInvalidSignatureLength(uint256 length);\n  error ECDSAInvalidSignatureS(bytes32 s);\n  error ERC20InsufficientAllowance(address spender, uint256 allowance, uint256 needed);\n  error ERC20InsufficientBalance(address sender, uint256 balance, uint256 needed);\n  error ERC20InvalidApprover(address approver);\n  error ERC20InvalidReceiver(address receiver);\n  error ERC20InvalidSender(address sender);\n  error ERC20InvalidSpender(address spender);\n  error ERC2612ExpiredSignature(uint256 deadline);\n  error ERC2612InvalidSigner(address signer, address owner);\n  error InvalidAccountNonce(address account, uint256 currentNonce);\n  error InvalidShortString();\n  error IsFrozen();\n  error IsPaused();\n  error OwnableInvalidOwner(address owner);\n  error OwnableUnauthorizedAccount(address account);\n  error OwnerCannotInitToZeroAddress();\n  error StringTooLong(string str);\n\n  event AccountFrozen(address account);\n  event AccountThawed(address account);\n  event Burn(address indexed account, uint256 amount);\n  event EIP712DomainChanged();\n  event Mint(address indexed account, uint256 amount);\n  event MinterAdded(address minter_address);\n  event MinterRemoved(address minter_address);\n  event OwnershipTransferStarted(address indexed previousOwner, address indexed newOwner);\n  event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);\n  event Paused();\n  event TokenMinterBurned(address indexed from, address indexed to, uint256 amount);\n  event TokenMinterMinted(address indexed from, address indexed to, uint256 amount);\n  event Unpaused();\n\n  function DOMAIN_SEPARATOR() external view returns (bytes32);\n  function acceptOwnership() external;\n  function addMinter(address minter_address) external;\n  function allowance(address owner, address spender) external view returns (uint256);\n  function approve(address spender, uint256 value) external returns (bool);\n  function balanceOf(address account) external view returns (uint256);\n  function burn(uint256 value) external;\n  function burn(address _owner, uint256 _amount) external;\n  function burnFrom(address account, uint256 value) external;\n  function burnMany(address[] memory _owners, uint256[] memory _amounts) external;\n  function decimals() external view returns (uint8);\n  function eip712Domain()\n    external\n    view\n    returns (\n      bytes1 fields,\n      string memory name,\n      string memory version,\n      uint256 chainId,\n      address verifyingContract,\n      bytes32 salt,\n      uint256[] memory extensions\n    );\n  function freeze(address _owner) external;\n  function freezeMany(address[] memory _owners) external;\n  function initialize(address _owner, string memory _name, string memory _symbol) external;\n  function isFrozen(address) external view returns (bool);\n  function isPaused() external view returns (bool);\n  function minter_burn_from(address b_address, uint256 b_amount) external;\n  function minter_mint(address m_address, uint256 m_amount) external;\n  function minters(address) external view returns (bool);\n  function minters_array(uint256) external view returns (address);\n  function name() external view returns (string memory);\n  function nonces(address owner) external view returns (uint256);\n  function owner() external view returns (address);\n  function pause() external;\n  function pendingOwner() external view returns (address);\n  function permit(\n    address owner,\n    address spender,\n    uint256 value,\n    uint256 deadline,\n    uint8 v,\n    bytes32 r,\n    bytes32 s\n  ) external;\n  function removeMinter(address minter_address) external;\n  function renounceOwnership() external;\n  function symbol() external view returns (string memory);\n  function thaw(address _owner) external;\n  function thawMany(address[] memory _owners) external;\n  function totalSupply() external view returns (uint256);\n  function transfer(address to, uint256 value) external returns (bool);\n  function transferFrom(address from, address to, uint256 value) external returns (bool);\n  function transferOwnership(address newOwner) external;\n  function unpause() external;\n}\n"}],"is_verified_via_sourcify":false,"can_be_visualized_via_sol2uml":true,"evm_version":"prague","language":"solidity","is_verified_via_eth_bytecode_db":true,"is_fully_verified":false,"license_type":"none","is_blueprint":false,"name":"CrossChainRouter","creation_bytecode":"0x60806040526001805460ff191681179055348015601a575f5ffd5b506122d4806100285f395ff3fe6080604052600436106101a7575f3560e01c80635bedcc65116100e7578063b56ffd4f11610087578063d547741f11610062578063d547741f1461055d578063da8457a11461057c578063de81c30214610595578063e67f17fb146105c1575f5ffd5b8063b56ffd4f146104f1578063c7c7f5b314610510578063cbde754214610531575f5ffd5b806385aaac98116100c257806385aaac981461044657806391d148541461045c578063926d7d7f146104ab578063a217fddf146104de575f5ffd5b80635bedcc65146103e35780637e53c6ed146103fc57806381198c5814610427575f5ffd5b80632f2ff15d116101525780633b6f743b1161012d5780633b6f743b1461034e578063469b219a1461037a578063571dc527146103995780635a2cb6f6146103d0575f5ffd5b80632f2ff15d146102df57806336568abe146102fe578063375b74c31461031d575f5ffd5b80630f576a6d116101825780630f576a6d1461022657806311df999514610277578063248a9ca3146102a3575f5ffd5b806301ffc9a7146101b2578063051c127d146101e65780630829352114610207575f5ffd5b366101ae57005b5f5ffd5b3480156101bd575f5ffd5b506101d16101cc366004611c2b565b6105d4565b60405190151581526020015b60405180910390f35b3480156101f1575f5ffd5b50610205610200366004611c98565b61066c565b005b348015610212575f5ffd5b50610205610221366004611d2e565b61090f565b348015610231575f5ffd5b506004546102529073ffffffffffffffffffffffffffffffffffffffff1681565b60405173ffffffffffffffffffffffffffffffffffffffff90911681526020016101dd565b348015610282575f5ffd5b506002546102529073ffffffffffffffffffffffffffffffffffffffff1681565b3480156102ae575f5ffd5b506102d16102bd366004611d56565b5f9081526020819052604090206001015490565b6040519081526020016101dd565b3480156102ea575f5ffd5b506102056102f9366004611d6d565b61098e565b348015610309575f5ffd5b50610205610318366004611d6d565b6109b8565b348015610328575f5ffd5b5060015461025290610100900473ffffffffffffffffffffffffffffffffffffffff1681565b348015610359575f5ffd5b5061036d610368366004611db1565b610a16565b6040516101dd9190611df5565b348015610385575f5ffd5b506102d1610394366004611e0c565b610bf7565b3480156103a4575f5ffd5b506103af623567e081565b6040516fffffffffffffffffffffffffffffffff90911681526020016101dd565b6102d16103de366004611e0c565b610d2b565b3480156103ee575f5ffd5b506001546101d19060ff1681565b348015610407575f5ffd5b506102d1610416366004611e48565b60066020525f908152604090205481565b348015610432575f5ffd5b50610205610441366004611e61565b610fd2565b348015610451575f5ffd5b506103af6207a12081565b348015610467575f5ffd5b506101d1610476366004611d6d565b5f9182526020828152604080842073ffffffffffffffffffffffffffffffffffffffff93909316845291905290205460ff1690565b3480156104b6575f5ffd5b506102d17fe2b7fb3b832174769106daebcfd6d1970523240dda11281102db9363b83b0dc481565b3480156104e9575f5ffd5b506102d15f81565b3480156104fc575f5ffd5b5061020561050b366004611ef8565b611078565b61052361051e366004611fdf565b6112e2565b6040516101dd929190612066565b34801561053c575f5ffd5b506005546102529073ffffffffffffffffffffffffffffffffffffffff1681565b348015610568575f5ffd5b50610205610577366004611d6d565b61154c565b348015610587575f5ffd5b506007546101d19060ff1681565b3480156105a0575f5ffd5b506003546102529073ffffffffffffffffffffffffffffffffffffffff1681565b6102056105cf366004611e0c565b611570565b5f7fffffffff0000000000000000000000000000000000000000000000000000000082167f7965db0b00000000000000000000000000000000000000000000000000000000148061066657507f01ffc9a7000000000000000000000000000000000000000000000000000000007fffffffff000000000000000000000000000000000000000000000000000000008316145b92915050565b60015460ff16156106a9576040517f0dc149f000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6106b35f8761191c565b506106de7fe2b7fb3b832174769106daebcfd6d1970523240dda11281102db9363b83b0dc48761191c565b50600280547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff86811691909117909155600180547fffffffffffffffffffffff0000000000000000000000000000000000000000ff16610100928816929092029190911790554660fc036107c9576003805473fc000000000000000000000000000000000000017fffffffffffffffffffffffff0000000000000000000000000000000000000000918216179091556004805490911673ffffffffffffffffffffffffffffffffffffffff8516179055610889565b46600103610838576003805473cacd6fd266af91b8aed52accc382b4e165586e297fffffffffffffffffffffffff0000000000000000000000000000000000000000918216179091556004805490911673ffffffffffffffffffffffffffffffffffffffff8516179055610889565b6003805473ffffffffffffffffffffffffffffffffffffffff85167fffffffffffffffffffffffff000000000000000000000000000000000000000091821681179092556004805490911690911790555b6005805473ffffffffffffffffffffffffffffffffffffffff9093167fffffffffffffffffffffffff000000000000000000000000000000000000000090931692909217909155600780549115157fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00928316179055600180549091168117905550505050565b7fe2b7fb3b832174769106daebcfd6d1970523240dda11281102db9363b83b0dc461093981611a15565b63ffffffff83165f81815260066020908152604091829020859055815192835282018490527f2598ade102ed6f511979c92a55ff32cf125da7aafc4816b82bd268f376f8e470910160405180910390a1505050565b5f828152602081905260409020600101546109a881611a15565b6109b2838361191c565b50505050565b73ffffffffffffffffffffffffffffffffffffffff81163314610a07576040517f6697b23200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610a118282611a22565b505050565b604080518082019091525f80825260208201528115610a61576040517fe20c7cd000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60208301357fffffffffffffffffffffffff00000000000000000000000000000000000000001615610abf576040517f4ed60b8800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610acc60a08401846120b8565b159050610b05576040517fa038794000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610b1260c08401846120b8565b159050610b4b576040517fa038794000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f610b5f64e8d4a510006040860135612120565b610b6e9064e8d4a51000612158565b90508360600135811015610bc0576040517f71c4efed00000000000000000000000000000000000000000000000000000000815260048101829052606085013560248201526044015b60405180910390fd5b6040805180820190915280610be6610bdb6020880188611e48565b602088013585610bf7565b81525f602090910152949350505050565b63ffffffff83165f90815260066020526040812054309015610c2a575063ffffffff84165f908152600660205260409020545b6005546004545f9173ffffffffffffffffffffffffffffffffffffffff90811691638692040c91168885610c6364e8d4a510008a612120565b610c729064e8d4a51000612158565b8b63ffffffff166176ac14610c8a576207a120610c8f565b623567e05b6040805173ffffffffffffffffffffffffffffffffffffffff8e166020820152016040516020818303038152906040526040518763ffffffff1660e01b8152600401610ce096959493929190612194565b602060405180830381865afa158015610cfb573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610d1f9190612238565b925050505b9392505050565b6007545f9060ff1615610d6a576040517f40cf070b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b63ffffffff84165f90815260066020526040902054309015610d9d575063ffffffff84165f908152600660205260409020545b610dac64e8d4a5100084612120565b610dbb9064e8d4a51000612158565b6003546040517f23b872dd0000000000000000000000000000000000000000000000000000000081523360048201523060248201526044810183905291945073ffffffffffffffffffffffffffffffffffffffff16906323b872dd906064016020604051808303815f875af1158015610e36573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610e5a919061224f565b506003546005546040517f095ea7b300000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff91821660048201526024810186905291169063095ea7b3906044016020604051808303815f875af1158015610ed3573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610ef7919061224f565b5060055460045484935073ffffffffffffffffffffffffffffffffffffffff91821691634198dcf4913491168885876176ac63ffffffff841614610f3e576207a120610f43565b623567e05b6040805173ffffffffffffffffffffffffffffffffffffffff8e166020820152016040516020818303038152906040526040518863ffffffff1660e01b8152600401610f9496959493929190612194565b5f604051808303818588803b158015610fab575f5ffd5b505af1158015610fbd573d5f5f3e3d5ffd5b5050505050610fca611adb565b509392505050565b5f610fdc81611a15565b6005546040805173ffffffffffffffffffffffffffffffffffffffff928316815291841660208301527f7f8a7cb89fdb4b2fd6294b82050bd630b9c0fadb3ca847683c2b3a56df6e9880910160405180910390a150600580547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff92909216919091179055565b60055473ffffffffffffffffffffffffffffffffffffffff1633146110c9576040517fddb5de5e00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60045473ffffffffffffffffffffffffffffffffffffffff84811691161461111d576040517f7413e48600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60075460ff16156111805763ffffffff85165f90815260066020526040902054806111455750305b80851461117e576040517f65bfed3100000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b505b5f81806020019051810190611195919061226a565b6003546001546040517f095ea7b300000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff6101009092048216600482015260248101879052929350169063095ea7b3906044016020604051808303815f875af1158015611214573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190611238919061224f565b506001546040517f6e553f650000000000000000000000000000000000000000000000000000000081526004810185905273ffffffffffffffffffffffffffffffffffffffff838116602483015261010090920490911690636e553f65906044016020604051808303815f875af11580156112b5573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906112d99190612238565b50505050505050565b6112ea611bea565b604080518082019091525f8082526020820152602084013515611339576040517fe20c7cd000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b73ffffffffffffffffffffffffffffffffffffffff83163314611388576040517f468e99fc00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60208501357fffffffffffffffffffffffff000000000000000000000000000000000000000016156113e6576040517f4ed60b8800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6113f360a08601866120b8565b15905061142c576040517fa038794000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61143960c08601866120b8565b159050611472576040517fa038794000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f61148664e8d4a510006040880135612120565b6114959064e8d4a51000612158565b905085606001358110156114e2576040517f71c4efed0000000000000000000000000000000000000000000000000000000081526004810182905260608701356024820152604401610bb7565b6115016114f26020880188611e48565b60208801356040890135611570565b604080516060810182525f8082526020820181905291810161152836899003890189612285565b90526040805180820190915283815260208101939093529791965090945050505050565b5f8281526020819052604090206001015461156681611a15565b6109b28383611a22565b63ffffffff83165f908152600660205260409020543090156115a3575063ffffffff83165f908152600660205260409020545b6115b264e8d4a5100083612120565b6115c19064e8d4a51000612158565b6002546040517f23b872dd0000000000000000000000000000000000000000000000000000000081523360048201523060248201526044810183905291935073ffffffffffffffffffffffffffffffffffffffff16906323b872dd906064016020604051808303815f875af115801561163c573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190611660919061224f565b506002546001546040517f095ea7b300000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff610100909204821660048201526024810185905291169063095ea7b3906044016020604051808303815f875af11580156116de573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190611702919061224f565b506001546040517fba08765200000000000000000000000000000000000000000000000000000000815260048101849052306024820181905260448201525f91610100900473ffffffffffffffffffffffffffffffffffffffff169063ba087652906064016020604051808303815f875af1158015611783573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906117a79190612238565b6003546005546040517f095ea7b300000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff918216600482015260248101879052929350169063095ea7b3906044016020604051808303815f875af1158015611821573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190611845919061224f565b5060055460045473ffffffffffffffffffffffffffffffffffffffff91821691634198dcf4913491168886866176ac63ffffffff841614611889576207a12061188e565b623567e05b6040805173ffffffffffffffffffffffffffffffffffffffff8e166020820152016040516020818303038152906040526040518863ffffffff1660e01b81526004016118df96959493929190612194565b5f604051808303818588803b1580156118f6575f5ffd5b505af1158015611908573d5f5f3e3d5ffd5b5050505050611915611adb565b5050505050565b5f8281526020818152604080832073ffffffffffffffffffffffffffffffffffffffff8516845290915281205460ff16611a0e575f8381526020818152604080832073ffffffffffffffffffffffffffffffffffffffff86168452909152902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001660011790556119ac3390565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16847f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a4506001610666565b505f610666565b611a1f8133611b65565b50565b5f8281526020818152604080832073ffffffffffffffffffffffffffffffffffffffff8516845290915281205460ff1615611a0e575f8381526020818152604080832073ffffffffffffffffffffffffffffffffffffffff8616808552925280832080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0016905551339286917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a4506001610666565b478015611a1f576040515f90339083908381818185875af1925050503d805f8114611b21576040519150601f19603f3d011682016040523d82523d5f602084013e611b26565b606091505b5050905080611b61576040517ff0c49d4400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5050565b5f8281526020818152604080832073ffffffffffffffffffffffffffffffffffffffff8516845290915290205460ff16611b61576040517fe2517d3f00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff8216600482015260248101839052604401610bb7565b60405180606001604052805f81526020015f67ffffffffffffffff168152602001611c2660405180604001604052805f81526020015f81525090565b905290565b5f60208284031215611c3b575f5ffd5b81357fffffffff0000000000000000000000000000000000000000000000000000000081168114610d24575f5ffd5b73ffffffffffffffffffffffffffffffffffffffff81168114611a1f575f5ffd5b8015158114611a1f575f5ffd5b5f5f5f5f5f5f60c08789031215611cad575f5ffd5b8635611cb881611c6a565b95506020870135611cc881611c6a565b94506040870135611cd881611c6a565b93506060870135611ce881611c6a565b92506080870135611cf881611c6a565b915060a0870135611d0881611c8b565b809150509295509295509295565b803563ffffffff81168114611d29575f5ffd5b919050565b5f5f60408385031215611d3f575f5ffd5b611d4883611d16565b946020939093013593505050565b5f60208284031215611d66575f5ffd5b5035919050565b5f5f60408385031215611d7e575f5ffd5b823591506020830135611d9081611c6a565b809150509250929050565b5f60e08284031215611dab575f5ffd5b50919050565b5f5f60408385031215611dc2575f5ffd5b823567ffffffffffffffff811115611dd8575f5ffd5b611de485828601611d9b565b9250506020830135611d9081611c8b565b815181526020808301519082015260408101610666565b5f5f5f60608486031215611e1e575f5ffd5b611e2784611d16565b92506020840135611e3781611c6a565b929592945050506040919091013590565b5f60208284031215611e58575f5ffd5b610d2482611d16565b5f60208284031215611e71575f5ffd5b8135610d2481611c6a565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52604160045260245ffd5b604051601f82017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016810167ffffffffffffffff81118282101715611ef057611ef0611e7c565b604052919050565b5f5f5f5f5f60a08688031215611f0c575f5ffd5b611f1586611d16565b9450602086013593506040860135611f2c81611c6a565b925060608601359150608086013567ffffffffffffffff811115611f4e575f5ffd5b8601601f81018813611f5e575f5ffd5b803567ffffffffffffffff811115611f7857611f78611e7c565b611fa960207fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f84011601611ea9565b818152896020838501011115611fbd575f5ffd5b816020840160208301375f602083830101528093505050509295509295909350565b5f5f5f8385036080811215611ff2575f5ffd5b843567ffffffffffffffff811115612008575f5ffd5b61201487828801611d9b565b94505060407fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe082011215612046575f5ffd5b50602084019150606084013561205b81611c6a565b809150509250925092565b5f60c0820190508351825267ffffffffffffffff602085015116602083015260408401516120a1604084018280518252602090810151910152565b5082516080830152602083015160a0830152610d24565b5f5f83357fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe18436030181126120eb575f5ffd5b83018035915067ffffffffffffffff821115612105575f5ffd5b602001915036819003821315612119575f5ffd5b9250929050565b5f82612153577f4e487b71000000000000000000000000000000000000000000000000000000005f52601260045260245ffd5b500490565b8082028115828204841417610666577f4e487b71000000000000000000000000000000000000000000000000000000005f52601160045260245ffd5b73ffffffffffffffffffffffffffffffffffffffff8716815263ffffffff861660208201528460408201528360608201526fffffffffffffffffffffffffffffffff8316608082015260c060a08201525f82518060c0840152806020850160e085015e5f60e0828501015260e07fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f830116840101915050979650505050505050565b5f60208284031215612248575f5ffd5b5051919050565b5f6020828403121561225f575f5ffd5b8151610d2481611c8b565b5f6020828403121561227a575f5ffd5b8151610d2481611c6a565b5f6040828403128015612296575f5ffd5b506040805190810167ffffffffffffffff811182821017156122ba576122ba611e7c565b60405282358152602092830135928101929092525091905056","external_libraries":[],"proxy_type":null,"implementations":[],"verified_at":"2026-05-11T16:18:22.015874Z","is_verified_via_verifier_alliance":false,"compiler_version":"v0.8.33+commit.64118f21","decoded_constructor_args":null,"sourcify_repo_url":null,"optimization_runs":777777,"compiler_settings":{"evmVersion":"prague","libraries":{},"metadata":{"appendCBOR":false,"bytecodeHash":"none","useLiteralContent":false},"optimizer":{"enabled":true,"runs":777777},"outputSelection":{"*":{"":["*"],"*":["*"]}},"remappings":["frax-std/=node_modules/frax-standard-solidity/src/","forge-std/=node_modules/forge-std/src/","ds-test/=node_modules/ds-test/src/","@openzeppelin/=node_modules/@openzeppelin/","@fraxfinance/=node_modules/@fraxfinance/","@layerzerolabs/=node_modules/@layerzerolabs/","@uniswap/=node_modules/@uniswap/","frax-standard-solidity/=node_modules/frax-standard-solidity/","solidity-bytes-utils/=node_modules/solidity-bytes-utils/"],"viaIR":false},"is_verified":true,"verified_twin_address_hash":null,"optimization_enabled":true,"deployed_bytecode":"0x6080604052600436106101a7575f3560e01c80635bedcc65116100e7578063b56ffd4f11610087578063d547741f11610062578063d547741f1461055d578063da8457a11461057c578063de81c30214610595578063e67f17fb146105c1575f5ffd5b8063b56ffd4f146104f1578063c7c7f5b314610510578063cbde754214610531575f5ffd5b806385aaac98116100c257806385aaac981461044657806391d148541461045c578063926d7d7f146104ab578063a217fddf146104de575f5ffd5b80635bedcc65146103e35780637e53c6ed146103fc57806381198c5814610427575f5ffd5b80632f2ff15d116101525780633b6f743b1161012d5780633b6f743b1461034e578063469b219a1461037a578063571dc527146103995780635a2cb6f6146103d0575f5ffd5b80632f2ff15d146102df57806336568abe146102fe578063375b74c31461031d575f5ffd5b80630f576a6d116101825780630f576a6d1461022657806311df999514610277578063248a9ca3146102a3575f5ffd5b806301ffc9a7146101b2578063051c127d146101e65780630829352114610207575f5ffd5b366101ae57005b5f5ffd5b3480156101bd575f5ffd5b506101d16101cc366004611c2b565b6105d4565b60405190151581526020015b60405180910390f35b3480156101f1575f5ffd5b50610205610200366004611c98565b61066c565b005b348015610212575f5ffd5b50610205610221366004611d2e565b61090f565b348015610231575f5ffd5b506004546102529073ffffffffffffffffffffffffffffffffffffffff1681565b60405173ffffffffffffffffffffffffffffffffffffffff90911681526020016101dd565b348015610282575f5ffd5b506002546102529073ffffffffffffffffffffffffffffffffffffffff1681565b3480156102ae575f5ffd5b506102d16102bd366004611d56565b5f9081526020819052604090206001015490565b6040519081526020016101dd565b3480156102ea575f5ffd5b506102056102f9366004611d6d565b61098e565b348015610309575f5ffd5b50610205610318366004611d6d565b6109b8565b348015610328575f5ffd5b5060015461025290610100900473ffffffffffffffffffffffffffffffffffffffff1681565b348015610359575f5ffd5b5061036d610368366004611db1565b610a16565b6040516101dd9190611df5565b348015610385575f5ffd5b506102d1610394366004611e0c565b610bf7565b3480156103a4575f5ffd5b506103af623567e081565b6040516fffffffffffffffffffffffffffffffff90911681526020016101dd565b6102d16103de366004611e0c565b610d2b565b3480156103ee575f5ffd5b506001546101d19060ff1681565b348015610407575f5ffd5b506102d1610416366004611e48565b60066020525f908152604090205481565b348015610432575f5ffd5b50610205610441366004611e61565b610fd2565b348015610451575f5ffd5b506103af6207a12081565b348015610467575f5ffd5b506101d1610476366004611d6d565b5f9182526020828152604080842073ffffffffffffffffffffffffffffffffffffffff93909316845291905290205460ff1690565b3480156104b6575f5ffd5b506102d17fe2b7fb3b832174769106daebcfd6d1970523240dda11281102db9363b83b0dc481565b3480156104e9575f5ffd5b506102d15f81565b3480156104fc575f5ffd5b5061020561050b366004611ef8565b611078565b61052361051e366004611fdf565b6112e2565b6040516101dd929190612066565b34801561053c575f5ffd5b506005546102529073ffffffffffffffffffffffffffffffffffffffff1681565b348015610568575f5ffd5b50610205610577366004611d6d565b61154c565b348015610587575f5ffd5b506007546101d19060ff1681565b3480156105a0575f5ffd5b506003546102529073ffffffffffffffffffffffffffffffffffffffff1681565b6102056105cf366004611e0c565b611570565b5f7fffffffff0000000000000000000000000000000000000000000000000000000082167f7965db0b00000000000000000000000000000000000000000000000000000000148061066657507f01ffc9a7000000000000000000000000000000000000000000000000000000007fffffffff000000000000000000000000000000000000000000000000000000008316145b92915050565b60015460ff16156106a9576040517f0dc149f000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6106b35f8761191c565b506106de7fe2b7fb3b832174769106daebcfd6d1970523240dda11281102db9363b83b0dc48761191c565b50600280547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff86811691909117909155600180547fffffffffffffffffffffff0000000000000000000000000000000000000000ff16610100928816929092029190911790554660fc036107c9576003805473fc000000000000000000000000000000000000017fffffffffffffffffffffffff0000000000000000000000000000000000000000918216179091556004805490911673ffffffffffffffffffffffffffffffffffffffff8516179055610889565b46600103610838576003805473cacd6fd266af91b8aed52accc382b4e165586e297fffffffffffffffffffffffff0000000000000000000000000000000000000000918216179091556004805490911673ffffffffffffffffffffffffffffffffffffffff8516179055610889565b6003805473ffffffffffffffffffffffffffffffffffffffff85167fffffffffffffffffffffffff000000000000000000000000000000000000000091821681179092556004805490911690911790555b6005805473ffffffffffffffffffffffffffffffffffffffff9093167fffffffffffffffffffffffff000000000000000000000000000000000000000090931692909217909155600780549115157fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00928316179055600180549091168117905550505050565b7fe2b7fb3b832174769106daebcfd6d1970523240dda11281102db9363b83b0dc461093981611a15565b63ffffffff83165f81815260066020908152604091829020859055815192835282018490527f2598ade102ed6f511979c92a55ff32cf125da7aafc4816b82bd268f376f8e470910160405180910390a1505050565b5f828152602081905260409020600101546109a881611a15565b6109b2838361191c565b50505050565b73ffffffffffffffffffffffffffffffffffffffff81163314610a07576040517f6697b23200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610a118282611a22565b505050565b604080518082019091525f80825260208201528115610a61576040517fe20c7cd000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60208301357fffffffffffffffffffffffff00000000000000000000000000000000000000001615610abf576040517f4ed60b8800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610acc60a08401846120b8565b159050610b05576040517fa038794000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610b1260c08401846120b8565b159050610b4b576040517fa038794000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f610b5f64e8d4a510006040860135612120565b610b6e9064e8d4a51000612158565b90508360600135811015610bc0576040517f71c4efed00000000000000000000000000000000000000000000000000000000815260048101829052606085013560248201526044015b60405180910390fd5b6040805180820190915280610be6610bdb6020880188611e48565b602088013585610bf7565b81525f602090910152949350505050565b63ffffffff83165f90815260066020526040812054309015610c2a575063ffffffff84165f908152600660205260409020545b6005546004545f9173ffffffffffffffffffffffffffffffffffffffff90811691638692040c91168885610c6364e8d4a510008a612120565b610c729064e8d4a51000612158565b8b63ffffffff166176ac14610c8a576207a120610c8f565b623567e05b6040805173ffffffffffffffffffffffffffffffffffffffff8e166020820152016040516020818303038152906040526040518763ffffffff1660e01b8152600401610ce096959493929190612194565b602060405180830381865afa158015610cfb573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610d1f9190612238565b925050505b9392505050565b6007545f9060ff1615610d6a576040517f40cf070b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b63ffffffff84165f90815260066020526040902054309015610d9d575063ffffffff84165f908152600660205260409020545b610dac64e8d4a5100084612120565b610dbb9064e8d4a51000612158565b6003546040517f23b872dd0000000000000000000000000000000000000000000000000000000081523360048201523060248201526044810183905291945073ffffffffffffffffffffffffffffffffffffffff16906323b872dd906064016020604051808303815f875af1158015610e36573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610e5a919061224f565b506003546005546040517f095ea7b300000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff91821660048201526024810186905291169063095ea7b3906044016020604051808303815f875af1158015610ed3573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610ef7919061224f565b5060055460045484935073ffffffffffffffffffffffffffffffffffffffff91821691634198dcf4913491168885876176ac63ffffffff841614610f3e576207a120610f43565b623567e05b6040805173ffffffffffffffffffffffffffffffffffffffff8e166020820152016040516020818303038152906040526040518863ffffffff1660e01b8152600401610f9496959493929190612194565b5f604051808303818588803b158015610fab575f5ffd5b505af1158015610fbd573d5f5f3e3d5ffd5b5050505050610fca611adb565b509392505050565b5f610fdc81611a15565b6005546040805173ffffffffffffffffffffffffffffffffffffffff928316815291841660208301527f7f8a7cb89fdb4b2fd6294b82050bd630b9c0fadb3ca847683c2b3a56df6e9880910160405180910390a150600580547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff92909216919091179055565b60055473ffffffffffffffffffffffffffffffffffffffff1633146110c9576040517fddb5de5e00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60045473ffffffffffffffffffffffffffffffffffffffff84811691161461111d576040517f7413e48600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60075460ff16156111805763ffffffff85165f90815260066020526040902054806111455750305b80851461117e576040517f65bfed3100000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b505b5f81806020019051810190611195919061226a565b6003546001546040517f095ea7b300000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff6101009092048216600482015260248101879052929350169063095ea7b3906044016020604051808303815f875af1158015611214573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190611238919061224f565b506001546040517f6e553f650000000000000000000000000000000000000000000000000000000081526004810185905273ffffffffffffffffffffffffffffffffffffffff838116602483015261010090920490911690636e553f65906044016020604051808303815f875af11580156112b5573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906112d99190612238565b50505050505050565b6112ea611bea565b604080518082019091525f8082526020820152602084013515611339576040517fe20c7cd000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b73ffffffffffffffffffffffffffffffffffffffff83163314611388576040517f468e99fc00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60208501357fffffffffffffffffffffffff000000000000000000000000000000000000000016156113e6576040517f4ed60b8800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6113f360a08601866120b8565b15905061142c576040517fa038794000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61143960c08601866120b8565b159050611472576040517fa038794000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f61148664e8d4a510006040880135612120565b6114959064e8d4a51000612158565b905085606001358110156114e2576040517f71c4efed0000000000000000000000000000000000000000000000000000000081526004810182905260608701356024820152604401610bb7565b6115016114f26020880188611e48565b60208801356040890135611570565b604080516060810182525f8082526020820181905291810161152836899003890189612285565b90526040805180820190915283815260208101939093529791965090945050505050565b5f8281526020819052604090206001015461156681611a15565b6109b28383611a22565b63ffffffff83165f908152600660205260409020543090156115a3575063ffffffff83165f908152600660205260409020545b6115b264e8d4a5100083612120565b6115c19064e8d4a51000612158565b6002546040517f23b872dd0000000000000000000000000000000000000000000000000000000081523360048201523060248201526044810183905291935073ffffffffffffffffffffffffffffffffffffffff16906323b872dd906064016020604051808303815f875af115801561163c573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190611660919061224f565b506002546001546040517f095ea7b300000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff610100909204821660048201526024810185905291169063095ea7b3906044016020604051808303815f875af11580156116de573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190611702919061224f565b506001546040517fba08765200000000000000000000000000000000000000000000000000000000815260048101849052306024820181905260448201525f91610100900473ffffffffffffffffffffffffffffffffffffffff169063ba087652906064016020604051808303815f875af1158015611783573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906117a79190612238565b6003546005546040517f095ea7b300000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff918216600482015260248101879052929350169063095ea7b3906044016020604051808303815f875af1158015611821573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190611845919061224f565b5060055460045473ffffffffffffffffffffffffffffffffffffffff91821691634198dcf4913491168886866176ac63ffffffff841614611889576207a12061188e565b623567e05b6040805173ffffffffffffffffffffffffffffffffffffffff8e166020820152016040516020818303038152906040526040518863ffffffff1660e01b81526004016118df96959493929190612194565b5f604051808303818588803b1580156118f6575f5ffd5b505af1158015611908573d5f5f3e3d5ffd5b5050505050611915611adb565b5050505050565b5f8281526020818152604080832073ffffffffffffffffffffffffffffffffffffffff8516845290915281205460ff16611a0e575f8381526020818152604080832073ffffffffffffffffffffffffffffffffffffffff86168452909152902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001660011790556119ac3390565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16847f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a4506001610666565b505f610666565b611a1f8133611b65565b50565b5f8281526020818152604080832073ffffffffffffffffffffffffffffffffffffffff8516845290915281205460ff1615611a0e575f8381526020818152604080832073ffffffffffffffffffffffffffffffffffffffff8616808552925280832080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0016905551339286917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a4506001610666565b478015611a1f576040515f90339083908381818185875af1925050503d805f8114611b21576040519150601f19603f3d011682016040523d82523d5f602084013e611b26565b606091505b5050905080611b61576040517ff0c49d4400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5050565b5f8281526020818152604080832073ffffffffffffffffffffffffffffffffffffffff8516845290915290205460ff16611b61576040517fe2517d3f00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff8216600482015260248101839052604401610bb7565b60405180606001604052805f81526020015f67ffffffffffffffff168152602001611c2660405180604001604052805f81526020015f81525090565b905290565b5f60208284031215611c3b575f5ffd5b81357fffffffff0000000000000000000000000000000000000000000000000000000081168114610d24575f5ffd5b73ffffffffffffffffffffffffffffffffffffffff81168114611a1f575f5ffd5b8015158114611a1f575f5ffd5b5f5f5f5f5f5f60c08789031215611cad575f5ffd5b8635611cb881611c6a565b95506020870135611cc881611c6a565b94506040870135611cd881611c6a565b93506060870135611ce881611c6a565b92506080870135611cf881611c6a565b915060a0870135611d0881611c8b565b809150509295509295509295565b803563ffffffff81168114611d29575f5ffd5b919050565b5f5f60408385031215611d3f575f5ffd5b611d4883611d16565b946020939093013593505050565b5f60208284031215611d66575f5ffd5b5035919050565b5f5f60408385031215611d7e575f5ffd5b823591506020830135611d9081611c6a565b809150509250929050565b5f60e08284031215611dab575f5ffd5b50919050565b5f5f60408385031215611dc2575f5ffd5b823567ffffffffffffffff811115611dd8575f5ffd5b611de485828601611d9b565b9250506020830135611d9081611c8b565b815181526020808301519082015260408101610666565b5f5f5f60608486031215611e1e575f5ffd5b611e2784611d16565b92506020840135611e3781611c6a565b929592945050506040919091013590565b5f60208284031215611e58575f5ffd5b610d2482611d16565b5f60208284031215611e71575f5ffd5b8135610d2481611c6a565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52604160045260245ffd5b604051601f82017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016810167ffffffffffffffff81118282101715611ef057611ef0611e7c565b604052919050565b5f5f5f5f5f60a08688031215611f0c575f5ffd5b611f1586611d16565b9450602086013593506040860135611f2c81611c6a565b925060608601359150608086013567ffffffffffffffff811115611f4e575f5ffd5b8601601f81018813611f5e575f5ffd5b803567ffffffffffffffff811115611f7857611f78611e7c565b611fa960207fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f84011601611ea9565b818152896020838501011115611fbd575f5ffd5b816020840160208301375f602083830101528093505050509295509295909350565b5f5f5f8385036080811215611ff2575f5ffd5b843567ffffffffffffffff811115612008575f5ffd5b61201487828801611d9b565b94505060407fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe082011215612046575f5ffd5b50602084019150606084013561205b81611c6a565b809150509250925092565b5f60c0820190508351825267ffffffffffffffff602085015116602083015260408401516120a1604084018280518252602090810151910152565b5082516080830152602083015160a0830152610d24565b5f5f83357fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe18436030181126120eb575f5ffd5b83018035915067ffffffffffffffff821115612105575f5ffd5b602001915036819003821315612119575f5ffd5b9250929050565b5f82612153577f4e487b71000000000000000000000000000000000000000000000000000000005f52601260045260245ffd5b500490565b8082028115828204841417610666577f4e487b71000000000000000000000000000000000000000000000000000000005f52601160045260245ffd5b73ffffffffffffffffffffffffffffffffffffffff8716815263ffffffff861660208201528460408201528360608201526fffffffffffffffffffffffffffffffff8316608082015260c060a08201525f82518060c0840152806020850160e085015e5f60e0828501015260e07fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f830116840101915050979650505050505050565b5f60208284031215612248575f5ffd5b5051919050565b5f6020828403121561225f575f5ffd5b8151610d2481611c8b565b5f6020828403121561227a575f5ffd5b8151610d2481611c6a565b5f6040828403128015612296575f5ffd5b506040805190810167ffffffffffffffff811182821017156122ba576122ba611e7c565b60405282358152602092830135928101929092525091905056","source_code":"// SPDX-License-Identifier: AGPL-3.0-only\npragma solidity ^0.8.21;\n\n// ====================================================================\n// |     ______                   _______                             |\n// |    / _____________ __  __   / ____(_____  ____ _____  ________   |\n// |   / /_  / ___/ __ `| |/_/  / /_  / / __ \\/ __ `/ __ \\/ ___/ _ \\  |\n// |  / __/ / /  / /_/ _>  <   / __/ / / / / / /_/ / / / / /__/  __/  |\n// | /_/   /_/   \\__,_/_/|_|  /_/   /_/_/ /_/\\__,_/_/ /_/\\___/\\___/   |\n// |                                                                  |\n// ====================================================================\n// ========================= CrossChainRouter =========================\n// ====================================================================\n// Frax Finance: https://github.com/FraxFinance\n\nimport { AccessControl } from \"@openzeppelin/contracts/access/AccessControl.sol\";\nimport { IBrandedCustodian } from \"src/BrandedStablecoin/interfaces/IBrandedCustodian.sol\";\nimport { IGDollar } from \"src/BrandedStablecoin/interfaces/IGDollar.sol\";\nimport { IFrxUSD } from \"src/interfaces/IFrxUSD.sol\";\nimport { IRemoteHopV2 } from \"src/BrandedStablecoin/interfaces/IRemoteHopV2.sol\";\nimport { ILZSend } from \"src/BrandedStablecoin/interfaces/ILzSend.sol\";\n\n/**\n * @title CrossChainRouter\n * @notice Implementation contract to be proxied. Intended to allow for branded stablecoins\n *         to be moved across supported EVM chains using the frax L0 mesh\n */\ncontract CrossChainRouter is AccessControl, ILZSend {\n  bytes32 public constant RELAYER_ROLE = keccak256(\"RELAYER_ROLE\");\n  uint128 public constant GLOBAL_COMPOSE_GAS = 500_000;\n  uint128 public constant SOMNIA_COMPOSE_GAS = 3_500_000;\n  bool public wasInitialized = true;\n  IBrandedCustodian public custodian;\n  IGDollar public coin;\n  IFrxUSD public frxusd;\n  address public oftLocal;\n  IRemoteHopV2 public remoteHopV2;\n  mapping(uint32 => bytes32) public eidToNonDeterministicAddress;\n  bool public isolatedBackingEnabled;\n\n  /**\n   * @notice Initialization function called w/n `FraxBrandedStablecoinFactory._deployBrandedTokenChained`\n   * @param _owner             The address given the default admin role\n   * @param _custodianAddress  The address of the brandedStablecoin custodian contract\n   * @param _coin              The address of the brandedStablecoin proxy\n   * @param _localFrxUSD       The local frxUSD OFT contract | either the OFT token or the lockbox\n   * @param _localRemoteHop    The address of the RemoteHopV2 contract\n   */\n  function initialize(\n    address _owner,\n    address _custodianAddress,\n    address _coin,\n    address _localFrxUSD,\n    address _localRemoteHop,\n    bool _isolatedBackingEnabled\n  ) external {\n    if (wasInitialized) revert AlreadyInitialized();\n    _grantRole(DEFAULT_ADMIN_ROLE, _owner);\n    _grantRole(RELAYER_ROLE, _owner);\n    coin = IGDollar(_coin);\n    custodian = IBrandedCustodian(_custodianAddress);\n    if (block.chainid == 252) {\n      frxusd = IFrxUSD(0xFc00000000000000000000000000000000000001);\n      oftLocal = _localFrxUSD;\n    } else if (block.chainid == 1) {\n      frxusd = IFrxUSD(0xCAcd6fd266aF91b8AeD52aCCc382b4e165586E29);\n      oftLocal = _localFrxUSD;\n    } else {\n      frxusd = IFrxUSD(_localFrxUSD);\n      oftLocal = _localFrxUSD;\n    }\n    remoteHopV2 = IRemoteHopV2(payable(_localRemoteHop));\n    isolatedBackingEnabled = _isolatedBackingEnabled;\n    wasInitialized = true;\n  }\n\n  /**\n   * @notice External function used to coordinate the cross chain transfer of branded Stablecoin\n   * @param dstEid     The EID corresponding to the chain that we want to send the stablecoin to\n   * @param recipient  The evm address of the recipient on the dst chain\n   * @param amount     The amount of the stablecoin that we want to send cross chain\n   */\n  function send(uint32 dstEid, address recipient, uint256 amount) public payable {\n    bytes32 router = bytes32(uint(uint160(address(this))));\n    if (eidToNonDeterministicAddress[dstEid] != bytes32(0)) router = eidToNonDeterministicAddress[dstEid];\n    amount = (amount / 1e12) * 1e12; // Remove lzDust\n    coin.transferFrom(msg.sender, address(this), amount);\n    coin.approve(address(custodian), amount);\n    uint out = custodian.redeem(amount, address(this), address(this));\n    frxusd.approve(address(remoteHopV2), amount);\n    remoteHopV2.sendOFT{ value: msg.value }(\n      oftLocal,\n      dstEid,\n      router,\n      out,\n      dstEid == 30380 ? SOMNIA_COMPOSE_GAS : GLOBAL_COMPOSE_GAS,\n      abi.encode(recipient)\n    );\n    _refundExcess();\n  }\n\n  /**\n   * @notice External function used to facilitate the minting and sending of a branded stablecoin\n   *         via the receipt of frxUSD\n   * @param dstEid    The EID of the destination chain\n   * @param recipient The recipient on the destination chain\n   * @param amount    The amount of frxUSD that we want to mint and send to the recipient\n   */\n  function mintAndSend(uint32 dstEid, address recipient, uint256 amount) external payable returns (uint256 out) {\n    if (isolatedBackingEnabled) revert IsolatedBackingEnabled();\n    bytes32 router = bytes32(uint(uint160(address(this))));\n    if (eidToNonDeterministicAddress[dstEid] != bytes32(0)) router = eidToNonDeterministicAddress[dstEid];\n    amount = (amount / 1e12) * 1e12; // Remove lzDust\n    frxusd.transferFrom(msg.sender, address(this), amount);\n    frxusd.approve(address(remoteHopV2), amount);\n    out = amount;\n    remoteHopV2.sendOFT{ value: msg.value }(\n      oftLocal,\n      dstEid,\n      router,\n      out,\n      dstEid == 30380 ? SOMNIA_COMPOSE_GAS : GLOBAL_COMPOSE_GAS,\n      abi.encode(recipient)\n    );\n    _refundExcess();\n  }\n\n  /**\n   * @notice Internal helper function to refund any excess msg.value sent\n   */\n  function _refundExcess() internal {\n    uint256 balance = address(this).balance;\n    if (balance > 0) {\n      (bool success, ) = msg.sender.call{ value: balance }(\"\");\n      if (!success) revert RefundFailed();\n    }\n  }\n\n  /**\n   * @notice Helper function to calculate the amount of gas to send along with calls\n   *         to `address(this).send(...)`\n   * @param dstEid     The EID corresponding to the chain we want to send the token to\n   * @param recipient  The evm address to send the tokens on the dst chain to\n   * @param amount     The amount of tokens we want to send cross chain\n   */\n  function quote(uint32 dstEid, address recipient, uint256 amount) public view returns (uint256) {\n    bytes32 router = bytes32(uint(uint160(address(this))));\n    if (eidToNonDeterministicAddress[dstEid] != bytes32(0)) router = eidToNonDeterministicAddress[dstEid];\n    uint fee = remoteHopV2.quote({\n      _oft: oftLocal,\n      _dstEid: dstEid,\n      _to: router,\n      _amountLD: (1e12 * (amount / 1e12)),\n      _composeGas: dstEid == 30380 ? SOMNIA_COMPOSE_GAS : GLOBAL_COMPOSE_GAS,\n      _composeMsg: abi.encode(recipient)\n    });\n    return (fee);\n  }\n\n  /**\n   * @notice Hook to be called by the remote hop on receiving a message passed\n   * @param oft     The oft token corresponding to the msg being passed\n   * @param _amount The amount of oft token we\n   * @param data    The data being passed through\n   * @dev Function call assumes frxUSD has been previously transfered to this contract\n   */\n  function hopCompose(uint32 srcEid, bytes32 sender, address oft, uint256 _amount, bytes memory data) external {\n    if (msg.sender != address(remoteHopV2)) revert InvalidSender();\n    if (oft != oftLocal) revert InvalidOFT();\n    if (isolatedBackingEnabled) {\n      bytes32 router = eidToNonDeterministicAddress[srcEid];\n      if (router == bytes32(0)) router = bytes32(uint(uint160(address(this))));\n      if (sender != router) revert NotFromRouter();\n    }\n    (address recipient) = abi.decode(data, (address));\n    frxusd.approve(address(custodian), _amount);\n    custodian.deposit(_amount, recipient);\n  }\n\n  /**\n   * @notice Function to be implemented for non-determinist address deployment\n   * @param eid   The eid for which we want to use a different router\n   * @param value The value we want to have the `recipient` field be equal to on the sendParams\n   */\n  function setNonDeterministicRouterAddress(uint32 eid, bytes32 value) external onlyRole(RELAYER_ROLE) {\n    eidToNonDeterministicAddress[eid] = value;\n    emit NonDeterministicAddressSet(eid, value);\n  }\n\n  /**\n   * @notice Function for setting the remoteHopV2 address post deployment\n   * @param _updatedAddress The address of the updated hop contract\n   */\n  function setHopV2Address(address _updatedAddress) external onlyRole(DEFAULT_ADMIN_ROLE) {\n    emit HopAddressUpdated(address(remoteHopV2), _updatedAddress);\n    remoteHopV2 = IRemoteHopV2(payable(_updatedAddress));\n  }\n\n  /**\n   * @notice Extension of LZ Send interface\n   * @param _sendParam    Lz `_sendParam` tuple\n   * @param _payInLzToken whether to pay in LZ tokens | cannot be true\n   */\n  function quoteSend(SendParam calldata _sendParam, bool _payInLzToken) external view returns (MessagingFee memory) {\n    if (_payInLzToken) revert MustPayNative();\n    if (bytes12(_sendParam.to) != bytes12(0)) revert MustBeEvmAddress();\n    if (_sendParam.composeMsg.length != 0) revert NotSupported();\n    if (_sendParam.oftCmd.length != 0) revert NotSupported();\n\n    uint amount = (_sendParam.amountLD / 1e12) * 1e12;\n    if (amount < _sendParam.minAmountLD) revert SlippageExceeded(amount, _sendParam.minAmountLD);\n    return\n      MessagingFee({\n        nativeFee: quote({\n          dstEid: _sendParam.dstEid,\n          recipient: address(uint160(uint(_sendParam.to))),\n          amount: amount\n        }),\n        lzTokenFee: 0\n      });\n  }\n\n  /**\n   * @notice Extension of LZ send interface\n   * @param _sendParam        Lz `SendParam` tuple\n   * @param _fee              Lz `MessagingFee` tuple\n   * @param _refundAddress    Address for gas refund | must be caller\n   * @return MessagingReceipt - Place Holder variable for ABI conformity\n   * @return OFTReceipt - Place Holder variable for ABI conformity\n   */\n  function send(\n    SendParam calldata _sendParam,\n    MessagingFee calldata _fee,\n    address _refundAddress\n  ) external payable returns (MessagingReceipt memory, OFTReceipt memory) {\n    if (_fee.lzTokenFee != 0) revert MustPayNative();\n    if (_refundAddress != msg.sender) revert RefundMustBeSelf();\n    if (bytes12(_sendParam.to) != bytes12(0)) revert MustBeEvmAddress();\n    if (_sendParam.composeMsg.length != 0) revert NotSupported();\n    if (_sendParam.oftCmd.length != 0) revert NotSupported();\n    uint amount = (_sendParam.amountLD / 1e12) * 1e12;\n    if (amount < _sendParam.minAmountLD) revert SlippageExceeded(amount, _sendParam.minAmountLD);\n    send({ dstEid: _sendParam.dstEid, recipient: address(uint160(uint(_sendParam.to))), amount: _sendParam.amountLD });\n    MessagingReceipt memory receipt = MessagingReceipt({ guid: bytes32(0), nonce: 0, fee: _fee });\n    OFTReceipt memory oftReceipt = OFTReceipt({ amountSentLD: amount, amountReceivedLD: amount });\n    return (receipt, oftReceipt);\n  }\n\n  receive() external payable {}\n\n  /// Errors\n  error NotFromRouter();\n  error InvalidSender();\n  error InvalidOFT();\n  error AlreadyInitialized();\n  error RefundFailed();\n  error IsolatedBackingEnabled();\n  error MustPayNative();\n  error MustBeEvmAddress();\n  error RefundMustBeSelf();\n  error SlippageExceeded(uint256, uint256);\n  error NotSupported();\n\n  event HopAddressUpdated(address oldHopAddress, address newHopAddress);\n  event NonDeterministicAddressSet(uint32 eid, bytes32 router);\n}\n","creation_status":"success","file_path":"src/BrandedStablecoin/CrossChainRouter.sol"}