ETH Price: $2,317.25 (-2.47%)

Contract

0x2b7Aa8bDc40B6d3d19d0dE7480c4db8d5B6495e2

Overview

ETH Balance

0 ETH

ETH Value

$0.00

More Info

Private Name Tags

Transaction Hash
Block
From
To
Set Wrapper82590282025-08-12 12:30:39245 days ago1755001839IN
0x2b7Aa8bD...d5B6495e2
0 ETH0.000001380.00097027

Latest 25 internal transactions (View All)

Advanced mode:
Parent Transaction Hash Block From To
294814052026-04-15 3:36:567 hrs ago1776224216
0x2b7Aa8bD...d5B6495e2
0.00199773 ETH
294814052026-04-15 3:36:567 hrs ago1776224216
0x2b7Aa8bD...d5B6495e2
0.00199773 ETH
293099982026-04-13 4:00:092 days ago1776052809
0x2b7Aa8bD...d5B6495e2
0.00199769 ETH
293099982026-04-13 4:00:092 days ago1776052809
0x2b7Aa8bD...d5B6495e2
0.00199769 ETH
290244442026-04-09 20:40:555 days ago1775767255
0x2b7Aa8bD...d5B6495e2
0.00174508 ETH
290244442026-04-09 20:40:555 days ago1775767255
0x2b7Aa8bD...d5B6495e2
0.00174508 ETH
284611142026-04-03 8:12:0512 days ago1775203925
0x2b7Aa8bD...d5B6495e2
0.00899089 ETH
284611142026-04-03 8:12:0512 days ago1775203925
0x2b7Aa8bD...d5B6495e2
0.00899089 ETH
284240402026-04-02 21:54:1112 days ago1775166851
0x2b7Aa8bD...d5B6495e2
0.07939646 ETH
284240402026-04-02 21:54:1112 days ago1775166851
0x2b7Aa8bD...d5B6495e2
0.07939646 ETH
282461242026-03-31 20:28:5514 days ago1774988935
0x2b7Aa8bD...d5B6495e2
0.00137813 ETH
282461242026-03-31 20:28:5514 days ago1774988935
0x2b7Aa8bD...d5B6495e2
0.00137813 ETH
277750142026-03-26 9:37:0520 days ago1774517825
0x2b7Aa8bD...d5B6495e2
0.00899128 ETH
277750142026-03-26 9:37:0520 days ago1774517825
0x2b7Aa8bD...d5B6495e2
0.00899128 ETH
277707532026-03-26 8:26:0420 days ago1774513564
0x2b7Aa8bD...d5B6495e2
0.04895175 ETH
277707532026-03-26 8:26:0420 days ago1774513564
0x2b7Aa8bD...d5B6495e2
0.04895175 ETH
277706102026-03-26 8:23:4120 days ago1774513421
0x2b7Aa8bD...d5B6495e2
0.00199761 ETH
277706102026-03-26 8:23:4120 days ago1774513421
0x2b7Aa8bD...d5B6495e2
0.00199761 ETH
277701782026-03-26 8:16:2920 days ago1774512989
0x2b7Aa8bD...d5B6495e2
0.00099857 ETH
277701782026-03-26 8:16:2920 days ago1774512989
0x2b7Aa8bD...d5B6495e2
0.00099857 ETH
277700942026-03-26 8:15:0520 days ago1774512905
0x2b7Aa8bD...d5B6495e2
0.04895323 ETH
277700942026-03-26 8:15:0520 days ago1774512905
0x2b7Aa8bD...d5B6495e2
0.04895323 ETH
276032602026-03-24 9:54:3122 days ago1774346071
0x2b7Aa8bD...d5B6495e2
0.00099761 ETH
276032602026-03-24 9:54:3122 days ago1774346071
0x2b7Aa8bD...d5B6495e2
0.00099761 ETH
274887892026-03-23 2:06:4023 days ago1774231600
0x2b7Aa8bD...d5B6495e2
0.00899502 ETH
View All Internal Transactions

Cross-Chain Transactions
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
Unwrapper

Compiler Version
v0.8.19+commit.7dd6d404

Optimization Enabled:
Yes with 2000 runs

Other Settings:
default evmVersion
pragma solidity ^0.8.0;

import "@openzeppelin/contracts/utils/Context.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@uniswap/lib/contracts/libraries/TransferHelper.sol";
import "../synth-core/interfaces/IWrapper.sol";

