ETH Price: $3,021.63 (-2.35%)
Gas: 4 Gwei

Contract

0x0439e60F02a8900a951603950d8D4527f400C3f1
 
Transaction Hash
Method
Block
From
To
Value
0x1125a9b0923db67f30ee404da6cef5ed4893f1d4991974f0f9f4ab5a6944413eBridge(pending)2024-05-08 1:07:026 mins ago1715130422IN
MetaMask: Meta Bridge
0.005 ETH(Pending)(Pending)
0x375df34c6b0ffc36bf49fcb545cc8317fbaf62799825cfa68ff4a88747ca7685Bridge(pending)2024-05-08 1:01:2012 mins ago1715130080IN
MetaMask: Meta Bridge
0.0071103097 ETH(Pending)(Pending)
0x84437d14bbcb5e305523108b0063df4ddba0b566b4f2d10542323ecc968c562dBridge(pending)2024-05-08 0:33:1840 mins ago1715128398IN
MetaMask: Meta Bridge
0.044 ETH(Pending)(Pending)
0xe6cd3915fd346ef356973ef5df54f7f19de3eae3cf080c0e319203c7b9c3d51fBridge(pending)2024-05-06 0:29:282 days ago1714955368IN
MetaMask: Meta Bridge
0.0046 ETH(Pending)(Pending)
0x943196ca95977d64d14c22af3ceedafedaf6b66137c5770e92664e16e65fc925Bridge(pending)2024-05-05 19:34:282 days ago1714937668IN
MetaMask: Meta Bridge
0.0045 ETH(Pending)(Pending)
0x768379c918386182c912bd41258bb8a0f95528322188d4131536934bc22aa45dBridge(pending)2024-05-05 9:42:072 days ago1714902127IN
MetaMask: Meta Bridge
0 ETH(Pending)(Pending)
0x0733126b58a07f374fae5e2959680bd1163c826edcea489291c891df549726d8Bridge(pending)2024-05-05 7:24:422 days ago1714893882IN
MetaMask: Meta Bridge
0.006 ETH(Pending)(Pending)
0x775345b3e1fba154328fc67efcab04a58e3ce28c0e8d1ecaeaa0f9be7c40a9bdBridge(pending)2024-05-05 6:34:402 days ago1714890880IN
MetaMask: Meta Bridge
0.0071103097 ETH(Pending)(Pending)
0x28eb73200dc07e9f76110f897763d3d45c5f5b2a2615d44cc9f63c8cf2f76014Bridge(pending)2024-05-05 5:56:212 days ago1714888581IN
MetaMask: Meta Bridge
0.00302 ETH(Pending)(Pending)
0x7453235c9a0c63d96c8d10e02ff91efcbf36150f8401404d36ab0b716cf3c28dBridge(pending)2024-05-05 5:11:282 days ago1714885888IN
MetaMask: Meta Bridge
0.006 ETH(Pending)(Pending)
0x512a45339f276dc30f93dc127d77ba522cf06b7868d3b8fc5ae66c5472c04bc1Bridge(pending)2024-05-05 3:45:552 days ago1714880755IN
MetaMask: Meta Bridge
0.07 ETH(Pending)(Pending)
0x4601cd563e8ae25ddb9ac1c7c284cf4dea7b869d01922921058279de8cc3d782Bridge(pending)2024-05-05 3:10:412 days ago1714878641IN
MetaMask: Meta Bridge
0.0035 ETH(Pending)(Pending)
0x99045bb4f11c0ff5cf3e262353a9498ad2da4a9947d82f07bd62841f55fed83dBridge(pending)2024-05-05 2:17:512 days ago1714875471IN
MetaMask: Meta Bridge
0.005 ETH(Pending)(Pending)
0x187a71be721dc7bd746c69c01e400f7fa57927efcace80031def1714c815ccbbBridge(pending)2024-05-05 2:12:312 days ago1714875151IN
MetaMask: Meta Bridge
0.03 ETH(Pending)(Pending)
0xb4d3741efa07978e5b44fdc3c857d5270a4a0672c9240f375b12d0b846e05b43Bridge(pending)2024-05-05 1:59:482 days ago1714874388IN
MetaMask: Meta Bridge
0.0033 ETH(Pending)(Pending)
0x0fc198907affc1f7a7f2830a49348e7023c8605a31b7ff8395f9328783a8e150Bridge(pending)2024-05-05 1:58:272 days ago1714874307IN
MetaMask: Meta Bridge
0.000122786 ETH(Pending)(Pending)
0x5f7d9e25c95de9cdaaf72694fdc7ec1497bee2204552eea69d4cca93aa0aa2f1Bridge(pending)2024-05-05 1:57:562 days ago1714874276IN
MetaMask: Meta Bridge
0.0068846122 ETH(Pending)(Pending)
0xccc226f33df93600a7040779e7b821da987a73c2d2f91a32056214eeadb4f520Bridge(pending)2024-05-05 1:54:382 days ago1714874078IN
MetaMask: Meta Bridge
0.0042 ETH(Pending)(Pending)
0xb97190bcab67cb54503b40c932f196bb37c249bc5a878dfdf36e4b47fded3500Bridge(pending)2024-05-05 1:53:492 days ago1714874029IN
MetaMask: Meta Bridge
0.005 ETH(Pending)(Pending)
Bridge198219892024-05-08 1:13:2332 secs ago1715130803IN
MetaMask: Meta Bridge
0.20089355 ETH0.001776574.25909961
Bridge198219812024-05-08 1:11:472 mins ago1715130707IN
MetaMask: Meta Bridge
0.016 ETH0.000521123.91952571
Bridge198219772024-05-08 1:10:592 mins ago1715130659IN
MetaMask: Meta Bridge
0.059 ETH0.000565624.25339739
Bridge198219632024-05-08 1:08:115 mins ago1715130491IN
MetaMask: Meta Bridge
0.129 ETH0.000569694.28367894
Bridge198219392024-05-08 1:03:2310 mins ago1715130203IN
MetaMask: Meta Bridge
0 ETH0.000695994.14656608
Bridge198219392024-05-08 1:03:2310 mins ago1715130203IN
MetaMask: Meta Bridge
0.15107188 ETH0.001864314.14656608
View all transactions

Latest 25 internal transactions (View All)

