Source Code
Overview
ETH Balance
ETH Value
$0.00Latest 25 from a total of 27,920 transactions
| Transaction Hash |
|
Block
|
From
|
To
|
|||||
|---|---|---|---|---|---|---|---|---|---|
| Claim | 4124005 | 2 days ago | IN | 0 ETH | 0.00000092 | ||||
| Claim | 4120464 | 3 days ago | IN | 0 ETH | 0.00000075 | ||||
| Claim | 4115007 | 3 days ago | IN | 0 ETH | 0.00001593 | ||||
| Claim | 4113451 | 3 days ago | IN | 0 ETH | 0.00001593 | ||||
| Claim | 4112425 | 3 days ago | IN | 0 ETH | 0.00001593 | ||||
| Claim | 4088574 | 5 days ago | IN | 0 ETH | 0.00000084 | ||||
| Claim | 4086477 | 5 days ago | IN | 0 ETH | 0.00000075 | ||||
| Claim | 4037344 | 9 days ago | IN | 0 ETH | 0.00000092 | ||||
| Claim | 4036602 | 9 days ago | IN | 0 ETH | 0.00000092 | ||||
| Claim | 3946914 | 16 days ago | IN | 0 ETH | 0.00000166 | ||||
| Claim | 3943807 | 17 days ago | IN | 0 ETH | 0.00000379 | ||||
| Claim | 3942858 | 17 days ago | IN | 0 ETH | 0.00000379 | ||||
| Claim | 3942565 | 17 days ago | IN | 0 ETH | 0.00000379 | ||||
| Claim | 3941960 | 17 days ago | IN | 0 ETH | 0.00000379 | ||||
| Claim | 3941677 | 17 days ago | IN | 0 ETH | 0.00000379 | ||||
| Claim | 3941396 | 17 days ago | IN | 0 ETH | 0.00000379 | ||||
| Claim | 3941128 | 17 days ago | IN | 0 ETH | 0.00000379 | ||||
| Claim | 3940793 | 17 days ago | IN | 0 ETH | 0.00000379 | ||||
| Claim | 3940546 | 17 days ago | IN | 0 ETH | 0.00000379 | ||||
| Claim | 3940072 | 17 days ago | IN | 0 ETH | 0.00000379 | ||||
| Claim | 3939926 | 17 days ago | IN | 0 ETH | 0.00000379 | ||||
| Claim | 3939507 | 17 days ago | IN | 0 ETH | 0.00000379 | ||||
| Claim | 3938942 | 17 days ago | IN | 0 ETH | 0.00000379 | ||||
| Claim | 3938879 | 17 days ago | IN | 0 ETH | 0.00000379 | ||||
| Claim | 3938642 | 17 days ago | IN | 0 ETH | 0.00000379 |
Cross-Chain Transactions
Loading...
Loading
Contract Name:
BrigadeBonus
Compiler Version
v0.8.24+commit.e11b9ed9
Optimization Enabled:
No with 200 runs
Other Settings:
paris EvmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.24;
import "@openzeppelin/contracts/access/Ownable.sol";
contract BrigadeBonus is Ownable {
uint256 public cooldownPeriod = 1 hours;
mapping(address => uint256) public userClaims;
event Claimed(address indexed user, uint256 timestamp);
function setCooldownPeriod(uint256 period) public onlyOwner {
cooldownPeriod = period;
}
function claim() public {
require(block.timestamp >= userClaims[msg.sender] + cooldownPeriod, "You must wait before claiming again");
userClaims[msg.sender] = block.timestamp;
emit Claimed(msg.sender, block.timestamp);
}
function getTimeLeft(address user) public view returns (uint256) {
uint256 lastClaim = userClaims[user];
if (block.timestamp >= lastClaim + cooldownPeriod) {
return 0;
} else {
return (lastClaim + cooldownPeriod) - block.timestamp;
}
}
function withdraw() public onlyOwner {
payable(owner()).transfer(address(this).balance);
}
receive() external payable {}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.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. Can only be called by the current owner.
*
* NOTE: Renouncing ownership will leave the contract without an owner,
* thereby disabling 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.9.4) (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;
}
function _contextSuffixLength() internal view virtual returns (uint256) {
return 0;
}
}{
"evmVersion": "paris",
"optimizer": {
"enabled": false,
"runs": 200
},
"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":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"timestamp","type":"uint256"}],"name":"Claimed","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":[],"name":"claim","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"cooldownPeriod","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"user","type":"address"}],"name":"getTimeLeft","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","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":"uint256","name":"period","type":"uint256"}],"name":"setCooldownPeriod","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"userClaims","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]Contract Creation Code
6080604052610e1060015534801561001657600080fd5b5061003361002861003860201b60201c565b61004060201b60201c565b610104565b600033905090565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b6109ec806101136000396000f3fe60806040526004361061008a5760003560e01c8063715018a611610059578063715018a61461012c57806380ea3de1146101435780638da5cb5b1461016c578063f0a3563c14610197578063f2fde38b146101d457610091565b806304646a4914610096578063111eb8b1146100c15780633ccfd60b146100fe5780634e71d92d1461011557610091565b3661009157005b600080fd5b3480156100a257600080fd5b506100ab6101fd565b6040516100b89190610650565b60405180910390f35b3480156100cd57600080fd5b506100e860048036038101906100e391906106ce565b610203565b6040516100f59190610650565b60405180910390f35b34801561010a57600080fd5b50610113610288565b005b34801561012157600080fd5b5061012a6102e0565b005b34801561013857600080fd5b50610141610403565b005b34801561014f57600080fd5b5061016a60048036038101906101659190610727565b610417565b005b34801561017857600080fd5b50610181610429565b60405161018e9190610763565b60405180910390f35b3480156101a357600080fd5b506101be60048036038101906101b991906106ce565b610452565b6040516101cb9190610650565b60405180910390f35b3480156101e057600080fd5b506101fb60048036038101906101f691906106ce565b61046a565b005b60015481565b600080600260008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205490506001548161025691906107ad565b4210610266576000915050610283565b426001548261027591906107ad565b61027f91906107e1565b9150505b919050565b6102906104ed565b610298610429565b73ffffffffffffffffffffffffffffffffffffffff166108fc479081150290604051600060405180830381858888f193505050501580156102dd573d6000803e3d6000fd5b50565b600154600260003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205461032d91906107ad565b42101561036f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161036690610898565b60405180910390fd5b42600260003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055503373ffffffffffffffffffffffffffffffffffffffff167fd8138f8a3f377c5259ca548e70e4c2de94f129f5a11036a15b69513cba2b426a426040516103f99190610650565b60405180910390a2565b61040b6104ed565b610415600061056b565b565b61041f6104ed565b8060018190555050565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b60026020528060005260406000206000915090505481565b6104726104ed565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16036104e1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016104d89061092a565b60405180910390fd5b6104ea8161056b565b50565b6104f561062f565b73ffffffffffffffffffffffffffffffffffffffff16610513610429565b73ffffffffffffffffffffffffffffffffffffffff1614610569576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161056090610996565b60405180910390fd5b565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b600033905090565b6000819050919050565b61064a81610637565b82525050565b60006020820190506106656000830184610641565b92915050565b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600061069b82610670565b9050919050565b6106ab81610690565b81146106b657600080fd5b50565b6000813590506106c8816106a2565b92915050565b6000602082840312156106e4576106e361066b565b5b60006106f2848285016106b9565b91505092915050565b61070481610637565b811461070f57600080fd5b50565b600081359050610721816106fb565b92915050565b60006020828403121561073d5761073c61066b565b5b600061074b84828501610712565b91505092915050565b61075d81610690565b82525050565b60006020820190506107786000830184610754565b92915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b60006107b882610637565b91506107c383610637565b92508282019050808211156107db576107da61077e565b5b92915050565b60006107ec82610637565b91506107f783610637565b925082820390508181111561080f5761080e61077e565b5b92915050565b600082825260208201905092915050565b7f596f75206d7573742077616974206265666f726520636c61696d696e6720616760008201527f61696e0000000000000000000000000000000000000000000000000000000000602082015250565b6000610882602383610815565b915061088d82610826565b604082019050919050565b600060208201905081810360008301526108b181610875565b9050919050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b6000610914602683610815565b915061091f826108b8565b604082019050919050565b6000602082019050818103600083015261094381610907565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b6000610980602083610815565b915061098b8261094a565b602082019050919050565b600060208201905081810360008301526109af81610973565b905091905056fea264697066735822122079eac968757f57a6200329889fd189c773ffa7d9fc7f0095c8d29673e2a92f4464736f6c63430008180033
Deployed Bytecode
0x60806040526004361061008a5760003560e01c8063715018a611610059578063715018a61461012c57806380ea3de1146101435780638da5cb5b1461016c578063f0a3563c14610197578063f2fde38b146101d457610091565b806304646a4914610096578063111eb8b1146100c15780633ccfd60b146100fe5780634e71d92d1461011557610091565b3661009157005b600080fd5b3480156100a257600080fd5b506100ab6101fd565b6040516100b89190610650565b60405180910390f35b3480156100cd57600080fd5b506100e860048036038101906100e391906106ce565b610203565b6040516100f59190610650565b60405180910390f35b34801561010a57600080fd5b50610113610288565b005b34801561012157600080fd5b5061012a6102e0565b005b34801561013857600080fd5b50610141610403565b005b34801561014f57600080fd5b5061016a60048036038101906101659190610727565b610417565b005b34801561017857600080fd5b50610181610429565b60405161018e9190610763565b60405180910390f35b3480156101a357600080fd5b506101be60048036038101906101b991906106ce565b610452565b6040516101cb9190610650565b60405180910390f35b3480156101e057600080fd5b506101fb60048036038101906101f691906106ce565b61046a565b005b60015481565b600080600260008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205490506001548161025691906107ad565b4210610266576000915050610283565b426001548261027591906107ad565b61027f91906107e1565b9150505b919050565b6102906104ed565b610298610429565b73ffffffffffffffffffffffffffffffffffffffff166108fc479081150290604051600060405180830381858888f193505050501580156102dd573d6000803e3d6000fd5b50565b600154600260003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205461032d91906107ad565b42101561036f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161036690610898565b60405180910390fd5b42600260003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055503373ffffffffffffffffffffffffffffffffffffffff167fd8138f8a3f377c5259ca548e70e4c2de94f129f5a11036a15b69513cba2b426a426040516103f99190610650565b60405180910390a2565b61040b6104ed565b610415600061056b565b565b61041f6104ed565b8060018190555050565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b60026020528060005260406000206000915090505481565b6104726104ed565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16036104e1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016104d89061092a565b60405180910390fd5b6104ea8161056b565b50565b6104f561062f565b73ffffffffffffffffffffffffffffffffffffffff16610513610429565b73ffffffffffffffffffffffffffffffffffffffff1614610569576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161056090610996565b60405180910390fd5b565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b600033905090565b6000819050919050565b61064a81610637565b82525050565b60006020820190506106656000830184610641565b92915050565b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600061069b82610670565b9050919050565b6106ab81610690565b81146106b657600080fd5b50565b6000813590506106c8816106a2565b92915050565b6000602082840312156106e4576106e361066b565b5b60006106f2848285016106b9565b91505092915050565b61070481610637565b811461070f57600080fd5b50565b600081359050610721816106fb565b92915050565b60006020828403121561073d5761073c61066b565b5b600061074b84828501610712565b91505092915050565b61075d81610690565b82525050565b60006020820190506107786000830184610754565b92915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b60006107b882610637565b91506107c383610637565b92508282019050808211156107db576107da61077e565b5b92915050565b60006107ec82610637565b91506107f783610637565b925082820390508181111561080f5761080e61077e565b5b92915050565b600082825260208201905092915050565b7f596f75206d7573742077616974206265666f726520636c61696d696e6720616760008201527f61696e0000000000000000000000000000000000000000000000000000000000602082015250565b6000610882602383610815565b915061088d82610826565b604082019050919050565b600060208201905081810360008301526108b181610875565b9050919050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b6000610914602683610815565b915061091f826108b8565b604082019050919050565b6000602082019050818103600083015261094381610907565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b6000610980602083610815565b915061098b8261094a565b602082019050919050565b600060208201905081810360008301526109af81610973565b905091905056fea264697066735822122079eac968757f57a6200329889fd189c773ffa7d9fc7f0095c8d29673e2a92f4464736f6c63430008180033
Loading...
Loading
Loading...
Loading
Loading...
Loading
Net Worth in USD
$0.00
Net Worth in ETH
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.