ETH Price: $1,961.60 (+0.35%)
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Token Holdings

More Info

Private Name Tags

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Bridge Weth245005472026-02-20 20:46:478 hrs ago1771620407IN
0x64668fbD...91efeDd8d
0 ETH0.000031010.04619311
Bridge Weth244997742026-02-20 18:11:5911 hrs ago1771611119IN
0x64668fbD...91efeDd8d
0 ETH0.000010370.07992848
Bridge Weth244996232026-02-20 17:41:4711 hrs ago1771609307IN
0x64668fbD...91efeDd8d
0 ETH0.000160920.23965883
Bridge Weth244989522026-02-20 15:26:4714 hrs ago1771601207IN
0x64668fbD...91efeDd8d
0 ETH0.000452810.67438366
Bridge Weth244949382026-02-20 2:01:1127 hrs ago1771552871IN
0x64668fbD...91efeDd8d
0 ETH0.000003720.04569813
Bridge Weth244949142026-02-20 1:56:2327 hrs ago1771552583IN
0x64668fbD...91efeDd8d
0 ETH0.000003480.04281548
Bridge Weth244948902026-02-20 1:51:3527 hrs ago1771552295IN
0x64668fbD...91efeDd8d
0 ETH0.00000360.04430142
Bridge Weth244948392026-02-20 1:41:2327 hrs ago1771551683IN
0x64668fbD...91efeDd8d
0 ETH0.00000320.03928709
Bridge Weth244937462026-02-19 22:01:4731 hrs ago1771538507IN
0x64668fbD...91efeDd8d
0 ETH0.000003650.04478565
Bridge Weth244935462026-02-19 21:21:2332 hrs ago1771536083IN
0x64668fbD...91efeDd8d
0 ETH0.000003790.04647979
Bridge Weth244922042026-02-19 16:51:2336 hrs ago1771519883IN
0x64668fbD...91efeDd8d
0 ETH0.000016670.12849548
Bridge Weth244917782026-02-19 15:26:1138 hrs ago1771514771IN
0x64668fbD...91efeDd8d
0 ETH0.000022740.27914723
Bridge Weth244917292026-02-19 15:16:2338 hrs ago1771514183IN
0x64668fbD...91efeDd8d
0 ETH0.000096351.18131096
Bridge Weth244913562026-02-19 14:01:1139 hrs ago1771509671IN
0x64668fbD...91efeDd8d
0 ETH0.000017350.21274075
Bridge Weth244912582026-02-19 13:41:2339 hrs ago1771508483IN
0x64668fbD...91efeDd8d
0 ETH0.000019150.2347979
Bridge Weth244912072026-02-19 13:31:1139 hrs ago1771507871IN
0x64668fbD...91efeDd8d
0 ETH0.000043150.52905931
Bridge Weth244909332026-02-19 12:36:2340 hrs ago1771504583IN
0x64668fbD...91efeDd8d
0 ETH0.000011720.14377845
Bridge Weth244909072026-02-19 12:31:1140 hrs ago1771504271IN
0x64668fbD...91efeDd8d
0 ETH0.000261150.38892335
Bridge Weth244903092026-02-19 10:31:2342 hrs ago1771497083IN
0x64668fbD...91efeDd8d
0 ETH0.000006450.07913589
Bridge Weth244902842026-02-19 10:26:2343 hrs ago1771496783IN
0x64668fbD...91efeDd8d
0 ETH0.000003430.04217898
Bridge Weth244902342026-02-19 10:16:2343 hrs ago1771496183IN
0x64668fbD...91efeDd8d
0 ETH0.000009590.11761777
Bridge Weth244895122026-02-19 7:51:2345 hrs ago1771487483IN
0x64668fbD...91efeDd8d
0 ETH0.000004010.04919995
Bridge Weth244892372026-02-19 6:56:2346 hrs ago1771484183IN
0x64668fbD...91efeDd8d
0 ETH0.00000250.03077662
Bridge Weth244892142026-02-19 6:51:3546 hrs ago1771483895IN
0x64668fbD...91efeDd8d
0 ETH0.000002630.03236932
Bridge Weth244891892026-02-19 6:46:3546 hrs ago1771483595IN
0x64668fbD...91efeDd8d
0 ETH0.00000320.03930086
View all transactions

Latest 25 internal transactions (View All)

