FRAX Price: $0.87 (-14.21%)

Contract

0x14a7A8f1A1D4ABD44ee8E4a4F225721b341644fa

Overview

FRAX Balance | FXTL Balance

0.000000002513835439 FRAX | 192 FXTL

FRAX Value

Less Than $0.01 (@ $0.87/FRAX)

Token Holdings

More Info

Private Name Tags

Multichain Info

No addresses found
Transaction Hash
Block
From
To

There are no matching entries

3 Internal Transactions and 2 Token Transfers found.

Latest 3 internal transactions

Advanced mode:
Parent Transaction Hash Block From To
264691382025-10-06 11:09:47111 days ago1759748987
0x14a7A8f1...b341644fa
0 FRAX
264128522025-10-05 3:53:35112 days ago1759636415
0x14a7A8f1...b341644fa
0 FRAX
259623762025-09-24 17:37:43122 days ago1758735463  Contract Creation0 FRAX

Cross-Chain Transactions
Loading...
Loading

Similar Match Source Code
This contract matches the deployed Bytecode of the Source Code for Contract 0xeeF3113F...F18327EbB
The constructor portion of the code might be different and could alter the actual behaviour of the contract

Contract Name:
BrandedCrossChainRouter

Compiler Version
v0.8.23+commit.f704f362

Optimization Enabled:
Yes with 777777 runs

Other Settings:
shanghai EvmVersion

Contract Source Code (Solidity Standard Json-Input format)

// TODO: handles the redemption / send and mint from local custodian to local custodain
// SPDX-License-Identifier: AGPL-3.0-only
pragma solidity ^0.8.21;

import { AccessControlUpgradeable } from "@openzeppelin/contracts-upgradeable/access/AccessControlUpgradeable.sol";
import { IBrandedCustodian } from "src/turnKey/interfaces/IBrandedCustodian.sol";
import { IGDollar } from "src/turnKey/interfaces/IGDollar.sol";
import { IFrxUSD } from "src/interfaces/IFrxUSD.sol";
import { IRemoteHopV2 } from "src/turnKey/interfaces/IRemoteHopV2.sol";

contract BrandedCrossChainRouter is AccessControlUpgradeable {
  IBrandedCustodian custodian;
  IGDollar coin;
  IFrxUSD frxusd;
  IRemoteHopV2 remoteHopV2;
  uint32 constant FRAXTAL_EID = 30255;

  constructor() {
    _disableInitializers();
  }

  function initialize(
    address _owner,
    address _custodianAddress,
    address _coin,
    address _localFrxUSD,
    address _localRemoteHop
  ) external initializer {
    _grantRole(DEFAULT_ADMIN_ROLE, _owner);
    coin = IGDollar(_coin);
    custodian = IBrandedCustodian(_custodianAddress);
    frxusd = IFrxUSD(_localFrxUSD);
    remoteHopV2 = IRemoteHopV2(payable(_localRemoteHop));
  }

  // TODO: Add signature
  function send(uint32 dstEid, address recipient, uint256 amount, uint128 composeGas) external payable {
    amount = (amount / 1e12) * 1e12; // Remove lzDust
    coin.transferFrom(msg.sender, address(this), amount);
    coin.approve(address(custodian), amount);
    uint out = custodian.redeem(amount, address(this), address(this));
    frxusd.approve(address(remoteHopV2), amount);
    remoteHopV2.sendOFT{ value: msg.value }(
      address(frxusd),
      dstEid,
      bytes32(uint(uint160(address(this)))),
      out,
      composeGas,
      abi.encode(address(this))
    );
  }

  function quote(uint32 dstEid, address recipient, uint256 amount, uint128 composeGas) external view returns (uint256) {
    IRemoteHopV2.MessagingFee memory fee = remoteHopV2.quote({
      _oft: address(frxusd),
      _dstEid: dstEid,
      _to: bytes32(uint(uint160(address(this)))),
      _amountLD: (1e12 * (amount / 1e12)),
      _composeGas: composeGas,
      _composeMsg: abi.encode(recipient)
    });
    return (fee.nativeFee);
  }

  function hopCompose(uint32, bytes32, address oft, uint256 _amount, bytes memory data) external {
    if (msg.sender != address(remoteHopV2)) revert InvalidSender();
    if (oft != address(frxusd)) revert InvalidOFT();
    (address recipient) = abi.decode(data, (address));
    frxusd.approve(address(custodian), _amount);
    custodian.deposit(_amount, recipient);
  }

  receive() external payable {}

  error NotFromRouter();
  error InvalidSender();
  error InvalidOFT();
}

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (access/AccessControl.sol)

pragma solidity ^0.8.20;

import {IAccessControl} from "@openzeppelin/contracts/access/IAccessControl.sol";
import {ContextUpgradeable} from "../utils/ContextUpgradeable.sol";
import {ERC165Upgradeable} from "../utils/introspection/ERC165Upgradeable.sol";
import {Initializable} from "../proxy/utils/Initializable.sol";

/**
 * @dev Contract module that allows children to implement role-based access
 * control mechanisms. This is a lightweight version that doesn't allow enumerating role
 * members except through off-chain means by accessing the contract event logs. Some
 * applications may benefit from on-chain enumerability, for those cases see
 * {AccessControlEnumerable}.
 *
 * Roles are referred to by their `bytes32` identifier. These should be exposed
 * in the external API and be unique. The best way to achieve this is by
 * using `public constant` hash digests:
 *
 * ```solidity
 * bytes32 public constant MY_ROLE = keccak256("MY_ROLE");
 * ```
 *
 * Roles can be used to represent a set of permissions. To restrict access to a
 * function call, use {hasRole}:
 *
 * ```solidity
 * function foo() public {
 *     require(hasRole(MY_ROLE, msg.sender));
 *     ...
 * }
 * ```
 *
 * Roles can be granted and revoked dynamically via the {grantRole} and
 * {revokeRole} functions. Each role has an associated admin role, and only
 * accounts that have a role's admin role can call {grantRole} and {revokeRole}.
 *
 * By default, the admin role for all roles is `DEFAULT_ADMIN_ROLE`, which means
 * that only accounts with this role will be able to grant or revoke other
 * roles. More complex role relationships can be created by using
 * {_setRoleAdmin}.
 *
 * WARNING: The `DEFAULT_ADMIN_ROLE` is also its own admin: it has permission to
 * grant and revoke this role. Extra precautions should be taken to secure
 * accounts that have been granted it. We recommend using {AccessControlDefaultAdminRules}
 * to enforce additional security measures for this role.
 */