Advanced mode:
Parent Transaction Hash Block From To Value
198219892024-05-08 1:13:2332 secs ago1715130803
MetaMask: Meta Bridge
0.20089355 ETH
198219812024-05-08 1:11:472 mins ago1715130707
MetaMask: Meta Bridge
0.016 ETH
198219772024-05-08 1:10:592 mins ago1715130659
MetaMask: Meta Bridge
0.059 ETH
198219632024-05-08 1:08:115 mins ago1715130491
MetaMask: Meta Bridge
0.129 ETH
198219392024-05-08 1:03:2310 mins ago1715130203
MetaMask: Meta Bridge
0.15107188 ETH
198219272024-05-08 1:00:4713 mins ago1715130047
MetaMask: Meta Bridge
2.5 ETH
198219252024-05-08 1:00:2313 mins ago1715130023
MetaMask: Meta Bridge
1.51 ETH
198219192024-05-08 0:59:1114 mins ago1715129951
MetaMask: Meta Bridge
0.00002404 ETH
198219142024-05-08 0:58:1115 mins ago1715129891
MetaMask: Meta Bridge
0.11 ETH
198219012024-05-08 0:55:3518 mins ago1715129735
MetaMask: Meta Bridge
0.02 ETH
198218992024-05-08 0:55:1118 mins ago1715129711
MetaMask: Meta Bridge
0.07 ETH
198218922024-05-08 0:53:4720 mins ago1715129627
MetaMask: Meta Bridge
3 ETH
198218792024-05-08 0:51:1122 mins ago1715129471
MetaMask: Meta Bridge
0.013 ETH
198218772024-05-08 0:50:4723 mins ago1715129447
MetaMask: Meta Bridge
0.032 ETH
198218542024-05-08 0:46:1127 mins ago1715129171
MetaMask: Meta Bridge
0.1 ETH
198218502024-05-08 0:45:2328 mins ago1715129123
MetaMask: Meta Bridge
0.004 ETH
198218462024-05-08 0:44:3529 mins ago1715129075
MetaMask: Meta Bridge
0.01 ETH
198218372024-05-08 0:42:4731 mins ago1715128967
MetaMask: Meta Bridge
0.01 ETH
198218372024-05-08 0:42:4731 mins ago1715128967
MetaMask: Meta Bridge
0.004 ETH
198218102024-05-08 0:37:2336 mins ago1715128643
MetaMask: Meta Bridge
0.004 ETH
198218012024-05-08 0:35:3538 mins ago1715128535
MetaMask: Meta Bridge
0.004 ETH
198218012024-05-08 0:35:3538 mins ago1715128535
MetaMask: Meta Bridge
0.009 ETH
198217972024-05-08 0:34:4739 mins ago1715128487
MetaMask: Meta Bridge
0.16002995 ETH
198217902024-05-08 0:33:2340 mins ago1715128403
MetaMask: Meta Bridge
0.00099572 ETH
198217822024-05-08 0:31:4742 mins ago1715128307
MetaMask: Meta Bridge
0.007 ETH
View All Internal Transactions
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
MetaBridge

Compiler Version
v0.8.1+commit.df193b15

Optimization Enabled:
Yes with 999999 runs

Other Settings:
default evmVersion
File 1 of 16 : MetaBridge.sol
pragma solidity ^0.8.0;

import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/security/Pausable.sol";
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";
import "@openzeppelin/contracts/utils/Address.sol";
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";
import {IAdapter, IBridge, ISpender} from "contracts/interfaces/Exports.sol";
import {Constants} from "contracts/utils/Exports.sol";
import "./Spender.sol";

contract MetaBridge is IBridge, Ownable, Pausable, ReentrancyGuard {
    using SafeERC20 for IERC20;
    using Address for address;

    ISpender public immutable spender;

    // Mapping of adapterId to adapter
    mapping(string => address) public adapters;
    mapping(string => bool) public adapterRemoved;

    /**
     * @notice Constructor to create the MetaBridge
     * @param _owner The Owner of the MetaBridge set on deployment
     * @dev Deploys the Spender. Once the Spender is deployed it cannot be changed
     */
    constructor(address _owner) {
        spender = new Spender();
        _transferOwnership(_owner);
    }

    /**
     * @notice Sets the adapter for an aggregator. It can't be changed later.
     * @param adapterId Aggregator's identifier
     * @param adapterAddress Address of the contract that contains the logic for this aggregator
     */
    function setAdapter(
        string calldata adapterId,
        address adapterAddress
    ) external override onlyOwner {
        require(adapterAddress.isContract(), "ADAPTER_IS_NOT_A_CONTRACT");
        require(!adapterRemoved[adapterId], "ADAPTER_REMOVED");
        require(adapters[adapterId] == address(0), "ADAPTER_EXISTS");
        require(bytes(adapterId).length > 0, "INVALID_ADAPTED_ID");

        adapters[adapterId] = adapterAddress;
        emit AdapterSet(adapterId, adapterAddress);
    }

    /**
     * @notice Removes the adapter for an existing aggregator. This can't be undone.
     * @param adapterId Adapter's identifier
     */
    function removeAdapter(
        string calldata adapterId
    ) external override onlyOwner {
        require(adapters[adapterId] != address(0), "ADAPTER_DOES_NOT_EXIST");
        delete adapters[adapterId];
        adapterRemoved[adapterId] = true;
        emit AdapterRemoved(adapterId);
    }

    /**
     * @notice Performs a bridge
     * @param adapterId Identifier of the aggregator to be used for the bridge
     * @param srcToken Identifier of the source chain
     * @param amount Amount of tokens to be transferred from the destination chain
     * @param data Dynamic data which is passed in to the delegatecall made to the adapter
     * @dev pausable and nonreentrant
     */
    function bridge(
        string calldata adapterId,
        address srcToken,
        uint256 amount,
        bytes calldata data
    ) external payable override whenNotPaused nonReentrant {
        address adapter = adapters[adapterId];
        require(adapter != address(0), "ADAPTER_NOT_FOUND");

        // Move ERC20 funds to the spender
        if (srcToken != Constants.NATIVE_TOKEN) {
            IERC20(srcToken).safeTransferFrom(
                msg.sender,
                address(spender),
                amount
            );
        } else {
            require(msg.value == amount, "MSGVALUE_AMOUNT_MISMATCH");
        }

        spender.bridge{value: msg.value}(
            adapter,
            abi.encodePacked(
                // bridge signature
                IAdapter.bridge.selector,
                abi.encode(msg.sender),
                data
            )
        );
    }

    /**
     * @notice Prevents the bridge function from being executed until the contract is unpaused.
     */
    function pauseBridge() external onlyOwner {
        _pause();
    }

    /**
     * @notice Unpauses the contract to make the bridge function callable.
     */
    function unpauseBridge() external onlyOwner {
        _unpause();
    }
}

File 2 of 16 : Ownable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (access/Ownable.sol)

pragma solidity ^0.8.0;

import "../utils/Context.sol";

/**
 * @dev Contract module which provides a basic access control mechanism, where
 * there is an account (an owner) that can be granted exclusive access to
 * specific functions.
 *
 * By default, the owner account will be the one that deploys the contract. This
 * can later be changed with {transferOwnership}.
 *
 * This module is used through inheritance. It will make available the modifier
 * `onlyOwner`, which can be applied to your functions to restrict their use to
 * the owner.
 */
