ETH Price: $2,665.98 (-2.58%)

Contract

0xa962F2974A846b30366251f4634384C1e42aeF16

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To

There are no matching entries

> 10 Internal Transactions and > 10 Token Transfers found.

Latest 25 internal transactions (View All)

Advanced mode:
Parent Transaction Hash Block From To
1321607432025-02-18 23:11:032 hrs ago1739920263
0xa962F297...1e42aeF16
0.103000041440476 ETH
1321607432025-02-18 23:11:032 hrs ago1739920263
0xa962F297...1e42aeF16
0.103000041440476 ETH
1321598522025-02-18 22:41:213 hrs ago1739918481
0xa962F297...1e42aeF16
0.120000004092743 ETH
1321598522025-02-18 22:41:213 hrs ago1739918481
0xa962F297...1e42aeF16
0.120000004092743 ETH
1321595862025-02-18 22:32:293 hrs ago1739917949
0xa962F297...1e42aeF16
0.02 ETH
1321595862025-02-18 22:32:293 hrs ago1739917949
0xa962F297...1e42aeF16
0.02 ETH
1321574192025-02-18 21:20:154 hrs ago1739913615
0xa962F297...1e42aeF16
0.120019518340662 ETH
1321574192025-02-18 21:20:154 hrs ago1739913615
0xa962F297...1e42aeF16
0.120019518340662 ETH
1321541192025-02-18 19:30:156 hrs ago1739907015
0xa962F297...1e42aeF16
1.450009507700154 ETH
1321541192025-02-18 19:30:156 hrs ago1739907015
0xa962F297...1e42aeF16
1.450009507700154 ETH
1321515942025-02-18 18:06:057 hrs ago1739901965
0xa962F297...1e42aeF16
0.000200000001951 ETH
1321515942025-02-18 18:06:057 hrs ago1739901965
0xa962F297...1e42aeF16
0.000200000001951 ETH
1321504872025-02-18 17:29:118 hrs ago1739899751
0xa962F297...1e42aeF16
0.000130000047078 ETH
1321504872025-02-18 17:29:118 hrs ago1739899751
0xa962F297...1e42aeF16
0.000130000047078 ETH
1321488642025-02-18 16:35:059 hrs ago1739896505
0xa962F297...1e42aeF16
0.056898846544612 ETH
1321488642025-02-18 16:35:059 hrs ago1739896505
0xa962F297...1e42aeF16
0.056898846544612 ETH
1321475202025-02-18 15:50:179 hrs ago1739893817
0xa962F297...1e42aeF16
0.000099999917358 ETH
1321475202025-02-18 15:50:179 hrs ago1739893817
0xa962F297...1e42aeF16
0.000099999917358 ETH
1321452922025-02-18 14:36:0111 hrs ago1739889361
0xa962F297...1e42aeF16
0.005000000103671 ETH
1321452922025-02-18 14:36:0111 hrs ago1739889361
0xa962F297...1e42aeF16
0.005000000103671 ETH
1321452202025-02-18 14:33:3711 hrs ago1739889217
0xa962F297...1e42aeF16
1.120000079110056 ETH
1321452202025-02-18 14:33:3711 hrs ago1739889217
0xa962F297...1e42aeF16
1.120000079110056 ETH
1321348262025-02-18 8:47:0917 hrs ago1739868429
0xa962F297...1e42aeF16
10 ETH
1321348262025-02-18 8:47:0917 hrs ago1739868429
0xa962F297...1e42aeF16
10 ETH
1321347772025-02-18 8:45:3117 hrs ago1739868331
0xa962F297...1e42aeF16
15 ETH
View All Internal Transactions

Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
WethUnwrapper

Compiler Version
v0.8.19+commit.7dd6d404

Optimization Enabled:
Yes with 1 runs

Other Settings:
paris EvmVersion
File 1 of 2 : WethUnwrapper.sol
// SPDX-License-Identifier: BSD-3-Clause
pragma solidity 0.8.19;

import {WETH9} from "@protocol/router/IWETH.sol";

contract WethUnwrapper {
    /// @notice reference to the WETH contract
    address public immutable weth;

    /// @notice construct a new WethUnwrapper
    /// @param _weth the WETH contract address
    constructor(address _weth) {
        weth = _weth;
    }

    /// @notice transfer ETH underlying to the recipient
    /// first unwrap the WETH into raw ETH, then transfer
    /// @param to the recipient address
    /// @param amount the amount of ETH to transfer
    function send(address payable to, uint256 amount) external {
        WETH9(weth).withdraw(amount);
        (bool success, bytes memory returndata) = to.call{value: amount}("");

        if (!success) {
            if (returndata.length == 0) revert();
            assembly {
                revert(add(32, returndata), mload(returndata))
            }
        }
    }

    receive() external payable {
        require(msg.sender == weth, "not accepting eth");
    }
}

File 2 of 2 : IWETH.sol
/**
 *Submitted for verification at Etherscan.io on 2017-12-12
 */

// Copyright (C) 2015, 2016, 2017 Dapphub

// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.

// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
// GNU General Public License for more details.

// You should have received a copy of the GNU General Public License
// along with this program.  If not, see <http://www.gnu.org/licenses/>.

pragma solidity 0.8.19;

