Contract 0x4bc6148306abccad5d95c0cd916249d7d08711aa

 

Contract Overview

Plutus DAO: Fee Collector
Balance:
0 ETH

ETH Value:
$0.00

Token:
Txn Hash Method
Block
From
To
Value [Txn Fee]
0x02f5afbc2b4b0ab420a4a62d677a3b622019361c0a20f940949954f10edab1890x60806040120873762022-05-14 23:41:21195 days 11 hrs agoPlutusDAO: Deployer IN  Contract Creation0 ETH0.001361621788 ETH
[ Download CSV Export 
Latest 18 internal transactions
Parent Txn Hash Block From To Value
0xfbd853e90aed1733179cf5c4be3ac8aca8103d8d5c6e0c3c561937bb68598509360645762022-11-07 16:58:0018 days 18 hrs ago Plutus DAO: Fee Collector Jones DAO: JONES Token0 ETH
0xfbd853e90aed1733179cf5c4be3ac8aca8103d8d5c6e0c3c561937bb68598509360645762022-11-07 16:58:0018 days 18 hrs ago Plutus DAO: Fee Collector Jones DAO: JONES Token0 ETH
0xfbd853e90aed1733179cf5c4be3ac8aca8103d8d5c6e0c3c561937bb68598509360645762022-11-07 16:58:0018 days 18 hrs ago Plutus DAO: Governance Plutus DAO: Fee Collector0 ETH
0x5b3392e7c1b78b353b2ea58ab66265bc6dc741a1a6e11e7cb2e03ea571a2cb63199457762022-08-10 21:47:20107 days 13 hrs ago Plutus DAO: Fee Collector Jones DAO: JONES Token0 ETH
0x5b3392e7c1b78b353b2ea58ab66265bc6dc741a1a6e11e7cb2e03ea571a2cb63199457762022-08-10 21:47:20107 days 13 hrs ago Plutus DAO: Fee Collector Jones DAO: JONES Token0 ETH
0x5b3392e7c1b78b353b2ea58ab66265bc6dc741a1a6e11e7cb2e03ea571a2cb63199457762022-08-10 21:47:20107 days 13 hrs ago Plutus DAO: Governance Plutus DAO: Fee Collector0 ETH
0x0403c8857f0ef4c74f2113721e27d4b182be48635b44c3986a382cb58f5a4ea1197328272022-08-08 16:00:08109 days 19 hrs ago Plutus DAO: Fee Collector Jones DAO: JONES Token0 ETH
0x0403c8857f0ef4c74f2113721e27d4b182be48635b44c3986a382cb58f5a4ea1197328272022-08-08 16:00:08109 days 19 hrs ago Plutus DAO: Fee Collector Jones DAO: JONES Token0 ETH
0x0403c8857f0ef4c74f2113721e27d4b182be48635b44c3986a382cb58f5a4ea1197328272022-08-08 16:00:08109 days 19 hrs ago Plutus DAO: Governance Plutus DAO: Fee Collector0 ETH
0xf69f2584c5868a42c2a24ba9b982fed58a2afcfc32be716a930d1faec83a3683185405492022-07-25 15:34:14123 days 19 hrs ago Plutus DAO: Fee Collector Jones DAO: JONES Token0 ETH
0xf69f2584c5868a42c2a24ba9b982fed58a2afcfc32be716a930d1faec83a3683185405492022-07-25 15:34:14123 days 19 hrs ago Plutus DAO: Fee Collector Jones DAO: JONES Token0 ETH
0xf69f2584c5868a42c2a24ba9b982fed58a2afcfc32be716a930d1faec83a3683185405492022-07-25 15:34:14123 days 19 hrs ago Plutus DAO: Governance Plutus DAO: Fee Collector0 ETH
0xf69f2584c5868a42c2a24ba9b982fed58a2afcfc32be716a930d1faec83a3683185405492022-07-25 15:34:14123 days 19 hrs ago Plutus DAO: Fee CollectorDopex: DPX Token0 ETH
0xf69f2584c5868a42c2a24ba9b982fed58a2afcfc32be716a930d1faec83a3683185405492022-07-25 15:34:14123 days 19 hrs ago Plutus DAO: Fee CollectorDopex: DPX Token0 ETH
0xf69f2584c5868a42c2a24ba9b982fed58a2afcfc32be716a930d1faec83a3683185405492022-07-25 15:34:14123 days 19 hrs ago Plutus DAO: Governance Plutus DAO: Fee Collector0 ETH
0xf69f2584c5868a42c2a24ba9b982fed58a2afcfc32be716a930d1faec83a3683185405492022-07-25 15:34:14123 days 19 hrs ago Plutus DAO: Fee Collector Dopex: rDPX Token0 ETH
0xf69f2584c5868a42c2a24ba9b982fed58a2afcfc32be716a930d1faec83a3683185405492022-07-25 15:34:14123 days 19 hrs ago Plutus DAO: Fee Collector Dopex: rDPX Token0 ETH
0xf69f2584c5868a42c2a24ba9b982fed58a2afcfc32be716a930d1faec83a3683185405492022-07-25 15:34:14123 days 19 hrs ago Plutus DAO: Governance Plutus DAO: Fee Collector0 ETH
[ Download CSV Export 
Loading

Similar Match Source Code
Note: This contract matches the deployed ByteCode of the Source Code for Contract 0x3f80e3b68039D4735352Bd92cfD4A5185992F919

Contract Name:
FeeCollector

Compiler Version
v0.8.9+commit.e5eed63a

Optimization Enabled:
Yes with 1000 runs

Other Settings:
default evmVersion

Contract Source Code (Solidity Standard Json-Input format)

File 1 of 4 : FeeCollector.sol
// SPDX-License-Identifier: MIT
pragma solidity 0.8.9;

import '@openzeppelin/contracts/access/Ownable.sol';
import '@openzeppelin/contracts/token/ERC20/IERC20.sol';

contract FeeCollector is Ownable {
  constructor(address _gov) {
    transferOwnership(_gov);
  }

  function collect(IERC20 _token) external onlyOwner {
    if (address(this).balance != 0) {
      payable(owner()).transfer(address(this).balance);
      emit FeeCollected(address(0), address(this).balance);
    }

    uint256 _amt = _token.balanceOf(address(this));
    _token.transfer(owner(), _amt);
    emit FeeCollected(address(_token), _amt);
  }

  event FeeCollected(address _token, uint256 _amt);
}

File 2 of 4 : Ownable.sol
// 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);
    }
}

