Contract 0x84d152e8cb68a94ebcf50ce6f17af7f2c1f891eb

 
Txn Hash Method
Block
From
To
Value [Txn Fee]
0x7f243861aa673a5cd5d89bfdcdd25954eb20be83535ff903bea4a92a6264a8f5Approve440117442022-12-06 7:18:4955 days 10 hrs agoPlutusDAO: Deployer IN  0x84d152e8cb68a94ebcf50ce6f17af7f2c1f891eb0 ETH0.00002293
0xdd960a7087f843d5777dc0be58a8dc7feafdcb2f2df8e75956b7b213aada722aApprove440116742022-12-06 7:18:2655 days 10 hrs agoPlutusDAO: Deployer IN  0x84d152e8cb68a94ebcf50ce6f17af7f2c1f891eb0 ETH0.00002293
0xa47df3df40ee1d1c9deb4e6fc494486bb32caac55180f530b620b016c3d8ef1fTransfer Ownersh...438929892022-12-05 19:34:0155 days 22 hrs agoPlutusDAO: Deployer IN  0x84d152e8cb68a94ebcf50ce6f17af7f2c1f891eb0 ETH0.00002008
0x8e6d8c30a2750ee64e40cad26411d7a32521d8332c93b3c3a774ac0a1e3bf647Collect202118302022-08-14 8:01:18169 days 9 hrs agoPlutusDAO: Deployer IN  0x84d152e8cb68a94ebcf50ce6f17af7f2c1f891eb0 ETH0.000044386978 ETH
0x6610c778d87ddb0d88ca90d8c0919bef40fd6575b2e02650a6020c83e2abb2930x60806040174767162022-07-12 11:31:49202 days 6 hrs agoPlutusDAO: Deployer IN  Create: FeeCollectorV20 ETH0.001210017354 ETH
[ Download CSV Export 
Latest 14 internal transactions
Parent Txn Hash Block From To Value
0x7f243861aa673a5cd5d89bfdcdd25954eb20be83535ff903bea4a92a6264a8f5440117442022-12-06 7:18:4955 days 10 hrs ago 0x84d152e8cb68a94ebcf50ce6f17af7f2c1f891eb GMX: sGLP Token0 ETH
0xdd960a7087f843d5777dc0be58a8dc7feafdcb2f2df8e75956b7b213aada722a440116742022-12-06 7:18:2655 days 10 hrs ago 0x84d152e8cb68a94ebcf50ce6f17af7f2c1f891eb GMX: sGLP Token0 ETH
0xfdc2039cc69ffbd1f797a5414bc213c93b9b72b406de6562038b1c8cd01cff5c439824492022-12-06 4:31:5055 days 13 hrs ago Plutus DAO: Governance 0x84d152e8cb68a94ebcf50ce6f17af7f2c1f891eb0 ETH
0x1d9024b973996f0a8e3d5a674365a2a28911d16ea3a3fe71637aa0f600f2155e439468252022-12-06 1:05:5155 days 16 hrs ago 0x84d152e8cb68a94ebcf50ce6f17af7f2c1f891eb Sperax: SPA Token0 ETH
0x1d9024b973996f0a8e3d5a674365a2a28911d16ea3a3fe71637aa0f600f2155e439468252022-12-06 1:05:5155 days 16 hrs ago 0x84d152e8cb68a94ebcf50ce6f17af7f2c1f891eb Sperax: SPA Token0 ETH
0x1d9024b973996f0a8e3d5a674365a2a28911d16ea3a3fe71637aa0f600f2155e439468252022-12-06 1:05:5155 days 16 hrs ago Plutus DAO: Governance 0x84d152e8cb68a94ebcf50ce6f17af7f2c1f891eb0 ETH
0x1d9024b973996f0a8e3d5a674365a2a28911d16ea3a3fe71637aa0f600f2155e439468252022-12-06 1:05:5155 days 16 hrs ago 0x84d152e8cb68a94ebcf50ce6f17af7f2c1f891eb 0x82af49447d8a07e3bd95bd0d56f35241523fbab10 ETH
0x1d9024b973996f0a8e3d5a674365a2a28911d16ea3a3fe71637aa0f600f2155e439468252022-12-06 1:05:5155 days 16 hrs ago 0x84d152e8cb68a94ebcf50ce6f17af7f2c1f891eb 0x82af49447d8a07e3bd95bd0d56f35241523fbab10 ETH
0x1d9024b973996f0a8e3d5a674365a2a28911d16ea3a3fe71637aa0f600f2155e439468252022-12-06 1:05:5155 days 16 hrs ago Plutus DAO: Governance 0x84d152e8cb68a94ebcf50ce6f17af7f2c1f891eb0 ETH
0x1d9024b973996f0a8e3d5a674365a2a28911d16ea3a3fe71637aa0f600f2155e439468252022-12-06 1:05:5155 days 16 hrs ago 0x84d152e8cb68a94ebcf50ce6f17af7f2c1f891ebDopex: DPX Token0 ETH
0x1d9024b973996f0a8e3d5a674365a2a28911d16ea3a3fe71637aa0f600f2155e439468252022-12-06 1:05:5155 days 16 hrs ago 0x84d152e8cb68a94ebcf50ce6f17af7f2c1f891ebDopex: DPX Token0 ETH
0x1d9024b973996f0a8e3d5a674365a2a28911d16ea3a3fe71637aa0f600f2155e439468252022-12-06 1:05:5155 days 16 hrs ago Plutus DAO: Governance 0x84d152e8cb68a94ebcf50ce6f17af7f2c1f891eb0 ETH
0x8e6d8c30a2750ee64e40cad26411d7a32521d8332c93b3c3a774ac0a1e3bf647202118302022-08-14 8:01:18169 days 9 hrs ago 0x84d152e8cb68a94ebcf50ce6f17af7f2c1f891ebDopex: DPX Token0 ETH
0x8e6d8c30a2750ee64e40cad26411d7a32521d8332c93b3c3a774ac0a1e3bf647202118302022-08-14 8:01:18169 days 9 hrs ago 0x84d152e8cb68a94ebcf50ce6f17af7f2c1f891ebDopex: DPX Token0 ETH
[ Download CSV Export 
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
FeeCollectorV2

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 : FeeCollectorV2.sol
// SPDX-License-Identifier: MIT
pragma solidity 0.8.9;

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

interface IFeeStrategy {
  function run() external view returns (bool);
}

contract FeeCollectorV2 is Ownable {
  address private feeStrategy;

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

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

  function setFeeStrategy(address _newFeeStrategy) external onlyOwner {
    feeStrategy = _newFeeStrategy;
  }

  function runStrategy() external view onlyOwner {
    bool success = IFeeStrategy(feeStrategy).run();
    if (!success) revert FAILED();
  }

  function approve(address _token, address _spender) external onlyOwner {
    IERC20(_token).approve(_spender, type(uint256).max);
  }

  error FAILED();
}

File 2 of 4 : Ownable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (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 Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        _checkOwner();
        _;
    }

    /**
     * @dev Returns the address of the current owner.
     */
    function owner() public view virtual returns (address) {
        return _owner;
    }

    /**
     * @dev Throws if the sender is not the owner.
     */
    function _checkOwner() internal view virtual {
        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.6.0) (token/ERC20/IERC20.sol)

pragma solidity ^0.8.0;

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

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":[],"name":"FAILED","type":"error"},{"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":"address","name":"_token","type":"address"},{"internalType":"address","name":"_spender","type":"address"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"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":[],"name":"runStrategy","outputs":[],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_newFeeStrategy","type":"address"}],"name":"setFeeStrategy","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"}]

