ETH Price: $2,852.42 (-3.02%)
 

More Info

Private Name Tags

Multichain Info

No addresses found
Transaction Hash
Block
From
To
Withdraw Token240388902024-12-22 11:32:07399 days ago1734867127IN
0xa466ebCf...a884889bB
0 ETH0.000000190.00497217
Withdraw Token240388832024-12-22 11:31:53399 days ago1734867113IN
0xa466ebCf...a884889bB
0 ETH0.000000190.00497217
Withdraw Token230544842024-11-29 16:38:35422 days ago1732898315IN
0xa466ebCf...a884889bB
0 ETH0.000005170.12421795
Withdraw Token211524312024-10-16 15:56:49466 days ago1729094209IN
0xa466ebCf...a884889bB
0 ETH0.000001020.02355705
Withdraw Token200329762024-09-20 18:01:39492 days ago1726855299IN
0xa466ebCf...a884889bB
0 ETH0.000000410.00904475
Withdraw Token197570682024-09-14 8:44:43498 days ago1726303483IN
0xa466ebCf...a884889bB
0 ETH0.000000240.00570006
Withdraw Token197200782024-09-13 12:11:43499 days ago1726229503IN
0xa466ebCf...a884889bB
0 ETH0.000000290.0070403
Withdraw Token197117322024-09-13 7:33:31499 days ago1726212811IN
0xa466ebCf...a884889bB
0 ETH0.000000330.00800205
Withdraw Token192797132024-09-03 7:32:53509 days ago1725348773IN
0xa466ebCf...a884889bB
0 ETH0.000000130.00310392
Withdraw Token191613712024-08-31 13:48:09512 days ago1725112089IN
0xa466ebCf...a884889bB
0 ETH0.000000480.01168572
Withdraw Token190250072024-08-28 10:02:41515 days ago1724839361IN
0xa466ebCf...a884889bB
0 ETH0.000005820.1
Withdraw Token190250002024-08-28 10:02:27515 days ago1724839347IN
0xa466ebCf...a884889bB
0 ETH0.000005820.1
Withdraw Token190249962024-08-28 10:02:19515 days ago1724839339IN
0xa466ebCf...a884889bB
0 ETH0.000005820.1
Withdraw Token190249902024-08-28 10:02:07515 days ago1724839327IN
0xa466ebCf...a884889bB
0 ETH0.000005820.1
Withdraw Token190249842024-08-28 10:01:55515 days ago1724839315IN
0xa466ebCf...a884889bB
0 ETH0.000005820.1
Withdraw Token190249772024-08-28 10:01:41515 days ago1724839301IN
0xa466ebCf...a884889bB
0 ETH0.000005820.1
Withdraw Token190238632024-08-28 9:24:33515 days ago1724837073IN
0xa466ebCf...a884889bB
0 ETH0.000005810.1
Withdraw Token190238572024-08-28 9:24:21515 days ago1724837061IN
0xa466ebCf...a884889bB
0 ETH0.000005810.1
Withdraw Token190238382024-08-28 9:23:43515 days ago1724837023IN
0xa466ebCf...a884889bB
0 ETH0.000005810.1
Withdraw Token190238342024-08-28 9:23:35515 days ago1724837015IN
0xa466ebCf...a884889bB
0 ETH0.000005810.1
Withdraw Token190238282024-08-28 9:23:23515 days ago1724837003IN
0xa466ebCf...a884889bB
0 ETH0.000005810.1
Withdraw Token185166072024-08-16 15:36:01527 days ago1723822561IN
0xa466ebCf...a884889bB
0 ETH0.000004110.1
Withdraw Token181296122024-08-07 16:36:11536 days ago1723048571IN
0xa466ebCf...a884889bB
0 ETH0.000004150.1
Withdraw Token181018302024-08-07 1:10:07537 days ago1722993007IN
0xa466ebCf...a884889bB
0 ETH0.00000410.1
Withdraw Token176891402024-07-28 11:53:47546 days ago1722167627IN
0xa466ebCf...a884889bB
0 ETH0.00000410.1
View all transactions

Parent Transaction Hash Block From To
View All Internal Transactions

Cross-Chain Transactions
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
DackieTreasury

Compiler Version
v0.8.12+commit.f00d7308

Optimization Enabled:
Yes with 99999 runs

Other Settings:
default evmVersion
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

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

contract DackieTreasury is Ownable {

    function withdrawToken(IERC20 token, address to, uint256 amount) external onlyOwner {
        require(token.balanceOf(address(this)) >= amount, "DackieTreasury: not enough tokens");
        token.transfer(to, amount);
    }
}

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

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