File 3 of 4 : IERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (token/ERC20/IERC20.sol)

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC20 standard as defined in the EIP.
 */
interface IERC20 {
    /**
     * @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);

    /**
     * @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);
}

File 4 of 4 : Context.sol
// 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;
    }
}

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

Contract ABI

[{"inputs":[{"internalType":"address","name":"_gov","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"_token","type":"address"},{"indexed":false,"internalType":"uint256","name":"_amt","type":"uint256"}],"name":"FeeCollected","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"},{"inputs":[{"internalType":"contract IERC20","name":"_token","type":"address"}],"name":"collect","outputs":[],"stateMutability":"nonpayable","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"}]

608060405234801561001057600080fd5b5060405161070f38038061070f83398101604081905261002f91610167565b61003833610047565b61004181610097565b50610197565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6000546001600160a01b031633146100f65760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064015b60405180910390fd5b6001600160a01b03811661015b5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016100ed565b61016481610047565b50565b60006020828403121561017957600080fd5b81516001600160a01b038116811461019057600080fd5b9392505050565b610569806101a66000396000f3fe608060405234801561001057600080fd5b506004361061004c5760003560e01c806306ec16f814610051578063715018a6146100665780638da5cb5b1461006e578063f2fde38b1461008d575b600080fd5b61006461005f3660046104d4565b6100a0565b005b61006461030f565b600054604080516001600160a01b039092168252519081900360200190f35b61006461009b3660046104d4565b610375565b6000546001600160a01b031633146100ff5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064015b60405180910390fd5b471561017a57600080546040516001600160a01b03909116914780156108fc02929091818181858888f1935050505015801561013f573d6000803e3d6000fd5b5060408051600081524760208201527f06c5efeff5c320943d265dc4e5f1af95ad523555ce0c1957e367dda5514572df910160405180910390a15b6040517f70a082310000000000000000000000000000000000000000000000000000000081523060048201526000906001600160a01b038316906370a082319060240160206040518083038186803b1580156101d557600080fd5b505afa1580156101e9573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061020d91906104f8565b9050816001600160a01b031663a9059cbb6102306000546001600160a01b031690565b6040517fffffffff0000000000000000000000000000000000000000000000000000000060e084901b1681526001600160a01b03909116600482015260248101849052604401602060405180830381600087803b15801561029057600080fd5b505af11580156102a4573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906102c89190610511565b50604080516001600160a01b0384168152602081018390527f06c5efeff5c320943d265dc4e5f1af95ad523555ce0c1957e367dda5514572df910160405180910390a15050565b6000546001600160a01b031633146103695760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016100f6565b6103736000610457565b565b6000546001600160a01b031633146103cf5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016100f6565b6001600160a01b03811661044b5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f646472657373000000000000000000000000000000000000000000000000000060648201526084016100f6565b61045481610457565b50565b600080546001600160a01b038381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6001600160a01b038116811461045457600080fd5b6000602082840312156104e657600080fd5b81356104f1816104bf565b9392505050565b60006020828403121561050a57600080fd5b5051919050565b60006020828403121561052357600080fd5b815180151581146104f157600080fdfea26469706673582212206193015b252662208a42945ece9e613f5ba92bd52917bdc2ce6b25ce41a0f33a64736f6c634300080900330000000000000000000000006cc0d643c7b8709f468f58f363d73af6e4971515

Block Transaction Gas Used Reward
Age Block Fee Address BC Fee Address Voting Power Jailed Incoming
Block Uncle Number Difficulty Gas Used Reward
Loading
Make sure to use the "Vote Down" button for any spammy posts, and the "Vote Up" for interesting conversations.