Source Code
Latest 25 from a total of 130 transactions
| Transaction Hash |
|
Block
|
From
|
To
|
|||||
|---|---|---|---|---|---|---|---|---|---|
| Withdraw Token | 24038890 | 399 days ago | IN | 0 ETH | 0.00000019 | ||||
| Withdraw Token | 24038883 | 399 days ago | IN | 0 ETH | 0.00000019 | ||||
| Withdraw Token | 23054484 | 422 days ago | IN | 0 ETH | 0.00000517 | ||||
| Withdraw Token | 21152431 | 466 days ago | IN | 0 ETH | 0.00000102 | ||||
| Withdraw Token | 20032976 | 492 days ago | IN | 0 ETH | 0.00000041 | ||||
| Withdraw Token | 19757068 | 498 days ago | IN | 0 ETH | 0.00000024 | ||||
| Withdraw Token | 19720078 | 499 days ago | IN | 0 ETH | 0.00000029 | ||||
| Withdraw Token | 19711732 | 499 days ago | IN | 0 ETH | 0.00000033 | ||||
| Withdraw Token | 19279713 | 509 days ago | IN | 0 ETH | 0.00000013 | ||||
| Withdraw Token | 19161371 | 512 days ago | IN | 0 ETH | 0.00000048 | ||||
| Withdraw Token | 19025007 | 515 days ago | IN | 0 ETH | 0.00000582 | ||||
| Withdraw Token | 19025000 | 515 days ago | IN | 0 ETH | 0.00000582 | ||||
| Withdraw Token | 19024996 | 515 days ago | IN | 0 ETH | 0.00000582 | ||||
| Withdraw Token | 19024990 | 515 days ago | IN | 0 ETH | 0.00000582 | ||||
| Withdraw Token | 19024984 | 515 days ago | IN | 0 ETH | 0.00000582 | ||||
| Withdraw Token | 19024977 | 515 days ago | IN | 0 ETH | 0.00000582 | ||||
| Withdraw Token | 19023863 | 515 days ago | IN | 0 ETH | 0.00000581 | ||||
| Withdraw Token | 19023857 | 515 days ago | IN | 0 ETH | 0.00000581 | ||||
| Withdraw Token | 19023838 | 515 days ago | IN | 0 ETH | 0.00000581 | ||||
| Withdraw Token | 19023834 | 515 days ago | IN | 0 ETH | 0.00000581 | ||||
| Withdraw Token | 19023828 | 515 days ago | IN | 0 ETH | 0.00000581 | ||||
| Withdraw Token | 18516607 | 527 days ago | IN | 0 ETH | 0.00000411 | ||||
| Withdraw Token | 18129612 | 536 days ago | IN | 0 ETH | 0.00000415 | ||||
| Withdraw Token | 18101830 | 537 days ago | IN | 0 ETH | 0.0000041 | ||||
| Withdraw Token | 17689140 | 546 days ago | IN | 0 ETH | 0.0000041 |
Cross-Chain Transactions
Loading...
Loading
Contract Name:
DackieTreasury
Compiler Version
v0.8.12+commit.f00d7308
Optimization Enabled:
Yes with 99999 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// 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;
}
}{
"optimizer": {
"enabled": true,
"runs": 99999
},
"outputSelection": {
"*": {
"*": [
"evm.bytecode",
"evm.deployedBytecode",
"devdoc",
"userdoc",
"metadata",
"abi"
]
}
},
"libraries": {}
}Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
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"}]Contract Creation Code
608060405234801561001057600080fd5b5061001a3361001f565b61006f565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6105308061007e6000396000f3fe608060405234801561001057600080fd5b506004361061004c5760003560e01c806301e3366714610051578063715018a6146100665780638da5cb5b1461006e578063f2fde38b1461009a575b600080fd5b61006461005f36600461045a565b6100ad565b005b610064610277565b6000546040805173ffffffffffffffffffffffffffffffffffffffff9092168252519081900360200190f35b6100646100a836600461049b565b61028b565b6100b5610342565b6040517f70a08231000000000000000000000000000000000000000000000000000000008152306004820152819073ffffffffffffffffffffffffffffffffffffffff8516906370a0823190602401602060405180830381865afa158015610121573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061014591906104bf565b10156101d8576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602160248201527f4461636b696554726561737572793a206e6f7420656e6f75676820746f6b656e60448201527f730000000000000000000000000000000000000000000000000000000000000060648201526084015b60405180910390fd5b6040517fa9059cbb00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff83811660048301526024820183905284169063a9059cbb906044016020604051808303816000875af115801561024d573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061027191906104d8565b50505050565b61027f610342565b61028960006103c3565b565b610293610342565b73ffffffffffffffffffffffffffffffffffffffff8116610336576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f646472657373000000000000000000000000000000000000000000000000000060648201526084016101cf565b61033f816103c3565b50565b60005473ffffffffffffffffffffffffffffffffffffffff163314610289576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016101cf565b6000805473ffffffffffffffffffffffffffffffffffffffff8381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b73ffffffffffffffffffffffffffffffffffffffff8116811461033f57600080fd5b60008060006060848603121561046f57600080fd5b833561047a81610438565b9250602084013561048a81610438565b929592945050506040919091013590565b6000602082840312156104ad57600080fd5b81356104b881610438565b9392505050565b6000602082840312156104d157600080fd5b5051919050565b6000602082840312156104ea57600080fd5b815180151581146104b857600080fdfea264697066735822122041a20287643836e94436ee66033ca549409823cf1f508612ccaffe2e4ba2c57a64736f6c634300080c0033
Deployed Bytecode
0x608060405234801561001057600080fd5b506004361061004c5760003560e01c806301e3366714610051578063715018a6146100665780638da5cb5b1461006e578063f2fde38b1461009a575b600080fd5b61006461005f36600461045a565b6100ad565b005b610064610277565b6000546040805173ffffffffffffffffffffffffffffffffffffffff9092168252519081900360200190f35b6100646100a836600461049b565b61028b565b6100b5610342565b6040517f70a08231000000000000000000000000000000000000000000000000000000008152306004820152819073ffffffffffffffffffffffffffffffffffffffff8516906370a0823190602401602060405180830381865afa158015610121573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061014591906104bf565b10156101d8576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602160248201527f4461636b696554726561737572793a206e6f7420656e6f75676820746f6b656e60448201527f730000000000000000000000000000000000000000000000000000000000000060648201526084015b60405180910390fd5b6040517fa9059cbb00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff83811660048301526024820183905284169063a9059cbb906044016020604051808303816000875af115801561024d573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061027191906104d8565b50505050565b61027f610342565b61028960006103c3565b565b610293610342565b73ffffffffffffffffffffffffffffffffffffffff8116610336576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f646472657373000000000000000000000000000000000000000000000000000060648201526084016101cf565b61033f816103c3565b50565b60005473ffffffffffffffffffffffffffffffffffffffff163314610289576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016101cf565b6000805473ffffffffffffffffffffffffffffffffffffffff8381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b73ffffffffffffffffffffffffffffffffffffffff8116811461033f57600080fd5b60008060006060848603121561046f57600080fd5b833561047a81610438565b9250602084013561048a81610438565b929592945050506040919091013590565b6000602082840312156104ad57600080fd5b81356104b881610438565b9392505050565b6000602082840312156104d157600080fd5b5051919050565b6000602082840312156104ea57600080fd5b815180151581146104b857600080fdfea264697066735822122041a20287643836e94436ee66033ca549409823cf1f508612ccaffe2e4ba2c57a64736f6c634300080c0033
Loading...
Loading
Loading...
Loading
Loading...
Loading
Net Worth in USD
$0.00
Net Worth in ETH
0
Multichain Portfolio | 35 Chains
| Chain | Token | Portfolio % | Price | Amount | Value |
|---|
Loading...
Loading
Loading...
Loading
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.