ETH Price: $1,588.55 (-1.33%)
Gas: 0.39 Gwei
 

Overview

ETH Balance

1.210504694288032493 ETH

Eth Value

$1,922.94 (@ $1,588.55/ETH)

Token Holdings

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Deploy Gateway201447002024-06-22 3:55:47300 days ago1719028547IN
0xfCc00e16...139472732
0 ETH0.000264672
Deploy Gateway197500752024-04-27 23:54:35355 days ago1714262075IN
0xfCc00e16...139472732
0 ETH0.000529344
Deploy Gateway182954052023-10-07 1:43:23559 days ago1696643003IN
0xfCc00e16...139472732
0 ETH0.000650164.91295268
Deploy Gateway169328112023-03-29 12:00:23751 days ago1680091223IN
0xfCc00e16...139472732
0 ETH0.0033537125.03743357
Deploy Gateway169276532023-03-28 18:37:35751 days ago1680028655IN
0xfCc00e16...139472732
0 ETH0.003223124.06234075
Deploy Gateway169250222023-03-28 9:43:59752 days ago1679996639IN
0xfCc00e16...139472732
0 ETH0.0031621823.60755052
Withdraw To169217702023-03-27 22:44:59752 days ago1679957099IN
0xfCc00e16...139472732
0 ETH0.00087225.90864082
Deploy Gateway169132732023-03-26 18:06:23753 days ago1679853983IN
0xfCc00e16...139472732
0 ETH0.0026790920.00101898
Deploy Gateway169072312023-03-25 21:44:35754 days ago1679780675IN
0xfCc00e16...139472732
0 ETH0.0018923414.12749242
Deploy Gateway169071042023-03-25 21:18:59754 days ago1679779139IN
0xfCc00e16...139472732
0 ETH0.0019375214.46475063
Deploy Gateway169051572023-03-25 14:45:23755 days ago1679755523IN
0xfCc00e16...139472732
0 ETH0.002614119.51579219
Transfer168993692023-03-24 19:14:23755 days ago1679685263IN
0xfCc00e16...139472732
0.55074325 ETH0.0005098324.21426826
Deploy Gateway168982802023-03-24 15:34:23756 days ago1679672063IN
0xfCc00e16...139472732
0 ETH0.0043972532.82811048
Deploy Gateway168968412023-03-24 10:43:23756 days ago1679654603IN
0xfCc00e16...139472732
0 ETH0.0021376715.95895572
Deploy Gateway168955562023-03-24 6:23:35756 days ago1679639015IN
0xfCc00e16...139472732
0 ETH0.0020495915.30143693
Deploy Gateway168891862023-03-23 8:54:47757 days ago1679561687IN
0xfCc00e16...139472732
0 ETH0.0014218710.6151332
Deploy Gateway168876902023-03-23 3:51:11757 days ago1679543471IN
0xfCc00e16...139472732
0 ETH0.0018035313.46441572
Deploy Gateway168875112023-03-23 3:14:59757 days ago1679541299IN
0xfCc00e16...139472732
0 ETH0.001777713.27158098
Deploy Gateway168851732023-03-22 19:21:35757 days ago1679512895IN
0xfCc00e16...139472732
0 ETH0.0046750134.90174498
Deploy Gateway168784032023-03-21 20:32:47758 days ago1679430767IN
0xfCc00e16...139472732
0 ETH0.0033653225.1240979
Deploy Gateway168763172023-03-21 13:30:23759 days ago1679405423IN
0xfCc00e16...139472732
0 ETH0.0038214628.52945132
Deploy Gateway168709772023-03-20 19:30:35759 days ago1679340635IN
0xfCc00e16...139472732
0 ETH0.0032314924.12498266
Deploy Gateway168695102023-03-20 14:34:23760 days ago1679322863IN
0xfCc00e16...139472732
0 ETH0.0036175327.00704459
Deploy Gateway168693972023-03-20 14:11:35760 days ago1679321495IN
0xfCc00e16...139472732
0 ETH0.0048586636.27273768
Deploy Gateway168676502023-03-20 8:19:11760 days ago1679300351IN
0xfCc00e16...139472732
0 ETH0.0020587215.36958253
View all transactions

Latest 25 internal transactions (View All)

Advanced mode:
Parent Transaction Hash Method Block
From
To
0x3d602d80201447002024-06-22 3:55:47300 days ago1719028547
0xfCc00e16...139472732
 Contract Creation0 ETH