/**
 * @title A contract that implements the unwrap and transfer logic
 */
contract Unwrapper is Context, Ownable {

    address public wrapper;

    event Unwrapped(uint256 amount, address indexed to);

    /**
     * CONSTRUCTOR
     */
    constructor(address _wrapper) public {
        wrapper = _wrapper;
    }

    /**
    * @notice Set wrapper
     */
    function setWrapper(address _newWrapper) external onlyOwner {
        wrapper = _newWrapper;
    }

    /**
     * @notice Implements an unwrap logic with transfer
     * @param _amountIn input amount
     * @param _to address to send gas token
     */
    function unwrap(
        uint256 _amountIn,
        address _to
    ) external {
        TransferHelper.safeTransferFrom(wrapper, _msgSender(), address(this), _amountIn);
        IWrapper(wrapper).withdraw(_amountIn);
        TransferHelper.safeTransferETH(_to, _amountIn);

        emit Unwrapped(_amountIn, _to);
    }

    receive() external payable {}
}

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (access/Ownable.sol)

pragma solidity ^0.8.0;

import "../utils/Context.sol";

/**
 * @dev Contract module which provides a basic access control mechanism, where
 * there is an account (an owner) that can be granted exclusive access to
 * specific functions.
 *
 * By default, the owner account will be the one that deploys the contract. This
 * can later be changed with {transferOwnership}.
 *
 * This module is used through inheritance. It will make available the modifier
 * `onlyOwner`, which can be applied to your functions to restrict their use to
 * the owner.
 */
abstract contract Ownable is Context {
    address private _owner;

    event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);

    /**
     * @dev Initializes the contract setting the deployer as the initial owner.
     */
    constructor() {
        _transferOwnership(_msgSender());
    }

    /**
     * @dev Returns the address of the current owner.
     */
    function owner() public view virtual returns (address) {
        return _owner;
    }

    /**
     * @dev Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        require(owner() == _msgSender(), "Ownable: caller is not the owner");
        _;
    }

    /**
     * @dev Leaves the contract without owner. It will not be possible to call
     * `onlyOwner` functions anymore. Can only be called by the current owner.
     *
     * NOTE: Renouncing ownership will leave the contract without an owner,
     * thereby removing any functionality that is only available to the owner.
     */
    function renounceOwnership() public virtual onlyOwner {
        _transferOwnership(address(0));
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Can only be called by the current owner.
     */
    function transferOwnership(address newOwner) public virtual onlyOwner {
        require(newOwner != address(0), "Ownable: new owner is the zero address");
        _transferOwnership(newOwner);
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Internal function without access restriction.
     */
    function _transferOwnership(address newOwner) internal virtual {
        address oldOwner = _owner;
        _owner = newOwner;
        emit OwnershipTransferred(oldOwner, newOwner);
    }
}

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)

pragma solidity ^0.8.0;

/**
 * @dev Provides information about the current execution context, including the
 * sender of the transaction and its data. While these are generally available
 * via msg.sender and msg.data, they should not be accessed in such a direct
 * manner, since when dealing with meta-transactions the account sending and
 * paying for execution may not be the actual sender (as far as an application
 * is concerned).
 *
 * This contract is only required for intermediate, library-like contracts.
 */
abstract contract Context {
    function _msgSender() internal view virtual returns (address) {
        return msg.sender;
    }

    function _msgData() internal view virtual returns (bytes calldata) {
        return msg.data;
    }
}

// SPDX-License-Identifier: GPL-3.0-or-later

pragma solidity >=0.6.0;

// helper methods for interacting with ERC20 tokens and sending ETH that do not consistently return true/false
library TransferHelper {
    function safeApprove(
        address token,
        address to,
        uint256 value
    ) internal {
        // bytes4(keccak256(bytes('approve(address,uint256)')));
        (bool success, bytes memory data) = token.call(abi.encodeWithSelector(0x095ea7b3, to, value));
        require(
            success && (data.length == 0 || abi.decode(data, (bool))),
            'TransferHelper::safeApprove: approve failed'
        );
    }

    function safeTransfer(
        address token,
        address to,
        uint256 value
    ) internal {
        // bytes4(keccak256(bytes('transfer(address,uint256)')));
        (bool success, bytes memory data) = token.call(abi.encodeWithSelector(0xa9059cbb, to, value));
        require(
            success && (data.length == 0 || abi.decode(data, (bool))),
            'TransferHelper::safeTransfer: transfer failed'
        );
    }

    function safeTransferFrom(
        address token,
        address from,
        address to,
        uint256 value
    ) internal {
        // bytes4(keccak256(bytes('transferFrom(address,address,uint256)')));
        (bool success, bytes memory data) = token.call(abi.encodeWithSelector(0x23b872dd, from, to, value));
        require(
            success && (data.length == 0 || abi.decode(data, (bool))),
            'TransferHelper::transferFrom: transferFrom failed'
        );
    }

    function safeTransferETH(address to, uint256 value) internal {
        (bool success, ) = to.call{value: value}(new bytes(0));
        require(success, 'TransferHelper::safeTransferETH: ETH transfer failed');
    }
}