608060405234801561001057600080fd5b5061001a3361001f565b61006f565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6106458061007e6000396000f3fe608060405234801561001057600080fd5b506004361061007d5760003560e01c806384c495831161005b57806384c49583146100b25780638da5cb5b146100ba578063bc2cea1f146100d9578063f2fde38b146100ec57600080fd5b806306ec16f814610082578063715018a6146100975780637e5465ba1461009f575b600080fd5b610095610090366004610577565b6100ff565b005b61009561029d565b6100956100ad36600461059b565b6102b1565b610095610308565b600054604080516001600160a01b039092168252519081900360200190f35b6100956100e7366004610577565b6103e2565b6100956100fa366004610577565b610419565b6101076104ab565b471561014957600080546040516001600160a01b03909116914780156108fc02929091818181858888f19350505050158015610147573d6000803e3d6000fd5b505b6040517f70a082310000000000000000000000000000000000000000000000000000000081523060048201526000906001600160a01b038316906370a082319060240160206040518083038186803b1580156101a457600080fd5b505afa1580156101b8573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906101dc91906105d4565b9050816001600160a01b031663a9059cbb6101ff6000546001600160a01b031690565b6040517fffffffff0000000000000000000000000000000000000000000000000000000060e084901b1681526001600160a01b039091166004820152602481018490526044015b602060405180830381600087803b15801561026057600080fd5b505af1158015610274573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061029891906105ed565b505050565b6102a56104ab565b6102af6000610505565b565b6102b96104ab565b6040517f095ea7b30000000000000000000000000000000000000000000000000000000081526001600160a01b038281166004830152600019602483015283169063095ea7b390604401610246565b6103106104ab565b600154604080517fc040622600000000000000000000000000000000000000000000000000000000815290516000926001600160a01b03169163c0406226916004808301926020929190829003018186803b15801561036e57600080fd5b505afa158015610382573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906103a691906105ed565b9050806103df576040517f3969307d00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b50565b6103ea6104ab565b6001805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0392909216919091179055565b6104216104ab565b6001600160a01b0381166104a25760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f646472657373000000000000000000000000000000000000000000000000000060648201526084015b60405180910390fd5b6103df81610505565b6000546001600160a01b031633146102af5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610499565b600080546001600160a01b0383811673ffffffffffffffffffffffffffffffffffffffff19831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6001600160a01b03811681146103df57600080fd5b60006020828403121561058957600080fd5b813561059481610562565b9392505050565b600080604083850312156105ae57600080fd5b82356105b981610562565b915060208301356105c981610562565b809150509250929050565b6000602082840312156105e657600080fd5b5051919050565b6000602082840312156105ff57600080fd5b8151801515811461059457600080fdfea264697066735822122099d7128e1e22d6bb0aad2e7a58da88f37fc83fc782b1cbb01a24e7cd91b93aee64736f6c63430008090033

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.