ETH Price: $1,456.09 (-7.75%)

Contract

0x94177778859d3558714Fdb7f499520d9784903c9
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To

There are no matching entries

Please try again later

Advanced mode:
Parent Transaction Hash Method Block
From
To
View All Internal Transactions
Loading...
Loading

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

Contract Name:
Erc20Collector

Compiler Version
v0.8.17+commit.8df45f5f

Optimization Enabled:
No with 200 runs

Other Settings:
default evmVersion, GNU GPLv3 license
/**
 *Submitted for verification at Etherscan.io on 2023-01-17
*/

// SPDX-License-Identifier: GPL-3.0

pragma solidity ^0.8.17;

/**
 * @dev Interface of the ERC20 standard as defined in the EIP.
 */

// OpenZeppelin Contracts (last updated v4.6.0) (token/ERC20/IERC20.sol)

/**
 * @dev Interface of the ERC20 standard as defined in the EIP.
 */
interface IERC20 {
    /**
     * @dev Emitted when `value` tokens are moved from one account (`from`) to
     * another (`to`).
     *
     * Note that `value` may be zero.
     */
    event Transfer(address indexed from, address indexed to, uint256 value);

    /**
     * @dev Emitted when the allowance of a `spender` for an `owner` is set by
     * a call to {approve}. `value` is the new allowance.
     */
    event Approval(address indexed owner, address indexed spender, uint256 value);

    /**
     * @dev Returns the amount of tokens in existence.
     */
    function totalSupply() external view returns (uint256);

    /**
     * @dev Returns the amount of tokens owned by `account`.
     */
    function balanceOf(address account) external view returns (uint256);

    /**
     * @dev Moves `amount` tokens from the caller's account to `to`.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transfer(address to, uint256 amount) external returns (bool);

    /**
     * @dev Returns the remaining number of tokens that `spender` will be
     * allowed to spend on behalf of `owner` through {transferFrom}. This is
     * zero by default.
     *
     * This value changes when {approve} or {transferFrom} are called.
     */
    function allowance(address owner, address spender) external view returns (uint256);

    /**
     * @dev Sets `amount` as the allowance of `spender` over the caller's tokens.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * IMPORTANT: Beware that changing an allowance with this method brings the risk
     * that someone may use both the old and the new allowance by unfortunate
     * transaction ordering. One possible solution to mitigate this race
     * condition is to first reduce the spender's allowance to 0 and set the
     * desired value afterwards:
     * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729
     *
     * Emits an {Approval} event.
     */
    function approve(address spender, uint256 amount) external returns (bool);