// SPDX-License-Identifier: GPL-3.0

pragma solidity ^0.8.0;

interface IWrapper {
    function deposit() external payable;
    function withdraw(uint256 amount) external;
}

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

Contract Security Audit

Contract ABI

API
[{"inputs":[{"internalType":"address","name":"_wrapper","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":true,"internalType":"address","name":"to","type":"address"}],"name":"Unwrapped","type":"event"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_newWrapper","type":"address"}],"name":"setWrapper","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amountIn","type":"uint256"},{"internalType":"address","name":"_to","type":"address"}],"name":"unwrap","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"wrapper","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"stateMutability":"payable","type":"receive"}]

6080346100a757601f61076438819003918201601f19168301916001600160401b038311848410176100ac578084926020946040528339810103126100a757516001600160a01b0390818116908190036100a75760005460018060a01b0319903382821617600055604051933391167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0600080a360015416176001556106a190816100c38239f35b600080fd5b634e487b7160e01b600052604160045260246000fdfe60406080815260049081361015610020575b5050361561001e57600080fd5b005b600091823560e01c8063715018a6146105025780637647691d1461023d5780638da5cb5b1461020a578063ac210cc7146101d1578063c2167d931461016e5763f2fde38b1461006f5750610011565b3461016a57602060031936011261016a57610088610579565b9073ffffffffffffffffffffffffffffffffffffffff80926100ae8287541633146105a1565b169283156101015750506000548273ffffffffffffffffffffffffffffffffffffffff19821617600055167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0600080a380f35b906020608492519162461bcd60e51b8352820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152fd5b8280fd5b83346101ce5760206003193601126101ce57610188610579565b73ffffffffffffffffffffffffffffffffffffffff906101ac8284541633146105a1565b1673ffffffffffffffffffffffffffffffffffffffff19600154161760015580f35b80fd5b50503461020657816003193601126102065760209073ffffffffffffffffffffffffffffffffffffffff600154169051908152f35b5080fd5b50503461020657816003193601126102065773ffffffffffffffffffffffffffffffffffffffff60209254169051908152f35b503461016a578160031936011261016a57803560249283359273ffffffffffffffffffffffffffffffffffffffff94858516958686036104fe578060015416958451916020978884017f23b872dd00000000000000000000000000000000000000000000000000000000815233868601523060448601528860648601526064855260a085019467ffffffffffffffff95818110878211176104ec578952518c9283929083905af16102ec6105ec565b816104af575b501561044857899060015416803b15610206578190858851809481937f2e1a7d4d0000000000000000000000000000000000000000000000000000000083528c8b8401525af1801561043e57610419575b508451878101928311818410176104055782878b94938580959481958b52525af161036c6105ec565b501561039f575050519081527f1d27d1c62712f590d53fa9eb8bbf3a75d09503deae319bb9d99644339cb312e19190a280f35b60349085608494519362461bcd60e51b85528401528201527f5472616e7366657248656c7065723a3a736166655472616e736665724554483a60448201527f20455448207472616e73666572206661696c65640000000000000000000000006064820152fd5b83604186634e487b7160e01b600052526000fd5b82819a929a1161042c5785529738610343565b8382604187634e487b7160e01b835252fd5b86513d8c823e3d90fd5b6084856031868b8a519362461bcd60e51b85528401528201527f5472616e7366657248656c7065723a3a7472616e7366657246726f6d3a20747260448201527f616e7366657246726f6d206661696c65640000000000000000000000000000006064820152fd5b809150518981159182156104c8575b50509050386102f2565b83809293500103126104e85788015180151581036104e8578089386104be565b8a80fd5b878e60418b634e487b7160e01b835252fd5b8780fd5b83346101ce57806003193601126101ce5780805473ffffffffffffffffffffffffffffffffffffffff1973ffffffffffffffffffffffffffffffffffffffff82169161054f3384146105a1565b1682557f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08280a380f35b6004359073ffffffffffffffffffffffffffffffffffffffff8216820361059c57565b600080fd5b156105a857565b606460405162461bcd60e51b815260206004820152602060248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152fd5b3d156106665767ffffffffffffffff903d82811161065057604051927fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0603f81601f8501160116840190848210908211176106505760405282523d6000602084013e565b634e487b7160e01b600052604160045260246000fd5b60609056fea26469706673582212203d169ae61dad7752d9abe2b28db24c46efed0251bb6ecf7badd4fa08c545798964736f6c634300081300330000000000000000000000004200000000000000000000000000000000000006

Deployed Bytecode

0x60406080815260049081361015610020575b5050361561001e57600080fd5b005b600091823560e01c8063715018a6146105025780637647691d1461023d5780638da5cb5b1461020a578063ac210cc7146101d1578063c2167d931461016e5763f2fde38b1461006f5750610011565b3461016a57602060031936011261016a57610088610579565b9073ffffffffffffffffffffffffffffffffffffffff80926100ae8287541633146105a1565b169283156101015750506000548273ffffffffffffffffffffffffffffffffffffffff19821617600055167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0600080a380f35b906020608492519162461bcd60e51b8352820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152fd5b8280fd5b83346101ce5760206003193601126101ce57610188610579565b73ffffffffffffffffffffffffffffffffffffffff906101ac8284541633146105a1565b1673ffffffffffffffffffffffffffffffffffffffff19600154161760015580f35b80fd5b50503461020657816003193601126102065760209073ffffffffffffffffffffffffffffffffffffffff600154169051908152f35b5080fd5b50503461020657816003193601126102065773ffffffffffffffffffffffffffffffffffffffff60209254169051908152f35b503461016a578160031936011261016a57803560249283359273ffffffffffffffffffffffffffffffffffffffff94858516958686036104fe578060015416958451916020978884017f23b872dd00000000000000000000000000000000000000000000000000000000815233868601523060448601528860648601526064855260a085019467ffffffffffffffff95818110878211176104ec578952518c9283929083905af16102ec6105ec565b816104af575b501561044857899060015416803b15610206578190858851809481937f2e1a7d4d0000000000000000000000000000000000000000000000000000000083528c8b8401525af1801561043e57610419575b508451878101928311818410176104055782878b94938580959481958b52525af161036c6105ec565b501561039f575050519081527f1d27d1c62712f590d53fa9eb8bbf3a75d09503deae319bb9d99644339cb312e19190a280f35b60349085608494519362461bcd60e51b85528401528201527f5472616e7366657248656c7065723a3a736166655472616e736665724554483a60448201527f20455448207472616e73666572206661696c65640000000000000000000000006064820152fd5b83604186634e487b7160e01b600052526000fd5b82819a929a1161042c5785529738610343565b8382604187634e487b7160e01b835252fd5b86513d8c823e3d90fd5b6084856031868b8a519362461bcd60e51b85528401528201527f5472616e7366657248656c7065723a3a7472616e7366657246726f6d3a20747260448201527f616e7366657246726f6d206661696c65640000000000000000000000000000006064820152fd5b809150518981159182156104c8575b50509050386102f2565b83809293500103126104e85788015180151581036104e8578089386104be565b8a80fd5b878e60418b634e487b7160e01b835252fd5b8780fd5b83346101ce57806003193601126101ce5780805473ffffffffffffffffffffffffffffffffffffffff1973ffffffffffffffffffffffffffffffffffffffff82169161054f3384146105a1565b1682557f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08280a380f35b6004359073ffffffffffffffffffffffffffffffffffffffff8216820361059c57565b600080fd5b156105a857565b606460405162461bcd60e51b815260206004820152602060248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152fd5b3d156106665767ffffffffffffffff903d82811161065057604051927fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0603f81601f8501160116840190848210908211176106505760405282523d6000602084013e565b634e487b7160e01b600052604160045260246000fd5b60609056fea26469706673582212203d169ae61dad7752d9abe2b28db24c46efed0251bb6ecf7badd4fa08c545798964736f6c63430008130033

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

0000000000000000000000004200000000000000000000000000000000000006

-----Decoded View---------------
Arg [0] : _wrapper (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
0x2b7Aa8bDc40B6d3d19d0dE7480c4db8d5B6495e2
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.