ETH Price: $3,174.43 (-7.78%)
Gas: 2 Gwei

Contract

0x2ea66631cB846eE9599ac1B20D7ACFB792242183
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Transfer202257432024-07-03 11:39:4721 days ago1720006787IN
0x2ea66631...792242183
10.8 ETH0.000213216.66687172
Transfer201400072024-06-21 12:10:1133 days ago1718971811IN
0x2ea66631...792242183
0.02 ETH0.000131774.12031883
Transfer200035062024-06-02 10:21:3552 days ago1717323695IN
0x2ea66631...792242183
12.49115429 ETH0.0003924712.27188277
Transfer199772812024-05-29 18:25:1156 days ago1717007111IN
0x2ea66631...792242183
0.5 ETH0.000428813.40780801
Transfer199632292024-05-27 19:15:3558 days ago1716837335IN
0x2ea66631...792242183
1 ETH0.0011225935.10090699
Transfer199246942024-05-22 10:01:4763 days ago1716372107IN
0x2ea66631...792242183
0.23 ETH0.0003356510.49498653
Transfer198856472024-05-16 22:54:1169 days ago1715900051IN
0x2ea66631...792242183
4 ETH0.000127273.979443
Transfer198470782024-05-11 13:26:3574 days ago1715433995IN
0x2ea66631...792242183
40 ETH0.000177065.53629827
Transfer198221222024-05-08 1:40:1178 days ago1715132411IN
0x2ea66631...792242183
3.06150663 ETH0.000272838.53089626
Transfer197460612024-04-27 10:26:2388 days ago1714213583IN
0x2ea66631...792242183
0.02156193 ETH0.000173195.4152891
Transfer197082682024-04-22 3:30:4794 days ago1713756647IN
0x2ea66631...792242183
1 ETH0.00021096.59461155
Transfer196958882024-04-20 9:59:3595 days ago1713607175IN
0x2ea66631...792242183
0.24921932 ETH0.000200886.28126294
Transfer196819242024-04-18 11:04:2397 days ago1713438263IN
0x2ea66631...792242183
0.20965801 ETH0.000588318.39493261
Transfer196695422024-04-16 17:30:2399 days ago1713288623IN
0x2ea66631...792242183
8 ETH0.0006241119.51468133
Transfer196447702024-04-13 6:08:47102 days ago1712988527IN
0x2ea66631...792242183
5.3 ETH0.0002582412.29751141

Latest 16 internal transactions

Advanced mode:
Parent Transaction Hash Block From To
202257432024-07-03 11:39:4721 days ago1720006787
0x2ea66631...792242183
10.8 ETH
201400072024-06-21 12:10:1133 days ago1718971811
0x2ea66631...792242183
0.02 ETH
200035062024-06-02 10:21:3552 days ago1717323695
0x2ea66631...792242183
12.49115429 ETH
199772812024-05-29 18:25:1156 days ago1717007111
0x2ea66631...792242183
0.5 ETH
199632292024-05-27 19:15:3558 days ago1716837335
0x2ea66631...792242183
1 ETH
199246942024-05-22 10:01:4763 days ago1716372107
0x2ea66631...792242183
0.23 ETH
198856472024-05-16 22:54:1169 days ago1715900051
0x2ea66631...792242183
4 ETH
198470782024-05-11 13:26:3574 days ago1715433995
0x2ea66631...792242183
40 ETH
198221222024-05-08 1:40:1178 days ago1715132411
0x2ea66631...792242183
3.06150663 ETH
197460612024-04-27 10:26:2388 days ago1714213583
0x2ea66631...792242183
0.02156193 ETH
197082682024-04-22 3:30:4794 days ago1713756647
0x2ea66631...792242183
1 ETH
196958882024-04-20 9:59:3595 days ago1713607175
0x2ea66631...792242183
0.24921932 ETH
196819242024-04-18 11:04:2397 days ago1713438263
0x2ea66631...792242183
0.20965801 ETH
196695422024-04-16 17:30:2399 days ago1713288623
0x2ea66631...792242183
8 ETH
196447872024-04-13 6:12:11102 days ago1712988731
0x2ea66631...792242183
5.3 ETH
196447872024-04-13 6:12:11102 days ago1712988731  Contract Creation0 ETH
Loading...
Loading

Similar Match Source Code
This contract matches the deployed Bytecode of the Source Code for Contract 0x8770c4e5...413038178
The constructor portion of the code might be different and could alter the actual behaviour of the contract