0x3d602d80197500752024-04-27 23:54:35355 days ago1714262075
0xfCc00e16...139472732
 Contract Creation0 ETH
0x3d602d80182954052023-10-07 1:43:23559 days ago1696643003
0xfCc00e16...139472732
 Contract Creation0 ETH
Transfer169365512023-03-30 0:38:59750 days ago1680136739
0xfCc00e16...139472732
0.00000607 ETH
Transfer169365502023-03-30 0:38:47750 days ago1680136727
0xfCc00e16...139472732
0.00000632 ETH
Transfer169365492023-03-30 0:38:35750 days ago1680136715
0xfCc00e16...139472732
0.00000621 ETH
Transfer169365482023-03-30 0:38:23750 days ago1680136703
0xfCc00e16...139472732
0.0001847 ETH
Transfer169365482023-03-30 0:38:23750 days ago1680136703
0xfCc00e16...139472732
0.00062383 ETH
Transfer169365372023-03-30 0:36:11750 days ago1680136571
0xfCc00e16...139472732
0.00000833 ETH
Transfer169365292023-03-30 0:34:35750 days ago1680136475
0xfCc00e16...139472732
0.0000065 ETH
Transfer169365262023-03-30 0:33:59750 days ago1680136439
0xfCc00e16...139472732
0.00001634 ETH
Transfer169365222023-03-30 0:33:11750 days ago1680136391
0xfCc00e16...139472732
0.00020674 ETH
Transfer169365192023-03-30 0:32:35750 days ago1680136355
0xfCc00e16...139472732
0.00012068 ETH
Transfer169365152023-03-30 0:31:47750 days ago1680136307
0xfCc00e16...139472732
0.00210636 ETH
Transfer169365122023-03-30 0:30:59750 days ago1680136259
0xfCc00e16...139472732
0.00000598 ETH
Transfer169365122023-03-30 0:30:59750 days ago1680136259
0xfCc00e16...139472732
0.00000766 ETH
Transfer169365092023-03-30 0:30:23750 days ago1680136223
0xfCc00e16...139472732
0.00000752 ETH
Transfer169365082023-03-30 0:30:11750 days ago1680136211
0xfCc00e16...139472732
0.000072 ETH
Transfer169365042023-03-30 0:29:23750 days ago1680136163
0xfCc00e16...139472732
0.00015233 ETH
Transfer169365032023-03-30 0:29:11750 days ago1680136151
0xfCc00e16...139472732
0.00004762 ETH
Transfer169365022023-03-30 0:28:59750 days ago1680136139
0xfCc00e16...139472732
0.00014283 ETH
Transfer169364202023-03-30 0:12:11750 days ago1680135131
0xfCc00e16...139472732
0.00018354 ETH
Transfer169363912023-03-30 0:06:23750 days ago1680134783
0xfCc00e16...139472732
0.00017579 ETH
0x3d602d80169328112023-03-29 12:00:23751 days ago1680091223
0xfCc00e16...139472732
 Contract Creation0 ETH
0x3d602d80169276532023-03-28 18:37:35751 days ago1680028655
0xfCc00e16...139472732
 Contract Creation0 ETH
View All Internal Transactions
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
WhopPaymentGatewayManager

Compiler Version
v0.8.13+commit.abaa5c0e

Optimization Enabled:
Yes with 20000 runs

Other Settings:
default evmVersion
File 1 of 7 : GatewayManager.sol
// SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.8.13;

import {Ownable} from "@openzeppelin/contracts/access/Ownable.sol";
import {Clones} from "@openzeppelin/contracts/proxy/Clones.sol";
import {WhopPaymentGateway} from "./Gateway.sol";
import {WhopWithdrawable} from "./Withdrawable.sol";

contract WhopPaymentGatewayManager is Ownable, WhopWithdrawable {
    using Clones for address;

    error NotOwner();

    event GatewayDeployed(address indexed gateway, address indexed owner);

    address private immutable _impl = address(new WhopPaymentGateway());

    function deployGateway() external returns (address) {
        return _deployGateway();
    }

    function _deployGateway() private returns (address) {
        address gateway = _impl.clone();
        WhopPaymentGateway(payable(gateway)).init(msg.sender, 100);
        emit GatewayDeployed(gateway, msg.sender);
        return gateway;
    }

    function _beforeWithdraw(
        address withdrawer,
        address,
        address,
        uint256 amount
    ) internal view override returns (uint256) {
        if (withdrawer != owner()) revert NotOwner();
        return amount;
    }
}