abstract contract AccessControlUpgradeable is Initializable, ContextUpgradeable, IAccessControl, ERC165Upgradeable {
    struct RoleData {
        mapping(address account => bool) hasRole;
        bytes32 adminRole;
    }

    bytes32 public constant DEFAULT_ADMIN_ROLE = 0x00;


    /// @custom:storage-location erc7201:openzeppelin.storage.AccessControl
    struct AccessControlStorage {
        mapping(bytes32 role => RoleData) _roles;
    }

    // keccak256(abi.encode(uint256(keccak256("openzeppelin.storage.AccessControl")) - 1)) & ~bytes32(uint256(0xff))
    bytes32 private constant AccessControlStorageLocation = 0x02dd7bc7dec4dceedda775e58dd541e08a116c6c53815c0bd028192f7b626800;

    function _getAccessControlStorage() private pure returns (AccessControlStorage storage $) {
        assembly {
            $.slot := AccessControlStorageLocation
        }
    }

    /**
     * @dev Modifier that checks that an account has a specific role. Reverts
     * with an {AccessControlUnauthorizedAccount} error including the required role.
     */
    modifier onlyRole(bytes32 role) {
        _checkRole(role);
        _;
    }

    function __AccessControl_init() internal onlyInitializing {
    }

    function __AccessControl_init_unchained() internal onlyInitializing {
    }
    /**
     * @dev See {IERC165-supportsInterface}.
     */
    function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
        return interfaceId == type(IAccessControl).interfaceId || super.supportsInterface(interfaceId);
    }

    /**
     * @dev Returns `true` if `account` has been granted `role`.
     */
    function hasRole(bytes32 role, address account) public view virtual returns (bool) {
        AccessControlStorage storage $ = _getAccessControlStorage();
        return $._roles[role].hasRole[account];
    }

    /**
     * @dev Reverts with an {AccessControlUnauthorizedAccount} error if `_msgSender()`
     * is missing `role`. Overriding this function changes the behavior of the {onlyRole} modifier.
     */
    function _checkRole(bytes32 role) internal view virtual {
        _checkRole(role, _msgSender());
    }

    /**
     * @dev Reverts with an {AccessControlUnauthorizedAccount} error if `account`
     * is missing `role`.
     */
    function _checkRole(bytes32 role, address account) internal view virtual {
        if (!hasRole(role, account)) {
            revert AccessControlUnauthorizedAccount(account, role);
        }
    }

    /**
     * @dev Returns the admin role that controls `role`. See {grantRole} and
     * {revokeRole}.
     *
     * To change a role's admin, use {_setRoleAdmin}.
     */
    function getRoleAdmin(bytes32 role) public view virtual returns (bytes32) {
        AccessControlStorage storage $ = _getAccessControlStorage();
        return $._roles[role].adminRole;
    }

    /**
     * @dev Grants `role` to `account`.
     *
     * If `account` had not been already granted `role`, emits a {RoleGranted}
     * event.
     *
     * Requirements:
     *
     * - the caller must have ``role``'s admin role.
     *
     * May emit a {RoleGranted} event.
     */
    function grantRole(bytes32 role, address account) public virtual onlyRole(getRoleAdmin(role)) {
        _grantRole(role, account);
    }

    /**
     * @dev Revokes `role` from `account`.
     *
     * If `account` had been granted `role`, emits a {RoleRevoked} event.
     *
     * Requirements:
     *
     * - the caller must have ``role``'s admin role.
     *
     * May emit a {RoleRevoked} event.
     */
    function revokeRole(bytes32 role, address account) public virtual onlyRole(getRoleAdmin(role)) {
        _revokeRole(role, account);
    }

    /**
     * @dev Revokes `role` from the calling account.
     *
     * Roles are often managed via {grantRole} and {revokeRole}: this function's
     * purpose is to provide a mechanism for accounts to lose their privileges
     * if they are compromised (such as when a trusted device is misplaced).
     *
     * If the calling account had been revoked `role`, emits a {RoleRevoked}
     * event.
     *
     * Requirements:
     *
     * - the caller must be `callerConfirmation`.
     *
     * May emit a {RoleRevoked} event.
     */
    function renounceRole(bytes32 role, address callerConfirmation) public virtual {
        if (callerConfirmation != _msgSender()) {
            revert AccessControlBadConfirmation();
        }

        _revokeRole(role, callerConfirmation);
    }

    /**
     * @dev Sets `adminRole` as ``role``'s admin role.
     *
     * Emits a {RoleAdminChanged} event.
     */
    function _setRoleAdmin(bytes32 role, bytes32 adminRole) internal virtual {
        AccessControlStorage storage $ = _getAccessControlStorage();
        bytes32 previousAdminRole = getRoleAdmin(role);
        $._roles[role].adminRole = adminRole;
        emit RoleAdminChanged(role, previousAdminRole, adminRole);
    }

    /**
     * @dev Attempts to grant `role` to `account` and returns a boolean indicating if `role` was granted.
     *
     * Internal function without access restriction.
     *
     * May emit a {RoleGranted} event.
     */
    function _grantRole(bytes32 role, address account) internal virtual returns (bool) {
        AccessControlStorage storage $ = _getAccessControlStorage();
        if (!hasRole(role, account)) {
            $._roles[role].hasRole[account] = true;
            emit RoleGranted(role, account, _msgSender());
            return true;
        } else {
            return false;
        }
    }

    /**
     * @dev Attempts to revoke `role` to `account` and returns a boolean indicating if `role` was revoked.
     *
     * Internal function without access restriction.
     *
     * May emit a {RoleRevoked} event.
     */
    function _revokeRole(bytes32 role, address account) internal virtual returns (bool) {
        AccessControlStorage storage $ = _getAccessControlStorage();
        if (hasRole(role, account)) {
            $._roles[role].hasRole[account] = false;
            emit RoleRevoked(role, account, _msgSender());
            return true;
        } else {
            return false;
        }
    }
}

File 3 of 12 : IBrandedCustodian.sol
// SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.8.4;

interface IBrandedCustodian {
  error AmountTooHigh();
  error ERC4626ExceededMaxDeposit(address receiver, uint256 assets, uint256 max);
  error ERC4626ExceededMaxMint(address receiver, uint256 shares, uint256 max);
  error ERC4626ExceededMaxRedeem(address owner, uint256 shares, uint256 max);
  error ERC4626ExceededMaxWithdraw(address owner, uint256 assets, uint256 max);
  error InitializeFailed();
  error MintCapExceeded(address receiver, uint256 shares, uint256 mintCap);
  error NotOperator();
  error OwnableInvalidOwner(address owner);
  error OwnableUnauthorizedAccount(address account);
  error OwnerCannotInitToZeroAddress();
  error ReentrancyGuardReentrantCall();
  error SafeERC20FailedOperation(address token);
  error SlippageTooHigh();
  error TokenOwnerShouldBeSender();

  event Deposit(address indexed sender, address indexed owner, uint256 assets, uint256 shares);
  event MinAmountAfterShuffleSet(uint256 oldValue, uint256 newValue);
  event MintCapSet(uint256 mintCap);
  event OperatorStatusSet(address operator, bool status);
  event OwnershipTransferStarted(address indexed previousOwner, address indexed newOwner);
  event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
  event RecoveredERC20(address token, uint256 amount);
  event Withdraw(
    address indexed sender,
    address indexed receiver,
    address indexed owner,
    uint256 assets,
    uint256 shares
  );
  event custodianTknShuffledToRwa(uint256 custodianTknAmount, address targetRwa);

