Contract 0xFCf83648b8cDeF62e5d03319a6f1FCE16e4D6A59 7

Txn Hash Method
Block
From
To
Value [Txn Fee]
0x8be84c308c69900287f52a6fb903d7c7bf0aced0f5dd9b3e399393fd479766e90x60806040102433902021-11-22 23:36:42222 days 23 hrs ago0xd6f0dabbbccd143f7d526a82ca176b5395ccc844 IN  Create: WethGate0 HT0.0005060612.25
[ Download CSV Export 
Latest 25 internal transaction
Parent Txn Hash Block From To Value
0x6416c9b6ebb8c4a4c1375a1ed4c55d3e207cd4edad41af1f927a9f683564da91140082132022-04-02 16:58:0092 days 6 hrs ago 0xfcf83648b8cdef62e5d03319a6f1fce16e4d6a590xb779daead6031ef189cad4ac438c991efe7635a71.997327 HT
0x6416c9b6ebb8c4a4c1375a1ed4c55d3e207cd4edad41af1f927a9f683564da91140082132022-04-02 16:58:0092 days 6 hrs ago Huobi: Wrapped Huobi Token0xfcf83648b8cdef62e5d03319a6f1fce16e4d6a591.997327 HT
0x6aac6ced911c62f91249ebf277445d2529872ada94a1c77030a9bef827d43b85139390042022-03-31 7:17:3394 days 16 hrs ago 0xfcf83648b8cdef62e5d03319a6f1fce16e4d6a590x345df7e3d2897b644b6463c47ea28634960c563f0.3952267 HT
0x6aac6ced911c62f91249ebf277445d2529872ada94a1c77030a9bef827d43b85139390042022-03-31 7:17:3394 days 16 hrs ago Huobi: Wrapped Huobi Token0xfcf83648b8cdef62e5d03319a6f1fce16e4d6a590.3952267 HT
0x6d26273646aaaec342e8f3956b39387d8879f4ccd3367c6030e8ea320f905218134814062022-03-15 9:57:31110 days 13 hrs ago 0xfcf83648b8cdef62e5d03319a6f1fce16e4d6a590x3ff31f751f8f452765114333e206f2df4a8cbc8711.87283061 HT
0x6d26273646aaaec342e8f3956b39387d8879f4ccd3367c6030e8ea320f905218134814062022-03-15 9:57:31110 days 13 hrs ago Huobi: Wrapped Huobi Token0xfcf83648b8cdef62e5d03319a6f1fce16e4d6a5911.87283061 HT
0x765f14a06778054b550251a971d508b0aca84f10e78ca2f7ace1307620ccd0d1134792712022-03-15 8:10:46110 days 15 hrs ago 0xfcf83648b8cdef62e5d03319a6f1fce16e4d6a590x3ff31f751f8f452765114333e206f2df4a8cbc8711.87279165 HT
0x765f14a06778054b550251a971d508b0aca84f10e78ca2f7ace1307620ccd0d1134792712022-03-15 8:10:46110 days 15 hrs ago Huobi: Wrapped Huobi Token0xfcf83648b8cdef62e5d03319a6f1fce16e4d6a5911.87279165 HT
0x4981920ca078749084948678c8d6b454acadbbab61715e9ab6fddd040523bc86134788862022-03-15 7:51:31110 days 15 hrs ago 0xfcf83648b8cdef62e5d03319a6f1fce16e4d6a590x3ff31f751f8f452765114333e206f2df4a8cbc8711.87282761 HT
0x4981920ca078749084948678c8d6b454acadbbab61715e9ab6fddd040523bc86134788862022-03-15 7:51:31110 days 15 hrs ago Huobi: Wrapped Huobi Token0xfcf83648b8cdef62e5d03319a6f1fce16e4d6a5911.87282761 HT
0xf4d8194d2e4e19c137935d9125204379cf6f50748d1313d6b7c408f0eb24f1ff134781602022-03-15 7:15:13110 days 16 hrs ago 0xfcf83648b8cdef62e5d03319a6f1fce16e4d6a590x3ff31f751f8f452765114333e206f2df4a8cbc8711.87280962 HT
0xf4d8194d2e4e19c137935d9125204379cf6f50748d1313d6b7c408f0eb24f1ff134781602022-03-15 7:15:13110 days 16 hrs ago Huobi: Wrapped Huobi Token0xfcf83648b8cdef62e5d03319a6f1fce16e4d6a5911.87280962 HT
0x7eaa1f6821dc36c43a5a4700db10226323e38786f7b8745e19007b3ae2c2d7be134777272022-03-15 6:53:34110 days 16 hrs ago 0xfcf83648b8cdef62e5d03319a6f1fce16e4d6a590x3ff31f751f8f452765114333e206f2df4a8cbc8711.87279164 HT
0x7eaa1f6821dc36c43a5a4700db10226323e38786f7b8745e19007b3ae2c2d7be134777272022-03-15 6:53:34110 days 16 hrs ago Huobi: Wrapped Huobi Token0xfcf83648b8cdef62e5d03319a6f1fce16e4d6a5911.87279164 HT
0x4056b7704c72aff03c18bb47fc32eb607b28a9eef5bb3c37b4745f1d20b92b35134519232022-03-14 9:23:22111 days 14 hrs ago 0xfcf83648b8cdef62e5d03319a6f1fce16e4d6a590x3ff31f751f8f452765114333e206f2df4a8cbc8711.87278267 HT
0x4056b7704c72aff03c18bb47fc32eb607b28a9eef5bb3c37b4745f1d20b92b35134519232022-03-14 9:23:22111 days 14 hrs ago Huobi: Wrapped Huobi Token0xfcf83648b8cdef62e5d03319a6f1fce16e4d6a5911.87278267 HT
0x64f3915b4f5a2a31bdb4f8ccf6d30faf9e6541bf93779cb0de61580ba5d6ed16132540652022-03-07 12:30:28118 days 11 hrs ago 0xfcf83648b8cdef62e5d03319a6f1fce16e4d6a590x3a31d9d9120013a2f1f55ce45068ed9ce4795e9f0.18732981 HT
0x64f3915b4f5a2a31bdb4f8ccf6d30faf9e6541bf93779cb0de61580ba5d6ed16132540652022-03-07 12:30:28118 days 11 hrs ago Huobi: Wrapped Huobi Token0xfcf83648b8cdef62e5d03319a6f1fce16e4d6a590.18732981 HT
0xc0007c5a097663c676451ebfc4af9c3d1001c04e7db7b922dfcd775c17b00ffa129643432022-02-25 11:04:21128 days 12 hrs ago 0xfcf83648b8cdef62e5d03319a6f1fce16e4d6a590x3e379f4304319a302a49d5aed685159c81ad8ebc0.8975319 HT
0xc0007c5a097663c676451ebfc4af9c3d1001c04e7db7b922dfcd775c17b00ffa129643432022-02-25 11:04:21128 days 12 hrs ago Huobi: Wrapped Huobi Token0xfcf83648b8cdef62e5d03319a6f1fce16e4d6a590.8975319 HT
0xb92cd4fa2912f2446d080b17fa5fac15f7c42824a31a0d4d902e3539ae16e284127909572022-02-19 10:35:03134 days 13 hrs ago 0xfcf83648b8cdef62e5d03319a6f1fce16e4d6a590x116cc9ba7a09e27baa2eed993e5839f56d8b8c7b0.03379848 HT
0xb92cd4fa2912f2446d080b17fa5fac15f7c42824a31a0d4d902e3539ae16e284127909572022-02-19 10:35:03134 days 13 hrs ago Huobi: Wrapped Huobi Token0xfcf83648b8cdef62e5d03319a6f1fce16e4d6a590.03379848 HT
0x05b48d699d51df86782076316e97753bb7180da4295bfdae4d33e0750c5beccb122777592022-02-01 14:55:09152 days 8 hrs ago 0xfcf83648b8cdef62e5d03319a6f1fce16e4d6a590x116cc9ba7a09e27baa2eed993e5839f56d8b8c7b0.00701197 HT
0x05b48d699d51df86782076316e97753bb7180da4295bfdae4d33e0750c5beccb122777592022-02-01 14:55:09152 days 8 hrs ago Huobi: Wrapped Huobi Token0xfcf83648b8cdef62e5d03319a6f1fce16e4d6a590.00701197 HT
0xd7fd6ab85eb529c92f8461ce12713202d44096efc73d07a2d7710de3650b576a117678002022-01-14 21:57:12170 days 1 hr ago 0xfcf83648b8cdef62e5d03319a6f1fce16e4d6a590x2bfad4ea26ed4fc169df7e42057e9a652d54908f0.04505331 HT
[ Download CSV Export 
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

Contract Source Code (Solidity Standard Json-Input format)

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",
        "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"}]