Contract Name:
Deposit

Compiler Version
v0.8.20+commit.a1b79de6

Optimization Enabled:
Yes with 800 runs

Other Settings:
paris EvmVersion, MIT license
File 1 of 2 : Deposit.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "IERC20Lite.sol";

/**
 * @title    Deposit contract
 * @notice   Creates a contract with a known address and withdraws tokens from it.
 *           After deployment, the Vault will call fetch() to withdraw tokens.
 * @dev      Any change in this contract, including comments, will affect the final
 *           bytecode and therefore will affect the create2 derived addresses.
 *           Do NOT modify unless the consequences of doing so are fully understood.
 */
contract Deposit {
    address payable private immutable vault;

    /**
     * @notice  Upon deployment it fetches the tokens (native or ERC20) to the Vault.
     * @param token  The address of the token to fetch
     */
    constructor(address token) {
        vault = payable(msg.sender);
        // Slightly cheaper to use msg.sender instead of Vault.
        if (token == 0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE) {
            // solhint-disable-next-line avoid-low-level-calls
            (bool success, ) = msg.sender.call{value: address(this).balance}("");
            require(success);
        } else {
            // IERC20Lite.transfer doesn't have a return bool to avoid reverts on non-standard ERC20s
            IERC20Lite(token).transfer(msg.sender, IERC20Lite(token).balanceOf(address(this)));
        }
    }

    /**
     * @notice  Allows the Vault to fetch ERC20 tokens from this contract.
     * @param token  The address of the token to fetch
     */
    function fetch(address token) external {
        require(msg.sender == vault);
        // IERC20Lite.transfer doesn't have a return bool to avoid reverts on non-standard ERC20s
        IERC20Lite(token).transfer(msg.sender, IERC20Lite(token).balanceOf(address(this)));
    }

    /// @notice Receives native tokens, emits an event and sends them to the Vault. Note that this
    // requires the sender to forward some more gas than for a simple transfer.
    receive() external payable {
        // solhint-disable-next-line avoid-low-level-calls
        (bool success, ) = vault.call{value: address(this).balance}("");
        require(success);
    }
}

File 2 of 2 : IERC20Lite.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

/**
 * @title    ERC20 Lite Interface
 * @notice   The interface for functions ERC20Lite implements. This is intended to
 *           be used only in the Deposit contract.
 * @dev      Any change in this contract, including comments, will affect the final
 *           bytecode and therefore will affect the create2 derived addresses.
 *           Do NOT modify unless the consequences of doing so are fully understood.
 */
interface IERC20Lite {
    /// @dev Removed the return bool to avoid reverts on non-standard ERC20s.
    function transfer(address, uint256) external;

    function balanceOf(address) external view returns (uint256);
}

Settings
{
  "evmVersion": "paris",
  "optimizer": {
    "enabled": true,
    "runs": 800
  },
  "libraries": {
    "Deposit.sol": {}
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  }
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"token","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[{"internalType":"address","name":"token","type":"address"}],"name":"fetch","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]

Deployed Bytecode

0x6080604052600436106100225760003560e01c8063f109a0be146100ae57600080fd5b366100a95760007f000000000000000000000000f5e10380213880111522dd0efd3dbb45b9f62bcc6001600160a01b03164760405160006040518083038185875af1925050503d8060008114610094576040519150601f19603f3d011682016040523d82523d6000602084013e610099565b606091505b50509050806100a757600080fd5b005b600080fd5b3480156100ba57600080fd5b506100a76100c93660046101e9565b336001600160a01b037f000000000000000000000000f5e10380213880111522dd0efd3dbb45b9f62bcc16146100fe57600080fd5b6040516370a0823160e01b81523060048201526001600160a01b0382169063a9059cbb90339083906370a0823190602401602060405180830381865afa15801561014c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906101709190610219565b6040517fffffffff0000000000000000000000000000000000000000000000000000000060e085901b1681526001600160a01b0390921660048301526024820152604401600060405180830381600087803b1580156101ce57600080fd5b505af11580156101e2573d6000803e3d6000fd5b5050505050565b6000602082840312156101fb57600080fd5b81356001600160a01b038116811461021257600080fd5b9392505050565b60006020828403121561022b57600080fd5b505191905056fea26469706673582212207a3063a75755b8b3364bcf7137526722a9ac4adcc81866e63e0a9dfb44df3a3e64736f6c63430008140033

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