  function acceptOwnership() external;
  function asset() external view returns (address _custodianTkn);
  function balanceOf(address _addr) external view returns (uint256 _balance);
  function brandedCoinMinted() external view returns (uint256);
  function brandedStablecoin() external view returns (address);
  function brandedTknDecimals() external view returns (uint8);
  function convertToAssets(uint256 _shares) external view returns (uint256 _assets);
  function convertToShares(uint256 _assets) external view returns (uint256 _shares);
  function custodianTkn() external view returns (address);
  function custodianTknDecimals() external view returns (uint8);
  function deposit(uint256 _assetsIn, address _receiver) external returns (uint256 _sharesOut);
  function initialize(
    address _bandedCoin,
    address _owner,
    uint256 _mintCap,
    uint256 _mintFee,
    uint256 _redeemFee
  ) external;
  function isApprovedOperator(address) external view returns (bool);
  function maxDeposit(address _addr) external view returns (uint256 _maxAssetsIn);
  function maxMint(address _addr) external view returns (uint256 _maxSharesOut);
  function maxRedeem(address _owner) external view returns (uint256 _maxSharesIn);
  function maxWithdraw(address _owner) external view returns (uint256 _maxAssetsOut);
  function mdwrComboView()
    external
    view
    returns (
      uint256 _maxAssetsDepositable,
      uint256 _maxSharesMintable,
      uint256 _maxAssetsWithdrawable,
      uint256 _maxSharesRedeemable
    );
  function minAfterShuffle() external view returns (uint256);
  function mint(uint256 _sharesOut, address _receiver) external returns (uint256 _assetsIn);
  function mintCap() external view returns (uint256);
  function mintFee() external view returns (uint256);
  function owner() external view returns (address);
  function pendingOwner() external view returns (address);
  function previewDeposit(uint256 _assetsIn) external view returns (uint256 _sharesOut);
  function previewMint(uint256 _sharesOut) external view returns (uint256 _assetsIn);
  function previewRedeem(uint256 _sharesIn) external view returns (uint256 _assetsOut);
  function previewWithdraw(uint256 _assetsOut) external view returns (uint256 _sharesIn);
  function pricePerShare() external view returns (uint256 _pricePerShare);
  function recoverERC20(address _tokenAddress, uint256 _tokenAmount) external;
  function redeem(uint256 _sharesIn, address _receiver, address _owner) external returns (uint256 _assetsOut);
  function redeemFee() external view returns (uint256);
  function renounceOwnership() external;
  function setApprovedOperator(address _operator, bool _status) external;
  function setMinAfterShuffle(uint256 _minAfterShuffle) external;
  function setMintCap(uint256 _mintCap) external;
  function setMintRedeemFee(uint256 _mintFee, uint256 _redeemFee) external;
  function totalAssets() external view returns (uint256 _assets);
  function totalSupply() external view returns (uint256 _supply);
  function transferOwnership(address newOwner) external;
  function wasInitialized() external view returns (bool);
  function withdraw(uint256 _assetsOut, address _receiver, address _owner) external returns (uint256 _sharesIn);
}

// SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.8.4;

interface IGDollar {
  error AccessControlBadConfirmation();
  error AccessControlUnauthorizedAccount(address account, bytes32 neededRole);
  error ERC20InsufficientAllowance(address spender, uint256 allowance, uint256 needed);
  error ERC20InsufficientBalance(address sender, uint256 balance, uint256 needed);
  error ERC20InvalidApprover(address approver);
  error ERC20InvalidReceiver(address receiver);
  error ERC20InvalidSender(address sender);
  error ERC20InvalidSpender(address spender);
  error InvalidInitialization();
  error NotInitializing();

  event Approval(address indexed owner, address indexed spender, uint256 value);
  event Initialized(uint64 version);
  event RoleAdminChanged(bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole);
  event RoleGranted(bytes32 indexed role, address indexed account, address indexed sender);
  event RoleRevoked(bytes32 indexed role, address indexed account, address indexed sender);
  event Transfer(address indexed from, address indexed to, uint256 value);

  function DEFAULT_ADMIN_ROLE() external view returns (bytes32);
  function MINTER_ROLE() external view returns (bytes32);
  function allowance(address owner, address spender) external view returns (uint256);
  function approve(address spender, uint256 value) external returns (bool);
  function balanceOf(address account) external view returns (uint256);
  function burn(uint256 value) external;
  function burnFrom(address account, uint256 value) external;
  function decimals() external view returns (uint8);
  function getRoleAdmin(bytes32 role) external view returns (bytes32);
  function grantRole(bytes32 role, address account) external;
  function hasRole(bytes32 role, address account) external view returns (bool);
  function initialize(string memory name, string memory symbol, address proxyAdminOwner, address minterLocal) external;
  function mint(address account, uint256 value) external;
  function name() external view returns (string memory);
  function renounceRole(bytes32 role, address callerConfirmation) external;
  function revokeRole(bytes32 role, address account) external;
  function supportsInterface(bytes4 interfaceId) external view returns (bool);
  function symbol() external view returns (string memory);
  function totalSupply() external view returns (uint256);
  function transfer(address to, uint256 value) external returns (bool);
  function transferFrom(address from, address to, uint256 value) external returns (bool);
}

File 5 of 12 : IFrxUSD.sol
// SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.8.4;

import { IERC20 } from "@openzeppelin/contracts/token/ERC20/IERC20.sol";

interface IFrxUSD is IERC20 {
  error ArrayMisMatch();
  error ECDSAInvalidSignature();
  error ECDSAInvalidSignatureLength(uint256 length);
  error ECDSAInvalidSignatureS(bytes32 s);
  error ERC20InsufficientAllowance(address spender, uint256 allowance, uint256 needed);
  error ERC20InsufficientBalance(address sender, uint256 balance, uint256 needed);
  error ERC20InvalidApprover(address approver);
  error ERC20InvalidReceiver(address receiver);
  error ERC20InvalidSender(address sender);
  error ERC20InvalidSpender(address spender);
  error ERC2612ExpiredSignature(uint256 deadline);
  error ERC2612InvalidSigner(address signer, address owner);
  error InvalidAccountNonce(address account, uint256 currentNonce);
  error InvalidShortString();
  error IsFrozen();
  error IsPaused();
  error OwnableInvalidOwner(address owner);
  error OwnableUnauthorizedAccount(address account);
  error OwnerCannotInitToZeroAddress();
  error StringTooLong(string str);

  event AccountFrozen(address account);
  event AccountThawed(address account);
  event Burn(address indexed account, uint256 amount);
  event EIP712DomainChanged();
  event Mint(address indexed account, uint256 amount);
  event MinterAdded(address minter_address);
  event MinterRemoved(address minter_address);
  event OwnershipTransferStarted(address indexed previousOwner, address indexed newOwner);
  event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
  event Paused();
  event TokenMinterBurned(address indexed from, address indexed to, uint256 amount);
  event TokenMinterMinted(address indexed from, address indexed to, uint256 amount);
  event Unpaused();

  function DOMAIN_SEPARATOR() external view returns (bytes32);
  function acceptOwnership() external;
  function addMinter(address minter_address) external;
  function allowance(address owner, address spender) external view returns (uint256);
  function approve(address spender, uint256 value) external returns (bool);
  function balanceOf(address account) external view returns (uint256);
  function burn(uint256 value) external;
  function burn(address _owner, uint256 _amount) external;
  function burnFrom(address account, uint256 value) external;
  function burnMany(address[] memory _owners, uint256[] memory _amounts) external;
  function decimals() external view returns (uint8);
  function eip712Domain()
    external
    view
    returns (
      bytes1 fields,
      string memory name,
      string memory version,
      uint256 chainId,
      address verifyingContract,
      bytes32 salt,
      uint256[] memory extensions
    );
  function freeze(address _owner) external;
  function freezeMany(address[] memory _owners) external;
  function initialize(address _owner, string memory _name, string memory _symbol) external;
  function isFrozen(address) external view returns (bool);
  function isPaused() external view returns (bool);
  function minter_burn_from(address b_address, uint256 b_amount) external;
  function minter_mint(address m_address, uint256 m_amount) external;
  function minters(address) external view returns (bool);
  function minters_array(uint256) external view returns (address);
  function name() external view returns (string memory);
  function nonces(address owner) external view returns (uint256);
  function owner() external view returns (address);
  function pause() external;
  function pendingOwner() external view returns (address);
  function permit(
    address owner,
    address spender,
    uint256 value,
    uint256 deadline,
    uint8 v,
    bytes32 r,
    bytes32 s
  ) external;
  function removeMinter(address minter_address) external;
  function renounceOwnership() external;
  function symbol() external view returns (string memory);
  function thaw(address _owner) external;
  function thawMany(address[] memory _owners) external;
  function totalSupply() external view returns (uint256);
  function transfer(address to, uint256 value) external returns (bool);
  function transferFrom(address from, address to, uint256 value) external returns (bool);
  function transferOwnership(address newOwner) external;
  function unpause() external;
}

// SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.8.4;

interface IRemoteHopV2 {
  struct MessagingFee {
    uint256 nativeFee;
    uint256 lzTokenFee;
  }

