Overview
ETH Balance
0 ETH
Eth Value
$0.00More Info
Private Name Tags
ContractCreator
Multi Chain
Multichain Addresses
10 addresses found via
Latest 1 from a total of 1 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
Value | ||||
---|---|---|---|---|---|---|---|---|---|
0x60806040 | 13669474 | 670 days 10 hrs ago | IN | Create: WethGate | 0 ETH | 0.02136702 |
Latest 25 internal transactions (View All)
Parent Txn Hash | Block | From | To | Value | ||
---|---|---|---|---|---|---|
17908645 | 41 days 20 hrs ago | 0.05007665 ETH | ||||
17908645 | 41 days 20 hrs ago | 0.05007665 ETH | ||||
17827190 | 53 days 5 hrs ago | 0.1962876 ETH | ||||
17827190 | 53 days 5 hrs ago | 0.1962876 ETH | ||||
17818523 | 54 days 10 hrs ago | 9.25597628 ETH | ||||
17818523 | 54 days 10 hrs ago | 9.25597628 ETH | ||||
17072936 | 159 days 7 hrs ago | 3.36472195 ETH | ||||
17072936 | 159 days 7 hrs ago | 3.36472195 ETH | ||||
17071261 | 159 days 13 hrs ago | 3.73689168 ETH | ||||
17071261 | 159 days 13 hrs ago | 3.73689168 ETH | ||||
17058083 | 161 days 10 hrs ago | 2.36613975 ETH | ||||
17058083 | 161 days 10 hrs ago | 2.36613975 ETH | ||||
17055934 | 161 days 17 hrs ago | 3.03341757 ETH | ||||
17055934 | 161 days 17 hrs ago | 3.03341757 ETH | ||||
17054693 | 161 days 21 hrs ago | 2.77228392 ETH | ||||
17054693 | 161 days 21 hrs ago | 2.77228392 ETH | ||||
17053950 | 162 days 12 mins ago | 3.21931094 ETH | ||||
17053950 | 162 days 12 mins ago | 3.21931094 ETH | ||||
17053713 | 162 days 1 hr ago | 1.52054134 ETH | ||||
17053713 | 162 days 1 hr ago | 1.52054134 ETH | ||||
17053505 | 162 days 1 hr ago | 1.48090751 ETH | ||||
17053505 | 162 days 1 hr ago | 1.48090751 ETH | ||||
17052942 | 162 days 3 hrs ago | 1.26966852 ETH | ||||
17052942 | 162 days 3 hrs ago | 1.26966852 ETH | ||||
17052495 | 162 days 5 hrs ago | 4.32468661 ETH |
Loading...
Loading
Contract Name:
WethGate
Compiler Version
v0.8.7+commit.e28d00a7
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: BUSL-1.1 pragma solidity 0.8.7; import "../interfaces/IWETH.sol"; import "../interfaces/IWethGate.sol"; contract WethGate is IWethGate { IWETH public weth; // wrapped native token contract /* ========== ERRORS ========== */ error EthTransferFailed(); /* ========== EVENTS ========== */ event Withdrawal(address indexed receiver, uint wad); /* ========== CONSTRUCTOR ========== */ constructor(IWETH _weth) { weth = _weth; } function withdraw(address _receiver, uint _wad) external override { weth.withdraw(_wad); _safeTransferETH(_receiver, _wad); emit Withdrawal(_receiver, _wad); } function _safeTransferETH(address _to, uint256 _value) internal { (bool success, ) = _to.call{value: _value}(new bytes(0)); if (!success) revert EthTransferFailed(); } // we need to accept ETH sends to unwrap WETH receive() external payable { } // ============ Version Control ============ function version() external pure returns (uint256) { return 101; // 1.0.1 } }
// SPDX-License-Identifier: MIT pragma solidity 0.8.7; interface IWETH { function deposit() external payable; function withdraw(uint256 wad) external; function totalSupply() external view returns (uint256); function balanceOf(address account) external view returns (uint256); function transfer(address recipient, uint256 amount) external returns (bool); function allowance(address owner, address spender) external view returns (uint256); function approve(address spender, uint256 amount) external returns (bool); function transferFrom( address sender, address recipient, uint256 amount ) external returns (bool); }
// SPDX-License-Identifier: BUSL-1.1 pragma solidity 0.8.7; interface IWethGate { function withdraw(address receiver, uint wad) external; }
{ "optimizer": { "enabled": true, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "metadata": { "useLiteralContent": true }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"contract IWETH","name":"_weth","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"EthTransferFailed","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"receiver","type":"address"},{"indexed":false,"internalType":"uint256","name":"wad","type":"uint256"}],"name":"Withdrawal","type":"event"},{"inputs":[],"name":"version","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"pure","type":"function"},{"inputs":[],"name":"weth","outputs":[{"internalType":"contract IWETH","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_receiver","type":"address"},{"internalType":"uint256","name":"_wad","type":"uint256"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]
Contract Creation Code
608060405234801561001057600080fd5b5060405161033d38038061033d83398101604081905261002f91610054565b600080546001600160a01b0319166001600160a01b0392909216919091179055610084565b60006020828403121561006657600080fd5b81516001600160a01b038116811461007d57600080fd5b9392505050565b6102aa806100936000396000f3fe6080604052600436106100385760003560e01c80633fc8cef31461004457806354fd4d5014610081578063f3fef3a31461009d57600080fd5b3661003f57005b600080fd5b34801561005057600080fd5b50600054610064906001600160a01b031681565b6040516001600160a01b0390911681526020015b60405180910390f35b34801561008d57600080fd5b5060405160658152602001610078565b3480156100a957600080fd5b506100bd6100b8366004610201565b6100bf565b005b600054604051632e1a7d4d60e01b8152600481018390526001600160a01b0390911690632e1a7d4d90602401600060405180830381600087803b15801561010557600080fd5b505af1158015610119573d6000803e3d6000fd5b50505050610127828261016e565b816001600160a01b03167f7fcf532c15f0a6db0bd6d0e038bea71d30d808c7d98cb3bf7268a95bf5081b658260405161016291815260200190565b60405180910390a25050565b604080516000808252602082019092526001600160a01b0384169083906040516101989190610239565b60006040518083038185875af1925050503d80600081146101d5576040519150601f19603f3d011682016040523d82523d6000602084013e6101da565b606091505b50509050806101fc57604051630db2c7f160e31b815260040160405180910390fd5b505050565b6000806040838503121561021457600080fd5b82356001600160a01b038116811461022b57600080fd5b946020939093013593505050565b6000825160005b8181101561025a5760208186018101518583015201610240565b81811115610269576000828501525b50919091019291505056fea26469706673582212206ab57b3bc19ca4e86b9d32cf905e3c8538d8b47bcafe20346054abc9703ddb0464736f6c63430008070033000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2
Deployed Bytecode
0x6080604052600436106100385760003560e01c80633fc8cef31461004457806354fd4d5014610081578063f3fef3a31461009d57600080fd5b3661003f57005b600080fd5b34801561005057600080fd5b50600054610064906001600160a01b031681565b6040516001600160a01b0390911681526020015b60405180910390f35b34801561008d57600080fd5b5060405160658152602001610078565b3480156100a957600080fd5b506100bd6100b8366004610201565b6100bf565b005b600054604051632e1a7d4d60e01b8152600481018390526001600160a01b0390911690632e1a7d4d90602401600060405180830381600087803b15801561010557600080fd5b505af1158015610119573d6000803e3d6000fd5b50505050610127828261016e565b816001600160a01b03167f7fcf532c15f0a6db0bd6d0e038bea71d30d808c7d98cb3bf7268a95bf5081b658260405161016291815260200190565b60405180910390a25050565b604080516000808252602082019092526001600160a01b0384169083906040516101989190610239565b60006040518083038185875af1925050503d80600081146101d5576040519150601f19603f3d011682016040523d82523d6000602084013e6101da565b606091505b50509050806101fc57604051630db2c7f160e31b815260040160405180910390fd5b505050565b6000806040838503121561021457600080fd5b82356001600160a01b038116811461022b57600080fd5b946020939093013593505050565b6000825160005b8181101561025a5760208186018101518583015201610240565b81811115610269576000828501525b50919091019291505056fea26469706673582212206ab57b3bc19ca4e86b9d32cf905e3c8538d8b47bcafe20346054abc9703ddb0464736f6c63430008070033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2
-----Decoded View---------------
Arg [0] : _weth (address): 0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2
-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2
Loading...
Loading
Loading...
Loading
Make sure to use the "Vote Down" button for any spammy posts, and the "Vote Up" for interesting conversations.
[ 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.