ETH Price: $2,947.59 (-0.17%)

Contract

0xc9BFCE24caB57c1640aeE11d7d8c92b8626786D8

Overview

ETH Balance

Taiko Alethia LogoTaiko Alethia LogoTaiko Alethia Logo0 ETH

ETH Value

$0.00

More Info

Private Name Tags

Multichain Info

No addresses found
Transaction Hash
Block
From
To
Claim41240052026-01-22 6:19:272 days ago1769062767IN
0xc9BFCE24...8626786D8
0 ETH0.000000920.03063
Claim41204642026-01-22 0:03:493 days ago1769040229IN
0xc9BFCE24...8626786D8
0 ETH0.000000750.025
Claim41150072026-01-21 16:04:293 days ago1769011469IN
0xc9BFCE24...8626786D8
0 ETH0.000015930.525
Claim41134512026-01-21 13:36:513 days ago1769002611IN
0xc9BFCE24...8626786D8
0 ETH0.000015930.525
Claim41124252026-01-21 12:00:393 days ago1768996839IN
0xc9BFCE24...8626786D8
0 ETH0.000015930.525
Claim40885742026-01-19 13:05:135 days ago1768827913IN
0xc9BFCE24...8626786D8
0 ETH0.000000840.028
Claim40864772026-01-19 8:56:275 days ago1768812987IN
0xc9BFCE24...8626786D8
0 ETH0.000000750.025
Claim40373442026-01-15 10:42:319 days ago1768473751IN
0xc9BFCE24...8626786D8
0 ETH0.000000920.03063
Claim40366022026-01-15 9:15:479 days ago1768468547IN
0xc9BFCE24...8626786D8
0 ETH0.000000920.03063
Claim39469142026-01-08 2:59:1316 days ago1767841153IN
0xc9BFCE24...8626786D8
0 ETH0.000001660.055
Claim39438072026-01-07 21:06:3317 days ago1767819993IN
0xc9BFCE24...8626786D8
0 ETH0.000003790.125
Claim39428582026-01-07 19:16:3117 days ago1767813391IN
0xc9BFCE24...8626786D8
0 ETH0.000003790.125
Claim39425652026-01-07 18:41:1717 days ago1767811277IN
0xc9BFCE24...8626786D8
0 ETH0.000003790.125
Claim39419602026-01-07 17:31:0317 days ago1767807063IN
0xc9BFCE24...8626786D8
0 ETH0.000003790.125
Claim39416772026-01-07 16:58:4717 days ago1767805127IN
0xc9BFCE24...8626786D8
0 ETH0.000003790.125
Claim39413962026-01-07 16:25:1317 days ago1767803113IN
0xc9BFCE24...8626786D8
0 ETH0.000003790.125
Claim39411282026-01-07 15:56:0517 days ago1767801365IN
0xc9BFCE24...8626786D8
0 ETH0.000003790.125
Claim39407932026-01-07 15:12:5317 days ago1767798773IN
0xc9BFCE24...8626786D8
0 ETH0.000003790.125
Claim39405462026-01-07 14:45:0317 days ago1767797103IN
0xc9BFCE24...8626786D8
0 ETH0.000003790.125
Claim39400722026-01-07 13:52:1917 days ago1767793939IN
0xc9BFCE24...8626786D8
0 ETH0.000003790.125
Claim39399262026-01-07 13:35:2517 days ago1767792925IN
0xc9BFCE24...8626786D8
0 ETH0.000003790.125
Claim39395072026-01-07 12:45:1917 days ago1767789919IN
0xc9BFCE24...8626786D8
0 ETH0.000003790.125
Claim39389422026-01-07 11:40:3717 days ago1767786037IN
0xc9BFCE24...8626786D8
0 ETH0.000003790.125
Claim39388792026-01-07 11:32:2317 days ago1767785543IN
0xc9BFCE24...8626786D8
0 ETH0.000003790.125
Claim39386422026-01-07 11:03:1917 days ago1767783799IN
0xc9BFCE24...8626786D8
0 ETH0.000003790.125
View all transactions

Advanced mode:
Parent Transaction Hash Block From To
View All Internal Transactions
Cross-Chain Transactions
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
BrigadeBonus