File 2 of 7 : Ownable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.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 anymore. Can only be called by the current owner.
     *
     * NOTE: Renouncing ownership will leave the contract without an owner,
     * thereby removing 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 7 : Clones.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (proxy/Clones.sol)

pragma solidity ^0.8.0;

/**
 * @dev https://eips.ethereum.org/EIPS/eip-1167[EIP 1167] is a standard for
 * deploying minimal proxy contracts, also known as "clones".
 *
 * > To simply and cheaply clone contract functionality in an immutable way, this standard specifies
 * > a minimal bytecode implementation that delegates all calls to a known, fixed address.
 *
 * The library includes functions to deploy a proxy using either `create` (traditional deployment) or `create2`
 * (salted deterministic deployment). It also includes functions to predict the addresses of clones deployed using the
 * deterministic method.
 *
 * _Available since v3.4._
 */
library Clones {
    /**
     * @dev Deploys and returns the address of a clone that mimics the behaviour of `implementation`.
     *
     * This function uses the create opcode, which should never revert.
     */
    function clone(address implementation) internal returns (address instance) {
        /// @solidity memory-safe-assembly
        assembly {
            let ptr := mload(0x40)
            mstore(ptr, 0x3d602d80600a3d3981f3363d3d373d3d3d363d73000000000000000000000000)
            mstore(add(ptr, 0x14), shl(0x60, implementation))
            mstore(add(ptr, 0x28), 0x5af43d82803e903d91602b57fd5bf30000000000000000000000000000000000)
            instance := create(0, ptr, 0x37)
        }
        require(instance != address(0), "ERC1167: create failed");
    }

    /**
     * @dev Deploys and returns the address of a clone that mimics the behaviour of `implementation`.
     *
     * This function uses the create2 opcode and a `salt` to deterministically deploy
     * the clone. Using the same `implementation` and `salt` multiple time will revert, since
     * the clones cannot be deployed twice at the same address.
     */
    function cloneDeterministic(address implementation, bytes32 salt) internal returns (address instance) {
        /// @solidity memory-safe-assembly
        assembly {
            let ptr := mload(0x40)
            mstore(ptr, 0x3d602d80600a3d3981f3363d3d373d3d3d363d73000000000000000000000000)
            mstore(add(ptr, 0x14), shl(0x60, implementation))
            mstore(add(ptr, 0x28), 0x5af43d82803e903d91602b57fd5bf30000000000000000000000000000000000)
            instance := create2(0, ptr, 0x37, salt)
        }
        require(instance != address(0), "ERC1167: create2 failed");
    }

    /**
     * @dev Computes the address of a clone deployed using {Clones-cloneDeterministic}.
     */
    function predictDeterministicAddress(
        address implementation,
        bytes32 salt,
        address deployer
    ) internal pure returns (address predicted) {
        /// @solidity memory-safe-assembly
        assembly {
            let ptr := mload(0x40)
            mstore(ptr, 0x3d602d80600a3d3981f3363d3d373d3d3d363d73000000000000000000000000)
            mstore(add(ptr, 0x14), shl(0x60, implementation))
            mstore(add(ptr, 0x28), 0x5af43d82803e903d91602b57fd5bf3ff00000000000000000000000000000000)
            mstore(add(ptr, 0x38), shl(0x60, deployer))
            mstore(add(ptr, 0x4c), salt)
            mstore(add(ptr, 0x6c), keccak256(ptr, 0x37))
            predicted := keccak256(add(ptr, 0x37), 0x55)
        }
    }

    /**
     * @dev Computes the address of a clone deployed using {Clones-cloneDeterministic}.
     */
    function predictDeterministicAddress(address implementation, bytes32 salt)
        internal
        view
        returns (address predicted)
    {
        return predictDeterministicAddress(implementation, salt, address(this));
    }
}

File 4 of 7 : Gateway.sol
// SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.8.13;

import {Ownable} from "@openzeppelin/contracts/access/Ownable.sol";
import {IERC20} from "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import {WhopWithdrawable} from "./Withdrawable.sol";