  error HopPaused();
  error InsufficientFee();
  error InvalidOFT();
  error InvalidOptionType(uint16 optionType);
  error InvalidSourceChain();
  error InvalidSourceHop();
  error NotEndpoint();
  error OwnableInvalidOwner(address owner);
  error OwnableUnauthorizedAccount(address account);
  error RefundFailed();
  error SafeCastOverflowedUintDowncast(uint8 bits, uint256 value);
  error SafeERC20FailedOperation(address token);
  error ZeroAmountSend();

  event Hop(address oft, address indexed recipient, uint256 amount);
  event MessageHash(address oft, uint64 indexed nonce, bytes32 indexed fraxtalHop);
  event OwnershipTransferStarted(address indexed previousOwner, address indexed newOwner);
  event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
  event SendOFT(address oft, address indexed sender, uint32 indexed dstEid, bytes32 indexed to, uint256 amountLD);

  receive() external payable;

  function DVN() external view returns (address);
  function EID() external view returns (uint32);
  function ENDPOINT() external view returns (address);
  function EXECUTOR() external view returns (address);
  function TREASURY() external view returns (address);
  function acceptOwnership() external;
  function approvedOft(address) external view returns (bool);
  function executorOptions(uint32) external view returns (bytes memory);
  function fraxtalHop() external view returns (bytes32);
  function hopFee() external view returns (uint256);
  function lzCompose(address _oft, bytes32, bytes memory _message, address, bytes memory) external payable;
  function messageProcessed(bytes32) external view returns (bool);
  function numDVNs() external view returns (uint256);
  function owner() external view returns (address);
  function pause(bool _paused) external;
  function paused() external view returns (bool);
  function pendingOwner() external view returns (address);
  function quote(
    address _oft,
    uint32 _dstEid,
    bytes32 _to,
    uint256 _amountLD,
    uint128 _composeGas,
    bytes memory _composeMsg
  ) external view returns (MessagingFee memory fee);
  function quoteHop(
    uint32 _dstEid,
    uint128 _composeGas,
    bytes memory _composeMsg
  ) external view returns (uint256 finalFee);
  function recoverERC20(address tokenAddress, address recipient, uint256 tokenAmount) external;
  function recoverETH(address recipient, uint256 tokenAmount) external;
  function renounceOwnership() external;
  function sendOFT(address _oft, uint32 _dstEid, bytes32 _to, uint256 _amountLD) external payable;
  function sendOFT(
    address _oft,
    uint32 _dstEid,
    bytes32 _to,
    uint256 _amountLD,
    uint128 _composeGas,
    bytes memory _composeMsg
  ) external payable;
  function setExecutorOptions(uint32 eid, bytes memory _options) external;
  function setFraxtalHop(address _fraxtalHop) external;
  function setFraxtalHop(bytes32 _fraxtalHop) external;
  function setHopFee(uint256 _hopFee) external;
  function setMessageProcessed(address oft, uint64 nonce, bytes32 fraxtalHop) external;
  function setNumDVNs(uint256 _numDVNs) external;
  function toggleOFTApproval(address _oft, bool _approved) external;
  function transferOwnership(address newOwner) external;
}

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.1.0) (access/IAccessControl.sol)

pragma solidity ^0.8.20;

/**
 * @dev External interface of AccessControl declared to support ERC-165 detection.
 */
interface IAccessControl {
    /**
     * @dev The `account` is missing a role.
     */
    error AccessControlUnauthorizedAccount(address account, bytes32 neededRole);

    /**
     * @dev The caller of a function is not the expected one.
     *
     * NOTE: Don't confuse with {AccessControlUnauthorizedAccount}.
     */
    error AccessControlBadConfirmation();

    /**
     * @dev Emitted when `newAdminRole` is set as ``role``'s admin role, replacing `previousAdminRole`
     *
     * `DEFAULT_ADMIN_ROLE` is the starting admin for all roles, despite
     * {RoleAdminChanged} not being emitted signaling this.
     */
    event RoleAdminChanged(bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole);

    /**
     * @dev Emitted when `account` is granted `role`.
     *
     * `sender` is the account that originated the contract call. This account bears the admin role (for the granted role).
     * Expected in cases where the role was granted using the internal {AccessControl-_grantRole}.
     */
    event RoleGranted(bytes32 indexed role, address indexed account, address indexed sender);

    /**
     * @dev Emitted when `account` is revoked `role`.
     *
     * `sender` is the account that originated the contract call:
     *   - if using `revokeRole`, it is the admin role bearer
     *   - if using `renounceRole`, it is the role bearer (i.e. `account`)
     */
    event RoleRevoked(bytes32 indexed role, address indexed account, address indexed sender);

    /**
     * @dev Returns `true` if `account` has been granted `role`.
     */
    function hasRole(bytes32 role, address account) external view returns (bool);

    /**
     * @dev Returns the admin role that controls `role`. See {grantRole} and
     * {revokeRole}.
     *
     * To change a role's admin, use {AccessControl-_setRoleAdmin}.
     */
    function getRoleAdmin(bytes32 role) external view returns (bytes32);

    /**
     * @dev Grants `role` to `account`.
     *
     * If `account` had not been already granted `role`, emits a {RoleGranted}
     * event.
     *
     * Requirements:
     *
     * - the caller must have ``role``'s admin role.
     */
    function grantRole(bytes32 role, address account) external;

    /**
     * @dev Revokes `role` from `account`.
     *
     * If `account` had been granted `role`, emits a {RoleRevoked} event.
     *
     * Requirements:
     *
     * - the caller must have ``role``'s admin role.
     */
    function revokeRole(bytes32 role, address account) external;

    /**
     * @dev Revokes `role` from the calling account.
     *
     * Roles are often managed via {grantRole} and {revokeRole}: this function's
     * purpose is to provide a mechanism for accounts to lose their privileges
     * if they are compromised (such as when a trusted device is misplaced).
     *
     * If the calling account had been granted `role`, emits a {RoleRevoked}
     * event.
     *
     * Requirements:
     *
     * - the caller must be `callerConfirmation`.
     */
    function renounceRole(bytes32 role, address callerConfirmation) external;
}

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol)

pragma solidity ^0.8.20;
import {Initializable} from "../proxy/utils/Initializable.sol";

/**
 * @dev Provides information about the current execution context, including the
 * sender of the transaction and its data. While these are generally available
 * via msg.sender and msg.data, they should not be accessed in such a direct
 * manner, since when dealing with meta-transactions the account sending and
 * paying for execution may not be the actual sender (as far as an application
 * is concerned).
 *
 * This contract is only required for intermediate, library-like contracts.
 */
abstract contract ContextUpgradeable is Initializable {
    function __Context_init() internal onlyInitializing {
    }

    function __Context_init_unchained() internal onlyInitializing {
    }
    function _msgSender() internal view virtual returns (address) {
        return msg.sender;
    }

    function _msgData() internal view virtual returns (bytes calldata) {
        return msg.data;
    }

    function _contextSuffixLength() internal view virtual returns (uint256) {
        return 0;
    }
}

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.1.0) (utils/introspection/ERC165.sol)

pragma solidity ^0.8.20;

import {IERC165} from "@openzeppelin/contracts/utils/introspection/IERC165.sol";
import {Initializable} from "../../proxy/utils/Initializable.sol";

/**
 * @dev Implementation of the {IERC165} interface.
 *
 * Contracts that want to implement ERC-165 should inherit from this contract and override {supportsInterface} to check
 * for the additional interface id that will be supported. For example:
 *
 * ```solidity
 * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
 *     return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId);
 * }
 * ```
 */
abstract contract ERC165Upgradeable is Initializable, IERC165 {
    function __ERC165_init() internal onlyInitializing {
    }

    function __ERC165_init_unchained() internal onlyInitializing {
    }
    /**
     * @dev See {IERC165-supportsInterface}.
     */
    function supportsInterface(bytes4 interfaceId) public view virtual returns (bool) {
        return interfaceId == type(IERC165).interfaceId;
    }
}

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (proxy/utils/Initializable.sol)

