ETH Price: $1,599.77 (+0.52%)
Gas: 8 Gwei
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Multi Chain

Transaction Hash
Method
Block
From
To
Value
0x60806040136694742021-11-23 7:19:26670 days 10 hrs ago1637651966IN
 Create: WethGate
0 ETH0.0213670295

Latest 25 internal transactions (View All)

Advanced mode:
Advanced Filter
Parent Txn Hash Block From To Value
179086452023-08-13 21:32:3541 days 20 hrs ago1691962355
0xFCf836...6e4D6A59
0.05007665 ETH
179086452023-08-13 21:32:3541 days 20 hrs ago1691962355
0xFCf836...6e4D6A59
0.05007665 ETH
178271902023-08-02 12:03:4753 days 5 hrs ago1690977827
0xFCf836...6e4D6A59
0.1962876 ETH
178271902023-08-02 12:03:4753 days 5 hrs ago1690977827
0xFCf836...6e4D6A59
0.1962876 ETH
178185232023-08-01 7:01:1154 days 10 hrs ago1690873271
0xFCf836...6e4D6A59
9.25597628 ETH
178185232023-08-01 7:01:1154 days 10 hrs ago1690873271
0xFCf836...6e4D6A59
9.25597628 ETH
170729362023-04-18 10:19:23159 days 7 hrs ago1681813163
0xFCf836...6e4D6A59
3.36472195 ETH
170729362023-04-18 10:19:23159 days 7 hrs ago1681813163
0xFCf836...6e4D6A59
3.36472195 ETH
170712612023-04-18 4:38:11159 days 13 hrs ago1681792691
0xFCf836...6e4D6A59
3.73689168 ETH
170712612023-04-18 4:38:11159 days 13 hrs ago1681792691
0xFCf836...6e4D6A59
3.73689168 ETH
170580832023-04-16 7:47:59161 days 10 hrs ago1681631279
0xFCf836...6e4D6A59
2.36613975 ETH
170580832023-04-16 7:47:59161 days 10 hrs ago1681631279
0xFCf836...6e4D6A59
2.36613975 ETH
170559342023-04-16 0:29:11161 days 17 hrs ago1681604951
0xFCf836...6e4D6A59
3.03341757 ETH
170559342023-04-16 0:29:11161 days 17 hrs ago1681604951
0xFCf836...6e4D6A59
3.03341757 ETH
170546932023-04-15 20:16:23161 days 21 hrs ago1681589783
0xFCf836...6e4D6A59
2.77228392 ETH
170546932023-04-15 20:16:23161 days 21 hrs ago1681589783
0xFCf836...6e4D6A59
2.77228392 ETH
170539502023-04-15 17:44:11162 days 12 mins ago1681580651
0xFCf836...6e4D6A59
3.21931094 ETH
170539502023-04-15 17:44:11162 days 12 mins ago1681580651
0xFCf836...6e4D6A59
3.21931094 ETH
170537132023-04-15 16:55:47162 days 1 hr ago1681577747
0xFCf836...6e4D6A59
1.52054134 ETH
170537132023-04-15 16:55:47162 days 1 hr ago1681577747
0xFCf836...6e4D6A59
1.52054134 ETH
170535052023-04-15 16:13:11162 days 1 hr ago1681575191
0xFCf836...6e4D6A59
1.48090751 ETH
170535052023-04-15 16:13:11162 days 1 hr ago1681575191
0xFCf836...6e4D6A59
1.48090751 ETH
170529422023-04-15 14:17:35162 days 3 hrs ago1681568255
0xFCf836...6e4D6A59
1.26966852 ETH
170529422023-04-15 14:17:35162 days 3 hrs ago1681568255
0xFCf836...6e4D6A59
1.26966852 ETH
170524952023-04-15 12:45:23162 days 5 hrs ago1681562723
0xFCf836...6e4D6A59
4.32468661 ETH
View All Internal Transactions
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
WethGate

Compiler Version
v0.8.7+commit.e28d00a7

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
File 1 of 3 : WethGate.sol
// 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
    }
}

File 2 of 3 : IWETH.sol
// 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);
}

File 3 of 3 : IWethGate.sol
// SPDX-License-Identifier: BUSL-1.1
pragma solidity 0.8.7;

interface IWethGate {
    function withdraw(address receiver, uint wad) external;
}

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

Contract Security Audit

Contract ABI

[{"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"}]

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


Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

Block Uncle Number Difficulty Gas Used Reward
View All Uncles
Loading...
Loading
Loading...
Loading
Make sure to use the "Vote Down" button for any spammy posts, and the "Vote Up" for interesting conversations.

Validator Index Block Amount
View All Withdrawals

Txn Hash Block Value Eth2 PubKey Valid
View All Deposits
[ 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.