abstract contract Ownable is Context {
    address private _owner;

    event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);

    /**
     * @dev Initializes the contract setting the deployer as the initial owner.
     */
    constructor() {
        _transferOwnership(_msgSender());
    }

    /**
     * @dev Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        _checkOwner();
        _;
    }

    /**
     * @dev Returns the address of the current owner.
     */
    function owner() public view virtual returns (address) {
        return _owner;
    }

    /**
     * @dev Throws if the sender is not the owner.
     */
    function _checkOwner() internal view virtual {
        require(owner() == _msgSender(), "Ownable: caller is not the owner");
    }

    /**
     * @dev Leaves the contract without owner. It will not be possible to call
     * `onlyOwner` functions. Can only be called by the current owner.
     *
     * NOTE: Renouncing ownership will leave the contract without an owner,
     * thereby disabling any functionality that is only available to the owner.
     */
    function renounceOwnership() public virtual onlyOwner {
        _transferOwnership(address(0));
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Can only be called by the current owner.
     */
    function transferOwnership(address newOwner) public virtual onlyOwner {
        require(newOwner != address(0), "Ownable: new owner is the zero address");
        _transferOwnership(newOwner);
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Internal function without access restriction.
     */
    function _transferOwnership(address newOwner) internal virtual {
        address oldOwner = _owner;
        _owner = newOwner;
        emit OwnershipTransferred(oldOwner, newOwner);
    }
}

File 3 of 16 : Pausable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (security/Pausable.sol)

pragma solidity ^0.8.0;

import "../utils/Context.sol";

/**
 * @dev Contract module which allows children to implement an emergency stop
 * mechanism that can be triggered by an authorized account.
 *
 * This module is used through inheritance. It will make available the
 * modifiers `whenNotPaused` and `whenPaused`, which can be applied to
 * the functions of your contract. Note that they will not be pausable by
 * simply including this module, only once the modifiers are put in place.
 */
abstract contract Pausable is Context {
    /**
     * @dev Emitted when the pause is triggered by `account`.
     */
    event Paused(address account);

    /**
     * @dev Emitted when the pause is lifted by `account`.
     */
    event Unpaused(address account);

    bool private _paused;

    /**
     * @dev Initializes the contract in unpaused state.
     */
    constructor() {
        _paused = false;
    }

    /**
     * @dev Modifier to make a function callable only when the contract is not paused.
     *
     * Requirements:
     *
     * - The contract must not be paused.
     */
    modifier whenNotPaused() {
        _requireNotPaused();
        _;
    }

    /**
     * @dev Modifier to make a function callable only when the contract is paused.
     *
     * Requirements:
     *
     * - The contract must be paused.
     */
    modifier whenPaused() {
        _requirePaused();
        _;
    }

    /**
     * @dev Returns true if the contract is paused, and false otherwise.
     */
    function paused() public view virtual returns (bool) {
        return _paused;
    }

    /**
     * @dev Throws if the contract is paused.
     */
    function _requireNotPaused() internal view virtual {
        require(!paused(), "Pausable: paused");
    }

    /**
     * @dev Throws if the contract is not paused.
     */
    function _requirePaused() internal view virtual {
        require(paused(), "Pausable: not paused");
    }

    /**
     * @dev Triggers stopped state.
     *
     * Requirements:
     *
     * - The contract must not be paused.
     */
    function _pause() internal virtual whenNotPaused {
        _paused = true;
        emit Paused(_msgSender());
    }

    /**
     * @dev Returns to normal state.
     *
     * Requirements:
     *
     * - The contract must be paused.
     */
    function _unpause() internal virtual whenPaused {
        _paused = false;
        emit Unpaused(_msgSender());
    }
}

File 4 of 16 : ReentrancyGuard.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (security/ReentrancyGuard.sol)

pragma solidity ^0.8.0;

/**
 * @dev Contract module that helps prevent reentrant calls to a function.
 *
 * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier
 * available, which can be applied to functions to make sure there are no nested
 * (reentrant) calls to them.
 *
 * Note that because there is a single `nonReentrant` guard, functions marked as
 * `nonReentrant` may not call one another. This can be worked around by making
 * those functions `private`, and then adding `external` `nonReentrant` entry
 * points to them.
 *
 * TIP: If you would like to learn more about reentrancy and alternative ways
 * to protect against it, check out our blog post
 * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul].
 */
abstract contract ReentrancyGuard {
    // Booleans are more expensive than uint256 or any type that takes up a full
    // word because each write operation emits an extra SLOAD to first read the
    // slot's contents, replace the bits taken up by the boolean, and then write
    // back. This is the compiler's defense against contract upgrades and
    // pointer aliasing, and it cannot be disabled.

    // The values being non-zero value makes deployment a bit more expensive,
    // but in exchange the refund on every call to nonReentrant will be lower in
    // amount. Since refunds are capped to a percentage of the total
    // transaction's gas, it is best to keep them low in cases like this one, to
    // increase the likelihood of the full refund coming into effect.
    uint256 private constant _NOT_ENTERED = 1;
    uint256 private constant _ENTERED = 2;

    uint256 private _status;

    constructor() {
        _status = _NOT_ENTERED;
    }

    /**
     * @dev Prevents a contract from calling itself, directly or indirectly.
     * Calling a `nonReentrant` function from another `nonReentrant`
     * function is not supported. It is possible to prevent this from happening
     * by making the `nonReentrant` function external, and making it call a
     * `private` function that does the actual work.
     */
    modifier nonReentrant() {
        _nonReentrantBefore();
        _;
        _nonReentrantAfter();
    }

    function _nonReentrantBefore() private {
        // On the first call to nonReentrant, _status will be _NOT_ENTERED
        require(_status != _ENTERED, "ReentrancyGuard: reentrant call");

        // Any calls to nonReentrant after this point will fail
        _status = _ENTERED;
    }

    function _nonReentrantAfter() private {
        // By storing the original value once again, a refund is triggered (see
        // https://eips.ethereum.org/EIPS/eip-2200)
        _status = _NOT_ENTERED;
    }

    /**
     * @dev Returns true if the reentrancy guard is currently set to "entered", which indicates there is a
     * `nonReentrant` function in the call stack.
     */
    function _reentrancyGuardEntered() internal view returns (bool) {
        return _status == _ENTERED;
    }
}

File 5 of 16 : IERC20Permit.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (token/ERC20/extensions/IERC20Permit.sol)

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC20 Permit extension allowing approvals to be made via signatures, as defined in
 * https://eips.ethereum.org/EIPS/eip-2612[EIP-2612].
 *
 * Adds the {permit} method, which can be used to change an account's ERC20 allowance (see {IERC20-allowance}) by
 * presenting a message signed by the account. By not relying on {IERC20-approve}, the token holder account doesn't
 * need to send a transaction, and thus is not required to hold Ether at all.
 */
interface IERC20Permit {
    /**
     * @dev Sets `value` as the allowance of `spender` over ``owner``'s tokens,
     * given ``owner``'s signed approval.
     *
     * IMPORTANT: The same issues {IERC20-approve} has related to transaction
     * ordering also apply here.
     *
     * Emits an {Approval} event.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     * - `deadline` must be a timestamp in the future.
     * - `v`, `r` and `s` must be a valid `secp256k1` signature from `owner`
     * over the EIP712-formatted function arguments.
     * - the signature must use ``owner``'s current nonce (see {nonces}).
     *
     * For more information on the signature format, see the
     * https://eips.ethereum.org/EIPS/eip-2612#specification[relevant EIP
     * section].
     */
    function permit(
        address owner,
        address spender,
        uint256 value,
        uint256 deadline,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) external;

    /**
     * @dev Returns the current nonce for `owner`. This value must be
     * included whenever a signature is generated for {permit}.
     *
     * Every successful call to {permit} increases ``owner``'s nonce by one. This
     * prevents a signature from being used multiple times.
     */
    function nonces(address owner) external view returns (uint256);

    /**
     * @dev Returns the domain separator used in the encoding of the signature for {permit}, as defined by {EIP712}.
     */
    // solhint-disable-next-line func-name-mixedcase
    function DOMAIN_SEPARATOR() external view returns (bytes32);
}

File 6 of 16 : IERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (token/ERC20/IERC20.sol)

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC20 standard as defined in the EIP.
 */
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 amount of tokens in existence.
     */
    function totalSupply() external view returns (uint256);

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

    /**
     * @dev Moves `amount` 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 amount) 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 `amount` 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 amount) external returns (bool);

    /**
     * @dev Moves `amount` tokens from `from` to `to` using the
     * allowance mechanism. `amount` 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 amount) external returns (bool);
}

File 7 of 16 : SafeERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.3) (token/ERC20/utils/SafeERC20.sol)

pragma solidity ^0.8.0;

import "../IERC20.sol";
import "../extensions/IERC20Permit.sol";
import "../../../utils/Address.sol";

/**
 * @title SafeERC20
 * @dev Wrappers around ERC20 operations that throw on failure (when the token
 * contract returns false). Tokens that return no value (and instead revert or
 * throw on failure) are also supported, non-reverting calls are assumed to be
 * successful.
 * To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract,
 * which allows you to call the safe operations as `token.safeTransfer(...)`, etc.
 */
library SafeERC20 {
    using Address for address;

    /**
     * @dev Transfer `value` amount of `token` from the calling contract to `to`. If `token` returns no value,
     * non-reverting calls are assumed to be successful.
     */
    function safeTransfer(IERC20 token, address to, uint256 value) internal {
        _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value));
    }

    /**
     * @dev Transfer `value` amount of `token` from `from` to `to`, spending the approval given by `from` to the
     * calling contract. If `token` returns no value, non-reverting calls are assumed to be successful.
     */
    function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal {
        _callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value));
    }

    /**
     * @dev Deprecated. This function has issues similar to the ones found in
     * {IERC20-approve}, and its usage is discouraged.
     *
     * Whenever possible, use {safeIncreaseAllowance} and
     * {safeDecreaseAllowance} instead.
     */
    function safeApprove(IERC20 token, address spender, uint256 value) internal {
        // safeApprove should only be called when setting an initial allowance,
        // or when resetting it to zero. To increase and decrease it, use
        // 'safeIncreaseAllowance' and 'safeDecreaseAllowance'
        require(
            (value == 0) || (token.allowance(address(this), spender) == 0),
            "SafeERC20: approve from non-zero to non-zero allowance"
        );
        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value));
    }

    /**
     * @dev Increase the calling contract's allowance toward `spender` by `value`. If `token` returns no value,
     * non-reverting calls are assumed to be successful.
     */
    function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal {
        uint256 oldAllowance = token.allowance(address(this), spender);
        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, oldAllowance + value));
    }

    /**
     * @dev Decrease the calling contract's allowance toward `spender` by `value`. If `token` returns no value,
     * non-reverting calls are assumed to be successful.
     */
    function safeDecreaseAllowance(IERC20 token, address spender, uint256 value) internal {
        unchecked {
            uint256 oldAllowance = token.allowance(address(this), spender);
            require(oldAllowance >= value, "SafeERC20: decreased allowance below zero");
            _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, oldAllowance - value));
        }
    }

    /**
     * @dev Set the calling contract's allowance toward `spender` to `value`. If `token` returns no value,
     * non-reverting calls are assumed to be successful. Meant to be used with tokens that require the approval
     * to be set to zero before setting it to a non-zero value, such as USDT.
     */
    function forceApprove(IERC20 token, address spender, uint256 value) internal {
        bytes memory approvalCall = abi.encodeWithSelector(token.approve.selector, spender, value);

        if (!_callOptionalReturnBool(token, approvalCall)) {
            _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, 0));
            _callOptionalReturn(token, approvalCall);
        }
    }

    /**
     * @dev Use a ERC-2612 signature to set the `owner` approval toward `spender` on `token`.
     * Revert on invalid signature.
     */
    function safePermit(
        IERC20Permit token,
        address owner,
        address spender,
        uint256 value,
        uint256 deadline,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) internal {
        uint256 nonceBefore = token.nonces(owner);
        token.permit(owner, spender, value, deadline, v, r, s);
        uint256 nonceAfter = token.nonces(owner);
        require(nonceAfter == nonceBefore + 1, "SafeERC20: permit did not succeed");
    }

    /**
     * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement
     * on the return value: the return value is optional (but if data is returned, it must not be false).
     * @param token The token targeted by the call.
     * @param data The call data (encoded using abi.encode or one of its variants).
     */
    function _callOptionalReturn(IERC20 token, bytes memory data) private {
        // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since
        // we're implementing it ourselves. We use {Address-functionCall} to perform this call, which verifies that
        // the target address contains contract code and also asserts for success in the low-level call.

        bytes memory returndata = address(token).functionCall(data, "SafeERC20: low-level call failed");
        require(returndata.length == 0 || abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed");
    }

    /**
     * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement
     * on the return value: the return value is optional (but if data is returned, it must not be false).
     * @param token The token targeted by the call.
     * @param data The call data (encoded using abi.encode or one of its variants).
     *
     * This is a variant of {_callOptionalReturn} that silents catches all reverts and returns a bool instead.
     */
    function _callOptionalReturnBool(IERC20 token, bytes memory data) private returns (bool) {
        // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since
        // we're implementing it ourselves. We cannot use {Address-functionCall} here since this should return false
        // and not revert is the subcall reverts.

        (bool success, bytes memory returndata) = address(token).call(data);
        return
            success && (returndata.length == 0 || abi.decode(returndata, (bool))) && Address.isContract(address(token));
    }
}