contract WhopPaymentGateway is WhopWithdrawable {
    error AlreadyInititalized();
    error NotOwner();

    address private _owner;
    address private _manager;

    uint256 private _fees;

    constructor() {
        init(msg.sender, 100);
    }

    function init(address owner_, uint256 fees_) public {
        if (_owner != address(0)) revert AlreadyInititalized();
        _owner = owner_;
        _manager = msg.sender;
        _fees = fees_;
    }

    function owner() public view returns (address) {
        return _owner;
    }

    function _beforeWithdraw(
        address withdrawer,
        address receiver,
        address token,
        uint256 amount
    ) internal override returns (uint256) {
        if (withdrawer != _owner && receiver != _owner) revert NotOwner();
        uint256 fees = (amount * _fees) / 10000;
        if (token == address(0)) {
            (bool success, ) = _manager.call{value: fees}("");
            if (!success) revert TransferFailed();
        } else {
            bool success = IERC20(token).transfer(_manager, fees);
            if (!success) revert TransferFailed();
        }
        return amount - fees;
    }
}

File 5 of 7 : Withdrawable.sol
// SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.8.13;

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

abstract contract WhopWithdrawable {
    error TransferFailed();

    function withdraw() public {
        _withdrawEth(address(this).balance, msg.sender);
    }

    function withdraw(uint256 amount) public {
        if (amount > address(this).balance) amount = address(this).balance;
        _withdrawEth(amount, msg.sender);
    }

    function withdraw(address token) public {
        _withdrawERC20(
            token,
            IERC20(token).balanceOf(address(this)),
            msg.sender
        );
    }

    function withdraw(address token, uint256 amount) public {
        uint256 balance = IERC20(token).balanceOf(address(this));
        if (amount > balance) _withdrawERC20(token, balance, msg.sender);
        else _withdrawERC20(token, amount, msg.sender);
    }

    function withdrawTo(address receiver) public {
        _withdrawEth(address(this).balance, receiver);
    }

    function withdrawTo(address receiver, uint256 amount) public {
        if (amount > address(this).balance) amount = address(this).balance;
        _withdrawEth(amount, receiver);
    }

    function withdrawTo(address receiver, address token) public {
        _withdrawERC20(token, IERC20(token).balanceOf(address(this)), receiver);
    }

    function withdrawTo(
        address receiver,
        address token,
        uint256 amount
    ) public {
        uint256 balance = IERC20(token).balanceOf(address(this));
        if (amount > balance) _withdrawERC20(token, balance, receiver);
        else _withdrawERC20(token, amount, receiver);
    }

    function _withdrawEth(uint256 amount, address receiver) private {
        uint256 actual = _beforeWithdraw(
            msg.sender,
            receiver,
            address(0),
            amount
        );
        (bool success, ) = receiver.call{value: actual}("");
        if (!success) revert TransferFailed();
    }

    function _withdrawERC20(
        address token,
        uint256 amount,
        address receiver
    ) private {
        uint256 actual = _beforeWithdraw(msg.sender, receiver, token, amount);
        bool success = IERC20(token).transfer(receiver, actual);
        if (!success) revert TransferFailed();
    }

    function _beforeWithdraw(
        address withdrawer,
        address receiver,
        address token,
        uint256 amount
    ) internal virtual returns (uint256);

    receive() external payable {}
}

File 6 of 7 : 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 7 of 7 : IERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.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);
}

Settings
{
  "remappings": [
    "@openzeppelin/=lib/openzeppelin-contracts/",
    "ds-test/=lib/forge-std/lib/ds-test/src/",
    "forge-std/=lib/forge-std/src/",
    "openzeppelin-contracts/=lib/openzeppelin-contracts/"
  ],
  "optimizer": {
    "enabled": true,
    "runs": 20000
  },
  "metadata": {
    "bytecodeHash": "ipfs"
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  },
  "evmVersion": "london",
  "libraries": {}
}

Contract Security Audit

Contract ABI

API
[{"inputs":[],"name":"NotOwner","type":"error"},{"inputs":[],"name":"TransferFailed","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"gateway","type":"address"},{"indexed":true,"internalType":"address","name":"owner","type":"address"}],"name":"GatewayDeployed","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"},{"inputs":[],"name":"deployGateway","outputs":[{"internalType":"address","name":"","type":"address"}],"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":"amount","type":"uint256"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"receiver","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"withdrawTo","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"receiver","type":"address"},{"internalType":"address","name":"token","type":"address"}],"name":"withdrawTo","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"receiver","type":"address"}],"name":"withdrawTo","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"receiver","type":"address"},{"internalType":"address","name":"token","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"withdrawTo","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]