Advanced mode:
Parent Transaction Hash Method Block
From
To
Deposit ETH To245005472026-02-20 20:46:478 hrs ago1771620407
0x64668fbD...91efeDd8d
126.48043986 ETH
Transfer245005472026-02-20 20:46:478 hrs ago1771620407
0x64668fbD...91efeDd8d
126.48043986 ETH
Deposit Ether Fo...244997742026-02-20 18:11:5911 hrs ago1771611119
0x64668fbD...91efeDd8d
35.99384183 ETH
Transfer244997742026-02-20 18:11:5911 hrs ago1771611119
0x64668fbD...91efeDd8d
35.99384183 ETH
Deposit ETH To244996232026-02-20 17:41:4711 hrs ago1771609307
0x64668fbD...91efeDd8d
21.20815967 ETH
Transfer244996232026-02-20 17:41:4711 hrs ago1771609307
0x64668fbD...91efeDd8d
21.20815967 ETH
Deposit ETH To244989522026-02-20 15:26:4714 hrs ago1771601207
0x64668fbD...91efeDd8d
17.99895973 ETH
Transfer244989522026-02-20 15:26:4714 hrs ago1771601207
0x64668fbD...91efeDd8d
17.99895973 ETH
Transfer244949382026-02-20 2:01:1127 hrs ago1771552871
0x64668fbD...91efeDd8d
126.9054757 ETH
Transfer244949382026-02-20 2:01:1127 hrs ago1771552871
0x64668fbD...91efeDd8d
126.9054757 ETH
Transfer244949142026-02-20 1:56:2327 hrs ago1771552583
0x64668fbD...91efeDd8d
0 ETH
Transfer244949142026-02-20 1:56:2327 hrs ago1771552583
0x64668fbD...91efeDd8d
0 ETH
Transfer244948902026-02-20 1:51:3527 hrs ago1771552295
0x64668fbD...91efeDd8d
0 ETH
Transfer244948902026-02-20 1:51:3527 hrs ago1771552295
0x64668fbD...91efeDd8d
0 ETH
Transfer244948392026-02-20 1:41:2327 hrs ago1771551683
0x64668fbD...91efeDd8d
126.90547583 ETH
Transfer244948392026-02-20 1:41:2327 hrs ago1771551683
0x64668fbD...91efeDd8d
126.90547583 ETH
Transfer244937462026-02-19 22:01:4731 hrs ago1771538507
0x64668fbD...91efeDd8d
89.70963922 ETH
Transfer244937462026-02-19 22:01:4731 hrs ago1771538507
0x64668fbD...91efeDd8d
89.70963922 ETH
Transfer244935462026-02-19 21:21:2332 hrs ago1771536083
0x64668fbD...91efeDd8d
93.5053828 ETH
Transfer244935462026-02-19 21:21:2332 hrs ago1771536083
0x64668fbD...91efeDd8d
93.5053828 ETH
Deposit Ether Fo...244922042026-02-19 16:51:2336 hrs ago1771519883
0x64668fbD...91efeDd8d
20.16483879 ETH
Transfer244922042026-02-19 16:51:2336 hrs ago1771519883
0x64668fbD...91efeDd8d
20.16483879 ETH
Transfer244917782026-02-19 15:26:1138 hrs ago1771514771
0x64668fbD...91efeDd8d
0 ETH
Transfer244917782026-02-19 15:26:1138 hrs ago1771514771
0x64668fbD...91efeDd8d
0 ETH
Transfer244917292026-02-19 15:16:2338 hrs ago1771514183
0x64668fbD...91efeDd8d
130.08023761 ETH
View All Internal Transactions
Loading...
Loading
Loading...
Loading
Cross-Chain Transactions

Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
AtomicWethDepositor

Compiler Version
v0.8.23+commit.f704f362

Optimization Enabled:
Yes with 1000000 runs

Other Settings:
default evmVersion
// SPDX-License-Identifier: GPL-3.0-only
pragma solidity ^0.8.0;

import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@uma/core/contracts/common/implementation/MultiCaller.sol";
import "@uma/core/contracts/common/implementation/Lockable.sol";

interface Weth {
    function withdraw(uint256 _wad) external;

    function transferFrom(address _from, address _to, uint256 _wad) external;
}

/**
 * @notice Contract deployed on Ethereum helps relay bots atomically unwrap and bridge WETH over the canonical chain
 * bridges for chains that only support bridging of ETH not WETH.
 * @dev This contract is ownable so that the owner can update whitelisted bridge addresses and function selectors.
 */