Compiler Version
v0.8.24+commit.e11b9ed9

Optimization Enabled:
No with 200 runs

Other Settings:
paris EvmVersion
// 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;
    }
}

Settings
{
  "evmVersion": "paris",
  "optimizer": {
    "enabled": false,
    "runs": 200
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  },
  "libraries": {}
}

Contract Security Audit

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"}]

6080604052610e1060015534801561001657600080fd5b5061003361002861003860201b60201c565b61004060201b60201c565b610104565b600033905090565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b6109ec806101136000396000f3fe60806040526004361061008a5760003560e01c8063715018a611610059578063715018a61461012c57806380ea3de1146101435780638da5cb5b1461016c578063f0a3563c14610197578063f2fde38b146101d457610091565b806304646a4914610096578063111eb8b1146100c15780633ccfd60b146100fe5780634e71d92d1461011557610091565b3661009157005b600080fd5b3480156100a257600080fd5b506100ab6101fd565b6040516100b89190610650565b60405180910390f35b3480156100cd57600080fd5b506100e860048036038101906100e391906106ce565b610203565b6040516100f59190610650565b60405180910390f35b34801561010a57600080fd5b50610113610288565b005b34801561012157600080fd5b5061012a6102e0565b005b34801561013857600080fd5b50610141610403565b005b34801561014f57600080fd5b5061016a60048036038101906101659190610727565b610417565b005b34801561017857600080fd5b50610181610429565b60405161018e9190610763565b60405180910390f35b3480156101a357600080fd5b506101be60048036038101906101b991906106ce565b610452565b6040516101cb9190610650565b60405180910390f35b3480156101e057600080fd5b506101fb60048036038101906101f691906106ce565b61046a565b005b60015481565b600080600260008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205490506001548161025691906107ad565b4210610266576000915050610283565b426001548261027591906107ad565b61027f91906107e1565b9150505b919050565b6102906104ed565b610298610429565b73ffffffffffffffffffffffffffffffffffffffff166108fc479081150290604051600060405180830381858888f193505050501580156102dd573d6000803e3d6000fd5b50565b600154600260003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205461032d91906107ad565b42101561036f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161036690610898565b60405180910390fd5b42600260003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055503373ffffffffffffffffffffffffffffffffffffffff167fd8138f8a3f377c5259ca548e70e4c2de94f129f5a11036a15b69513cba2b426a426040516103f99190610650565b60405180910390a2565b61040b6104ed565b610415600061056b565b565b61041f6104ed565b8060018190555050565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b60026020528060005260406000206000915090505481565b6104726104ed565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16036104e1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016104d89061092a565b60405180910390fd5b6104ea8161056b565b50565b6104f561062f565b73ffffffffffffffffffffffffffffffffffffffff16610513610429565b73ffffffffffffffffffffffffffffffffffffffff1614610569576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161056090610996565b60405180910390fd5b565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b600033905090565b6000819050919050565b61064a81610637565b82525050565b60006020820190506106656000830184610641565b92915050565b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600061069b82610670565b9050919050565b6106ab81610690565b81146106b657600080fd5b50565b6000813590506106c8816106a2565b92915050565b6000602082840312156106e4576106e361066b565b5b60006106f2848285016106b9565b91505092915050565b61070481610637565b811461070f57600080fd5b50565b600081359050610721816106fb565b92915050565b60006020828403121561073d5761073c61066b565b5b600061074b84828501610712565b91505092915050565b61075d81610690565b82525050565b60006020820190506107786000830184610754565b92915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b60006107b882610637565b91506107c383610637565b92508282019050808211156107db576107da61077e565b5b92915050565b60006107ec82610637565b91506107f783610637565b925082820390508181111561080f5761080e61077e565b5b92915050565b600082825260208201905092915050565b7f596f75206d7573742077616974206265666f726520636c61696d696e6720616760008201527f61696e0000000000000000000000000000000000000000000000000000000000602082015250565b6000610882602383610815565b915061088d82610826565b604082019050919050565b600060208201905081810360008301526108b181610875565b9050919050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b6000610914602683610815565b915061091f826108b8565b604082019050919050565b6000602082019050818103600083015261094381610907565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b6000610980602083610815565b915061098b8261094a565b602082019050919050565b600060208201905081810360008301526109af81610973565b905091905056fea264697066735822122079eac968757f57a6200329889fd189c773ffa7d9fc7f0095c8d29673e2a92f4464736f6c63430008180033