File 8 of 16 : Address.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (utils/Address.sol)

pragma solidity ^0.8.1;

/**
 * @dev Collection of functions related to the address type
 */
library Address {
    /**
     * @dev Returns true if `account` is a contract.
     *
     * [IMPORTANT]
     * ====
     * It is unsafe to assume that an address for which this function returns
     * false is an externally-owned account (EOA) and not a contract.
     *
     * Among others, `isContract` will return false for the following
     * types of addresses:
     *
     *  - an externally-owned account
     *  - a contract in construction
     *  - an address where a contract will be created
     *  - an address where a contract lived, but was destroyed
     *
     * Furthermore, `isContract` will also return true if the target contract within
     * the same transaction is already scheduled for destruction by `SELFDESTRUCT`,
     * which only has an effect at the end of a transaction.
     * ====
     *
     * [IMPORTANT]
     * ====
     * You shouldn't rely on `isContract` to protect against flash loan attacks!
     *
     * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets
     * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract
     * constructor.
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies on extcodesize/address.code.length, which returns 0
        // for contracts in construction, since the code is only stored at the end
        // of the constructor execution.

        return account.code.length > 0;
    }

    /**
     * @dev Replacement for Solidity's `transfer`: sends `amount` wei to
     * `recipient`, forwarding all available gas and reverting on errors.
     *
     * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost
     * of certain opcodes, possibly making contracts go over the 2300 gas limit
     * imposed by `transfer`, making them unable to receive funds via
     * `transfer`. {sendValue} removes this limitation.
     *
     * https://consensys.net/diligence/blog/2019/09/stop-using-soliditys-transfer-now/[Learn more].
     *
     * IMPORTANT: because control is transferred to `recipient`, care must be
     * taken to not create reentrancy vulnerabilities. Consider using
     * {ReentrancyGuard} or the
     * https://solidity.readthedocs.io/en/v0.8.0/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].
     */
    function sendValue(address payable recipient, uint256 amount) internal {
        require(address(this).balance >= amount, "Address: insufficient balance");

        (bool success, ) = recipient.call{value: amount}("");
        require(success, "Address: unable to send value, recipient may have reverted");
    }

    /**
     * @dev Performs a Solidity function call using a low level `call`. A
     * plain `call` is an unsafe replacement for a function call: use this
     * function instead.
     *
     * If `target` reverts with a revert reason, it is bubbled up by this
     * function (like regular Solidity function calls).
     *
     * Returns the raw returned data. To convert to the expected return value,
     * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].
     *
     * Requirements:
     *
     * - `target` must be a contract.
     * - calling `target` with `data` must not revert.
     *
     * _Available since v3.1._
     */
    function functionCall(address target, bytes memory data) internal returns (bytes memory) {
        return functionCallWithValue(target, data, 0, "Address: low-level call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with
     * `errorMessage` as a fallback revert reason when `target` reverts.
     *
     * _Available since v3.1._
     */
    function functionCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal returns (bytes memory) {
        return functionCallWithValue(target, data, 0, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but also transferring `value` wei to `target`.
     *
     * Requirements:
     *
     * - the calling contract must have an ETH balance of at least `value`.
     * - the called Solidity function must be `payable`.
     *
     * _Available since v3.1._
     */
    function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) {
        return functionCallWithValue(target, data, value, "Address: low-level call with value failed");
    }

    /**
     * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but
     * with `errorMessage` as a fallback revert reason when `target` reverts.
     *
     * _Available since v3.1._
     */
    function functionCallWithValue(
        address target,
        bytes memory data,
        uint256 value,
        string memory errorMessage
    ) internal returns (bytes memory) {
        require(address(this).balance >= value, "Address: insufficient balance for call");
        (bool success, bytes memory returndata) = target.call{value: value}(data);
        return verifyCallResultFromTarget(target, success, returndata, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but performing a static call.
     *
     * _Available since v3.3._
     */
    function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {
        return functionStaticCall(target, data, "Address: low-level static call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a static call.
     *
     * _Available since v3.3._
     */
    function functionStaticCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal view returns (bytes memory) {
        (bool success, bytes memory returndata) = target.staticcall(data);
        return verifyCallResultFromTarget(target, success, returndata, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but performing a delegate call.
     *
     * _Available since v3.4._
     */
    function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {
        return functionDelegateCall(target, data, "Address: low-level delegate call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a delegate call.
     *
     * _Available since v3.4._
     */
    function functionDelegateCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal returns (bytes memory) {
        (bool success, bytes memory returndata) = target.delegatecall(data);
        return verifyCallResultFromTarget(target, success, returndata, errorMessage);
    }

    /**
     * @dev Tool to verify that a low level call to smart-contract was successful, and revert (either by bubbling
     * the revert reason or using the provided one) in case of unsuccessful call or if target was not a contract.
     *
     * _Available since v4.8._
     */
    function verifyCallResultFromTarget(
        address target,
        bool success,
        bytes memory returndata,
        string memory errorMessage
    ) internal view returns (bytes memory) {
        if (success) {
            if (returndata.length == 0) {
                // only check isContract if the call was successful and the return data is empty
                // otherwise we already know that it was a contract
                require(isContract(target), "Address: call to non-contract");
            }
            return returndata;
        } else {
            _revert(returndata, errorMessage);
        }
    }

    /**
     * @dev Tool to verify that a low level call was successful, and revert if it wasn't, either by bubbling the
     * revert reason or using the provided one.
     *
     * _Available since v4.3._
     */
    function verifyCallResult(
        bool success,
        bytes memory returndata,
        string memory errorMessage
    ) internal pure returns (bytes memory) {
        if (success) {
            return returndata;
        } else {
            _revert(returndata, errorMessage);
        }
    }

    function _revert(bytes memory returndata, string memory errorMessage) private pure {
        // Look for revert reason and bubble it up if present
        if (returndata.length > 0) {
            // The easiest way to bubble the revert reason is using memory via assembly
            /// @solidity memory-safe-assembly
            assembly {
                let returndata_size := mload(returndata)
                revert(add(32, returndata), returndata_size)
            }
        } else {
            revert(errorMessage);
        }
    }
}

File 9 of 16 : Context.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)

pragma solidity ^0.8.0;

/**
 * @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 Context {
    function _msgSender() internal view virtual returns (address) {
        return msg.sender;
    }

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

File 10 of 16 : Exports.sol
pragma solidity ^0.8.0;

import {IAdapter} from "./IAdapter.sol";
import {IBridge} from "./IBridge.sol";
import {ISpender} from "./ISpender.sol";

File 11 of 16 : IAdapter.sol
pragma solidity ^0.8.0;

interface IAdapter {
    event Bridge(
        address recipient,
        address aggregator,
        uint256 destChain,
        address srcToken,
        address destToken,
        uint256 srcAmount
    );

    event Fee(address srcToken, address feeWallet, uint256 fee);

    function bridge(
        address recipient,
        address aggregator,
        address spender,
        uint256 destChain,
        address srcToken,
        address destToken,
        uint256 srcAmount,
        bytes calldata data,
        uint256 fee,
        address payable feeWallet
    ) external payable;
}

File 12 of 16 : IBridge.sol
pragma solidity ^0.8.0;

interface IBridge {
    event AdapterSet(string adapterId, address addr);

    event AdapterRemoved(string adapterId);

    function setAdapter(
        string calldata adapterId,
        address adapterAddress
    ) external;

    function removeAdapter(string calldata adapterId) external;

    function bridge(
        string calldata adapterId,
        address tokenFrom,
        uint256 amount,
        bytes calldata data
    ) external payable;
}

File 13 of 16 : ISpender.sol
pragma solidity ^0.8.0;

interface ISpender {
    function bridge(
        address adapterAddress,
        bytes calldata data
    ) external payable;
}

File 15 of 16 : Spender.sol
pragma solidity ^0.8.0;

import "@openzeppelin/contracts/utils/Address.sol";
import {IBridge, ISpender} from "contracts/interfaces/Exports.sol";

contract Spender is ISpender {
    using Address for address;

    IBridge public immutable metabridge;

    /**
     * @dev MetaBridge creates the Spender. Not intended to be called directly.
     */
    constructor() public {
        metabridge = IBridge(msg.sender);
    }

    /**
     * @notice Performs a bridge
     * @param adapter Address of the adapter to be used for the bridge
     * @param data Dynamic data which is passed in to the delegatecall made to the adapter
     */
    function bridge(
        address adapter,
        bytes calldata data
    ) external payable override {
        require(msg.sender == address(metabridge), "FORBIDDEN");
        adapter.functionDelegateCall(data, "ADAPTER_DELEGATECALL_FAILED");
    }
}

File 16 of 16 : Constants.sol
pragma solidity ^0.8.0;

library Constants {
    address internal constant NATIVE_TOKEN =
        0x0000000000000000000000000000000000000000;
}

File 17 of 16 : Exports.sol
pragma solidity ^0.8.0;

import {Constants} from "./Constants.sol";

Settings
{
  "optimizer": {
    "enabled": true,
    "runs": 999999
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  },
  "libraries": {}
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"_owner","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"string","name":"adapterId","type":"string"}],"name":"AdapterRemoved","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"string","name":"adapterId","type":"string"},{"indexed":false,"internalType":"address","name":"addr","type":"address"}],"name":"AdapterSet","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"inputs":[{"internalType":"string","name":"","type":"string"}],"name":"adapterRemoved","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"string","name":"","type":"string"}],"name":"adapters","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"string","name":"adapterId","type":"string"},{"internalType":"address","name":"srcToken","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"bridge","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pauseBridge","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"string","name":"adapterId","type":"string"}],"name":"removeAdapter","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"adapterId","type":"string"},{"internalType":"address","name":"adapterAddress","type":"address"}],"name":"setAdapter","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"spender","outputs":[{"internalType":"contract ISpender","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"unpauseBridge","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60a06040523480156200001157600080fd5b5060405162001deb38038062001deb833981016040819052620000349162000109565b6200004862000042620000a7565b620000ab565b6000805460ff60a01b19169055600180556040516200006790620000fb565b604051809103906000f08015801562000084573d6000803e3d6000fd5b5060601b6001600160601b031916608052620000a081620000ab565b5062000139565b3390565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b61051580620018d683390190565b6000602082840312156200011b578081fd5b81516001600160a01b038116811462000132578182fd5b9392505050565b60805160601c611770620001666000396000818161050401528181610569015261089701526117706000f3fe6080604052600436106100c75760003560e01c80638da5cb5b11610074578063b84f5d1e1161004e578063b84f5d1e146101cd578063e8edc816146101ed578063f2fde38b14610202576100c7565b80638da5cb5b14610176578063a82f143c14610198578063b5268389146101ad576100c7565b80635c975abb116100a55780635c975abb14610121578063715018a61461014c5780637dd0480f14610161576100c7565b806339122461146100cc5780633ce33bff146100ee5780633ef11fd714610101575b600080fd5b3480156100d857600080fd5b506100ec6100e7366004610f93565b610222565b005b6100ec6100fc366004610fe5565b610448565b34801561010d57600080fd5b506100ec61011c366004610f53565b61066d565b34801561012d57600080fd5b506101366107d1565b60405161014391906112ca565b60405180910390f35b34801561015857600080fd5b506100ec6107f2565b34801561016d57600080fd5b506100ec610806565b34801561018257600080fd5b5061018b610816565b6040516101439190611249565b3480156101a457600080fd5b506100ec610832565b3480156101b957600080fd5b506101366101c836600461106f565b610842565b3480156101d957600080fd5b5061018b6101e836600461106f565b610862565b3480156101f957600080fd5b5061018b610895565b34801561020e57600080fd5b506100ec61021d366004610f12565b6108b9565b61022a61091a565b6102498173ffffffffffffffffffffffffffffffffffffffff1661098d565b610288576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161027f90611336565b60405180910390fd5b6003838360405161029a929190611239565b9081526040519081900360200190205460ff16156102e4576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161027f90611614565b600073ffffffffffffffffffffffffffffffffffffffff166002848460405161030e929190611239565b9081526040519081900360200190205473ffffffffffffffffffffffffffffffffffffffff161461036b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161027f90611571565b816103a2576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161027f9061153a565b80600284846040516103b5929190611239565b908152604051908190036020018120805473ffffffffffffffffffffffffffffffffffffffff939093167fffffffffffffffffffffffff0000000000000000000000000000000000000000909316929092179091557ff9648cbc19f288e0f271f7e95311238912bf1ea8225e636a13bb1d25912600219061043b908590859085906112e9565b60405180910390a1505050565b6104506109ad565b6104586109ec565b60006002878760405161046c929190611239565b9081526040519081900360200190205473ffffffffffffffffffffffffffffffffffffffff169050806104cb576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161027f9061146f565b73ffffffffffffffffffffffffffffffffffffffff85161561052e5761052973ffffffffffffffffffffffffffffffffffffffff8616337f000000000000000000000000000000000000000000000000000000000000000087610a30565b610567565b833414610567576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161027f906113a4565b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff16634cfee326348363ab13824060e01b336040516020016105be9190611249565b604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0818403018152908290526105fe92918a908a906020016111c9565b6040516020818303038152906040526040518463ffffffff1660e01b815260040161062a92919061129b565b6000604051808303818588803b15801561064357600080fd5b505af1158015610657573d6000803e3d6000fd5b505050505050610665610ad9565b505050505050565b61067561091a565b600073ffffffffffffffffffffffffffffffffffffffff166002838360405161069f929190611239565b9081526040519081900360200190205473ffffffffffffffffffffffffffffffffffffffff1614156106fd576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161027f906113db565b6002828260405161070f929190611239565b90815260405190819003602001812080547fffffffffffffffffffffffff00000000000000000000000000000000000000001690556001906003906107579085908590611239565b90815260405190819003602001812080549215157fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00909316929092179091557fb00061f7cc154fc23eb34671ab724fc7eb7b806abae871abae8f1eafce972135906107c590849084906112d5565b60405180910390a15050565b60005474010000000000000000000000000000000000000000900460ff1690565b6107fa61091a565b6108046000610adf565b565b61080e61091a565b610804610b54565b60005473ffffffffffffffffffffffffffffffffffffffff1690565b61083a61091a565b610804610bdb565b805160208183018101805160038252928201919093012091525460ff1681565b805160208183018101805160028252928201919093012091525473ffffffffffffffffffffffffffffffffffffffff1681565b7f000000000000000000000000000000000000000000000000000000000000000081565b6108c161091a565b73ffffffffffffffffffffffffffffffffffffffff811661090e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161027f90611412565b61091781610adf565b50565b610922610c30565b73ffffffffffffffffffffffffffffffffffffffff16610940610816565b73ffffffffffffffffffffffffffffffffffffffff1614610804576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161027f906115a8565b73ffffffffffffffffffffffffffffffffffffffff81163b15155b919050565b6109b56107d1565b15610804576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161027f90611503565b60026001541415610a29576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161027f906116a8565b6002600155565b610ad3846323b872dd60e01b858585604051602401610a519392919061126a565b604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe08184030181529190526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fffffffff0000000000000000000000000000000000000000000000000000000090931692909217909152610c34565b50505050565b60018055565b6000805473ffffffffffffffffffffffffffffffffffffffff8381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b610b5c6109ad565b600080547fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff16740100000000000000000000000000000000000000001790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258610bc4610c30565b604051610bd19190611249565b60405180910390a1565b610be3610cf2565b600080547fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff1690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa610bc45b3390565b6000610c96826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff16610d309092919063ffffffff16565b9050805160001480610cb7575080806020019051810190610cb79190610f33565b610ced576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161027f9061164b565b505050565b610cfa6107d1565b610804576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161027f9061136d565b6060610d3f8484600085610d47565b949350505050565b606082471015610d83576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161027f906114a6565b6000808673ffffffffffffffffffffffffffffffffffffffff168587604051610dac919061121d565b60006040518083038185875af1925050503d8060008114610de9576040519150601f19603f3d011682016040523d82523d6000602084013e610dee565b606091505b5091509150610dff87838387610e0a565b979650505050505050565b60608315610e5e578251610e5757610e218561098d565b610e57576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161027f906115dd565b5081610d3f565b610d3f8383815115610e735781518083602001fd5b806040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161027f9190611323565b803573ffffffffffffffffffffffffffffffffffffffff811681146109a857600080fd5b60008083601f840112610edc578081fd5b50813567ffffffffffffffff811115610ef3578182fd5b602083019150836020828501011115610f0b57600080fd5b9250929050565b600060208284031215610f23578081fd5b610f2c82610ea7565b9392505050565b600060208284031215610f44578081fd5b81518015158114610f2c578182fd5b60008060208385031215610f65578081fd5b823567ffffffffffffffff811115610f7b578182fd5b610f8785828601610ecb565b90969095509350505050565b600080600060408486031215610fa7578081fd5b833567ffffffffffffffff811115610fbd578182fd5b610fc986828701610ecb565b9094509250610fdc905060208501610ea7565b90509250925092565b60008060008060008060808789031215610ffd578182fd5b863567ffffffffffffffff80821115611014578384fd5b6110208a838b01610ecb565b909850965086915061103460208a01610ea7565b9550604089013594506060890135915080821115611050578384fd5b5061105d89828a01610ecb565b979a9699509497509295939492505050565b600060208284031215611080578081fd5b813567ffffffffffffffff80821115611097578283fd5b818401915084601f8301126110aa578283fd5b8135818111156110bc576110bc61170b565b604051601f82017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0908116603f011681019083821181831017156111025761110261170b565b8160405282815287602084870101111561111a578586fd5b826020860160208301379182016020019490945295945050505050565b6000815180845261114f8160208601602086016116df565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0169290920160200192915050565b600082845282826020860137806020848601015260207fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f85011685010190509392505050565b60007fffffffff000000000000000000000000000000000000000000000000000000008616825284516112038160048501602089016116df565b820183856004830137909201600401918252509392505050565b6000825161122f8184602087016116df565b9190910192915050565b6000828483379101908152919050565b73ffffffffffffffffffffffffffffffffffffffff91909116815260200190565b73ffffffffffffffffffffffffffffffffffffffff9384168152919092166020820152604081019190915260600190565b600073ffffffffffffffffffffffffffffffffffffffff8416825260406020830152610d3f6040830184611137565b901515815260200190565b600060208252610d3f602083018486611181565b6000604082526112fd604083018587611181565b905073ffffffffffffffffffffffffffffffffffffffff83166020830152949350505050565b600060208252610f2c6020830184611137565b60208082526019908201527f414441505445525f49535f4e4f545f415f434f4e545241435400000000000000604082015260600190565b60208082526014908201527f5061757361626c653a206e6f7420706175736564000000000000000000000000604082015260600190565b60208082526018908201527f4d534756414c55455f414d4f554e545f4d49534d415443480000000000000000604082015260600190565b60208082526016908201527f414441505445525f444f45535f4e4f545f455849535400000000000000000000604082015260600190565b60208082526026908201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160408201527f6464726573730000000000000000000000000000000000000000000000000000606082015260800190565b60208082526011908201527f414441505445525f4e4f545f464f554e44000000000000000000000000000000604082015260600190565b60208082526026908201527f416464726573733a20696e73756666696369656e742062616c616e636520666f60408201527f722063616c6c0000000000000000000000000000000000000000000000000000606082015260800190565b60208082526010908201527f5061757361626c653a2070617573656400000000000000000000000000000000604082015260600190565b60208082526012908201527f494e56414c49445f414441505445445f49440000000000000000000000000000604082015260600190565b6020808252600e908201527f414441505445525f455849535453000000000000000000000000000000000000604082015260600190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b6020808252601d908201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604082015260600190565b6020808252600f908201527f414441505445525f52454d4f5645440000000000000000000000000000000000604082015260600190565b6020808252602a908201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e60408201527f6f74207375636365656400000000000000000000000000000000000000000000606082015260800190565b6020808252601f908201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604082015260600190565b60005b838110156116fa5781810151838201526020016116e2565b83811115610ad35750506000910152565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fdfea2646970667358221220608714aa9d6fbcc9fb12a697d4193a8e6fa52f25acaa2ad1114662393eb8d79464736f6c6343000801003360a060405234801561001057600080fd5b5033606081901b6080526104dd610038600039600081816086015261017a01526104dd6000f3fe6080604052600436106100295760003560e01c80634cfee3261461002e5780634ed6ef1914610043575b600080fd5b61004161003c3660046102e7565b61006e565b005b34801561004f57600080fd5b50610058610178565b604051610065919061039b565b60405180910390f35b3373ffffffffffffffffffffffffffffffffffffffff7f000000000000000000000000000000000000000000000000000000000000000016146100e6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016100dd9061040d565b60405180910390fd5b61017282828080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152505060408051808201909152601b81527f414441505445525f44454c454741544543414c4c5f4641494c45440000000000602082015273ffffffffffffffffffffffffffffffffffffffff8816939250905061019c565b50505050565b7f000000000000000000000000000000000000000000000000000000000000000081565b60606000808573ffffffffffffffffffffffffffffffffffffffff16856040516101c6919061037f565b600060405180830381855af49150503d8060008114610201576040519150601f19603f3d011682016040523d82523d6000602084013e610206565b606091505b509150915061021786838387610221565b9695505050505050565b6060831561027557825161026e5761023885610287565b61026e576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016100dd90610444565b508161027f565b61027f83836102a3565b949350505050565b73ffffffffffffffffffffffffffffffffffffffff163b151590565b8151156102b35781518083602001fd5b806040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016100dd91906103bc565b6000806000604084860312156102fb578283fd5b833573ffffffffffffffffffffffffffffffffffffffff8116811461031e578384fd5b9250602084013567ffffffffffffffff8082111561033a578384fd5b818601915086601f83011261034d578384fd5b81358181111561035b578485fd5b87602082850101111561036c578485fd5b6020830194508093505050509250925092565b6000825161039181846020870161047b565b9190910192915050565b73ffffffffffffffffffffffffffffffffffffffff91909116815260200190565b60006020825282518060208401526103db81604085016020870161047b565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0169190910160400192915050565b60208082526009908201527f464f5242494444454e0000000000000000000000000000000000000000000000604082015260600190565b6020808252601d908201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604082015260600190565b60005b8381101561049657818101518382015260200161047e565b83811115610172575050600091015256fea2646970667358221220138681742300832e0f1ca47b71c96176e4c5db393aca45fc4aa154a2eed253ab64736f6c6343000801003300000000000000000000000032ed10824819fdaa52e7ff9c50cda6a5cf7a1b35

Deployed Bytecode

0x6080604052600436106100c75760003560e01c80638da5cb5b11610074578063b84f5d1e1161004e578063b84f5d1e146101cd578063e8edc816146101ed578063f2fde38b14610202576100c7565b80638da5cb5b14610176578063a82f143c14610198578063b5268389146101ad576100c7565b80635c975abb116100a55780635c975abb14610121578063715018a61461014c5780637dd0480f14610161576100c7565b806339122461146100cc5780633ce33bff146100ee5780633ef11fd714610101575b600080fd5b3480156100d857600080fd5b506100ec6100e7366004610f93565b610222565b005b6100ec6100fc366004610fe5565b610448565b34801561010d57600080fd5b506100ec61011c366004610f53565b61066d565b34801561012d57600080fd5b506101366107d1565b60405161014391906112ca565b60405180910390f35b34801561015857600080fd5b506100ec6107f2565b34801561016d57600080fd5b506100ec610806565b34801561018257600080fd5b5061018b610816565b6040516101439190611249565b3480156101a457600080fd5b506100ec610832565b3480156101b957600080fd5b506101366101c836600461106f565b610842565b3480156101d957600080fd5b5061018b6101e836600461106f565b610862565b3480156101f957600080fd5b5061018b610895565b34801561020e57600080fd5b506100ec61021d366004610f12565b6108b9565b61022a61091a565b6102498173ffffffffffffffffffffffffffffffffffffffff1661098d565b610288576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161027f90611336565b60405180910390fd5b6003838360405161029a929190611239565b9081526040519081900360200190205460ff16156102e4576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161027f90611614565b600073ffffffffffffffffffffffffffffffffffffffff166002848460405161030e929190611239565b9081526040519081900360200190205473ffffffffffffffffffffffffffffffffffffffff161461036b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161027f90611571565b816103a2576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161027f9061153a565b80600284846040516103b5929190611239565b908152604051908190036020018120805473ffffffffffffffffffffffffffffffffffffffff939093167fffffffffffffffffffffffff0000000000000000000000000000000000000000909316929092179091557ff9648cbc19f288e0f271f7e95311238912bf1ea8225e636a13bb1d25912600219061043b908590859085906112e9565b60405180910390a1505050565b6104506109ad565b6104586109ec565b60006002878760405161046c929190611239565b9081526040519081900360200190205473ffffffffffffffffffffffffffffffffffffffff169050806104cb576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161027f9061146f565b73ffffffffffffffffffffffffffffffffffffffff85161561052e5761052973ffffffffffffffffffffffffffffffffffffffff8616337f0000000000000000000000009a47f3289794e9bbc6a3c571f6d96ad4e7baed1687610a30565b610567565b833414610567576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161027f906113a4565b7f0000000000000000000000009a47f3289794e9bbc6a3c571f6d96ad4e7baed1673ffffffffffffffffffffffffffffffffffffffff16634cfee326348363ab13824060e01b336040516020016105be9190611249565b604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0818403018152908290526105fe92918a908a906020016111c9565b6040516020818303038152906040526040518463ffffffff1660e01b815260040161062a92919061129b565b6000604051808303818588803b15801561064357600080fd5b505af1158015610657573d6000803e3d6000fd5b505050505050610665610ad9565b505050505050565b61067561091a565b600073ffffffffffffffffffffffffffffffffffffffff166002838360405161069f929190611239565b9081526040519081900360200190205473ffffffffffffffffffffffffffffffffffffffff1614156106fd576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161027f906113db565b6002828260405161070f929190611239565b90815260405190819003602001812080547fffffffffffffffffffffffff00000000000000000000000000000000000000001690556001906003906107579085908590611239565b90815260405190819003602001812080549215157fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00909316929092179091557fb00061f7cc154fc23eb34671ab724fc7eb7b806abae871abae8f1eafce972135906107c590849084906112d5565b60405180910390a15050565b60005474010000000000000000000000000000000000000000900460ff1690565b6107fa61091a565b6108046000610adf565b565b61080e61091a565b610804610b54565b60005473ffffffffffffffffffffffffffffffffffffffff1690565b61083a61091a565b610804610bdb565b805160208183018101805160038252928201919093012091525460ff1681565b805160208183018101805160028252928201919093012091525473ffffffffffffffffffffffffffffffffffffffff1681565b7f0000000000000000000000009a47f3289794e9bbc6a3c571f6d96ad4e7baed1681565b6108c161091a565b73ffffffffffffffffffffffffffffffffffffffff811661090e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161027f90611412565b61091781610adf565b50565b610922610c30565b73ffffffffffffffffffffffffffffffffffffffff16610940610816565b73ffffffffffffffffffffffffffffffffffffffff1614610804576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161027f906115a8565b73ffffffffffffffffffffffffffffffffffffffff81163b15155b919050565b6109b56107d1565b15610804576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161027f90611503565b60026001541415610a29576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161027f906116a8565b6002600155565b610ad3846323b872dd60e01b858585604051602401610a519392919061126a565b604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe08184030181529190526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fffffffff0000000000000000000000000000000000000000000000000000000090931692909217909152610c34565b50505050565b60018055565b6000805473ffffffffffffffffffffffffffffffffffffffff8381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b610b5c6109ad565b600080547fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff16740100000000000000000000000000000000000000001790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258610bc4610c30565b604051610bd19190611249565b60405180910390a1565b610be3610cf2565b600080547fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff1690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa610bc45b3390565b6000610c96826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff16610d309092919063ffffffff16565b9050805160001480610cb7575080806020019051810190610cb79190610f33565b610ced576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161027f9061164b565b505050565b610cfa6107d1565b610804576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161027f9061136d565b6060610d3f8484600085610d47565b949350505050565b606082471015610d83576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161027f906114a6565b6000808673ffffffffffffffffffffffffffffffffffffffff168587604051610dac919061121d565b60006040518083038185875af1925050503d8060008114610de9576040519150601f19603f3d011682016040523d82523d6000602084013e610dee565b606091505b5091509150610dff87838387610e0a565b979650505050505050565b60608315610e5e578251610e5757610e218561098d565b610e57576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161027f906115dd565b5081610d3f565b610d3f8383815115610e735781518083602001fd5b806040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161027f9190611323565b803573ffffffffffffffffffffffffffffffffffffffff811681146109a857600080fd5b60008083601f840112610edc578081fd5b50813567ffffffffffffffff811115610ef3578182fd5b602083019150836020828501011115610f0b57600080fd5b9250929050565b600060208284031215610f23578081fd5b610f2c82610ea7565b9392505050565b600060208284031215610f44578081fd5b81518015158114610f2c578182fd5b60008060208385031215610f65578081fd5b823567ffffffffffffffff811115610f7b578182fd5b610f8785828601610ecb565b90969095509350505050565b600080600060408486031215610fa7578081fd5b833567ffffffffffffffff811115610fbd578182fd5b610fc986828701610ecb565b9094509250610fdc905060208501610ea7565b90509250925092565b60008060008060008060808789031215610ffd578182fd5b863567ffffffffffffffff80821115611014578384fd5b6110208a838b01610ecb565b909850965086915061103460208a01610ea7565b9550604089013594506060890135915080821115611050578384fd5b5061105d89828a01610ecb565b979a9699509497509295939492505050565b600060208284031215611080578081fd5b813567ffffffffffffffff80821115611097578283fd5b818401915084601f8301126110aa578283fd5b8135818111156110bc576110bc61170b565b604051601f82017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0908116603f011681019083821181831017156111025761110261170b565b8160405282815287602084870101111561111a578586fd5b826020860160208301379182016020019490945295945050505050565b6000815180845261114f8160208601602086016116df565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0169290920160200192915050565b600082845282826020860137806020848601015260207fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f85011685010190509392505050565b60007fffffffff000000000000000000000000000000000000000000000000000000008616825284516112038160048501602089016116df565b820183856004830137909201600401918252509392505050565b6000825161122f8184602087016116df565b9190910192915050565b6000828483379101908152919050565b73ffffffffffffffffffffffffffffffffffffffff91909116815260200190565b73ffffffffffffffffffffffffffffffffffffffff9384168152919092166020820152604081019190915260600190565b600073ffffffffffffffffffffffffffffffffffffffff8416825260406020830152610d3f6040830184611137565b901515815260200190565b600060208252610d3f602083018486611181565b6000604082526112fd604083018587611181565b905073ffffffffffffffffffffffffffffffffffffffff83166020830152949350505050565b600060208252610f2c6020830184611137565b60208082526019908201527f414441505445525f49535f4e4f545f415f434f4e545241435400000000000000604082015260600190565b60208082526014908201527f5061757361626c653a206e6f7420706175736564000000000000000000000000604082015260600190565b60208082526018908201527f4d534756414c55455f414d4f554e545f4d49534d415443480000000000000000604082015260600190565b60208082526016908201527f414441505445525f444f45535f4e4f545f455849535400000000000000000000604082015260600190565b60208082526026908201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160408201527f6464726573730000000000000000000000000000000000000000000000000000606082015260800190565b60208082526011908201527f414441505445525f4e4f545f464f554e44000000000000000000000000000000604082015260600190565b60208082526026908201527f416464726573733a20696e73756666696369656e742062616c616e636520666f60408201527f722063616c6c0000000000000000000000000000000000000000000000000000606082015260800190565b60208082526010908201527f5061757361626c653a2070617573656400000000000000000000000000000000604082015260600190565b60208082526012908201527f494e56414c49445f414441505445445f49440000000000000000000000000000604082015260600190565b6020808252600e908201527f414441505445525f455849535453000000000000000000000000000000000000604082015260600190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b6020808252601d908201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604082015260600190565b6020808252600f908201527f414441505445525f52454d4f5645440000000000000000000000000000000000604082015260600190565b6020808252602a908201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e60408201527f6f74207375636365656400000000000000000000000000000000000000000000606082015260800190565b6020808252601f908201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604082015260600190565b60005b838110156116fa5781810151838201526020016116e2565b83811115610ad35750506000910152565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fdfea2646970667358221220608714aa9d6fbcc9fb12a697d4193a8e6fa52f25acaa2ad1114662393eb8d79464736f6c63430008010033

Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)

00000000000000000000000032ed10824819fdaa52e7ff9c50cda6a5cf7a1b35

-----Decoded View---------------
Arg [0] : _owner (address): 0x32ed10824819fDaa52E7fF9c50CdA6A5cf7a1B35

-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 00000000000000000000000032ed10824819fdaa52e7ff9c50cda6a5cf7a1b35


Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

Block Uncle Number Difficulty Gas Used Reward
View All Uncles
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  ]
[ 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.