pragma solidity ^0.8.20;

/**
 * @dev This is a base contract to aid in writing upgradeable contracts, or any kind of contract that will be deployed
 * behind a proxy. Since proxied contracts do not make use of a constructor, it's common to move constructor logic to an
 * external initializer function, usually called `initialize`. It then becomes necessary to protect this initializer
 * function so it can only be called once. The {initializer} modifier provided by this contract will have this effect.
 *
 * The initialization functions use a version number. Once a version number is used, it is consumed and cannot be
 * reused. This mechanism prevents re-execution of each "step" but allows the creation of new initialization steps in
 * case an upgrade adds a module that needs to be initialized.
 *
 * For example:
 *
 * [.hljs-theme-light.nopadding]
 * ```solidity
 * contract MyToken is ERC20Upgradeable {
 *     function initialize() initializer public {
 *         __ERC20_init("MyToken", "MTK");
 *     }
 * }
 *
 * contract MyTokenV2 is MyToken, ERC20PermitUpgradeable {
 *     function initializeV2() reinitializer(2) public {
 *         __ERC20Permit_init("MyToken");
 *     }
 * }
 * ```
 *
 * TIP: To avoid leaving the proxy in an uninitialized state, the initializer function should be called as early as
 * possible by providing the encoded function call as the `_data` argument to {ERC1967Proxy-constructor}.
 *
 * CAUTION: When used with inheritance, manual care must be taken to not invoke a parent initializer twice, or to ensure
 * that all initializers are idempotent. This is not verified automatically as constructors are by Solidity.
 *
 * [CAUTION]
 * ====
 * Avoid leaving a contract uninitialized.
 *
 * An uninitialized contract can be taken over by an attacker. This applies to both a proxy and its implementation
 * contract, which may impact the proxy. To prevent the implementation contract from being used, you should invoke
 * the {_disableInitializers} function in the constructor to automatically lock it when it is deployed:
 *
 * [.hljs-theme-light.nopadding]
 * ```
 * /// @custom:oz-upgrades-unsafe-allow constructor
 * constructor() {
 *     _disableInitializers();
 * }
 * ```
 * ====
 */
abstract contract Initializable {
    /**
     * @dev Storage of the initializable contract.
     *
     * It's implemented on a custom ERC-7201 namespace to reduce the risk of storage collisions
     * when using with upgradeable contracts.
     *
     * @custom:storage-location erc7201:openzeppelin.storage.Initializable
     */
    struct InitializableStorage {
        /**
         * @dev Indicates that the contract has been initialized.
         */
        uint64 _initialized;
        /**
         * @dev Indicates that the contract is in the process of being initialized.
         */
        bool _initializing;
    }

    // keccak256(abi.encode(uint256(keccak256("openzeppelin.storage.Initializable")) - 1)) & ~bytes32(uint256(0xff))
    bytes32 private constant INITIALIZABLE_STORAGE = 0xf0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00;

    /**
     * @dev The contract is already initialized.
     */
    error InvalidInitialization();

    /**
     * @dev The contract is not initializing.
     */
    error NotInitializing();

    /**
     * @dev Triggered when the contract has been initialized or reinitialized.
     */
    event Initialized(uint64 version);

    /**
     * @dev A modifier that defines a protected initializer function that can be invoked at most once. In its scope,
     * `onlyInitializing` functions can be used to initialize parent contracts.
     *
     * Similar to `reinitializer(1)`, except that in the context of a constructor an `initializer` may be invoked any
     * number of times. This behavior in the constructor can be useful during testing and is not expected to be used in
     * production.
     *
     * Emits an {Initialized} event.
     */
    modifier initializer() {
        // solhint-disable-next-line var-name-mixedcase
        InitializableStorage storage $ = _getInitializableStorage();

        // Cache values to avoid duplicated sloads
        bool isTopLevelCall = !$._initializing;
        uint64 initialized = $._initialized;

        // Allowed calls:
        // - initialSetup: the contract is not in the initializing state and no previous version was
        //                 initialized
        // - construction: the contract is initialized at version 1 (no reininitialization) and the
        //                 current contract is just being deployed
        bool initialSetup = initialized == 0 && isTopLevelCall;
        bool construction = initialized == 1 && address(this).code.length == 0;

        if (!initialSetup && !construction) {
            revert InvalidInitialization();
        }
        $._initialized = 1;
        if (isTopLevelCall) {
            $._initializing = true;
        }
        _;
        if (isTopLevelCall) {
            $._initializing = false;
            emit Initialized(1);
        }
    }

    /**
     * @dev A modifier that defines a protected reinitializer function that can be invoked at most once, and only if the
     * contract hasn't been initialized to a greater version before. In its scope, `onlyInitializing` functions can be
     * used to initialize parent contracts.
     *
     * A reinitializer may be used after the original initialization step. This is essential to configure modules that
     * are added through upgrades and that require initialization.
     *
     * When `version` is 1, this modifier is similar to `initializer`, except that functions marked with `reinitializer`
     * cannot be nested. If one is invoked in the context of another, execution will revert.
     *
     * Note that versions can jump in increments greater than 1; this implies that if multiple reinitializers coexist in
     * a contract, executing them in the right order is up to the developer or operator.
     *
     * WARNING: Setting the version to 2**64 - 1 will prevent any future reinitialization.
     *
     * Emits an {Initialized} event.
     */
    modifier reinitializer(uint64 version) {
        // solhint-disable-next-line var-name-mixedcase
        InitializableStorage storage $ = _getInitializableStorage();

        if ($._initializing || $._initialized >= version) {
            revert InvalidInitialization();
        }
        $._initialized = version;
        $._initializing = true;
        _;
        $._initializing = false;
        emit Initialized(version);
    }

    /**
     * @dev Modifier to protect an initialization function so that it can only be invoked by functions with the
     * {initializer} and {reinitializer} modifiers, directly or indirectly.
     */
    modifier onlyInitializing() {
        _checkInitializing();
        _;
    }

    /**
     * @dev Reverts if the contract is not in an initializing state. See {onlyInitializing}.
     */
    function _checkInitializing() internal view virtual {
        if (!_isInitializing()) {
            revert NotInitializing();
        }
    }

    /**
     * @dev Locks the contract, preventing any future reinitialization. This cannot be part of an initializer call.
     * Calling this in the constructor of a contract will prevent that contract from being initialized or reinitialized
     * to any version. It is recommended to use this to lock implementation contracts that are designed to be called
     * through proxies.
     *
     * Emits an {Initialized} event the first time it is successfully executed.
     */
    function _disableInitializers() internal virtual {
        // solhint-disable-next-line var-name-mixedcase
        InitializableStorage storage $ = _getInitializableStorage();

        if ($._initializing) {
            revert InvalidInitialization();
        }
        if ($._initialized != type(uint64).max) {
            $._initialized = type(uint64).max;
            emit Initialized(type(uint64).max);
        }
    }

    /**
     * @dev Returns the highest version that has been initialized. See {reinitializer}.
     */
    function _getInitializedVersion() internal view returns (uint64) {
        return _getInitializableStorage()._initialized;
    }

    /**
     * @dev Returns `true` if the contract is currently initializing. See {onlyInitializing}.
     */
    function _isInitializing() internal view returns (bool) {
        return _getInitializableStorage()._initializing;
    }

    /**
     * @dev Returns a pointer to the storage namespace.
     */
    // solhint-disable-next-line var-name-mixedcase
    function _getInitializableStorage() private pure returns (InitializableStorage storage $) {
        assembly {
            $.slot := INITIALIZABLE_STORAGE
        }
    }
}

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.1.0) (token/ERC20/IERC20.sol)

