ETH Price: $3,125.21 (-5.74%)
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Zap143641662022-03-11 7:12:071053 days ago1646982727IN
0xD936219f...2BE85A90a
80 ETH0.0034349129.88801704
Zap143641592022-03-11 7:09:251053 days ago1646982565IN
0xD936219f...2BE85A90a
90.93126296 ETH0.0030360726.41766723
Zap143640872022-03-11 6:52:111053 days ago1646981531IN
0xD936219f...2BE85A90a
15 ETH0.0025217621.94252249
Zap143604662022-03-10 17:36:001053 days ago1646933760IN
0xD936219f...2BE85A90a
51.5 ETH0.0073102563.60839292
Zap143595722022-03-10 14:15:091054 days ago1646921709IN
0xD936219f...2BE85A90a
81 ETH0.0026945723.446137
Zap143593312022-03-10 13:26:431054 days ago1646918803IN
0xD936219f...2BE85A90a
44 ETH0.0040649235.36992132
Zap143577402022-03-10 7:24:191054 days ago1646897059IN
0xD936219f...2BE85A90a
5 ETH0.0023757420.6719408
Zap143511742022-03-09 7:02:421055 days ago1646809362IN
0xD936219f...2BE85A90a
11 ETH0.0033127728.82531025
Zap143253582022-03-05 6:48:391059 days ago1646462919IN
0xD936219f...2BE85A90a
180 ETH0.002838524.69852091
Zap143193622022-03-04 8:28:021060 days ago1646382482IN
0xD936219f...2BE85A90a
5 ETH0.002941425.59389961
Zap143149722022-03-03 16:00:451061 days ago1646323245IN
0xD936219f...2BE85A90a
5.05 ETH0.0044180738.44274323
Zap143136762022-03-03 11:11:411061 days ago1646305901IN
0xD936219f...2BE85A90a
150 ETH0.0044640638.84299304
Zap143136352022-03-03 11:00:581061 days ago1646305258IN
0xD936219f...2BE85A90a
5 ETH0.0031462627.3764778
Zap143107372022-03-03 0:16:201061 days ago1646266580IN
0xD936219f...2BE85A90a
7 ETH0.0045542939.62806728
Zap143058082022-03-02 5:47:571062 days ago1646200077IN
0xD936219f...2BE85A90a
6 ETH0.0030120526.20865791
Zap143049842022-03-02 2:46:531062 days ago1646189213IN
0xD936219f...2BE85A90a
5 ETH0.0058612251
Zap143028142022-03-01 18:46:141062 days ago1646160374IN
0xD936219f...2BE85A90a
7 ETH0.0077089367.07738922
Zap143026712022-03-01 18:14:101062 days ago1646158450IN
0xD936219f...2BE85A90a
20 ETH0.0113969399.16763393
Zap143025322022-03-01 17:37:551062 days ago1646156275IN
0xD936219f...2BE85A90a
5 ETH0.0081690771.0811688
Zap143024882022-03-01 17:28:261062 days ago1646155706IN
0xD936219f...2BE85A90a
8 ETH0.005918851.50100834
Zap143024882022-03-01 17:28:261062 days ago1646155706IN
0xD936219f...2BE85A90a
5 ETH0.005918851.50100834
Zap143024012022-03-01 17:10:201062 days ago1646154620IN
0xD936219f...2BE85A90a
5 ETH0.0096931484.34249867
Zap143023962022-03-01 17:09:231062 days ago1646154563IN
0xD936219f...2BE85A90a
5 ETH0.0107375693.43027993
Zap143023832022-03-01 17:06:401062 days ago1646154400IN
0xD936219f...2BE85A90a
17.156 ETH0.01387584120.73720825
Zap143023682022-03-01 17:01:171062 days ago1646154077IN
0xD936219f...2BE85A90a
15 ETH0.0071135961.89719939
View all transactions

Latest 25 internal transactions (View All)