interface WETH9 {
    function balanceOf(address guy) external view returns (uint);
    function allowance(address, address) external view returns (uint);

    function deposit() external payable;

    function withdraw(uint wad) external;

    function totalSupply() external view returns (uint);

    function approve(address guy, uint wad) external returns (bool);

    function transfer(address dst, uint wad) external returns (bool);

    function transferFrom(
        address src,
        address dst,
        uint wad
    ) external returns (bool);
}

Settings
{
  "remappings": [
    "@forge-std/=lib/forge-std/src/",
    "@openzeppelin-contracts/=lib/openzeppelin-contracts/",
    "@openzeppelin/=lib/openzeppelin-contracts/",
    "@openzeppelin-contracts-upgradeable/=lib/openzeppelin-contracts-upgradeable/",
    "@wormhole/=lib/wormhole/ethereum/contracts/",
    "@protocol/=src/",
    "@test/=test/",
    "@proposals/=src/proposals/",
    "@utils/=src/utils/",
    "@zelt/=lib/zelt/",
    "@zelt-src/=lib/zelt/src/",
    "@zelt-test/=lib/zelt/test/",
    "ds-test/=lib/solmate/lib/ds-test/src/",
    "erc4626-tests/=lib/openzeppelin-contracts-upgradeable/lib/erc4626-tests/",
    "forge-std/=lib/forge-std/src/",
    "openzeppelin-contracts-upgradeable/=lib/openzeppelin-contracts-upgradeable/",
    "openzeppelin-contracts/=lib/openzeppelin-contracts/",
    "openzeppelin/=lib/openzeppelin-contracts-upgradeable/contracts/",
    "solmate/=lib/solmate/src/",
    "wormhole/=lib/wormhole/",
    "zelt/=lib/zelt/src/"
  ],
  "optimizer": {
    "enabled": true,
    "runs": 1
  },
  "metadata": {
    "useLiteralContent": false,
    "bytecodeHash": "ipfs",
    "appendCBOR": true
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  },
  "evmVersion": "paris",
  "viaIR": false,
  "libraries": {}
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"_weth","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[{"internalType":"address payable","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"send","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"weth","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"stateMutability":"payable","type":"receive"}]

60a060405234801561001057600080fd5b5060405161030c38038061030c83398101604081905261002f91610040565b6001600160a01b0316608052610070565b60006020828403121561005257600080fd5b81516001600160a01b038116811461006957600080fd5b9392505050565b60805161027561009760003960008181603d0152818160bb015261012a01526102756000f3fe60806040526004361061002d5760003560e01c80633fc8cef3146100a9578063d0679d34146100f957600080fd5b366100a457336001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016146100a25760405162461bcd60e51b81526020600482015260116024820152700dcdee840c2c6c6cae0e8d2dcce40cae8d607b1b604482015260640160405180910390fd5b005b600080fd5b3480156100b557600080fd5b506100dd7f000000000000000000000000000000000000000000000000000000000000000081565b6040516001600160a01b03909116815260200160405180910390f35b34801561010557600080fd5b506100a2610114366004610207565b604051632e1a7d4d60e01b8152600481018290527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031690632e1a7d4d90602401600060405180830381600087803b15801561017657600080fd5b505af115801561018a573d6000803e3d6000fd5b50505050600080836001600160a01b03168360405160006040518083038185875af1925050503d80600081146101dc576040519150601f19603f3d011682016040523d82523d6000602084013e6101e1565b606091505b5091509150816102015780516000036101f957600080fd5b805181602001fd5b50505050565b6000806040838503121561021a57600080fd5b82356001600160a01b038116811461023157600080fd5b94602093909301359350505056fea264697066735822122090df6979545aeab724616211943df1952c7879d15b681c463cb260dc382553eb64736f6c634300081300330000000000000000000000004200000000000000000000000000000000000006

Deployed Bytecode

0x60806040526004361061002d5760003560e01c80633fc8cef3146100a9578063d0679d34146100f957600080fd5b366100a457336001600160a01b037f000000000000000000000000420000000000000000000000000000000000000616146100a25760405162461bcd60e51b81526020600482015260116024820152700dcdee840c2c6c6cae0e8d2dcce40cae8d607b1b604482015260640160405180910390fd5b005b600080fd5b3480156100b557600080fd5b506100dd7f000000000000000000000000420000000000000000000000000000000000000681565b6040516001600160a01b03909116815260200160405180910390f35b34801561010557600080fd5b506100a2610114366004610207565b604051632e1a7d4d60e01b8152600481018290527f00000000000000000000000042000000000000000000000000000000000000066001600160a01b031690632e1a7d4d90602401600060405180830381600087803b15801561017657600080fd5b505af115801561018a573d6000803e3d6000fd5b50505050600080836001600160a01b03168360405160006040518083038185875af1925050503d80600081146101dc576040519150601f19603f3d011682016040523d82523d6000602084013e6101e1565b606091505b5091509150816102015780516000036101f957600080fd5b805181602001fd5b50505050565b6000806040838503121561021a57600080fd5b82356001600160a01b038116811461023157600080fd5b94602093909301359350505056fea264697066735822122090df6979545aeab724616211943df1952c7879d15b681c463cb260dc382553eb64736f6c63430008130033

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

0000000000000000000000004200000000000000000000000000000000000006

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

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


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
[ 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.