pragma solidity ^0.8.20;

/**
 * @dev Interface of the ERC-20 standard as defined in the ERC.
 */
interface IERC20 {
    /**
     * @dev Emitted when `value` tokens are moved from one account (`from`) to
     * another (`to`).
     *
     * Note that `value` may be zero.
     */
    event Transfer(address indexed from, address indexed to, uint256 value);

    /**
     * @dev Emitted when the allowance of a `spender` for an `owner` is set by
     * a call to {approve}. `value` is the new allowance.
     */
    event Approval(address indexed owner, address indexed spender, uint256 value);

    /**
     * @dev Returns the value of tokens in existence.
     */
    function totalSupply() external view returns (uint256);

    /**
     * @dev Returns the value of tokens owned by `account`.
     */
    function balanceOf(address account) external view returns (uint256);

    /**
     * @dev Moves a `value` amount of tokens from the caller's account to `to`.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transfer(address to, uint256 value) external returns (bool);

    /**
     * @dev Returns the remaining number of tokens that `spender` will be
     * allowed to spend on behalf of `owner` through {transferFrom}. This is
     * zero by default.
     *
     * This value changes when {approve} or {transferFrom} are called.
     */
    function allowance(address owner, address spender) external view returns (uint256);

    /**
     * @dev Sets a `value` amount of tokens as the allowance of `spender` over the
     * caller's tokens.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * IMPORTANT: Beware that changing an allowance with this method brings the risk
     * that someone may use both the old and the new allowance by unfortunate
     * transaction ordering. One possible solution to mitigate this race
     * condition is to first reduce the spender's allowance to 0 and set the
     * desired value afterwards:
     * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729
     *
     * Emits an {Approval} event.
     */
    function approve(address spender, uint256 value) external returns (bool);

    /**
     * @dev Moves a `value` amount of tokens from `from` to `to` using the
     * allowance mechanism. `value` is then deducted from the caller's
     * allowance.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transferFrom(address from, address to, uint256 value) external returns (bool);
}

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.1.0) (utils/introspection/IERC165.sol)

pragma solidity ^0.8.20;

/**
 * @dev Interface of the ERC-165 standard, as defined in the
 * https://eips.ethereum.org/EIPS/eip-165[ERC].
 *
 * Implementers can declare support of contract interfaces, which can then be
 * queried by others ({ERC165Checker}).
 *
 * For an implementation, see {ERC165}.
 */
interface IERC165 {
    /**
     * @dev Returns true if this contract implements the interface defined by
     * `interfaceId`. See the corresponding
     * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[ERC section]
     * to learn more about how these ids are created.
     *
     * This function call must use less than 30 000 gas.
     */
    function supportsInterface(bytes4 interfaceId) external view returns (bool);
}

Settings
{
  "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/"
  ],
  "optimizer": {
    "enabled": true,
    "runs": 777777
  },
  "metadata": {
    "useLiteralContent": false,
    "bytecodeHash": "none",
    "appendCBOR": false
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  },
  "evmVersion": "shanghai",
  "viaIR": false
}

Contract Security Audit

Contract ABI

API
[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"AccessControlBadConfirmation","type":"error"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"bytes32","name":"neededRole","type":"bytes32"}],"name":"AccessControlUnauthorizedAccount","type":"error"},{"inputs":[],"name":"InvalidInitialization","type":"error"},{"inputs":[],"name":"InvalidOFT","type":"error"},{"inputs":[],"name":"InvalidSender","type":"error"},{"inputs":[],"name":"NotFromRouter","type":"error"},{"inputs":[],"name":"NotInitializing","type":"error"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint64","name":"version","type":"uint64"}],"name":"Initialized","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":[{"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":"","type":"uint32"},{"internalType":"bytes32","name":"","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"}],"name":"initialize","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint32","name":"dstEid","type":"uint32"},{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint128","name":"composeGas","type":"uint128"}],"name":"quote","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"callerConfirmation","type":"address"}],"name":"renounceRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"revokeRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint32","name":"dstEid","type":"uint32"},{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint128","name":"composeGas","type":"uint128"}],"name":"send","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"stateMutability":"payable","type":"receive"}]