Advanced mode:
Parent Transaction Hash Block
From
To
143641662022-03-11 7:12:071053 days ago1646982727
0xD936219f...2BE85A90a
80 ETH
143641592022-03-11 7:09:251053 days ago1646982565
0xD936219f...2BE85A90a
90.93126296 ETH
143640872022-03-11 6:52:111053 days ago1646981531
0xD936219f...2BE85A90a
15 ETH
143604662022-03-10 17:36:001053 days ago1646933760
0xD936219f...2BE85A90a
51.5 ETH
143595722022-03-10 14:15:091054 days ago1646921709
0xD936219f...2BE85A90a
81 ETH
143593312022-03-10 13:26:431054 days ago1646918803
0xD936219f...2BE85A90a
44 ETH
143577402022-03-10 7:24:191054 days ago1646897059
0xD936219f...2BE85A90a
5 ETH
143511742022-03-09 7:02:421055 days ago1646809362
0xD936219f...2BE85A90a
11 ETH
143253582022-03-05 6:48:391059 days ago1646462919
0xD936219f...2BE85A90a
180 ETH
143193622022-03-04 8:28:021060 days ago1646382482
0xD936219f...2BE85A90a
5 ETH
143149722022-03-03 16:00:451061 days ago1646323245
0xD936219f...2BE85A90a
5.05 ETH
143136762022-03-03 11:11:411061 days ago1646305901
0xD936219f...2BE85A90a
150 ETH
143136352022-03-03 11:00:581061 days ago1646305258
0xD936219f...2BE85A90a
5 ETH
143107372022-03-03 0:16:201061 days ago1646266580
0xD936219f...2BE85A90a
7 ETH
143058082022-03-02 5:47:571062 days ago1646200077
0xD936219f...2BE85A90a
6 ETH
143049842022-03-02 2:46:531062 days ago1646189213
0xD936219f...2BE85A90a
5 ETH
143028142022-03-01 18:46:141062 days ago1646160374
0xD936219f...2BE85A90a
7 ETH
143026712022-03-01 18:14:101062 days ago1646158450
0xD936219f...2BE85A90a
20 ETH
143025322022-03-01 17:37:551062 days ago1646156275
0xD936219f...2BE85A90a
5 ETH
143024882022-03-01 17:28:261062 days ago1646155706
0xD936219f...2BE85A90a
8 ETH
143024882022-03-01 17:28:261062 days ago1646155706
0xD936219f...2BE85A90a
5 ETH
143024012022-03-01 17:10:201062 days ago1646154620
0xD936219f...2BE85A90a
5 ETH
143023962022-03-01 17:09:231062 days ago1646154563
0xD936219f...2BE85A90a
5 ETH
143023832022-03-01 17:06:401062 days ago1646154400
0xD936219f...2BE85A90a
17.156 ETH
143023682022-03-01 17:01:171062 days ago1646154077
0xD936219f...2BE85A90a
15 ETH
View All Internal Transactions
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
ZapEthToPreCommit

Compiler Version
v0.7.6+commit.7338295f

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, GNU AGPLv3 license
File 1 of 6 : ZapEthToPreCommit.sol
// SPDX-License-Identifier: AGPL-3.0-or-later
pragma solidity 0.7.6;

import "IERC20.sol";
import "IWETH.sol";
import "IPreCommit.sol";
import "Ownable.sol";

contract ZapEthToPreCommit is Ownable {
    IWETH public immutable weth;
    IPreCommit public immutable preCommit;

    constructor(address _weth, address _preCommit) {
        require(_weth != address(0), "weth = zero address");
        require(_preCommit != address(0), "pre commit = zero address");

        weth = IWETH(_weth);
        preCommit = IPreCommit(_preCommit);

        IERC20(_weth).approve(_preCommit, type(uint).max);
    }

    function zap() external payable {
        require(msg.value > 0, "value = 0");
        weth.deposit{value: msg.value}();
        preCommit.commit(msg.sender, msg.value);
    }

    function recover(address _token) external onlyOwner {
        if (_token != address(0)) {
            IERC20(_token).transfer(
                msg.sender,
                IERC20(_token).balanceOf(address(this))
            );
        } else {
            payable(msg.sender).transfer(address(this).balance);
        }
    }
}

File 2 of 6 : IERC20.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.6.0 <0.8.0;

/**
 * @dev Interface of the ERC20 standard as defined in the EIP.
 */
