ETH Price: $2,109.73 (+2.26%)

Contract

0xfdA84Df1a3e7aA676a5B5f34E6474aaeAef007B3
 

Overview

ETH Balance

0.02 ETH

Eth Value

$42.19 (@ $2,109.73/ETH)

More Info

Private Name Tags

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Withdraw145988042022-04-16 21:33:051426 days ago1650144785IN
0xfdA84Df1...eAef007B3
0 ETH0.0012761539.52892633

Latest 7 internal transactions

Advanced mode:
Parent Transaction Hash Method Block
From
To
-146771212022-04-29 4:35:191414 days ago1651206919
0xfdA84Df1...eAef007B3
0.001 ETH
-146114252022-04-18 20:54:231424 days ago1650315263
0xfdA84Df1...eAef007B3
0.004 ETH
-146112992022-04-18 20:28:091425 days ago1650313689
0xfdA84Df1...eAef007B3
0.001 ETH
-146104572022-04-18 17:14:011425 days ago1650302041
0xfdA84Df1...eAef007B3
0.014 ETH
-145988042022-04-16 21:33:051426 days ago1650144785
0xfdA84Df1...eAef007B3
0.006 ETH
-145987622022-04-16 21:22:531426 days ago1650144173
0xfdA84Df1...eAef007B3
0.005 ETH
-145987282022-04-16 21:13:361426 days ago1650143616
0xfdA84Df1...eAef007B3
0.001 ETH
Loading...
Loading
Loading...
Loading
Cross-Chain Transactions

Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
FeeCollector

Compiler Version
v0.8.7+commit.e28d00a7

Optimization Enabled:
No with 200 runs

Other Settings:
default evmVersion, Unlicense license
/**
 *Submitted for verification at Etherscan.io on 2022-03-29
*/

// File: @openzeppelin/contracts/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;
    }
}

// File: @openzeppelin/contracts/access/Ownable.sol



pragma solidity ^0.8.0;