contract AtomicWethDepositor is Ownable, MultiCaller, Lockable {
    using SafeERC20 for IERC20;
    // The Bridge used to send ETH to another chain. Only the function selector can be used when
    // calling the bridge contract.
    struct Bridge {
        // Address of the contract to call when bridging ETH.
        address bridge;
        // Address of the contract to approve when bridging ETH. An approval is only sent if `feeToken` is
        // not the zero address.
        address gateway;
        // Address of the fee token used to pay for L1-L2 bridging.
        address feeToken;
        // The approved function selector for `bridge`. This contract may only call this function
        // when calling the `bridge` contract.
        bytes4 funcSelector;
    }

    Weth public immutable WETH = Weth(0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2);

    /**
     * @notice Mapping of chain ID to whitelisted bridge addresses and function selectors
     * that can be called by this contract.
     */
    mapping(uint256 => Bridge) public whitelistedBridgeFunctions;

    ///////////////////////////////
    //          Events           //
    ///////////////////////////////

    event AtomicWethDepositInitiated(address indexed from, uint256 indexed chainId, uint256 amount);

    ///////////////////////////////
    //          Errors           //
    ///////////////////////////////

    error InvalidBridgeFunction();

    ///////////////////////////////
    //     Internal Functions    //
    ///////////////////////////////

    /**
     * @notice Transfers WETH to this contract and withdraws it to ETH.
     * @param amount The amount of WETH to withdraw.
     */
    function _withdrawWeth(uint256 amount) internal {
        WETH.transferFrom(msg.sender, address(this), amount);
        WETH.withdraw(amount);
    }

    ///////////////////////////////
    //     Admin Functions       //
    ///////////////////////////////

    /**
     * @notice Whitelists function selector and bridge contract for chain.
     * @param chainId The chain ID of the bridge.
     * @param bridge The Bridge struct to set to the specified chain ID.
     */
    function whitelistBridge(uint256 chainId, Bridge calldata bridge) public onlyOwner {
        whitelistedBridgeFunctions[chainId] = bridge;
    }

    ///////////////////////////////
    //     Public Functions      //
    ///////////////////////////////

    /**
     * @notice Initiates a WETH deposit to a whitelisted bridge for a specified chain with user calldata.
     * @dev Requires that the owner of this contract has whitelisted the bridge contract and function
     * selector for the chainId that the user wants to send ETH to.
     * @param netValue The total amount of WETH to withdraw and send to the bridge contract.
     * @param bridgeValue The amount of WETH which the depositor expects to receive on L2. That is, netValue - fees.
     * @param chainId The chain to send ETH to.
     * @param bridgeCallData The calldata to pass to the bridge contract. The first 4 bytes should be equal
     * to the whitelisted function selector of the bridge contract.
     */
    function bridgeWeth(
        uint256 chainId,
        uint256 netValue,
        uint256 bridgeValue,
        uint256 feeAmount,
        bytes calldata bridgeCallData
    ) public nonReentrant {
        _withdrawWeth(netValue);
        Bridge memory bridge = whitelistedBridgeFunctions[chainId];
        if (bridge.funcSelector != bytes4(bridgeCallData)) revert InvalidBridgeFunction();

        IERC20 feeToken = IERC20(bridge.feeToken);
        if (address(feeToken) != address(0)) {
            feeToken.safeTransferFrom(msg.sender, address(this), feeAmount);
            feeToken.forceApprove(bridge.gateway, feeAmount);
        }
        // solhint-disable-next-line avoid-low-level-calls
        (bool success, bytes memory result) = bridge.bridge.call{ value: netValue }(bridgeCallData);
        require(success, string(result));
        emit AtomicWethDepositInitiated(msg.sender, chainId, bridgeValue);
    }

    fallback() external payable {}

    // Included to remove a compilation warning.
    // NOTE: this should not affect behavior.
    receive() external payable {}
}

// 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);
    }
}

// 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);
}

// 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);
}

// 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));
    }
}

// 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);
        }
    }
}

// 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;
    }
}

// SPDX-License-Identifier: AGPL-3.0-only
pragma solidity ^0.8.0;

/**
 * @title A contract that provides modifiers to prevent reentrancy to state-changing and view-only methods. This contract
 * is inspired by https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/utils/ReentrancyGuard.sol
 * and https://github.com/balancer-labs/balancer-core/blob/master/contracts/BPool.sol.
 */