60a0604052604051610010906100a4565b604051809103906000f08015801561002c573d6000803e3d6000fd5b506001600160a01b031660805234801561004557600080fd5b5061004f33610054565b6100b1565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b610c3580610d4483390190565b608051610c786100cc60003960006108c50152610c786000f3fe6080604052600436106100cb5760003560e01c806372b0d90c11610074578063c3b35a7e1161004e578063c3b35a7e14610208578063f2fde38b14610228578063f3fef3a31461024857600080fd5b806372b0d90c146101835780638da5cb5b146101a357806392fc453a146101f357600080fd5b806351cff8d9116100a557806351cff8d91461012e5780636dce4ab01461014e578063715018a61461016e57600080fd5b8063205c2878146100d75780632e1a7d4d146100f95780633ccfd60b1461011957600080fd5b366100d257005b600080fd5b3480156100e357600080fd5b506100f76100f2366004610b33565b610268565b005b34801561010557600080fd5b506100f7610114366004610b5d565b610281565b34801561012557600080fd5b506100f7610299565b34801561013a57600080fd5b506100f7610149366004610b76565b6102a5565b34801561015a57600080fd5b506100f7610169366004610b98565b61033f565b34801561017a57600080fd5b506100f76103d9565b34801561018f57600080fd5b506100f761019e366004610b76565b6103eb565b3480156101af57600080fd5b5060005473ffffffffffffffffffffffffffffffffffffffff165b60405173ffffffffffffffffffffffffffffffffffffffff909116815260200160405180910390f35b3480156101ff57600080fd5b506101ca6103f5565b34801561021457600080fd5b506100f7610223366004610bcb565b610404565b34801561023457600080fd5b506100f7610243366004610b76565b6104c0565b34801561025457600080fd5b506100f7610263366004610b33565b610579565b478111156102735750475b61027d818361062f565b5050565b4781111561028c5750475b610296813361062f565b50565b6102a3473361062f565b565b6040517f70a0823100000000000000000000000000000000000000000000000000000000815230600482015261029690829073ffffffffffffffffffffffffffffffffffffffff8216906370a0823190602401602060405180830381865afa158015610315573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906103399190610c07565b336106da565b6040517f70a0823100000000000000000000000000000000000000000000000000000000815230600482015261027d90829073ffffffffffffffffffffffffffffffffffffffff8216906370a0823190602401602060405180830381865afa1580156103af573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906103d39190610c07565b846106da565b6103e16107c7565b6102a36000610848565b610296478261062f565b60006103ff6108bd565b905090565b6040517f70a0823100000000000000000000000000000000000000000000000000000000815230600482015260009073ffffffffffffffffffffffffffffffffffffffff8416906370a0823190602401602060405180830381865afa158015610471573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104959190610c07565b9050808211156104af576104aa8382866106da565b6104ba565b6104ba8383866106da565b50505050565b6104c86107c7565b73ffffffffffffffffffffffffffffffffffffffff8116610570576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f646472657373000000000000000000000000000000000000000000000000000060648201526084015b60405180910390fd5b61029681610848565b6040517f70a0823100000000000000000000000000000000000000000000000000000000815230600482015260009073ffffffffffffffffffffffffffffffffffffffff8416906370a0823190602401602060405180830381865afa1580156105e6573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061060a9190610c07565b9050808211156106245761061f8382336106da565b505050565b61061f8383336106da565b600061063e33836000866109d0565b905060008273ffffffffffffffffffffffffffffffffffffffff168260405160006040518083038185875af1925050503d806000811461069a576040519150601f19603f3d011682016040523d82523d6000602084013e61069f565b606091505b50509050806104ba576040517f90b8ec1800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60006106e8338386866109d0565b6040517fa9059cbb00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff84811660048301526024820183905291925060009186169063a9059cbb906044016020604051808303816000875af1158015610763573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107879190610c20565b9050806107c0576040517f90b8ec1800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5050505050565b60005473ffffffffffffffffffffffffffffffffffffffff1633146102a3576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610567565b6000805473ffffffffffffffffffffffffffffffffffffffff8381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6000806108ff7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff16610a2d565b6040517f399ae7240000000000000000000000000000000000000000000000000000000081523360048201526064602482015290915073ffffffffffffffffffffffffffffffffffffffff82169063399ae72490604401600060405180830381600087803b15801561097057600080fd5b505af1158015610984573d6000803e3d6000fd5b505060405133925073ffffffffffffffffffffffffffffffffffffffff841691507f4b209f3d620ba8f4e206ec57dd17cebe32624f42eb77c06bcfd195be78b6c2c290600090a3919050565b6000805473ffffffffffffffffffffffffffffffffffffffff868116911614610a25576040517f30cd747100000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b509392505050565b60006040517f3d602d80600a3d3981f3363d3d373d3d3d363d7300000000000000000000000081528260601b60148201527f5af43d82803e903d91602b57fd5bf3000000000000000000000000000000000060288201526037816000f091505073ffffffffffffffffffffffffffffffffffffffff8116610b0a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601660248201527f455243313136373a20637265617465206661696c6564000000000000000000006044820152606401610567565b919050565b803573ffffffffffffffffffffffffffffffffffffffff81168114610b0a57600080fd5b60008060408385031215610b4657600080fd5b610b4f83610b0f565b946020939093013593505050565b600060208284031215610b6f57600080fd5b5035919050565b600060208284031215610b8857600080fd5b610b9182610b0f565b9392505050565b60008060408385031215610bab57600080fd5b610bb483610b0f565b9150610bc260208401610b0f565b90509250929050565b600080600060608486031215610be057600080fd5b610be984610b0f565b9250610bf760208501610b0f565b9150604084013590509250925092565b600060208284031215610c1957600080fd5b5051919050565b600060208284031215610c3257600080fd5b81518015158114610b9157600080fdfea26469706673582212203e62e128463802998d3032e236f265a8d35c577cdb7fa405a7f448f4c350cc5e64736f6c634300080d0033608060405234801561001057600080fd5b5061001c336064610021565b61007a565b6000546001600160a01b03161561004b57604051630faf2b2560e41b815260040160405180910390fd5b600080546001600160a01b039093166001600160a01b0319938416179055600180549092163317909155600255565b610bac806100896000396000f3fe6080604052600436106100b55760003560e01c80636dce4ab0116100695780638da5cb5b1161004e5780638da5cb5b14610198578063c3b35a7e146101d1578063f3fef3a3146101f157600080fd5b80636dce4ab01461015857806372b0d90c1461017857600080fd5b8063399ae7241161009a578063399ae724146101035780633ccfd60b1461012357806351cff8d91461013857600080fd5b8063205c2878146100c15780632e1a7d4d146100e357600080fd5b366100bc57005b600080fd5b3480156100cd57600080fd5b506100e16100dc3660046109a9565b610211565b005b3480156100ef57600080fd5b506100e16100fe3660046109d3565b61022a565b34801561010f57600080fd5b506100e161011e3660046109a9565b610242565b34801561012f57600080fd5b506100e16102e6565b34801561014457600080fd5b506100e16101533660046109ec565b6102f2565b34801561016457600080fd5b506100e1610173366004610a0e565b61038c565b34801561018457600080fd5b506100e16101933660046109ec565b610426565b3480156101a457600080fd5b506000546040805173ffffffffffffffffffffffffffffffffffffffff9092168252519081900360200190f35b3480156101dd57600080fd5b506100e16101ec366004610a41565b610430565b3480156101fd57600080fd5b506100e161020c3660046109a9565b6104ec565b4781111561021c5750475b61022681836105a2565b5050565b478111156102355750475b61023f81336105a2565b50565b60005473ffffffffffffffffffffffffffffffffffffffff1615610292576040517ffaf2b25000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000805473ffffffffffffffffffffffffffffffffffffffff9093167fffffffffffffffffffffffff0000000000000000000000000000000000000000938416179055600180549092163317909155600255565b6102f047336105a2565b565b6040517f70a0823100000000000000000000000000000000000000000000000000000000815230600482015261023f90829073ffffffffffffffffffffffffffffffffffffffff8216906370a0823190602401602060405180830381865afa158015610362573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906103869190610a7d565b3361064d565b6040517f70a0823100000000000000000000000000000000000000000000000000000000815230600482015261022690829073ffffffffffffffffffffffffffffffffffffffff8216906370a0823190602401602060405180830381865afa1580156103fc573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104209190610a7d565b8461064d565b61023f47826105a2565b6040517f70a0823100000000000000000000000000000000000000000000000000000000815230600482015260009073ffffffffffffffffffffffffffffffffffffffff8416906370a0823190602401602060405180830381865afa15801561049d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104c19190610a7d565b9050808211156104db576104d683828661064d565b6104e6565b6104e683838661064d565b50505050565b6040517f70a0823100000000000000000000000000000000000000000000000000000000815230600482015260009073ffffffffffffffffffffffffffffffffffffffff8416906370a0823190602401602060405180830381865afa158015610559573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061057d9190610a7d565b9050808211156105975761059283823361064d565b505050565b61059283833361064d565b60006105b1338360008661073a565b905060008273ffffffffffffffffffffffffffffffffffffffff168260405160006040518083038185875af1925050503d806000811461060d576040519150601f19603f3d011682016040523d82523d6000602084013e610612565b606091505b50509050806104e6576040517f90b8ec1800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600061065b3383868661073a565b6040517fa9059cbb00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff84811660048301526024820183905291925060009186169063a9059cbb906044016020604051808303816000875af11580156106d6573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106fa9190610a96565b905080610733576040517f90b8ec1800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5050505050565b6000805473ffffffffffffffffffffffffffffffffffffffff868116911614801590610781575060005473ffffffffffffffffffffffffffffffffffffffff858116911614155b156107b8576040517f30cd747100000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000612710600254846107cb9190610ae7565b6107d59190610b24565b905073ffffffffffffffffffffffffffffffffffffffff84166108925760015460405160009173ffffffffffffffffffffffffffffffffffffffff169083908381818185875af1925050503d806000811461084c576040519150601f19603f3d011682016040523d82523d6000602084013e610851565b606091505b505090508061088c576040517f90b8ec1800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5061096c565b6001546040517fa9059cbb00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff91821660048201526024810183905260009186169063a9059cbb906044016020604051808303816000875af115801561090d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109319190610a96565b90508061096a576040517f90b8ec1800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b505b6109768184610b5f565b9695505050505050565b803573ffffffffffffffffffffffffffffffffffffffff811681146109a457600080fd5b919050565b600080604083850312156109bc57600080fd5b6109c583610980565b946020939093013593505050565b6000602082840312156109e557600080fd5b5035919050565b6000602082840312156109fe57600080fd5b610a0782610980565b9392505050565b60008060408385031215610a2157600080fd5b610a2a83610980565b9150610a3860208401610980565b90509250929050565b600080600060608486031215610a5657600080fd5b610a5f84610980565b9250610a6d60208501610980565b9150604084013590509250925092565b600060208284031215610a8f57600080fd5b5051919050565b600060208284031215610aa857600080fd5b81518015158114610a0757600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615610b1f57610b1f610ab8565b500290565b600082610b5a577f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b500490565b600082821015610b7157610b71610ab8565b50039056fea264697066735822122021499c30f50b155d1c181d18768af1b74cbd7ffc5efd5356c53bf89f14dd125164736f6c634300080d0033