0x608060405234801561000f575f80fd5b5061001861001d565b6100cf565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00805468010000000000000000900460ff161561006d5760405163f92ee8a960e01b815260040160405180910390fd5b80546001600160401b03908116146100cc5780546001600160401b0319166001600160401b0390811782556040519081527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b50565b6113b3806100dc5f395ff3fe6080604052600436106100bb575f3560e01c806391d1485411610071578063b56ffd4f1161004c578063b56ffd4f14610256578063d547741f14610275578063d6956cc914610294575f80fd5b806391d14854146101b4578063a217fddf14610224578063b4b0d2dd14610237575f80fd5b8063248a9ca3116100a1578063248a9ca31461011b5780632f2ff15d1461017657806336568abe14610195575f80fd5b806301ffc9a7146100c65780631459457a146100fa575f80fd5b366100c257005b5f80fd5b3480156100d1575f80fd5b506100e56100e0366004610ef4565b6102a7565b60405190151581526020015b60405180910390f35b348015610105575f80fd5b50610119610114366004610f5b565b61033f565b005b348015610126575f80fd5b50610168610135366004610fc8565b5f9081527f02dd7bc7dec4dceedda775e58dd541e08a116c6c53815c0bd028192f7b626800602052604090206001015490565b6040519081526020016100f1565b348015610181575f80fd5b50610119610190366004610fdf565b610531565b3480156101a0575f80fd5b506101196101af366004610fdf565b61057a565b3480156101bf575f80fd5b506100e56101ce366004610fdf565b5f9182527f02dd7bc7dec4dceedda775e58dd541e08a116c6c53815c0bd028192f7b6268006020908152604080842073ffffffffffffffffffffffffffffffffffffffff93909316845291905290205460ff1690565b34801561022f575f80fd5b506101685f81565b348015610242575f80fd5b50610168610251366004611025565b6105d8565b348015610261575f80fd5b50610119610270366004611103565b6106be565b348015610280575f80fd5b5061011961028f366004610fdf565b6108b8565b6101196102a2366004611025565b6108fb565b5f7fffffffff0000000000000000000000000000000000000000000000000000000082167f7965db0b00000000000000000000000000000000000000000000000000000000148061033957507f01ffc9a7000000000000000000000000000000000000000000000000000000007fffffffff000000000000000000000000000000000000000000000000000000008316145b92915050565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00805468010000000000000000810460ff16159067ffffffffffffffff165f811580156103895750825b90505f8267ffffffffffffffff1660011480156103a55750303b155b9050811580156103b3575080155b156103ea576040517ff92ee8a900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b84547fffffffffffffffffffffffffffffffffffffffffffffffff0000000000000000166001178555831561044b5784547fffffffffffffffffffffffffffffffffffffffffffffff00ffffffffffffffff16680100000000000000001785555b6104555f8b610c3f565b506001805473ffffffffffffffffffffffffffffffffffffffff808b167fffffffffffffffffffffffff0000000000000000000000000000000000000000928316179092555f80548c8416908316179055600280548a8416908316179055600380549289169290911691909117905583156105255784547fffffffffffffffffffffffffffffffffffffffffffffff00ffffffffffffffff168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b50505050505050505050565b5f8281527f02dd7bc7dec4dceedda775e58dd541e08a116c6c53815c0bd028192f7b626800602052604090206001015461056a81610d5d565b6105748383610c3f565b50505050565b73ffffffffffffffffffffffffffffffffffffffff811633146105c9576040517f6697b23200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6105d38282610d6a565b505050565b6003546002545f91829173ffffffffffffffffffffffffffffffffffffffff91821691638692040c9116883061061364e8d4a510008a6111e5565b6106229064e8d4a5100061121d565b6040805173ffffffffffffffffffffffffffffffffffffffff8d1660208201528a91016040516020818303038152906040526040518763ffffffff1660e01b815260040161067596959493929190611259565b6040805180830381865afa15801561068f573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906106b39190611315565b519695505050505050565b60035473ffffffffffffffffffffffffffffffffffffffff16331461070f576040517fddb5de5e00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60025473ffffffffffffffffffffffffffffffffffffffff848116911614610763576040517f7413e48600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f818060200190518101906107789190611362565b6002545f546040517f095ea7b300000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff918216600482015260248101879052929350169063095ea7b3906044016020604051808303815f875af11580156107f1573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610815919061137d565b505f546040517f6e553f650000000000000000000000000000000000000000000000000000000081526004810185905273ffffffffffffffffffffffffffffffffffffffff838116602483015290911690636e553f65906044016020604051808303815f875af115801561088b573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906108af919061139c565b50505050505050565b5f8281527f02dd7bc7dec4dceedda775e58dd541e08a116c6c53815c0bd028192f7b62680060205260409020600101546108f181610d5d565b6105748383610d6a565b61090a64e8d4a51000836111e5565b6109199064e8d4a5100061121d565b6001546040517f23b872dd0000000000000000000000000000000000000000000000000000000081523360048201523060248201526044810183905291935073ffffffffffffffffffffffffffffffffffffffff16906323b872dd906064016020604051808303815f875af1158015610994573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906109b8919061137d565b506001545f546040517f095ea7b300000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff91821660048201526024810185905291169063095ea7b3906044016020604051808303815f875af1158015610a30573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610a54919061137d565b505f80546040517fba087652000000000000000000000000000000000000000000000000000000008152600481018590523060248201819052604482015273ffffffffffffffffffffffffffffffffffffffff9091169063ba087652906064016020604051808303815f875af1158015610ad0573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610af4919061139c565b6002546003546040517f095ea7b300000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff918216600482015260248101879052929350169063095ea7b3906044016020604051808303815f875af1158015610b6e573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610b92919061137d565b506003546002546040805130602080830182905283518084039091018152828401938490527f4198dcf40000000000000000000000000000000000000000000000000000000090935273ffffffffffffffffffffffffffffffffffffffff94851694634198dcf4943494610c169492909116928c92909189918b9190604401611259565b5f604051808303818588803b158015610c2d575f80fd5b505af1158015610525573d5f803e3d5ffd5b5f8281527f02dd7bc7dec4dceedda775e58dd541e08a116c6c53815c0bd028192f7b6268006020818152604080842073ffffffffffffffffffffffffffffffffffffffff8616855290915282205460ff16610d54575f8481526020828152604080832073ffffffffffffffffffffffffffffffffffffffff87168452909152902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00166001179055610cf03390565b73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16857f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a46001915050610339565b5f915050610339565b610d678133610e46565b50565b5f8281527f02dd7bc7dec4dceedda775e58dd541e08a116c6c53815c0bd028192f7b6268006020818152604080842073ffffffffffffffffffffffffffffffffffffffff8616855290915282205460ff1615610d54575f8481526020828152604080832073ffffffffffffffffffffffffffffffffffffffff8716808552925280832080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0016905551339287917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a46001915050610339565b5f8281527f02dd7bc7dec4dceedda775e58dd541e08a116c6c53815c0bd028192f7b6268006020908152604080832073ffffffffffffffffffffffffffffffffffffffff8516845290915290205460ff16610ef0576040517fe2517d3f00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff821660048201526024810183905260440160405180910390fd5b5050565b5f60208284031215610f04575f80fd5b81357fffffffff0000000000000000000000000000000000000000000000000000000081168114610f33575f80fd5b9392505050565b73ffffffffffffffffffffffffffffffffffffffff81168114610d67575f80fd5b5f805f805f60a08688031215610f6f575f80fd5b8535610f7a81610f3a565b94506020860135610f8a81610f3a565b93506040860135610f9a81610f3a565b92506060860135610faa81610f3a565b91506080860135610fba81610f3a565b809150509295509295909350565b5f60208284031215610fd8575f80fd5b5035919050565b5f8060408385031215610ff0575f80fd5b82359150602083013561100281610f3a565b809150509250929050565b803563ffffffff81168114611020575f80fd5b919050565b5f805f8060808587031215611038575f80fd5b6110418561100d565b9350602085013561105181610f3a565b92506040850135915060608501356fffffffffffffffffffffffffffffffff8116811461107c575f80fd5b939692955090935050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52604160045260245ffd5b604051601f82017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016810167ffffffffffffffff811182821017156110fb576110fb611087565b604052919050565b5f805f805f60a08688031215611117575f80fd5b6111208661100d565b94506020808701359450604087013561113881610f3a565b935060608701359250608087013567ffffffffffffffff8082111561115b575f80fd5b818901915089601f83011261116e575f80fd5b81358181111561118057611180611087565b6111b0847fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f840116016110b4565b91508082528a848285010111156111c5575f80fd5b80848401858401375f848284010152508093505050509295509295909350565b5f82611218577f4e487b71000000000000000000000000000000000000000000000000000000005f52601260045260245ffd5b500490565b8082028115828204841417610339577f4e487b71000000000000000000000000000000000000000000000000000000005f52601160045260245ffd5b73ffffffffffffffffffffffffffffffffffffffff871681525f602063ffffffff881660208401528660408401528560608401526fffffffffffffffffffffffffffffffff8516608084015260c060a084015283518060c08501525f5b818110156112d25785810183015185820160e0015282016112b6565b505f60e0828601015260e07fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f83011685010192505050979650505050505050565b5f60408284031215611325575f80fd5b6040516040810181811067ffffffffffffffff8211171561134857611348611087565b604052825181526020928301519281019290925250919050565b5f60208284031215611372575f80fd5b8151610f3381610f3a565b5f6020828403121561138d575f80fd5b81518015158114610f33575f80fd5b5f602082840312156113ac575f80fd5b505191905056

Deployed Bytecode