608060405234801561001057600080fd5b5060405161033d38038061033d83398101604081905261002f91610054565b600080546001600160a01b0319166001600160a01b0392909216919091179055610084565b60006020828403121561006657600080fd5b81516001600160a01b038116811461007d57600080fd5b9392505050565b6102aa806100936000396000f3fe6080604052600436106100385760003560e01c80633fc8cef31461004457806354fd4d5014610081578063f3fef3a31461009d57600080fd5b3661003f57005b600080fd5b34801561005057600080fd5b50600054610064906001600160a01b031681565b6040516001600160a01b0390911681526020015b60405180910390f35b34801561008d57600080fd5b5060405160658152602001610078565b3480156100a957600080fd5b506100bd6100b8366004610201565b6100bf565b005b600054604051632e1a7d4d60e01b8152600481018390526001600160a01b0390911690632e1a7d4d90602401600060405180830381600087803b15801561010557600080fd5b505af1158015610119573d6000803e3d6000fd5b50505050610127828261016e565b816001600160a01b03167f7fcf532c15f0a6db0bd6d0e038bea71d30d808c7d98cb3bf7268a95bf5081b658260405161016291815260200190565b60405180910390a25050565b604080516000808252602082019092526001600160a01b0384169083906040516101989190610239565b60006040518083038185875af1925050503d80600081146101d5576040519150601f19603f3d011682016040523d82523d6000602084013e6101da565b606091505b50509050806101fc57604051630db2c7f160e31b815260040160405180910390fd5b505050565b6000806040838503121561021457600080fd5b82356001600160a01b038116811461022b57600080fd5b946020939093013593505050565b6000825160005b8181101561025a5760208186018101518583015201610240565b81811115610269576000828501525b50919091019291505056fea26469706673582212206ab57b3bc19ca4e86b9d32cf905e3c8538d8b47bcafe20346054abc9703ddb0464736f6c634300080700330000000000000000000000005545153ccfca01fbd7dd11c0b23ba694d9509a6f

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

0000000000000000000000005545153ccfca01fbd7dd11c0b23ba694d9509a6f

-----Decoded View---------------
Arg [0] : _weth (address): 0x5545153ccfca01fbd7dd11c0b23ba694d9509a6f

-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 0000000000000000000000005545153ccfca01fbd7dd11c0b23ba694d9509a6f


Block Transaction Gas Used Reward
Age Block Fee Address Jailed Incoming
Block Uncle Number Difficulty Gas Used Reward
Loading
Loading