/**
 * @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() {
        _setOwner(_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 {
        _setOwner(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");
        _setOwner(newOwner);
    }

    function _setOwner(address newOwner) private {
        address oldOwner = _owner;
        _owner = newOwner;
        emit OwnershipTransferred(oldOwner, newOwner);
    }
}

// File: FeeCollector.sol


pragma solidity ^0.8.7;


contract FeeCollector is Ownable {
    event Received(address indexed, uint);
    event CalledFallback(address indexed, uint);
    event WithdrawBalance(address indexed, uint);

    constructor() Ownable() {}

    function withdraw() public onlyOwner{
        uint256 balance = address(this).balance;
        payable(owner()).transfer(balance);
        emit WithdrawBalance(owner(), balance);
    }
    
    receive() external payable {
        emit Received(msg.sender, msg.value);
    }
    fallback() external payable {
        emit CalledFallback(msg.sender, msg.value);
    }
    function getBalance() public view returns (uint256){
        return address(this).balance;
    }
}

Contract Security Audit

Contract ABI

API
[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"","type":"address"},{"indexed":false,"internalType":"uint256","name":"","type":"uint256"}],"name":"CalledFallback","type":"event"},{"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":true,"internalType":"address","name":"","type":"address"},{"indexed":false,"internalType":"uint256","name":"","type":"uint256"}],"name":"Received","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"","type":"address"},{"indexed":false,"internalType":"uint256","name":"","type":"uint256"}],"name":"WithdrawBalance","type":"event"},{"stateMutability":"payable","type":"fallback"},{"inputs":[],"name":"getBalance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"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":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]

608060405234801561001057600080fd5b5061002d61002261003260201b60201c565b61003a60201b60201c565b6100fe565b600033905090565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b6107778061010d6000396000f3fe60806040526004361061004e5760003560e01c806312065fe0146100f35780633ccfd60b1461011e578063715018a6146101355780638da5cb5b1461014c578063f2fde38b14610177576100a3565b366100a3573373ffffffffffffffffffffffffffffffffffffffff167f88a5966d370b9919b20f3e2c13ff65706f196a4e32cc2c12bf57088f88525874346040516100999190610645565b60405180910390a2005b3373ffffffffffffffffffffffffffffffffffffffff167fe278b0fa22a3a7f750416b6434935cd5e35b37e34a8859b84d5ddb2118753d13346040516100e99190610645565b60405180910390a2005b3480156100ff57600080fd5b506101086101a0565b6040516101159190610645565b60405180910390f35b34801561012a57600080fd5b506101336101a8565b005b34801561014157600080fd5b5061014a6102cf565b005b34801561015857600080fd5b50610161610357565b60405161016e91906105ea565b60405180910390f35b34801561018357600080fd5b5061019e60048036038101906101999190610559565b610380565b005b600047905090565b6101b0610478565b73ffffffffffffffffffffffffffffffffffffffff166101ce610357565b73ffffffffffffffffffffffffffffffffffffffff1614610224576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161021b90610625565b60405180910390fd5b6000479050610231610357565b73ffffffffffffffffffffffffffffffffffffffff166108fc829081150290604051600060405180830381858888f19350505050158015610276573d6000803e3d6000fd5b5061027f610357565b73ffffffffffffffffffffffffffffffffffffffff167f0875ab8e60d8ffe0781ba5e1d1adadeb6250bc1bee87d3094cc6ac4eb9f88512826040516102c49190610645565b60405180910390a250565b6102d7610478565b73ffffffffffffffffffffffffffffffffffffffff166102f5610357565b73ffffffffffffffffffffffffffffffffffffffff161461034b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161034290610625565b60405180910390fd5b6103556000610480565b565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b610388610478565b73ffffffffffffffffffffffffffffffffffffffff166103a6610357565b73ffffffffffffffffffffffffffffffffffffffff16146103fc576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016103f390610625565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16141561046c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161046390610605565b60405180910390fd5b61047581610480565b50565b600033905090565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b6000813590506105538161072a565b92915050565b60006020828403121561056f5761056e6106ad565b5b600061057d84828501610544565b91505092915050565b61058f81610671565b82525050565b60006105a2602683610660565b91506105ad826106b2565b604082019050919050565b60006105c5602083610660565b91506105d082610701565b602082019050919050565b6105e4816106a3565b82525050565b60006020820190506105ff6000830184610586565b92915050565b6000602082019050818103600083015261061e81610595565b9050919050565b6000602082019050818103600083015261063e816105b8565b9050919050565b600060208201905061065a60008301846105db565b92915050565b600082825260208201905092915050565b600061067c82610683565b9050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b600080fd5b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b61073381610671565b811461073e57600080fd5b5056fea2646970667358221220b33b91dcb25d5c24c93da15e4d3abf2f562aada3c97923f4428b8fce4a263bfd64736f6c63430008070033

Deployed Bytecode

0x60806040526004361061004e5760003560e01c806312065fe0146100f35780633ccfd60b1461011e578063715018a6146101355780638da5cb5b1461014c578063f2fde38b14610177576100a3565b366100a3573373ffffffffffffffffffffffffffffffffffffffff167f88a5966d370b9919b20f3e2c13ff65706f196a4e32cc2c12bf57088f88525874346040516100999190610645565b60405180910390a2005b3373ffffffffffffffffffffffffffffffffffffffff167fe278b0fa22a3a7f750416b6434935cd5e35b37e34a8859b84d5ddb2118753d13346040516100e99190610645565b60405180910390a2005b3480156100ff57600080fd5b506101086101a0565b6040516101159190610645565b60405180910390f35b34801561012a57600080fd5b506101336101a8565b005b34801561014157600080fd5b5061014a6102cf565b005b34801561015857600080fd5b50610161610357565b60405161016e91906105ea565b60405180910390f35b34801561018357600080fd5b5061019e60048036038101906101999190610559565b610380565b005b600047905090565b6101b0610478565b73ffffffffffffffffffffffffffffffffffffffff166101ce610357565b73ffffffffffffffffffffffffffffffffffffffff1614610224576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161021b90610625565b60405180910390fd5b6000479050610231610357565b73ffffffffffffffffffffffffffffffffffffffff166108fc829081150290604051600060405180830381858888f19350505050158015610276573d6000803e3d6000fd5b5061027f610357565b73ffffffffffffffffffffffffffffffffffffffff167f0875ab8e60d8ffe0781ba5e1d1adadeb6250bc1bee87d3094cc6ac4eb9f88512826040516102c49190610645565b60405180910390a250565b6102d7610478565b73ffffffffffffffffffffffffffffffffffffffff166102f5610357565b73ffffffffffffffffffffffffffffffffffffffff161461034b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161034290610625565b60405180910390fd5b6103556000610480565b565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b610388610478565b73ffffffffffffffffffffffffffffffffffffffff166103a6610357565b73ffffffffffffffffffffffffffffffffffffffff16146103fc576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016103f390610625565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16141561046c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161046390610605565b60405180910390fd5b61047581610480565b50565b600033905090565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b6000813590506105538161072a565b92915050565b60006020828403121561056f5761056e6106ad565b5b600061057d84828501610544565b91505092915050565b61058f81610671565b82525050565b60006105a2602683610660565b91506105ad826106b2565b604082019050919050565b60006105c5602083610660565b91506105d082610701565b602082019050919050565b6105e4816106a3565b82525050565b60006020820190506105ff6000830184610586565b92915050565b6000602082019050818103600083015261061e81610595565b9050919050565b6000602082019050818103600083015261063e816105b8565b9050919050565b600060208201905061065a60008301846105db565b92915050565b600082825260208201905092915050565b600061067c82610683565b9050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b600080fd5b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b61073381610671565b811461073e57600080fd5b5056fea2646970667358221220b33b91dcb25d5c24c93da15e4d3abf2f562aada3c97923f4428b8fce4a263bfd64736f6c63430008070033

Deployed Bytecode Sourcemap

3177:705:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;3650:10;3641:31;;;3662:9;3641:31;;;;;;:::i;:::-;;;;;;;;3177:705;;3745:10;3730:37;;;3757:9;3730:37;;;;;;:::i;:::-;;;;;;;;3177:705;3781:98;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;3398:188;;;;;;;;;;;;;:::i;:::-;;2488:94;;;;;;;;;;;;;:::i;:::-;;1837:87;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;2737:192;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;3781:98;3824:7;3850:21;3843:28;;3781:98;:::o;3398:188::-;2068:12;:10;:12::i;:::-;2057:23;;:7;:5;:7::i;:::-;:23;;;2049:68;;;;;;;;;;;;:::i;:::-;;;;;;;;;3445:15:::1;3463:21;3445:39;;3503:7;:5;:7::i;:::-;3495:25;;:34;3521:7;3495:34;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;3561:7;:5;:7::i;:::-;3545:33;;;3570:7;3545:33;;;;;;:::i;:::-;;;;;;;;3434:152;3398:188::o:0;2488:94::-;2068:12;:10;:12::i;:::-;2057:23;;:7;:5;:7::i;:::-;:23;;;2049:68;;;;;;;;;;;;:::i;:::-;;;;;;;;;2553:21:::1;2571:1;2553:9;:21::i;:::-;2488:94::o:0;1837:87::-;1883:7;1910:6;;;;;;;;;;;1903:13;;1837:87;:::o;2737:192::-;2068:12;:10;:12::i;:::-;2057:23;;:7;:5;:7::i;:::-;:23;;;2049:68;;;;;;;;;;;;:::i;:::-;;;;;;;;;2846:1:::1;2826:22;;:8;:22;;;;2818:73;;;;;;;;;;;;:::i;:::-;;;;;;;;;2902:19;2912:8;2902:9;:19::i;:::-;2737:192:::0;:::o;625:98::-;678:7;705:10;698:17;;625:98;:::o;2937:173::-;2993:16;3012:6;;;;;;;;;;;2993:25;;3038:8;3029:6;;:17;;;;;;;;;;;;;;;;;;3093:8;3062:40;;3083:8;3062:40;;;;;;;;;;;;2982:128;2937:173;:::o;7:139:1:-;53:5;91:6;78:20;69:29;;107:33;134:5;107:33;:::i;:::-;7:139;;;;:::o;152:329::-;211:6;260:2;248:9;239:7;235:23;231:32;228:119;;;266:79;;:::i;:::-;228:119;386:1;411:53;456:7;447:6;436:9;432:22;411:53;:::i;:::-;401:63;;357:117;152:329;;;;:::o;487:118::-;574:24;592:5;574:24;:::i;:::-;569:3;562:37;487:118;;:::o;611:366::-;753:3;774:67;838:2;833:3;774:67;:::i;:::-;767:74;;850:93;939:3;850:93;:::i;:::-;968:2;963:3;959:12;952:19;;611:366;;;:::o;983:::-;1125:3;1146:67;1210:2;1205:3;1146:67;:::i;:::-;1139:74;;1222:93;1311:3;1222:93;:::i;:::-;1340:2;1335:3;1331:12;1324:19;;983:366;;;:::o;1355:118::-;1442:24;1460:5;1442:24;:::i;:::-;1437:3;1430:37;1355:118;;:::o;1479:222::-;1572:4;1610:2;1599:9;1595:18;1587:26;;1623:71;1691:1;1680:9;1676:17;1667:6;1623:71;:::i;:::-;1479:222;;;;:::o;1707:419::-;1873:4;1911:2;1900:9;1896:18;1888:26;;1960:9;1954:4;1950:20;1946:1;1935:9;1931:17;1924:47;1988:131;2114:4;1988:131;:::i;:::-;1980:139;;1707:419;;;:::o;2132:::-;2298:4;2336:2;2325:9;2321:18;2313:26;;2385:9;2379:4;2375:20;2371:1;2360:9;2356:17;2349:47;2413:131;2539:4;2413:131;:::i;:::-;2405:139;;2132:419;;;:::o;2557:222::-;2650:4;2688:2;2677:9;2673:18;2665:26;;2701:71;2769:1;2758:9;2754:17;2745:6;2701:71;:::i;:::-;2557:222;;;;:::o;2866:169::-;2950:11;2984:6;2979:3;2972:19;3024:4;3019:3;3015:14;3000:29;;2866:169;;;;:::o;3041:96::-;3078:7;3107:24;3125:5;3107:24;:::i;:::-;3096:35;;3041:96;;;:::o;3143:126::-;3180:7;3220:42;3213:5;3209:54;3198:65;;3143:126;;;:::o;3275:77::-;3312:7;3341:5;3330:16;;3275:77;;;:::o;3481:117::-;3590:1;3587;3580:12;3604:225;3744:34;3740:1;3732:6;3728:14;3721:58;3813:8;3808:2;3800:6;3796:15;3789:33;3604:225;:::o;3835:182::-;3975:34;3971:1;3963:6;3959:14;3952:58;3835:182;:::o;4023:122::-;4096:24;4114:5;4096:24;:::i;:::-;4089:5;4086:35;4076:63;;4135:1;4132;4125:12;4076:63;4023:122;:::o

Swarm Source

ipfs://b33b91dcb25d5c24c93da15e4d3abf2f562aada3c97923f4428b8fce4a263bfd

Block Uncle Number Difficulty Gas Used Reward
View All Uncles
Loading...
Loading
Loading...
Loading
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.