contract Lockable {
    bool private _notEntered;

    constructor() {
        // Storing an initial 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.
        _notEntered = true;
    }

    /**
     * @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 state modification.
     */
    modifier nonReentrant() {
        _preEntranceCheck();
        _preEntranceSet();
        _;
        _postEntranceReset();
    }

    /**
     * @dev Designed to prevent a view-only method from being re-entered during a call to a `nonReentrant()` state-changing method.
     */
    modifier nonReentrantView() {
        _preEntranceCheck();
        _;
    }

    // Internal methods are used to avoid copying the require statement's bytecode to every `nonReentrant()` method.
    // On entry into a function, `_preEntranceCheck()` should always be called to check if the function is being
    // re-entered. Then, if the function modifies state, it should call `_postEntranceSet()`, perform its logic, and
    // then call `_postEntranceReset()`.
    // View-only methods can simply call `_preEntranceCheck()` to make sure that it is not being re-entered.
    function _preEntranceCheck() internal view {
        // On the first call to nonReentrant, _notEntered will be true
        require(_notEntered, "ReentrancyGuard: reentrant call");
    }

    function _preEntranceSet() internal {
        // Any calls to nonReentrant after this point will fail
        _notEntered = false;
    }

    function _postEntranceReset() internal {
        // By storing the original value once again, a refund is triggered (see
        // https://eips.ethereum.org/EIPS/eip-2200)
        _notEntered = true;
    }

    // These functions are intended to be used by child contracts to temporarily disable and re-enable the guard.
    // Intended use:
    // _startReentrantGuardDisabled();
    // ...
    // _endReentrantGuardDisabled();
    //
    // IMPORTANT: these should NEVER be used in a method that isn't inside a nonReentrant block. Otherwise, it's
    // possible to permanently lock your contract.
    function _startReentrantGuardDisabled() internal {
        _notEntered = true;
    }

    function _endReentrantGuardDisabled() internal {
        _notEntered = false;
    }
}

// SPDX-License-Identifier: AGPL-3.0-only
pragma solidity ^0.8.0;

// This contract is taken from Uniswap's multi call implementation (https://github.com/Uniswap/uniswap-v3-periphery/blob/main/contracts/base/Multicall.sol)
// and was modified to be solidity 0.8 compatible. Additionally, the method was restricted to only work with msg.value
// set to 0 to avoid any nasty attack vectors on function calls that use value sent with deposits.

/// @title MultiCaller
/// @notice Enables calling multiple methods in a single call to the contract
contract MultiCaller {
    function multicall(bytes[] calldata data) external returns (bytes[] memory results) {
        results = new bytes[](data.length);
        for (uint256 i = 0; i < data.length; i++) {
            (bool success, bytes memory result) = address(this).delegatecall(data[i]);

            if (!success) {
                // Next 5 lines from https://ethereum.stackexchange.com/a/83577
                if (result.length < 68) revert();
                assembly {
                    result := add(result, 0x04)
                }
                revert(abi.decode(result, (string)));
            }

            results[i] = result;
        }
    }
}

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

Contract Security Audit

Contract ABI