Deployed Bytecode

0x6080604052600436106100cb5760003560e01c806372b0d90c11610074578063c3b35a7e1161004e578063c3b35a7e14610208578063f2fde38b14610228578063f3fef3a31461024857600080fd5b806372b0d90c146101835780638da5cb5b146101a357806392fc453a146101f357600080fd5b806351cff8d9116100a557806351cff8d91461012e5780636dce4ab01461014e578063715018a61461016e57600080fd5b8063205c2878146100d75780632e1a7d4d146100f95780633ccfd60b1461011957600080fd5b366100d257005b600080fd5b3480156100e357600080fd5b506100f76100f2366004610b33565b610268565b005b34801561010557600080fd5b506100f7610114366004610b5d565b610281565b34801561012557600080fd5b506100f7610299565b34801561013a57600080fd5b506100f7610149366004610b76565b6102a5565b34801561015a57600080fd5b506100f7610169366004610b98565b61033f565b34801561017a57600080fd5b506100f76103d9565b34801561018f57600080fd5b506100f761019e366004610b76565b6103eb565b3480156101af57600080fd5b5060005473ffffffffffffffffffffffffffffffffffffffff165b60405173ffffffffffffffffffffffffffffffffffffffff909116815260200160405180910390f35b3480156101ff57600080fd5b506101ca6103f5565b34801561021457600080fd5b506100f7610223366004610bcb565b610404565b34801561023457600080fd5b506100f7610243366004610b76565b6104c0565b34801561025457600080fd5b506100f7610263366004610b33565b610579565b478111156102735750475b61027d818361062f565b5050565b4781111561028c5750475b610296813361062f565b50565b6102a3473361062f565b565b6040517f70a0823100000000000000000000000000000000000000000000000000000000815230600482015261029690829073ffffffffffffffffffffffffffffffffffffffff8216906370a0823190602401602060405180830381865afa158015610315573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906103399190610c07565b336106da565b6040517f70a0823100000000000000000000000000000000000000000000000000000000815230600482015261027d90829073ffffffffffffffffffffffffffffffffffffffff8216906370a0823190602401602060405180830381865afa1580156103af573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906103d39190610c07565b846106da565b6103e16107c7565b6102a36000610848565b610296478261062f565b60006103ff6108bd565b905090565b6040517f70a0823100000000000000000000000000000000000000000000000000000000815230600482015260009073ffffffffffffffffffffffffffffffffffffffff8416906370a0823190602401602060405180830381865afa158015610471573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104959190610c07565b9050808211156104af576104aa8382866106da565b6104ba565b6104ba8383866106da565b50505050565b6104c86107c7565b73ffffffffffffffffffffffffffffffffffffffff8116610570576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f646472657373000000000000000000000000000000000000000000000000000060648201526084015b60405180910390fd5b61029681610848565b6040517f70a0823100000000000000000000000000000000000000000000000000000000815230600482015260009073ffffffffffffffffffffffffffffffffffffffff8416906370a0823190602401602060405180830381865afa1580156105e6573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061060a9190610c07565b9050808211156106245761061f8382336106da565b505050565b61061f8383336106da565b600061063e33836000866109d0565b905060008273ffffffffffffffffffffffffffffffffffffffff168260405160006040518083038185875af1925050503d806000811461069a576040519150601f19603f3d011682016040523d82523d6000602084013e61069f565b606091505b50509050806104ba576040517f90b8ec1800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60006106e8338386866109d0565b6040517fa9059cbb00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff84811660048301526024820183905291925060009186169063a9059cbb906044016020604051808303816000875af1158015610763573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107879190610c20565b9050806107c0576040517f90b8ec1800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5050505050565b60005473ffffffffffffffffffffffffffffffffffffffff1633146102a3576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610567565b6000805473ffffffffffffffffffffffffffffffffffffffff8381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6000806108ff7f0000000000000000000000008968cfe59ddc9f5494b7d68bfca591ca03f956ec73ffffffffffffffffffffffffffffffffffffffff16610a2d565b6040517f399ae7240000000000000000000000000000000000000000000000000000000081523360048201526064602482015290915073ffffffffffffffffffffffffffffffffffffffff82169063399ae72490604401600060405180830381600087803b15801561097057600080fd5b505af1158015610984573d6000803e3d6000fd5b505060405133925073ffffffffffffffffffffffffffffffffffffffff841691507f4b209f3d620ba8f4e206ec57dd17cebe32624f42eb77c06bcfd195be78b6c2c290600090a3919050565b6000805473ffffffffffffffffffffffffffffffffffffffff868116911614610a25576040517f30cd747100000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b509392505050565b60006040517f3d602d80600a3d3981f3363d3d373d3d3d363d7300000000000000000000000081528260601b60148201527f5af43d82803e903d91602b57fd5bf3000000000000000000000000000000000060288201526037816000f091505073ffffffffffffffffffffffffffffffffffffffff8116610b0a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601660248201527f455243313136373a20637265617465206661696c6564000000000000000000006044820152606401610567565b919050565b803573ffffffffffffffffffffffffffffffffffffffff81168114610b0a57600080fd5b60008060408385031215610b4657600080fd5b610b4f83610b0f565b946020939093013593505050565b600060208284031215610b6f57600080fd5b5035919050565b600060208284031215610b8857600080fd5b610b9182610b0f565b9392505050565b60008060408385031215610bab57600080fd5b610bb483610b0f565b9150610bc260208401610b0f565b90509250929050565b600080600060608486031215610be057600080fd5b610be984610b0f565b9250610bf760208501610b0f565b9150604084013590509250925092565b600060208284031215610c1957600080fd5b5051919050565b600060208284031215610c3257600080fd5b81518015158114610b9157600080fdfea26469706673582212203e62e128463802998d3032e236f265a8d35c577cdb7fa405a7f448f4c350cc5e64736f6c634300080d0033

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.