More Info
Private Name Tags
ContractCreator
Multichain Info
No addresses found
Latest 25 from a total of 659 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Transfer | 21387170 | 98 days ago | IN | 0.04903584 ETH | 0.00057741 | ||||
Transfer | 21386394 | 99 days ago | IN | 0.03174383 ETH | 0.00031271 | ||||
Transfer | 21385306 | 99 days ago | IN | 0.02483368 ETH | 0.00029209 | ||||
Transfer | 21384989 | 99 days ago | IN | 1.19236585 ETH | 0.00029878 | ||||
Transfer | 21384563 | 99 days ago | IN | 0.04396677 ETH | 0.00031168 | ||||
Transfer | 21382556 | 99 days ago | IN | 0.08739742 ETH | 0.00035083 | ||||
Transfer | 21382488 | 99 days ago | IN | 0.02167184 ETH | 0.00034669 | ||||
Transfer | 21381854 | 99 days ago | IN | 0.02483455 ETH | 0.00051835 | ||||
Transfer | 21381811 | 99 days ago | IN | 0.06591769 ETH | 0.00058903 | ||||
Transfer | 21381534 | 99 days ago | IN | 0.03232211 ETH | 0.00059217 | ||||
Transfer | 21380501 | 99 days ago | IN | 0.5014741 ETH | 0.00059235 | ||||
Transfer | 21380165 | 99 days ago | IN | 0.05491256 ETH | 0.00076652 | ||||
Transfer | 21380150 | 99 days ago | IN | 0.07291204 ETH | 0.00068983 | ||||
Transfer | 21380014 | 99 days ago | IN | 0.02721884 ETH | 0.00051162 | ||||
Transfer | 21379483 | 99 days ago | IN | 0.01773304 ETH | 0.00040744 | ||||
Transfer | 21379393 | 99 days ago | IN | 0.03979034 ETH | 0.00035963 | ||||
Transfer | 21379334 | 100 days ago | IN | 0.02110891 ETH | 0.00039863 | ||||
Transfer | 21378417 | 100 days ago | IN | 0.03663061 ETH | 0.00027063 | ||||
Transfer | 21377865 | 100 days ago | IN | 0.02446128 ETH | 0.00023528 | ||||
Transfer | 21376568 | 100 days ago | IN | 0.0238987 ETH | 0.00029532 | ||||
Transfer | 21376000 | 100 days ago | IN | 0.02831663 ETH | 0.00029548 | ||||
Transfer | 21375422 | 100 days ago | IN | 0.02681045 ETH | 0.00031418 | ||||
Transfer | 21375382 | 100 days ago | IN | 0.02125607 ETH | 0.00032621 | ||||
Transfer | 21375366 | 100 days ago | IN | 0.02168566 ETH | 0.00030115 | ||||
Transfer | 21375039 | 100 days ago | IN | 0.03015117 ETH | 0.0003775 |
Latest 25 internal transactions (View All)
Advanced mode:
Parent Transaction Hash | Method | Block |
From
|
To
|
|||
---|---|---|---|---|---|---|---|
Transfer | 22023760 | 9 days ago | 0.2284632 ETH | ||||
Transfer | 21743952 | 49 days ago | 0.13615687 ETH | ||||
Transfer | 21719084 | 52 days ago | 19.7514205 ETH | ||||
Transfer | 21332483 | 106 days ago | 0.00001902 ETH | ||||
Transfer | 21332483 | 106 days ago | 0.00037556 ETH | ||||
Transfer | 21332483 | 106 days ago | 0.00069992 ETH | ||||
Transfer | 21332483 | 106 days ago | 0.0012023 ETH | ||||
Transfer | 21332483 | 106 days ago | 0.00438902 ETH | ||||
Transfer | 21329125 | 107 days ago | 0.00056579 ETH | ||||
Transfer | 21320930 | 108 days ago | 0.00027643 ETH | ||||
Transfer | 21320930 | 108 days ago | 0.00150693 ETH | ||||
Transfer | 21314037 | 109 days ago | 0.00051376 ETH | ||||
Transfer | 21311405 | 109 days ago | 0.00687938 ETH | ||||
Transfer | 21311405 | 109 days ago | 0.00984281 ETH | ||||
Transfer | 21260823 | 116 days ago | 0.00015854 ETH | ||||
Transfer | 21260823 | 116 days ago | 0.0001 ETH | ||||
Transfer | 20911515 | 165 days ago | 0.00549017 ETH | ||||
Transfer | 20911515 | 165 days ago | 0.01945586 ETH | ||||
Transfer | 20911515 | 165 days ago | 0.00544101 ETH | ||||
Transfer | 20911515 | 165 days ago | 0.0228459 ETH | ||||
Transfer | 20911515 | 165 days ago | 0.00557025 ETH | ||||
Transfer | 20911515 | 165 days ago | 0.01563444 ETH | ||||
Transfer | 20911515 | 165 days ago | 0.01281959 ETH | ||||
Transfer | 20911515 | 165 days ago | 0.00224681 ETH | ||||
Transfer | 20911515 | 165 days ago | 0.01908055 ETH |
Loading...
Loading
Contract Name:
Treasury
Compiler Version
v0.8.13+commit.abaa5c0e
Optimization Enabled:
Yes with 20000 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity 0.8.13; import "@openzeppelin/contracts/access/Ownable.sol"; import "./interfaces/ITreasury.sol"; contract Treasury is ITreasury, Ownable { //-------------------------------------------------------------------------------------- //---------------------------- STATE-CHANGING FUNCTIONS ------------------------------ //-------------------------------------------------------------------------------------- /// @notice Function allows only the owner to withdraw all the funds in the contract function withdraw(uint256 _amount, address _to) external onlyOwner { require( _amount <= address(this).balance, "the balance is lower than the requested amount" ); require(_to != address(0), "null address is not allowed"); (bool sent, ) = payable(_to).call{value: _amount}(""); require(sent, "Failed to send Ether"); } //Allows ether to be sent to this contract receive() external payable {} }
// 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 pragma solidity 0.8.13; interface ITreasury { function withdraw(uint256 _amount, address _to) external; }
// 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; } }
{ "remappings": [ "@openzeppelin-upgradeable/=lib/openzeppelin-contracts-upgradeable/", "@openzeppelin/=lib/openzeppelin-contracts/", "@uniswap/=lib/", "ds-test/=lib/forge-std/lib/ds-test/src/", "forge-std/=lib/forge-std/src/", "murky/=lib/murky/src/", "openzeppelin-contracts-upgradeable/=lib/openzeppelin-contracts-upgradeable/", "openzeppelin-contracts/=lib/openzeppelin-contracts/", "safe-contracts/=lib/safe-tools/lib/safe-contracts/contracts/", "safe-tools/=lib/safe-tools/src/", "solady/=lib/safe-tools/lib/solady/src/", "solmate/=lib/safe-tools/lib/solady/lib/solmate/src/", "v3-core/=lib/v3-core/", "v3-periphery/=lib/v3-periphery/contracts/" ], "optimizer": { "enabled": true, "runs": 20000 }, "metadata": { "bytecodeHash": "ipfs" }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "evmVersion": "london", "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":"uint256","name":"_amount","type":"uint256"},{"internalType":"address","name":"_to","type":"address"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]
Contract Creation Code
608060405234801561001057600080fd5b5061001a3361001f565b61006f565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6105358061007e6000396000f3fe6080604052600436106100425760003560e01c8062f714ce1461004e578063715018a6146100705780638da5cb5b14610085578063f2fde38b146100be57600080fd5b3661004957005b600080fd5b34801561005a57600080fd5b5061006e6100693660046104b1565b6100de565b005b34801561007c57600080fd5b5061006e6102c7565b34801561009157600080fd5b506000546040805173ffffffffffffffffffffffffffffffffffffffff9092168252519081900360200190f35b3480156100ca57600080fd5b5061006e6100d93660046104dd565b6102db565b6100e6610392565b4782111561017b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602e60248201527f7468652062616c616e6365206973206c6f776572207468616e2074686520726560448201527f7175657374656420616d6f756e7400000000000000000000000000000000000060648201526084015b60405180910390fd5b73ffffffffffffffffffffffffffffffffffffffff81166101f8576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601b60248201527f6e756c6c2061646472657373206973206e6f7420616c6c6f77656400000000006044820152606401610172565b60008173ffffffffffffffffffffffffffffffffffffffff168360405160006040518083038185875af1925050503d8060008114610252576040519150601f19603f3d011682016040523d82523d6000602084013e610257565b606091505b50509050806102c2576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601460248201527f4661696c656420746f2073656e642045746865720000000000000000000000006044820152606401610172565b505050565b6102cf610392565b6102d96000610413565b565b6102e3610392565b73ffffffffffffffffffffffffffffffffffffffff8116610386576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610172565b61038f81610413565b50565b60005473ffffffffffffffffffffffffffffffffffffffff1633146102d9576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610172565b6000805473ffffffffffffffffffffffffffffffffffffffff8381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b803573ffffffffffffffffffffffffffffffffffffffff811681146104ac57600080fd5b919050565b600080604083850312156104c457600080fd5b823591506104d460208401610488565b90509250929050565b6000602082840312156104ef57600080fd5b6104f882610488565b939250505056fea2646970667358221220c794e33585f6804fdc00e6145542221028d0877ea4e61b4780ea8d228763c5bd64736f6c634300080d0033
Deployed Bytecode
0x6080604052600436106100425760003560e01c8062f714ce1461004e578063715018a6146100705780638da5cb5b14610085578063f2fde38b146100be57600080fd5b3661004957005b600080fd5b34801561005a57600080fd5b5061006e6100693660046104b1565b6100de565b005b34801561007c57600080fd5b5061006e6102c7565b34801561009157600080fd5b506000546040805173ffffffffffffffffffffffffffffffffffffffff9092168252519081900360200190f35b3480156100ca57600080fd5b5061006e6100d93660046104dd565b6102db565b6100e6610392565b4782111561017b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602e60248201527f7468652062616c616e6365206973206c6f776572207468616e2074686520726560448201527f7175657374656420616d6f756e7400000000000000000000000000000000000060648201526084015b60405180910390fd5b73ffffffffffffffffffffffffffffffffffffffff81166101f8576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601b60248201527f6e756c6c2061646472657373206973206e6f7420616c6c6f77656400000000006044820152606401610172565b60008173ffffffffffffffffffffffffffffffffffffffff168360405160006040518083038185875af1925050503d8060008114610252576040519150601f19603f3d011682016040523d82523d6000602084013e610257565b606091505b50509050806102c2576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601460248201527f4661696c656420746f2073656e642045746865720000000000000000000000006044820152606401610172565b505050565b6102cf610392565b6102d96000610413565b565b6102e3610392565b73ffffffffffffffffffffffffffffffffffffffff8116610386576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610172565b61038f81610413565b50565b60005473ffffffffffffffffffffffffffffffffffffffff1633146102d9576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610172565b6000805473ffffffffffffffffffffffffffffffffffffffff8381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b803573ffffffffffffffffffffffffffffffffffffffff811681146104ac57600080fd5b919050565b600080604083850312156104c457600080fd5b823591506104d460208401610488565b90509250929050565b6000602082840312156104ef57600080fd5b6104f882610488565b939250505056fea2646970667358221220c794e33585f6804fdc00e6145542221028d0877ea4e61b4780ea8d228763c5bd64736f6c634300080d0033
Latest 25 blocks (From a total of 38 blocks with 1.14 Ether produced)
Block | Transaction | Difficulty | Gas Used | Reward | |
---|---|---|---|---|---|
21332483 | 106 days ago | 253 | 0.00 TH | 20,481,780 (68.27%) | 0.042132662242665425 ETH |
21329125 | 107 days ago | 218 | 0.00 TH | 13,800,984 (46.00%) | 0.034493553701767361 ETH |
21320930 | 108 days ago | 156 | 0.00 TH | 13,609,492 (45.36%) | 0.029711152950712057 ETH |
21314037 | 109 days ago | 167 | 0.00 TH | 14,620,111 (48.73%) | 0.029575321489293644 ETH |
21311405 | 109 days ago | 364 | 0.00 TH | 20,208,174 (67.36%) | 0.115011771106401668 ETH |
21260823 | 116 days ago | 135 | 0.00 TH | 10,924,593 (36.42%) | 0.020197526247094974 ETH |
20978766 | 155 days ago | 325 | 0.00 TH | 18,314,627 (61.05%) | 0.029887736477750516 ETH |
20820133 | 178 days ago | 119 | 0.00 TH | 11,196,597 (37.32%) | 0.031112671771107366 ETH |
20772484 | 184 days ago | 79 | 0.00 TH | 8,472,074 (28.24%) | 0.06917243318486983 ETH |
20692555 | 195 days ago | 122 | 0.00 TH | 7,803,769 (26.01%) | 0.013557509246547338 ETH |
20692368 | 195 days ago | 126 | 0.00 TH | 6,228,114 (20.76%) | 0.011247176141777031 ETH |
20687767 | 196 days ago | 109 | 0.00 TH | 7,848,378 (26.16%) | 0.011516840785707125 ETH |
20685943 | 196 days ago | 74 | 0.00 TH | 5,343,297 (17.81%) | 0.007317723562323153 ETH |
20684570 | 196 days ago | 109 | 0.00 TH | 7,431,015 (24.77%) | 0.006286289550061945 ETH |
20683194 | 197 days ago | 125 | 0.00 TH | 8,137,503 (27.13%) | 0.009519227122808284 ETH |
20683068 | 197 days ago | 100 | 0.00 TH | 7,629,556 (25.43%) | 0.007139845265656555 ETH |
20679618 | 197 days ago | 159 | 0.00 TH | 13,158,604 (43.86%) | 0.043932946351359558 ETH |
20678969 | 197 days ago | 118 | 0.00 TH | 7,197,632 (23.99%) | 0.019564323331807 ETH |
20678290 | 197 days ago | 90 | 0.00 TH | 6,215,971 (20.72%) | 0.009046577460864872 ETH |
20677030 | 198 days ago | 147 | 0.00 TH | 8,776,387 (29.25%) | 0.013283816133219539 ETH |
20675187 | 198 days ago | 114 | 0.00 TH | 7,829,979 (26.10%) | 0.00204456481576367 ETH |
20673455 | 198 days ago | 70 | 0.00 TH | 4,643,426 (15.48%) | 0.005891162157352004 ETH |
20670267 | 198 days ago | 84 | 0.00 TH | 4,406,522 (14.69%) | 0.005497994990813679 ETH |
20670217 | 198 days ago | 115 | 0.00 TH | 6,815,898 (22.72%) | 0.005403491567230288 ETH |
20666568 | 199 days ago | 134 | 0.00 TH | 9,779,896 (32.60%) | 0.008131595108625682 ETH |
Loading...
Loading
Loading...
Loading
Loading...
Loading
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
[ 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.