ETH Price: $2,465.61 (+5.74%)

Token

 

Overview

Max Total Supply

0

Holders

0

Market

Onchain Market Cap

$0.00

Circulating Supply Market Cap

-

Other Info

Token Contract (WITH 0 Decimals)

Filtered by Token Holder
duyu.eth
Balance
0

Value
$0.00
0x17ad303f7fa3ad85305405def3c1339f54023bc0
Loading...
Loading
Loading...
Loading
Loading...
Loading

Click here to update the token information / general information
# Exchange Pair Price  24H Volume % Volume

Contract Source Code Verified (Exact Match)

Contract Name:
ETHTransferProxy

Compiler Version
v0.8.25+commit.b61c2a91

Optimization Enabled:
Yes with 10000 runs

Other Settings:
shanghai EvmVersion
File 1 of 1 : ETHTransferProxy.sol
// SPDX-License-Identifier: MIT
pragma solidity >=0.8.25;

// ETHTransferProxy is a stateless hyperstructure that provides
// ERC20-compliant Transfer events for ETH transfers. ETHTransferProxy
// exists because generalized offchain detection of ETH transfers (eg.
// when using smart contract wallets) cannot be done using the ethrpc
// api, and can only be done with non-standard tracing APIs. Clients may
// route ETH transfers through ETHTransferProxy such that the ETH
// transfer is detectable by monitoring for Transfer events. A permament
// solution to this problem has been proposed via EIP-7708: ETH
// transfers emit a log.
contract ETHTransferProxy {
  error ETHTransferFailed();

  event Transfer(address indexed from, address indexed to, uint256 value); // identical to ERC20.Transfer

  // transferETH transfers the received ETH to the passed receiver and
  // emits an ERC20-compliant Transfer event.
  function transferETH(address payable receiver) external payable {
    (bool success,) = receiver.call{ value: msg.value }("");
    if (!success) revert ETHTransferFailed();
    emit Transfer(msg.sender, receiver, msg.value);
  }
}

Settings
{
  "remappings": [
    "forge-std/=node_modules/forge-std/"
  ],
  "optimizer": {
    "enabled": true,
    "runs": 10000
  },
  "metadata": {
    "useLiteralContent": false,
    "bytecodeHash": "none",
    "appendCBOR": false
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  },
  "evmVersion": "shanghai",
  "viaIR": true,
  "libraries": {}
}

Contract Security Audit

Contract ABI

[{"inputs":[],"name":"ETHTransferFailed","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[{"internalType":"address payable","name":"receiver","type":"address"}],"name":"transferETH","outputs":[],"stateMutability":"payable","type":"function"}]

6080806040523460155761016b908161001a8239f35b5f80fdfe60806040526004361015610011575f80fd5b5f3560e01c63d50f6bf014610024575f80fd5b60207ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc3601126101675760043573ffffffffffffffffffffffffffffffffffffffff8116809103610167575f80808034855af13d156101625767ffffffffffffffff3d8181116101355760405191601f82017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0908116603f01168301908111838210176101355760405281525f60203d92013e5b1561010b576040513481527fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60203392a3005b60046040517fb12d13eb000000000000000000000000000000000000000000000000000000008152fd5b7f4e487b71000000000000000000000000000000000000000000000000000000005f52604160045260245ffd5b6100d8565b5f80fd

Deployed Bytecode

0x60806040526004361015610011575f80fd5b5f3560e01c63d50f6bf014610024575f80fd5b60207ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc3601126101675760043573ffffffffffffffffffffffffffffffffffffffff8116809103610167575f80808034855af13d156101625767ffffffffffffffff3d8181116101355760405191601f82017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0908116603f01168301908111838210176101355760405281525f60203d92013e5b1561010b576040513481527fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60203392a3005b60046040517fb12d13eb000000000000000000000000000000000000000000000000000000008152fd5b7f4e487b71000000000000000000000000000000000000000000000000000000005f52604160045260245ffd5b6100d8565b5f80fd

Loading...
Loading
Loading...
Loading
[ Download: CSV Export  ]

A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.