interface IERC20 {
    /**
     * @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 `recipient`.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transfer(address recipient, 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 `sender` to `recipient` 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 sender, address recipient, uint256 amount) external returns (bool);

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

File 3 of 6 : IWETH.sol
// SPDX-License-Identifier: AGPL-3.0-or-later
pragma solidity 0.7.6;

interface IWETH {
    function deposit() external payable;
}

File 4 of 6 : IPreCommit.sol
// SPDX-License-Identifier: AGPL-3.0-or-later
pragma solidity 0.7.6;

interface IPreCommit {
    function commit(address _from, uint _amount) external;
}

File 5 of 6 : Ownable.sol
// SPDX-License-Identifier: AGPL-3.0-or-later
pragma solidity 0.7.6;

import "IOwnable.sol";

contract Ownable is IOwnable {
    event OwnerNominated(address newOwner);
    event OwnerChanged(address newOwner);

    address public owner;
    address public nominatedOwner;

    constructor() {
        owner = msg.sender;
    }

    modifier onlyOwner() {
        require(msg.sender == owner, "not owner");
        _;
    }

    function nominateNewOwner(address _owner) external override onlyOwner {
        nominatedOwner = _owner;
        emit OwnerNominated(_owner);
    }

    function acceptOwnership() external override {
        require(msg.sender == nominatedOwner, "not nominated");

        owner = msg.sender;
        nominatedOwner = address(0);

        emit OwnerChanged(msg.sender);
    }
}

File 6 of 6 : IOwnable.sol
// SPDX-License-Identifier: AGPL-3.0-or-later
pragma solidity 0.7.6;

interface IOwnable {
    function nominateNewOwner(address _owner) external;
    function acceptOwnership() external;
}

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"_weth","type":"address"},{"internalType":"address","name":"_preCommit","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnerChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnerNominated","type":"event"},{"inputs":[],"name":"acceptOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_owner","type":"address"}],"name":"nominateNewOwner","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"nominatedOwner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"preCommit","outputs":[{"internalType":"contract IPreCommit","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_token","type":"address"}],"name":"recover","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"weth","outputs":[{"internalType":"contract IWETH","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"zap","outputs":[],"stateMutability":"payable","type":"function"}]

60c060405234801561001057600080fd5b506040516107f53803806107f58339818101604052604081101561003357600080fd5b508051602090910151600080546001600160a01b031916331790556001600160a01b0382166100a9576040805162461bcd60e51b815260206004820152601360248201527f77657468203d207a65726f206164647265737300000000000000000000000000604482015290519081900360640190fd5b6001600160a01b038116610104576040805162461bcd60e51b815260206004820152601960248201527f70726520636f6d6d6974203d207a65726f206164647265737300000000000000604482015290519081900360640190fd5b6001600160601b0319606083811b821660805282901b1660a0526040805163095ea7b360e01b81526001600160a01b038381166004830152600019602483015291519184169163095ea7b3916044808201926020929091908290030181600087803b15801561017257600080fd5b505af1158015610186573d6000803e3d6000fd5b505050506040513d602081101561019c57600080fd5b5050505060805160601c60a05160601c6106226101d36000398061048152806104e55250806103ec528061050952506106226000f3fe60806040526004361061007b5760003560e01c80633fc8cef31161004e5780633fc8cef31461012157806353a47bb71461013657806379ba50971461014b5780638da5cb5b146101605761007b565b80630cd865ec146100805780631627540c146100b5578063262d6152146100e85780632d5b9f89146100f0575b600080fd5b34801561008c57600080fd5b506100b3600480360360208110156100a357600080fd5b50356001600160a01b0316610175565b005b3480156100c157600080fd5b506100b3600480360360208110156100d857600080fd5b50356001600160a01b031661030a565b6100b36103a9565b3480156100fc57600080fd5b506101056104e3565b604080516001600160a01b039092168252519081900360200190f35b34801561012d57600080fd5b50610105610507565b34801561014257600080fd5b5061010561052b565b34801561015757600080fd5b506100b361053a565b34801561016c57600080fd5b506101056105dd565b6000546001600160a01b031633146101c0576040805162461bcd60e51b81526020600482015260096024820152683737ba1037bbb732b960b91b604482015290519081900360640190fd5b6001600160a01b038116156102d957806001600160a01b031663a9059cbb33836001600160a01b03166370a08231306040518263ffffffff1660e01b815260040180826001600160a01b0316815260200191505060206040518083038186803b15801561022c57600080fd5b505afa158015610240573d6000803e3d6000fd5b505050506040513d602081101561025657600080fd5b5051604080516001600160e01b031960e086901b1681526001600160a01b03909316600484015260248301919091525160448083019260209291908290030181600087803b1580156102a757600080fd5b505af11580156102bb573d6000803e3d6000fd5b505050506040513d60208110156102d157600080fd5b506103079050565b60405133904780156108fc02916000818181858888f19350505050158015610305573d6000803e3d6000fd5b505b50565b6000546001600160a01b03163314610355576040805162461bcd60e51b81526020600482015260096024820152683737ba1037bbb732b960b91b604482015290519081900360640190fd5b600180546001600160a01b0383166001600160a01b0319909116811790915560408051918252517f906a1c6bd7e3091ea86693dd029a831c19049ce77f1dce2ce0bab1cacbabce229181900360200190a150565b600034116103ea576040805162461bcd60e51b8152602060048201526009602482015268076616c7565203d20360bc1b604482015290519081900360640190fd5b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663d0e30db0346040518263ffffffff1660e01b81526004016000604051808303818588803b15801561044557600080fd5b505af1158015610459573d6000803e3d6000fd5b5050604080516384bf153560e01b815233600482015234602482015290516001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001694506384bf153593506044808301935060009282900301818387803b1580156104c957600080fd5b505af11580156104dd573d6000803e3d6000fd5b50505050565b7f000000000000000000000000000000000000000000000000000000000000000081565b7f000000000000000000000000000000000000000000000000000000000000000081565b6001546001600160a01b031681565b6001546001600160a01b03163314610589576040805162461bcd60e51b815260206004820152600d60248201526c1b9bdd081b9bdb5a5b985d1959609a1b604482015290519081900360640190fd5b600080546001600160a01b03199081163390811790925560018054909116905560408051918252517fa2ea9883a321a3e97b8266c2b078bfeec6d50c711ed71f874a90d500ae2eaf369181900360200190a1565b6000546001600160a01b03168156fea26469706673582212204c4dd3ec38fca4bdf91abc216674a8860d433ac3124bf4d37143558355fbd7ae64736f6c63430007060033000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc20000000000000000000000003db19de4263284c957b09efe53cb0e7042228c59

Deployed Bytecode

0x60806040526004361061007b5760003560e01c80633fc8cef31161004e5780633fc8cef31461012157806353a47bb71461013657806379ba50971461014b5780638da5cb5b146101605761007b565b80630cd865ec146100805780631627540c146100b5578063262d6152146100e85780632d5b9f89146100f0575b600080fd5b34801561008c57600080fd5b506100b3600480360360208110156100a357600080fd5b50356001600160a01b0316610175565b005b3480156100c157600080fd5b506100b3600480360360208110156100d857600080fd5b50356001600160a01b031661030a565b6100b36103a9565b3480156100fc57600080fd5b506101056104e3565b604080516001600160a01b039092168252519081900360200190f35b34801561012d57600080fd5b50610105610507565b34801561014257600080fd5b5061010561052b565b34801561015757600080fd5b506100b361053a565b34801561016c57600080fd5b506101056105dd565b6000546001600160a01b031633146101c0576040805162461bcd60e51b81526020600482015260096024820152683737ba1037bbb732b960b91b604482015290519081900360640190fd5b6001600160a01b038116156102d957806001600160a01b031663a9059cbb33836001600160a01b03166370a08231306040518263ffffffff1660e01b815260040180826001600160a01b0316815260200191505060206040518083038186803b15801561022c57600080fd5b505afa158015610240573d6000803e3d6000fd5b505050506040513d602081101561025657600080fd5b5051604080516001600160e01b031960e086901b1681526001600160a01b03909316600484015260248301919091525160448083019260209291908290030181600087803b1580156102a757600080fd5b505af11580156102bb573d6000803e3d6000fd5b505050506040513d60208110156102d157600080fd5b506103079050565b60405133904780156108fc02916000818181858888f19350505050158015610305573d6000803e3d6000fd5b505b50565b6000546001600160a01b03163314610355576040805162461bcd60e51b81526020600482015260096024820152683737ba1037bbb732b960b91b604482015290519081900360640190fd5b600180546001600160a01b0383166001600160a01b0319909116811790915560408051918252517f906a1c6bd7e3091ea86693dd029a831c19049ce77f1dce2ce0bab1cacbabce229181900360200190a150565b600034116103ea576040805162461bcd60e51b8152602060048201526009602482015268076616c7565203d20360bc1b604482015290519081900360640190fd5b7f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc26001600160a01b031663d0e30db0346040518263ffffffff1660e01b81526004016000604051808303818588803b15801561044557600080fd5b505af1158015610459573d6000803e3d6000fd5b5050604080516384bf153560e01b815233600482015234602482015290516001600160a01b037f0000000000000000000000003db19de4263284c957b09efe53cb0e7042228c591694506384bf153593506044808301935060009282900301818387803b1580156104c957600080fd5b505af11580156104dd573d6000803e3d6000fd5b50505050565b7f0000000000000000000000003db19de4263284c957b09efe53cb0e7042228c5981565b7f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc281565b6001546001600160a01b031681565b6001546001600160a01b03163314610589576040805162461bcd60e51b815260206004820152600d60248201526c1b9bdd081b9bdb5a5b985d1959609a1b604482015290519081900360640190fd5b600080546001600160a01b03199081163390811790925560018054909116905560408051918252517fa2ea9883a321a3e97b8266c2b078bfeec6d50c711ed71f874a90d500ae2eaf369181900360200190a1565b6000546001600160a01b03168156fea26469706673582212204c4dd3ec38fca4bdf91abc216674a8860d433ac3124bf4d37143558355fbd7ae64736f6c63430007060033

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

000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc20000000000000000000000003db19de4263284c957b09efe53cb0e7042228c59

-----Decoded View---------------
Arg [0] : _weth (address): 0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2
Arg [1] : _preCommit (address): 0x3db19DE4263284c957B09efe53Cb0e7042228C59

-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2
Arg [1] : 0000000000000000000000003db19de4263284c957b09efe53cb0e7042228c59


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.