API
[{"inputs":[],"name":"InvalidBridgeFunction","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"uint256","name":"chainId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"AtomicWethDepositInitiated","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"},{"stateMutability":"payable","type":"fallback"},{"inputs":[],"name":"WETH","outputs":[{"internalType":"contract Weth","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"chainId","type":"uint256"},{"internalType":"uint256","name":"netValue","type":"uint256"},{"internalType":"uint256","name":"bridgeValue","type":"uint256"},{"internalType":"uint256","name":"feeAmount","type":"uint256"},{"internalType":"bytes","name":"bridgeCallData","type":"bytes"}],"name":"bridgeWeth","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes[]","name":"data","type":"bytes[]"}],"name":"multicall","outputs":[{"internalType":"bytes[]","name":"results","type":"bytes[]"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"chainId","type":"uint256"},{"components":[{"internalType":"address","name":"bridge","type":"address"},{"internalType":"address","name":"gateway","type":"address"},{"internalType":"address","name":"feeToken","type":"address"},{"internalType":"bytes4","name":"funcSelector","type":"bytes4"}],"internalType":"struct AtomicWethDepositor.Bridge","name":"bridge","type":"tuple"}],"name":"whitelistBridge","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"whitelistedBridgeFunctions","outputs":[{"internalType":"address","name":"bridge","type":"address"},{"internalType":"address","name":"gateway","type":"address"},{"internalType":"address","name":"feeToken","type":"address"},{"internalType":"bytes4","name":"funcSelector","type":"bytes4"}],"stateMutability":"view","type":"function"},{"stateMutability":"payable","type":"receive"}]

60a08060405234610089575f543360018060a01b0382167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e05f80a36001600160a81b0319163360ff60a01b191617600160a01b175f5573c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2608052611425908161008e82396080518181816106010152610ef50152f35b5f80fdfe60806040526004361015610018575b361561001657005b005b5f3560e01c806331e57ede146100975780633a03c4a914610092578063715018a61461008d57806388319fe8146100885780638da5cb5b14610083578063ac9650d81461007e578063ad5c4648146100795763f2fde38b0361000e57610643565b6105b7565b61052f565b6103fa565b610261565b6101c7565b610118565b346101145760a07ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc3601126101145760843567ffffffffffffffff80821161011457366023830112156101145781600401359081116101145736602482840101116101145760246100169201606435604435602435600435610779565b5f80fd5b346101145760207ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc360112610114576004355f526001602052608060405f207fffffffff0000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff9182815416926002816001840154169201549160405194855260208501528116604084015260401b166060820152f35b5f91031261011457565b34610114575f7ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc360112610114576101fd611176565b5f73ffffffffffffffffffffffffffffffffffffffff81547fffffffffffffffffffffffff000000000000000000000000000000000000000081168355167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08280a3005b346101145760a07ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc3601126101145760807fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffdc360112610114576102c2611176565b6004355f526001602052600260405f206103226024356102e181610625565b829073ffffffffffffffffffffffffffffffffffffffff167fffffffffffffffffffffffff0000000000000000000000000000000000000000825416179055565b61037560443561033181610625565b600183019073ffffffffffffffffffffffffffffffffffffffff167fffffffffffffffffffffffff0000000000000000000000000000000000000000825416179055565b016103856064356102e181610625565b6084357fffffffff00000000000000000000000000000000000000000000000000000000811681036101145781547fffffffffffffffff00000000ffffffffffffffffffffffffffffffffffffffff1660409190911c77ffffffff000000000000000000000000000000000000000016179055005b34610114575f7ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc36011261011457602073ffffffffffffffffffffffffffffffffffffffff5f5416604051908152f35b5f5b83811061045b5750505f910152565b818101518382015260200161044c565b907fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f6020936104a78151809281875287808801910161044a565b0116010190565b6020808201906020835283518092526040830192602060408460051b8301019501935f915b8483106104e35750505050505090565b909192939495848061051f837fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc086600196030187528a5161046b565b98019301930191949392906104d3565b346101145760207ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc3601126101145767ffffffffffffffff6004358181116101145736602382011215610114578060040135918211610114573660248360051b83010111610114576105b39160246105a79201610e10565b604051918291826104ae565b0390f35b34610114575f7ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc36011261011457602060405173ffffffffffffffffffffffffffffffffffffffff7f0000000000000000000000000000000000000000000000000000000000000000168152f35b73ffffffffffffffffffffffffffffffffffffffff81160361011457565b346101145760207ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc3601126101145760043561067e81610625565b610686611176565b73ffffffffffffffffffffffffffffffffffffffff8091169081156106f5575f54827fffffffffffffffffffffffff00000000000000000000000000000000000000008216175f55167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e05f80a3005b60846040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152fd5b949092919360ff5f5460a01c16156109d8576107b67fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff5f54165f55565b6107bf84610ede565b6107d96107d4875f52600160205260405f2090565b610af5565b9161080760608401517fffffffff000000000000000000000000000000000000000000000000000000001690565b7fffffffff0000000000000000000000000000000000000000000000000000000061085a6108358486610b75565b7fffffffff000000000000000000000000000000000000000000000000000000001690565b9116036109ae57610904946108e2845f966108a961089060408a99015173ffffffffffffffffffffffffffffffffffffffff1690565b73ffffffffffffffffffffffffffffffffffffffff1690565b9073ffffffffffffffffffffffffffffffffffffffff8216610976575b50505173ffffffffffffffffffffffffffffffffffffffff1690565b926108f260405180948193610bb9565b03925af16108fe610c00565b90610c43565b60405190815233907f07eaada8c9bcef700c8d25524866ae64bf4c9586cd632e43aa2ab78fc8dfef9e90602090a3610974740100000000000000000000000000000000000000007fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff5f5416175f55565b565b6109a79161098682303384610fe4565b602084015173ffffffffffffffffffffffffffffffffffffffff1690611053565b5f806108c6565b60046040517f172b8892000000000000000000000000000000000000000000000000000000008152fd5b60646040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152fd5b7f4e487b71000000000000000000000000000000000000000000000000000000005f52604160045260245ffd5b67ffffffffffffffff8111610a7757604052565b610a36565b6080810190811067ffffffffffffffff821117610a7757604052565b6040810190811067ffffffffffffffff821117610a7757604052565b90601f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0910116810190811067ffffffffffffffff821117610a7757604052565b906040516080810181811067ffffffffffffffff821117610a775760405260607fffffffff000000000000000000000000000000000000000000000000000000008294600273ffffffffffffffffffffffffffffffffffffffff918281541686528260018201541660208701520154908116604085015260401b16910152565b7fffffffff000000000000000000000000000000000000000000000000000000009035818116939260048110610baa57505050565b60040360031b82901b16169150565b908092918237015f815290565b67ffffffffffffffff8111610a7757601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe01660200190565b3d15610c2a573d90610c1182610bc6565b91610c1f6040519384610ab4565b82523d5f602084013e565b606090565b906020610c4092818152019061046b565b90565b15610c4b5750565b610c89906040519182917f08c379a000000000000000000000000000000000000000000000000000000000835260206004840152602483019061046b565b0390fd5b67ffffffffffffffff8111610a775760051b60200190565b90610caf82610c8d565b610cbc6040519182610ab4565b8281527fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0610cea8294610c8d565b01905f5b828110610cfa57505050565b806060602080938501015201610cee565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52603260045260245ffd5b9190811015610d985760051b810135907fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe18136030182121561011457019081359167ffffffffffffffff8311610114576020018236038113610114579190565b610d0b565b6020818303126101145780519067ffffffffffffffff8211610114570181601f82011215610114578051610dd081610bc6565b92610dde6040519485610ab4565b8184526020828401011161011457610c40916020808501910161044a565b8051821015610d985760209160051b010190565b919091610e1c83610ca5565b925f5b818110610e2b57505050565b5f80610e38838587610d38565b60409391610e4a855180938193610bb9565b0390305af490610e58610c00565b9115610e7f575090600191610e6d8288610dfc565b52610e788187610dfc565b5001610e1f565b90604481511061011457610c89610ea460049283810151602480918301019101610d9d565b92519283927f08c379a00000000000000000000000000000000000000000000000000000000084528301610c2f565b6040513d5f823e3d90fd5b73ffffffffffffffffffffffffffffffffffffffff7f000000000000000000000000000000000000000000000000000000000000000016803b15610114576040517f23b872dd000000000000000000000000000000000000000000000000000000008152336004820152306024820152604481018390525f8160648183865af18015610fcc57610fd1575b50803b15610114576040517f2e1a7d4d00000000000000000000000000000000000000000000000000000000815260048101929092525f908290602490829084905af18015610fcc57610fb95750565b80610fc661097492610a63565b806101bd565b610ed3565b80610fc6610fde92610a63565b5f610f69565b6040517f23b872dd00000000000000000000000000000000000000000000000000000000602082015273ffffffffffffffffffffffffffffffffffffffff92831660248201529290911660448301526064808301939093529181526109749161104e608483610ab4565b61120c565b91909160405191602083015f807f095ea7b3000000000000000000000000000000000000000000000000000000009384845273ffffffffffffffffffffffffffffffffffffffff9081891660248901526044880152604487526110b587610a7c565b85169286519082855af1906110c8610c00565b82611144575b5081611139575b50156110e2575b50505050565b604051602081019190915273ffffffffffffffffffffffffffffffffffffffff9390931660248401525f60448085019190915283526111309261104e9061112a606482610ab4565b8261120c565b5f8080806110dc565b90503b15155f6110d5565b8051919250811591821561115c575b5050905f6110ce565b61116f92506020809183010191016111f4565b5f80611153565b73ffffffffffffffffffffffffffffffffffffffff5f5416330361119657565b60646040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602060248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152fd5b90816020910312610114575180151581036101145790565b6040516112769173ffffffffffffffffffffffffffffffffffffffff1661123282610a98565b5f806020958685527f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c656487860152868151910182855af1611270610c00565b9161132b565b805190828215928315611313575b5050501561128f5750565b608490604051907f08c379a00000000000000000000000000000000000000000000000000000000082526004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e60448201527f6f742073756363656564000000000000000000000000000000000000000000006064820152fd5b61132393508201810191016111f4565b5f8281611284565b919290156113a6575081511561133f575090565b3b156113485790565b60646040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152fd5b8251909150156113b95750805190602001fd5b610c89906040519182917f08c379a000000000000000000000000000000000000000000000000000000000835260048301610c2f56fea26469706673582212209833a6604adc685802fa548b379198e2218db4c96fc7e9c1b3a51a68007065c464736f6c63430008170033

Deployed Bytecode

0x60806040526004361015610018575b361561001657005b005b5f3560e01c806331e57ede146100975780633a03c4a914610092578063715018a61461008d57806388319fe8146100885780638da5cb5b14610083578063ac9650d81461007e578063ad5c4648146100795763f2fde38b0361000e57610643565b6105b7565b61052f565b6103fa565b610261565b6101c7565b610118565b346101145760a07ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc3601126101145760843567ffffffffffffffff80821161011457366023830112156101145781600401359081116101145736602482840101116101145760246100169201606435604435602435600435610779565b5f80fd5b346101145760207ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc360112610114576004355f526001602052608060405f207fffffffff0000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff9182815416926002816001840154169201549160405194855260208501528116604084015260401b166060820152f35b5f91031261011457565b34610114575f7ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc360112610114576101fd611176565b5f73ffffffffffffffffffffffffffffffffffffffff81547fffffffffffffffffffffffff000000000000000000000000000000000000000081168355167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08280a3005b346101145760a07ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc3601126101145760807fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffdc360112610114576102c2611176565b6004355f526001602052600260405f206103226024356102e181610625565b829073ffffffffffffffffffffffffffffffffffffffff167fffffffffffffffffffffffff0000000000000000000000000000000000000000825416179055565b61037560443561033181610625565b600183019073ffffffffffffffffffffffffffffffffffffffff167fffffffffffffffffffffffff0000000000000000000000000000000000000000825416179055565b016103856064356102e181610625565b6084357fffffffff00000000000000000000000000000000000000000000000000000000811681036101145781547fffffffffffffffff00000000ffffffffffffffffffffffffffffffffffffffff1660409190911c77ffffffff000000000000000000000000000000000000000016179055005b34610114575f7ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc36011261011457602073ffffffffffffffffffffffffffffffffffffffff5f5416604051908152f35b5f5b83811061045b5750505f910152565b818101518382015260200161044c565b907fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f6020936104a78151809281875287808801910161044a565b0116010190565b6020808201906020835283518092526040830192602060408460051b8301019501935f915b8483106104e35750505050505090565b909192939495848061051f837fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc086600196030187528a5161046b565b98019301930191949392906104d3565b346101145760207ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc3601126101145767ffffffffffffffff6004358181116101145736602382011215610114578060040135918211610114573660248360051b83010111610114576105b39160246105a79201610e10565b604051918291826104ae565b0390f35b34610114575f7ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc36011261011457602060405173ffffffffffffffffffffffffffffffffffffffff7f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2168152f35b73ffffffffffffffffffffffffffffffffffffffff81160361011457565b346101145760207ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc3601126101145760043561067e81610625565b610686611176565b73ffffffffffffffffffffffffffffffffffffffff8091169081156106f5575f54827fffffffffffffffffffffffff00000000000000000000000000000000000000008216175f55167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e05f80a3005b60846040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152fd5b949092919360ff5f5460a01c16156109d8576107b67fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff5f54165f55565b6107bf84610ede565b6107d96107d4875f52600160205260405f2090565b610af5565b9161080760608401517fffffffff000000000000000000000000000000000000000000000000000000001690565b7fffffffff0000000000000000000000000000000000000000000000000000000061085a6108358486610b75565b7fffffffff000000000000000000000000000000000000000000000000000000001690565b9116036109ae57610904946108e2845f966108a961089060408a99015173ffffffffffffffffffffffffffffffffffffffff1690565b73ffffffffffffffffffffffffffffffffffffffff1690565b9073ffffffffffffffffffffffffffffffffffffffff8216610976575b50505173ffffffffffffffffffffffffffffffffffffffff1690565b926108f260405180948193610bb9565b03925af16108fe610c00565b90610c43565b60405190815233907f07eaada8c9bcef700c8d25524866ae64bf4c9586cd632e43aa2ab78fc8dfef9e90602090a3610974740100000000000000000000000000000000000000007fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff5f5416175f55565b565b6109a79161098682303384610fe4565b602084015173ffffffffffffffffffffffffffffffffffffffff1690611053565b5f806108c6565b60046040517f172b8892000000000000000000000000000000000000000000000000000000008152fd5b60646040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152fd5b7f4e487b71000000000000000000000000000000000000000000000000000000005f52604160045260245ffd5b67ffffffffffffffff8111610a7757604052565b610a36565b6080810190811067ffffffffffffffff821117610a7757604052565b6040810190811067ffffffffffffffff821117610a7757604052565b90601f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0910116810190811067ffffffffffffffff821117610a7757604052565b906040516080810181811067ffffffffffffffff821117610a775760405260607fffffffff000000000000000000000000000000000000000000000000000000008294600273ffffffffffffffffffffffffffffffffffffffff918281541686528260018201541660208701520154908116604085015260401b16910152565b7fffffffff000000000000000000000000000000000000000000000000000000009035818116939260048110610baa57505050565b60040360031b82901b16169150565b908092918237015f815290565b67ffffffffffffffff8111610a7757601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe01660200190565b3d15610c2a573d90610c1182610bc6565b91610c1f6040519384610ab4565b82523d5f602084013e565b606090565b906020610c4092818152019061046b565b90565b15610c4b5750565b610c89906040519182917f08c379a000000000000000000000000000000000000000000000000000000000835260206004840152602483019061046b565b0390fd5b67ffffffffffffffff8111610a775760051b60200190565b90610caf82610c8d565b610cbc6040519182610ab4565b8281527fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0610cea8294610c8d565b01905f5b828110610cfa57505050565b806060602080938501015201610cee565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52603260045260245ffd5b9190811015610d985760051b810135907fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe18136030182121561011457019081359167ffffffffffffffff8311610114576020018236038113610114579190565b610d0b565b6020818303126101145780519067ffffffffffffffff8211610114570181601f82011215610114578051610dd081610bc6565b92610dde6040519485610ab4565b8184526020828401011161011457610c40916020808501910161044a565b8051821015610d985760209160051b010190565b919091610e1c83610ca5565b925f5b818110610e2b57505050565b5f80610e38838587610d38565b60409391610e4a855180938193610bb9565b0390305af490610e58610c00565b9115610e7f575090600191610e6d8288610dfc565b52610e788187610dfc565b5001610e1f565b90604481511061011457610c89610ea460049283810151602480918301019101610d9d565b92519283927f08c379a00000000000000000000000000000000000000000000000000000000084528301610c2f565b6040513d5f823e3d90fd5b73ffffffffffffffffffffffffffffffffffffffff7f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc216803b15610114576040517f23b872dd000000000000000000000000000000000000000000000000000000008152336004820152306024820152604481018390525f8160648183865af18015610fcc57610fd1575b50803b15610114576040517f2e1a7d4d00000000000000000000000000000000000000000000000000000000815260048101929092525f908290602490829084905af18015610fcc57610fb95750565b80610fc661097492610a63565b806101bd565b610ed3565b80610fc6610fde92610a63565b5f610f69565b6040517f23b872dd00000000000000000000000000000000000000000000000000000000602082015273ffffffffffffffffffffffffffffffffffffffff92831660248201529290911660448301526064808301939093529181526109749161104e608483610ab4565b61120c565b91909160405191602083015f807f095ea7b3000000000000000000000000000000000000000000000000000000009384845273ffffffffffffffffffffffffffffffffffffffff9081891660248901526044880152604487526110b587610a7c565b85169286519082855af1906110c8610c00565b82611144575b5081611139575b50156110e2575b50505050565b604051602081019190915273ffffffffffffffffffffffffffffffffffffffff9390931660248401525f60448085019190915283526111309261104e9061112a606482610ab4565b8261120c565b5f8080806110dc565b90503b15155f6110d5565b8051919250811591821561115c575b5050905f6110ce565b61116f92506020809183010191016111f4565b5f80611153565b73ffffffffffffffffffffffffffffffffffffffff5f5416330361119657565b60646040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602060248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152fd5b90816020910312610114575180151581036101145790565b6040516112769173ffffffffffffffffffffffffffffffffffffffff1661123282610a98565b5f806020958685527f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c656487860152868151910182855af1611270610c00565b9161132b565b805190828215928315611313575b5050501561128f5750565b608490604051907f08c379a00000000000000000000000000000000000000000000000000000000082526004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e60448201527f6f742073756363656564000000000000000000000000000000000000000000006064820152fd5b61132393508201810191016111f4565b5f8281611284565b919290156113a6575081511561133f575090565b3b156113485790565b60646040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152fd5b8251909150156113b95750805190602001fd5b610c89906040519182917f08c379a000000000000000000000000000000000000000000000000000000000835260048301610c2f56fea26469706673582212209833a6604adc685802fa548b379198e2218db4c96fc7e9c1b3a51a68007065c464736f6c63430008170033

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