Deployed Bytecode

0x60806040526004361061008a5760003560e01c8063715018a611610059578063715018a61461012c57806380ea3de1146101435780638da5cb5b1461016c578063f0a3563c14610197578063f2fde38b146101d457610091565b806304646a4914610096578063111eb8b1146100c15780633ccfd60b146100fe5780634e71d92d1461011557610091565b3661009157005b600080fd5b3480156100a257600080fd5b506100ab6101fd565b6040516100b89190610650565b60405180910390f35b3480156100cd57600080fd5b506100e860048036038101906100e391906106ce565b610203565b6040516100f59190610650565b60405180910390f35b34801561010a57600080fd5b50610113610288565b005b34801561012157600080fd5b5061012a6102e0565b005b34801561013857600080fd5b50610141610403565b005b34801561014f57600080fd5b5061016a60048036038101906101659190610727565b610417565b005b34801561017857600080fd5b50610181610429565b60405161018e9190610763565b60405180910390f35b3480156101a357600080fd5b506101be60048036038101906101b991906106ce565b610452565b6040516101cb9190610650565b60405180910390f35b3480156101e057600080fd5b506101fb60048036038101906101f691906106ce565b61046a565b005b60015481565b600080600260008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205490506001548161025691906107ad565b4210610266576000915050610283565b426001548261027591906107ad565b61027f91906107e1565b9150505b919050565b6102906104ed565b610298610429565b73ffffffffffffffffffffffffffffffffffffffff166108fc479081150290604051600060405180830381858888f193505050501580156102dd573d6000803e3d6000fd5b50565b600154600260003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205461032d91906107ad565b42101561036f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161036690610898565b60405180910390fd5b42600260003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055503373ffffffffffffffffffffffffffffffffffffffff167fd8138f8a3f377c5259ca548e70e4c2de94f129f5a11036a15b69513cba2b426a426040516103f99190610650565b60405180910390a2565b61040b6104ed565b610415600061056b565b565b61041f6104ed565b8060018190555050565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b60026020528060005260406000206000915090505481565b6104726104ed565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16036104e1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016104d89061092a565b60405180910390fd5b6104ea8161056b565b50565b6104f561062f565b73ffffffffffffffffffffffffffffffffffffffff16610513610429565b73ffffffffffffffffffffffffffffffffffffffff1614610569576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161056090610996565b60405180910390fd5b565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b600033905090565b6000819050919050565b61064a81610637565b82525050565b60006020820190506106656000830184610641565b92915050565b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600061069b82610670565b9050919050565b6106ab81610690565b81146106b657600080fd5b50565b6000813590506106c8816106a2565b92915050565b6000602082840312156106e4576106e361066b565b5b60006106f2848285016106b9565b91505092915050565b61070481610637565b811461070f57600080fd5b50565b600081359050610721816106fb565b92915050565b60006020828403121561073d5761073c61066b565b5b600061074b84828501610712565b91505092915050565b61075d81610690565b82525050565b60006020820190506107786000830184610754565b92915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b60006107b882610637565b91506107c383610637565b92508282019050808211156107db576107da61077e565b5b92915050565b60006107ec82610637565b91506107f783610637565b925082820390508181111561080f5761080e61077e565b5b92915050565b600082825260208201905092915050565b7f596f75206d7573742077616974206265666f726520636c61696d696e6720616760008201527f61696e0000000000000000000000000000000000000000000000000000000000602082015250565b6000610882602383610815565b915061088d82610826565b604082019050919050565b600060208201905081810360008301526108b181610875565b9050919050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b6000610914602683610815565b915061091f826108b8565b604082019050919050565b6000602082019050818103600083015261094381610907565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b6000610980602083610815565b915061098b8261094a565b602082019050919050565b600060208201905081810360008301526109af81610973565b905091905056fea264697066735822122079eac968757f57a6200329889fd189c773ffa7d9fc7f0095c8d29673e2a92f4464736f6c63430008180033

Block Transaction Gas Used Reward
view all blocks sequenced

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.