// 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": 99999
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  },
  "libraries": {}
}

Contract Security Audit

Contract ABI

API
[{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"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":[{"internalType":"contract IERC20","name":"token","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"withdrawToken","outputs":[],"stateMutability":"nonpayable","type":"function"}]

608060405234801561001057600080fd5b5061001a3361001f565b61006f565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6105308061007e6000396000f3fe608060405234801561001057600080fd5b506004361061004c5760003560e01c806301e3366714610051578063715018a6146100665780638da5cb5b1461006e578063f2fde38b1461009a575b600080fd5b61006461005f36600461045a565b6100ad565b005b610064610277565b6000546040805173ffffffffffffffffffffffffffffffffffffffff9092168252519081900360200190f35b6100646100a836600461049b565b61028b565b6100b5610342565b6040517f70a08231000000000000000000000000000000000000000000000000000000008152306004820152819073ffffffffffffffffffffffffffffffffffffffff8516906370a0823190602401602060405180830381865afa158015610121573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061014591906104bf565b10156101d8576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602160248201527f4461636b696554726561737572793a206e6f7420656e6f75676820746f6b656e60448201527f730000000000000000000000000000000000000000000000000000000000000060648201526084015b60405180910390fd5b6040517fa9059cbb00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff83811660048301526024820183905284169063a9059cbb906044016020604051808303816000875af115801561024d573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061027191906104d8565b50505050565b61027f610342565b61028960006103c3565b565b610293610342565b73ffffffffffffffffffffffffffffffffffffffff8116610336576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f646472657373000000000000000000000000000000000000000000000000000060648201526084016101cf565b61033f816103c3565b50565b60005473ffffffffffffffffffffffffffffffffffffffff163314610289576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016101cf565b6000805473ffffffffffffffffffffffffffffffffffffffff8381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b73ffffffffffffffffffffffffffffffffffffffff8116811461033f57600080fd5b60008060006060848603121561046f57600080fd5b833561047a81610438565b9250602084013561048a81610438565b929592945050506040919091013590565b6000602082840312156104ad57600080fd5b81356104b881610438565b9392505050565b6000602082840312156104d157600080fd5b5051919050565b6000602082840312156104ea57600080fd5b815180151581146104b857600080fdfea264697066735822122041a20287643836e94436ee66033ca549409823cf1f508612ccaffe2e4ba2c57a64736f6c634300080c0033

Deployed Bytecode

0x608060405234801561001057600080fd5b506004361061004c5760003560e01c806301e3366714610051578063715018a6146100665780638da5cb5b1461006e578063f2fde38b1461009a575b600080fd5b61006461005f36600461045a565b6100ad565b005b610064610277565b6000546040805173ffffffffffffffffffffffffffffffffffffffff9092168252519081900360200190f35b6100646100a836600461049b565b61028b565b6100b5610342565b6040517f70a08231000000000000000000000000000000000000000000000000000000008152306004820152819073ffffffffffffffffffffffffffffffffffffffff8516906370a0823190602401602060405180830381865afa158015610121573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061014591906104bf565b10156101d8576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602160248201527f4461636b696554726561737572793a206e6f7420656e6f75676820746f6b656e60448201527f730000000000000000000000000000000000000000000000000000000000000060648201526084015b60405180910390fd5b6040517fa9059cbb00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff83811660048301526024820183905284169063a9059cbb906044016020604051808303816000875af115801561024d573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061027191906104d8565b50505050565b61027f610342565b61028960006103c3565b565b610293610342565b73ffffffffffffffffffffffffffffffffffffffff8116610336576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f646472657373000000000000000000000000000000000000000000000000000060648201526084016101cf565b61033f816103c3565b50565b60005473ffffffffffffffffffffffffffffffffffffffff163314610289576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016101cf565b6000805473ffffffffffffffffffffffffffffffffffffffff8381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b73ffffffffffffffffffffffffffffffffffffffff8116811461033f57600080fd5b60008060006060848603121561046f57600080fd5b833561047a81610438565b9250602084013561048a81610438565b929592945050506040919091013590565b6000602082840312156104ad57600080fd5b81356104b881610438565b9392505050565b6000602082840312156104d157600080fd5b5051919050565b6000602082840312156104ea57600080fd5b815180151581146104b857600080fdfea264697066735822122041a20287643836e94436ee66033ca549409823cf1f508612ccaffe2e4ba2c57a64736f6c634300080c0033

Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

Block Uncle Number Difficulty Gas Used Reward
View All Uncles
Loading...
Loading
Loading...
Loading
Loading...
Loading

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
Loading...
Loading
[ 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.