0x6080604052600436106100bb575f3560e01c806391d1485411610071578063b56ffd4f1161004c578063b56ffd4f14610256578063d547741f14610275578063d6956cc914610294575f80fd5b806391d14854146101b4578063a217fddf14610224578063b4b0d2dd14610237575f80fd5b8063248a9ca3116100a1578063248a9ca31461011b5780632f2ff15d1461017657806336568abe14610195575f80fd5b806301ffc9a7146100c65780631459457a146100fa575f80fd5b366100c257005b5f80fd5b3480156100d1575f80fd5b506100e56100e0366004610ef4565b6102a7565b60405190151581526020015b60405180910390f35b348015610105575f80fd5b50610119610114366004610f5b565b61033f565b005b348015610126575f80fd5b50610168610135366004610fc8565b5f9081527f02dd7bc7dec4dceedda775e58dd541e08a116c6c53815c0bd028192f7b626800602052604090206001015490565b6040519081526020016100f1565b348015610181575f80fd5b50610119610190366004610fdf565b610531565b3480156101a0575f80fd5b506101196101af366004610fdf565b61057a565b3480156101bf575f80fd5b506100e56101ce366004610fdf565b5f9182527f02dd7bc7dec4dceedda775e58dd541e08a116c6c53815c0bd028192f7b6268006020908152604080842073ffffffffffffffffffffffffffffffffffffffff93909316845291905290205460ff1690565b34801561022f575f80fd5b506101685f81565b348015610242575f80fd5b50610168610251366004611025565b6105d8565b348015610261575f80fd5b50610119610270366004611103565b6106be565b348015610280575f80fd5b5061011961028f366004610fdf565b6108b8565b6101196102a2366004611025565b6108fb565b5f7fffffffff0000000000000000000000000000000000000000000000000000000082167f7965db0b00000000000000000000000000000000000000000000000000000000148061033957507f01ffc9a7000000000000000000000000000000000000000000000000000000007fffffffff000000000000000000000000000000000000000000000000000000008316145b92915050565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00805468010000000000000000810460ff16159067ffffffffffffffff165f811580156103895750825b90505f8267ffffffffffffffff1660011480156103a55750303b155b9050811580156103b3575080155b156103ea576040517ff92ee8a900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b84547fffffffffffffffffffffffffffffffffffffffffffffffff0000000000000000166001178555831561044b5784547fffffffffffffffffffffffffffffffffffffffffffffff00ffffffffffffffff16680100000000000000001785555b6104555f8b610c3f565b506001805473ffffffffffffffffffffffffffffffffffffffff808b167fffffffffffffffffffffffff0000000000000000000000000000000000000000928316179092555f80548c8416908316179055600280548a8416908316179055600380549289169290911691909117905583156105255784547fffffffffffffffffffffffffffffffffffffffffffffff00ffffffffffffffff168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b50505050505050505050565b5f8281527f02dd7bc7dec4dceedda775e58dd541e08a116c6c53815c0bd028192f7b626800602052604090206001015461056a81610d5d565b6105748383610c3f565b50505050565b73ffffffffffffffffffffffffffffffffffffffff811633146105c9576040517f6697b23200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6105d38282610d6a565b505050565b6003546002545f91829173ffffffffffffffffffffffffffffffffffffffff91821691638692040c9116883061061364e8d4a510008a6111e5565b6106229064e8d4a5100061121d565b6040805173ffffffffffffffffffffffffffffffffffffffff8d1660208201528a91016040516020818303038152906040526040518763ffffffff1660e01b815260040161067596959493929190611259565b6040805180830381865afa15801561068f573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906106b39190611315565b519695505050505050565b60035473ffffffffffffffffffffffffffffffffffffffff16331461070f576040517fddb5de5e00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60025473ffffffffffffffffffffffffffffffffffffffff848116911614610763576040517f7413e48600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f818060200190518101906107789190611362565b6002545f546040517f095ea7b300000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff918216600482015260248101879052929350169063095ea7b3906044016020604051808303815f875af11580156107f1573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610815919061137d565b505f546040517f6e553f650000000000000000000000000000000000000000000000000000000081526004810185905273ffffffffffffffffffffffffffffffffffffffff838116602483015290911690636e553f65906044016020604051808303815f875af115801561088b573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906108af919061139c565b50505050505050565b5f8281527f02dd7bc7dec4dceedda775e58dd541e08a116c6c53815c0bd028192f7b62680060205260409020600101546108f181610d5d565b6105748383610d6a565b61090a64e8d4a51000836111e5565b6109199064e8d4a5100061121d565b6001546040517f23b872dd0000000000000000000000000000000000000000000000000000000081523360048201523060248201526044810183905291935073ffffffffffffffffffffffffffffffffffffffff16906323b872dd906064016020604051808303815f875af1158015610994573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906109b8919061137d565b506001545f546040517f095ea7b300000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff91821660048201526024810185905291169063095ea7b3906044016020604051808303815f875af1158015610a30573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610a54919061137d565b505f80546040517fba087652000000000000000000000000000000000000000000000000000000008152600481018590523060248201819052604482015273ffffffffffffffffffffffffffffffffffffffff9091169063ba087652906064016020604051808303815f875af1158015610ad0573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610af4919061139c565b6002546003546040517f095ea7b300000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff918216600482015260248101879052929350169063095ea7b3906044016020604051808303815f875af1158015610b6e573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610b92919061137d565b506003546002546040805130602080830182905283518084039091018152828401938490527f4198dcf40000000000000000000000000000000000000000000000000000000090935273ffffffffffffffffffffffffffffffffffffffff94851694634198dcf4943494610c169492909116928c92909189918b9190604401611259565b5f604051808303818588803b158015610c2d575f80fd5b505af1158015610525573d5f803e3d5ffd5b5f8281527f02dd7bc7dec4dceedda775e58dd541e08a116c6c53815c0bd028192f7b6268006020818152604080842073ffffffffffffffffffffffffffffffffffffffff8616855290915282205460ff16610d54575f8481526020828152604080832073ffffffffffffffffffffffffffffffffffffffff87168452909152902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00166001179055610cf03390565b73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16857f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a46001915050610339565b5f915050610339565b610d678133610e46565b50565b5f8281527f02dd7bc7dec4dceedda775e58dd541e08a116c6c53815c0bd028192f7b6268006020818152604080842073ffffffffffffffffffffffffffffffffffffffff8616855290915282205460ff1615610d54575f8481526020828152604080832073ffffffffffffffffffffffffffffffffffffffff8716808552925280832080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0016905551339287917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a46001915050610339565b5f8281527f02dd7bc7dec4dceedda775e58dd541e08a116c6c53815c0bd028192f7b6268006020908152604080832073ffffffffffffffffffffffffffffffffffffffff8516845290915290205460ff16610ef0576040517fe2517d3f00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff821660048201526024810183905260440160405180910390fd5b5050565b5f60208284031215610f04575f80fd5b81357fffffffff0000000000000000000000000000000000000000000000000000000081168114610f33575f80fd5b9392505050565b73ffffffffffffffffffffffffffffffffffffffff81168114610d67575f80fd5b5f805f805f60a08688031215610f6f575f80fd5b8535610f7a81610f3a565b94506020860135610f8a81610f3a565b93506040860135610f9a81610f3a565b92506060860135610faa81610f3a565b91506080860135610fba81610f3a565b809150509295509295909350565b5f60208284031215610fd8575f80fd5b5035919050565b5f8060408385031215610ff0575f80fd5b82359150602083013561100281610f3a565b809150509250929050565b803563ffffffff81168114611020575f80fd5b919050565b5f805f8060808587031215611038575f80fd5b6110418561100d565b9350602085013561105181610f3a565b92506040850135915060608501356fffffffffffffffffffffffffffffffff8116811461107c575f80fd5b939692955090935050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52604160045260245ffd5b604051601f82017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016810167ffffffffffffffff811182821017156110fb576110fb611087565b604052919050565b5f805f805f60a08688031215611117575f80fd5b6111208661100d565b94506020808701359450604087013561113881610f3a565b935060608701359250608087013567ffffffffffffffff8082111561115b575f80fd5b818901915089601f83011261116e575f80fd5b81358181111561118057611180611087565b6111b0847fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f840116016110b4565b91508082528a848285010111156111c5575f80fd5b80848401858401375f848284010152508093505050509295509295909350565b5f82611218577f4e487b71000000000000000000000000000000000000000000000000000000005f52601260045260245ffd5b500490565b8082028115828204841417610339577f4e487b71000000000000000000000000000000000000000000000000000000005f52601160045260245ffd5b73ffffffffffffffffffffffffffffffffffffffff871681525f602063ffffffff881660208401528660408401528560608401526fffffffffffffffffffffffffffffffff8516608084015260c060a084015283518060c08501525f5b818110156112d25785810183015185820160e0015282016112b6565b505f60e0828601015260e07fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f83011685010192505050979650505050505050565b5f60408284031215611325575f80fd5b6040516040810181811067ffffffffffffffff8211171561134857611348611087565b604052825181526020928301519281019290925250919050565b5f60208284031215611372575f80fd5b8151610f3381610f3a565b5f6020828403121561138d575f80fd5b81518015158114610f33575f80fd5b5f602082840312156113ac575f80fd5b505191905056

Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

Block Uncle Number Difficulty Gas Used Reward
View All Uncles
Loading...
Loading
Loading...
Loading
Loading...
Loading

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
Loading...
Loading
[ Download: CSV Export  ]

A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.