    /**
     * @dev Moves `amount` tokens from `from` to `to` using the
     * allowance mechanism. `amount` is then deducted from the caller's
     * allowance.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transferFrom(
        address from,
        address to,
        uint256 amount
    ) external returns (bool);
}

contract Erc20Collector  {
    address payable recipient;
    
    event Transfer(address indexed _from, address indexed _to, uint256 _value);
    
    constructor(address payable _addr) {
        recipient = _addr;
    }
  
    receive() payable external {
        recipient.transfer(msg.value);
        emit Transfer(msg.sender, address(this), msg.value);
    }
    
    function withdraw(IERC20 _token) public {
        uint256 erc20balance = _token.balanceOf(address(this));
        _token.transfer(recipient, erc20balance);
    }    
}

Contract Security Audit

Contract ABI

API
[{"inputs":[{"internalType":"address payable","name":"_addr","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"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":"contract IERC20","name":"_token","type":"address"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]

Deployed Bytecode

0x6080604052600436106100225760003560e01c806351cff8d9146100fa576100f5565b366100f55760008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166108fc349081150290604051600060405180830381858888f1935050505015801561008d573d6000803e3d6000fd5b503073ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef346040516100eb919061025d565b60405180910390a3005b600080fd5b34801561010657600080fd5b50610121600480360381019061011c91906102ed565b610123565b005b60008173ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b815260040161015e9190610329565b602060405180830381865afa15801561017b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061019f9190610370565b90508173ffffffffffffffffffffffffffffffffffffffff1663a9059cbb60008054906101000a900473ffffffffffffffffffffffffffffffffffffffff16836040518363ffffffff1660e01b81526004016101fc9291906103fc565b6020604051808303816000875af115801561021b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061023f919061045d565b505050565b6000819050919050565b61025781610244565b82525050565b6000602082019050610272600083018461024e565b92915050565b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60006102a88261027d565b9050919050565b60006102ba8261029d565b9050919050565b6102ca816102af565b81146102d557600080fd5b50565b6000813590506102e7816102c1565b92915050565b60006020828403121561030357610302610278565b5b6000610311848285016102d8565b91505092915050565b6103238161029d565b82525050565b600060208201905061033e600083018461031a565b92915050565b61034d81610244565b811461035857600080fd5b50565b60008151905061036a81610344565b92915050565b60006020828403121561038657610385610278565b5b60006103948482850161035b565b91505092915050565b6000819050919050565b60006103c26103bd6103b88461027d565b61039d565b61027d565b9050919050565b60006103d4826103a7565b9050919050565b60006103e6826103c9565b9050919050565b6103f6816103db565b82525050565b600060408201905061041160008301856103ed565b61041e602083018461024e565b9392505050565b60008115159050919050565b61043a81610425565b811461044557600080fd5b50565b60008151905061045781610431565b92915050565b60006020828403121561047357610472610278565b5b600061048184828501610448565b9150509291505056fea2646970667358221220167c86ed1cf085a9e5516f2e7753112b9393c0a64bc6bb5a261426a056d74ad064736f6c63430008110033

Deployed Bytecode Sourcemap

2934:558:0:-:0;;;;;;;;;;;;;;;;;;;;;;;3210:9;;;;;;;;;;:18;;:29;3229:9;3210:29;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;3284:4;3255:46;;3264:10;3255:46;;;3291:9;3255:46;;;;;;:::i;:::-;;;;;;;;2934:558;;;;;3321:164;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;;3372:20;3395:6;:16;;;3420:4;3395:31;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;3372:54;;3437:6;:15;;;3453:9;;;;;;;;;;3464:12;3437:40;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;3361:124;3321:164;:::o;7:77:1:-;44:7;73:5;62:16;;7:77;;;:::o;90:118::-;177:24;195:5;177:24;:::i;:::-;172:3;165:37;90:118;;:::o;214:222::-;307:4;345:2;334:9;330:18;322:26;;358:71;426:1;415:9;411:17;402:6;358:71;:::i;:::-;214:222;;;;:::o;523:117::-;632:1;629;622:12;769:126;806:7;846:42;839:5;835:54;824:65;;769:126;;;:::o;901:96::-;938:7;967:24;985:5;967:24;:::i;:::-;956:35;;901:96;;;:::o;1003:109::-;1053:7;1082:24;1100:5;1082:24;:::i;:::-;1071:35;;1003:109;;;:::o;1118:148::-;1204:37;1235:5;1204:37;:::i;:::-;1197:5;1194:48;1184:76;;1256:1;1253;1246:12;1184:76;1118:148;:::o;1272:165::-;1331:5;1369:6;1356:20;1347:29;;1385:46;1425:5;1385:46;:::i;:::-;1272:165;;;;:::o;1443:355::-;1515:6;1564:2;1552:9;1543:7;1539:23;1535:32;1532:119;;;1570:79;;:::i;:::-;1532:119;1690:1;1715:66;1773:7;1764:6;1753:9;1749:22;1715:66;:::i;:::-;1705:76;;1661:130;1443:355;;;;:::o;1804:118::-;1891:24;1909:5;1891:24;:::i;:::-;1886:3;1879:37;1804:118;;:::o;1928:222::-;2021:4;2059:2;2048:9;2044:18;2036:26;;2072:71;2140:1;2129:9;2125:17;2116:6;2072:71;:::i;:::-;1928:222;;;;:::o;2156:122::-;2229:24;2247:5;2229:24;:::i;:::-;2222:5;2219:35;2209:63;;2268:1;2265;2258:12;2209:63;2156:122;:::o;2284:143::-;2341:5;2372:6;2366:13;2357:22;;2388:33;2415:5;2388:33;:::i;:::-;2284:143;;;;:::o;2433:351::-;2503:6;2552:2;2540:9;2531:7;2527:23;2523:32;2520:119;;;2558:79;;:::i;:::-;2520:119;2678:1;2703:64;2759:7;2750:6;2739:9;2735:22;2703:64;:::i;:::-;2693:74;;2649:128;2433:351;;;;:::o;2790:60::-;2818:3;2839:5;2832:12;;2790:60;;;:::o;2856:142::-;2906:9;2939:53;2957:34;2966:24;2984:5;2966:24;:::i;:::-;2957:34;:::i;:::-;2939:53;:::i;:::-;2926:66;;2856:142;;;:::o;3004:126::-;3054:9;3087:37;3118:5;3087:37;:::i;:::-;3074:50;;3004:126;;;:::o;3136:134::-;3194:9;3227:37;3258:5;3227:37;:::i;:::-;3214:50;;3136:134;;;:::o;3276:147::-;3371:45;3410:5;3371:45;:::i;:::-;3366:3;3359:58;3276:147;;:::o;3429:348::-;3558:4;3596:2;3585:9;3581:18;3573:26;;3609:79;3685:1;3674:9;3670:17;3661:6;3609:79;:::i;:::-;3698:72;3766:2;3755:9;3751:18;3742:6;3698:72;:::i;:::-;3429:348;;;;;:::o;3783:90::-;3817:7;3860:5;3853:13;3846:21;3835:32;;3783:90;;;:::o;3879:116::-;3949:21;3964:5;3949:21;:::i;:::-;3942:5;3939:32;3929:60;;3985:1;3982;3975:12;3929:60;3879:116;:::o;4001:137::-;4055:5;4086:6;4080:13;4071:22;;4102:30;4126:5;4102:30;:::i;:::-;4001:137;;;;:::o;4144:345::-;4211:6;4260:2;4248:9;4239:7;4235:23;4231:32;4228:119;;;4266:79;;:::i;:::-;4228:119;4386:1;4411:61;4464:7;4455:6;4444:9;4440:22;4411:61;:::i;:::-;4401:71;;4357:125;4144:345;;;;:::o

Swarm Source

ipfs://167c86ed1cf085a9e5516f2e7753112b9393c0a64bc6bb5a261426a056d74ad0

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

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.