Overview
ETH Balance
0 ETH
Eth Value
$0.00More Info
Private Name Tags
ContractCreator
Latest 25 from a total of 33 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Zap | 14364166 | 1053 days ago | IN | 80 ETH | 0.00343491 | ||||
Zap | 14364159 | 1053 days ago | IN | 90.93126296 ETH | 0.00303607 | ||||
Zap | 14364087 | 1053 days ago | IN | 15 ETH | 0.00252176 | ||||
Zap | 14360466 | 1053 days ago | IN | 51.5 ETH | 0.00731025 | ||||
Zap | 14359572 | 1054 days ago | IN | 81 ETH | 0.00269457 | ||||
Zap | 14359331 | 1054 days ago | IN | 44 ETH | 0.00406492 | ||||
Zap | 14357740 | 1054 days ago | IN | 5 ETH | 0.00237574 | ||||
Zap | 14351174 | 1055 days ago | IN | 11 ETH | 0.00331277 | ||||
Zap | 14325358 | 1059 days ago | IN | 180 ETH | 0.0028385 | ||||
Zap | 14319362 | 1060 days ago | IN | 5 ETH | 0.0029414 | ||||
Zap | 14314972 | 1061 days ago | IN | 5.05 ETH | 0.00441807 | ||||
Zap | 14313676 | 1061 days ago | IN | 150 ETH | 0.00446406 | ||||
Zap | 14313635 | 1061 days ago | IN | 5 ETH | 0.00314626 | ||||
Zap | 14310737 | 1061 days ago | IN | 7 ETH | 0.00455429 | ||||
Zap | 14305808 | 1062 days ago | IN | 6 ETH | 0.00301205 | ||||
Zap | 14304984 | 1062 days ago | IN | 5 ETH | 0.00586122 | ||||
Zap | 14302814 | 1062 days ago | IN | 7 ETH | 0.00770893 | ||||
Zap | 14302671 | 1062 days ago | IN | 20 ETH | 0.01139693 | ||||
Zap | 14302532 | 1062 days ago | IN | 5 ETH | 0.00816907 | ||||
Zap | 14302488 | 1062 days ago | IN | 8 ETH | 0.0059188 | ||||
Zap | 14302488 | 1062 days ago | IN | 5 ETH | 0.0059188 | ||||
Zap | 14302401 | 1062 days ago | IN | 5 ETH | 0.00969314 | ||||
Zap | 14302396 | 1062 days ago | IN | 5 ETH | 0.01073756 | ||||
Zap | 14302383 | 1062 days ago | IN | 17.156 ETH | 0.01387584 | ||||
Zap | 14302368 | 1062 days ago | IN | 15 ETH | 0.00711359 |
Latest 25 internal transactions (View All)
Advanced mode:
Parent Transaction Hash | Block |
From
|
To
|
|||
---|---|---|---|---|---|---|
14364166 | 1053 days ago | 80 ETH | ||||
14364159 | 1053 days ago | 90.93126296 ETH | ||||
14364087 | 1053 days ago | 15 ETH | ||||
14360466 | 1053 days ago | 51.5 ETH | ||||
14359572 | 1054 days ago | 81 ETH | ||||
14359331 | 1054 days ago | 44 ETH | ||||
14357740 | 1054 days ago | 5 ETH | ||||
14351174 | 1055 days ago | 11 ETH | ||||
14325358 | 1059 days ago | 180 ETH | ||||
14319362 | 1060 days ago | 5 ETH | ||||
14314972 | 1061 days ago | 5.05 ETH | ||||
14313676 | 1061 days ago | 150 ETH | ||||
14313635 | 1061 days ago | 5 ETH | ||||
14310737 | 1061 days ago | 7 ETH | ||||
14305808 | 1062 days ago | 6 ETH | ||||
14304984 | 1062 days ago | 5 ETH | ||||
14302814 | 1062 days ago | 7 ETH | ||||
14302671 | 1062 days ago | 20 ETH | ||||
14302532 | 1062 days ago | 5 ETH | ||||
14302488 | 1062 days ago | 8 ETH | ||||
14302488 | 1062 days ago | 5 ETH | ||||
14302401 | 1062 days ago | 5 ETH | ||||
14302396 | 1062 days ago | 5 ETH | ||||
14302383 | 1062 days ago | 17.156 ETH | ||||
14302368 | 1062 days ago | 15 ETH |
Loading...
Loading
Contract Source Code Verified (Exact Match)
Contract Name:
ZapEthToPreCommit
Compiler Version
v0.7.6+commit.7338295f
Contract Source Code (Solidity Standard Json-Input format)
// 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); } } }
// 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); }
// SPDX-License-Identifier: AGPL-3.0-or-later pragma solidity 0.7.6; interface IWETH { function deposit() external payable; }
// SPDX-License-Identifier: AGPL-3.0-or-later pragma solidity 0.7.6; interface IPreCommit { function commit(address _from, uint _amount) external; }
// 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); } }
// SPDX-License-Identifier: AGPL-3.0-or-later pragma solidity 0.7.6; interface IOwnable { function nominateNewOwner(address _owner) external; function acceptOwnership() external; }
{ "evmVersion": "istanbul", "optimizer": { "enabled": true, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"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"}]
Contract Creation Code
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
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 30 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
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.