BERA Price: $3.70 (+0.52%)

Contract

0xf5f668D359c9fFe7E3B473ec409d4b5b3A03409d

Overview

BERA Balance

Berachain LogoBerachain LogoBerachain Logo0 BERA

BERA Value

$0.00

Token Holdings

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Claim40746672025-04-23 6:10:177 hrs ago1745388617IN
0xf5f668D3...b3A03409d
0 BERA0.000006790.15000001
Claim40718922025-04-23 4:39:029 hrs ago1745383142IN
0xf5f668D3...b3A03409d
0 BERA00.00000007
Claim40664452025-04-23 1:39:3312 hrs ago1745372373IN
0xf5f668D3...b3A03409d
0 BERA0.000000060.001003
Claim40635932025-04-23 0:05:4813 hrs ago1745366748IN
0xf5f668D3...b3A03409d
0 BERA00.000101
Claim40633782025-04-22 23:58:4613 hrs ago1745366326IN
0xf5f668D3...b3A03409d
0 BERA0.000000660.010721
Claim40590582025-04-22 21:36:3516 hrs ago1745357795IN
0xf5f668D3...b3A03409d
0 BERA00.000101
Claim40528712025-04-22 18:14:3619 hrs ago1745345676IN
0xf5f668D3...b3A03409d
0 BERA0.000000070.00120001
Claim40521572025-04-22 17:51:1619 hrs ago1745344276IN
0xf5f668D3...b3A03409d
0 BERA00.00000012
Claim40471172025-04-22 15:06:1322 hrs ago1745334373IN
0xf5f668D3...b3A03409d
0 BERA00.00010224
Claim40322812025-04-22 7:04:1830 hrs ago1745305458IN
0xf5f668D3...b3A03409d
0 BERA00.00000007
Claim40278892025-04-22 4:42:3032 hrs ago1745296950IN
0xf5f668D3...b3A03409d
0 BERA0.000006790.15
Claim40236672025-04-22 2:26:0635 hrs ago1745288766IN
0xf5f668D3...b3A03409d
0 BERA0.000006790.15
Claim40236422025-04-22 2:25:1735 hrs ago1745288717IN
0xf5f668D3...b3A03409d
0 BERA00.000001
Claim40130752025-04-21 20:38:2341 hrs ago1745267903IN
0xf5f668D3...b3A03409d
0 BERA0.000022630.50000001
Claim40106382025-04-21 19:17:0642 hrs ago1745263026IN
0xf5f668D3...b3A03409d
0 BERA0.000045271
Claim40061842025-04-21 16:49:4144 hrs ago1745254181IN
0xf5f668D3...b3A03409d
0 BERA0.000006860.11002703
Claim39878432025-04-21 6:45:342 days ago1745217934IN
0xf5f668D3...b3A03409d
0 BERA0.000000620.010001
Claim39843182025-04-21 4:50:552 days ago1745211055IN
0xf5f668D3...b3A03409d
0 BERA00.00000005
Claim39685532025-04-20 20:18:342 days ago1745180314IN
0xf5f668D3...b3A03409d
0 BERA0.000000050.001201
Claim39634782025-04-20 17:33:222 days ago1745170402IN
0xf5f668D3...b3A03409d
0 BERA0.000000280.00620637
Claim39633442025-04-20 17:29:012 days ago1745170141IN
0xf5f668D3...b3A03409d
0 BERA0.000003090.049685
Claim39606522025-04-20 16:01:212 days ago1745164881IN
0xf5f668D3...b3A03409d
0 BERA0.00000020.00325127
Claim39528572025-04-20 11:46:283 days ago1745149588IN
0xf5f668D3...b3A03409d
0 BERA0.000008970.198257
Claim39518632025-04-20 11:13:233 days ago1745147603IN
0xf5f668D3...b3A03409d
0 BERA0.000001140.018363
Claim39486912025-04-20 9:28:003 days ago1745141280IN
0xf5f668D3...b3A03409d
0 BERA0.000001430.023052
View all transactions

Parent Transaction Hash Block From To
View All Internal Transactions
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
MoolaClaim

Compiler Version
v0.8.19+commit.7dd6d404

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
File 1 of 4 : MoolaClaim.sol
// SPDX-License-Identifier: MIT
pragma solidity 0.8.19;

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

contract MoolaClaim is Ownable {
    IERC20 public moola;
    
    mapping(address => uint256) public account_Claimable;
    
    event MoolaClaim__ClaimableSet(address indexed user, uint256 amount);
    event MoolaClaim__Claimed(address indexed user, uint256 amount);
    
    error MoolaClaim__NoClaimableAmount();
    error MoolaClaim__TransferFailed();
    error MoolaClaim__LengthMismatch();
    
    constructor(address _moola) {
        moola = IERC20(_moola);
    }
    
    function setClaims(
        address[] calldata users,
        uint256[] calldata amounts
    ) external onlyOwner {
        if (users.length != amounts.length) revert MoolaClaim__LengthMismatch();
        
        for (uint256 i = 0; i < users.length; i++) {
            account_Claimable[users[i]] = amounts[i];
            emit MoolaClaim__ClaimableSet(users[i], amounts[i]);
        }
    }
    
    function claim() external {
        uint256 amount = account_Claimable[msg.sender];
        if (amount == 0) revert MoolaClaim__NoClaimableAmount();
        
        account_Claimable[msg.sender] = 0;
        
        bool success = moola.transfer(msg.sender, amount);
        if (!success) revert MoolaClaim__TransferFailed();
        
        emit MoolaClaim__Claimed(msg.sender, amount);
    }

}

File 2 of 4 : Ownable.sol
// 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);
    }
}

File 3 of 4 : IERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.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);
}

File 4 of 4 : Context.sol
// 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
{
  "optimizer": {
    "enabled": true,
    "runs": 200
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  },
  "libraries": {}
}

Contract Security Audit

Contract ABI

API
[{"inputs":[{"internalType":"address","name":"_moola","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"MoolaClaim__LengthMismatch","type":"error"},{"inputs":[],"name":"MoolaClaim__NoClaimableAmount","type":"error"},{"inputs":[],"name":"MoolaClaim__TransferFailed","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"MoolaClaim__ClaimableSet","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"MoolaClaim__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":[{"internalType":"address","name":"","type":"address"}],"name":"account_Claimable","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"claim","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"moola","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"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":"address[]","name":"users","type":"address[]"},{"internalType":"uint256[]","name":"amounts","type":"uint256[]"}],"name":"setClaims","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"}]

608060405234801561001057600080fd5b5060405161070a38038061070a83398101604081905261002f916100ad565b6100383361005d565b600180546001600160a01b0319166001600160a01b03929092169190911790556100dd565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6000602082840312156100bf57600080fd5b81516001600160a01b03811681146100d657600080fd5b9392505050565b61061e806100ec6000396000f3fe608060405234801561001057600080fd5b506004361061007d5760003560e01c80638da5cb5b1161005b5780638da5cb5b146100a7578063ca02cac8146100d1578063eb79a294146100e4578063f2fde38b1461011257600080fd5b80633b650d29146100825780634e71d92d14610097578063715018a61461009f575b600080fd5b6100956100903660046104ed565b610125565b005b610095610250565b610095610365565b6000546001600160a01b03165b6040516001600160a01b0390911681526020015b60405180910390f35b6001546100b4906001600160a01b031681565b6101046100f2366004610559565b60026020526000908152604090205481565b6040519081526020016100c8565b610095610120366004610559565b610379565b61012d6103f7565b82811461014d576040516329f8221560e21b815260040160405180910390fd5b60005b838110156102495782828281811061016a5761016a610589565b905060200201356002600087878581811061018757610187610589565b905060200201602081019061019c9190610559565b6001600160a01b031681526020810191909152604001600020558484828181106101c8576101c8610589565b90506020020160208101906101dd9190610559565b6001600160a01b03167fe9265a195022c259cf0e071627a53105229558f6ee61bb8da03d834172e12f0484848481811061021957610219610589565b9050602002013560405161022f91815260200190565b60405180910390a2806102418161059f565b915050610150565b5050505050565b336000908152600260205260408120549081900361028157604051639549598d60e01b815260040160405180910390fd5b33600081815260026020526040808220829055600154905163a9059cbb60e01b815260048101939093526024830184905290916001600160a01b039091169063a9059cbb906044016020604051808303816000875af11580156102e8573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061030c91906105c6565b90508061032c57604051630e72ae5d60e31b815260040160405180910390fd5b60405182815233907f37b6b531e0147925eddecc58ed2ba245ac160a773b26fffa4a533d663eb97c2a9060200160405180910390a25050565b61036d6103f7565b6103776000610451565b565b6103816103f7565b6001600160a01b0381166103eb5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084015b60405180910390fd5b6103f481610451565b50565b6000546001600160a01b031633146103775760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016103e2565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b60008083601f8401126104b357600080fd5b50813567ffffffffffffffff8111156104cb57600080fd5b6020830191508360208260051b85010111156104e657600080fd5b9250929050565b6000806000806040858703121561050357600080fd5b843567ffffffffffffffff8082111561051b57600080fd5b610527888389016104a1565b9096509450602087013591508082111561054057600080fd5b5061054d878288016104a1565b95989497509550505050565b60006020828403121561056b57600080fd5b81356001600160a01b038116811461058257600080fd5b9392505050565b634e487b7160e01b600052603260045260246000fd5b6000600182016105bf57634e487b7160e01b600052601160045260246000fd5b5060010190565b6000602082840312156105d857600080fd5b8151801515811461058257600080fdfea2646970667358221220665edee083ac94039ce3096ce8144d60f3c9f4b2941e6299379efbe46781ecb364736f6c634300081300330000000000000000000000003161beec360162c6dda803f7f4bc59fc92117642

Deployed Bytecode

0x608060405234801561001057600080fd5b506004361061007d5760003560e01c80638da5cb5b1161005b5780638da5cb5b146100a7578063ca02cac8146100d1578063eb79a294146100e4578063f2fde38b1461011257600080fd5b80633b650d29146100825780634e71d92d14610097578063715018a61461009f575b600080fd5b6100956100903660046104ed565b610125565b005b610095610250565b610095610365565b6000546001600160a01b03165b6040516001600160a01b0390911681526020015b60405180910390f35b6001546100b4906001600160a01b031681565b6101046100f2366004610559565b60026020526000908152604090205481565b6040519081526020016100c8565b610095610120366004610559565b610379565b61012d6103f7565b82811461014d576040516329f8221560e21b815260040160405180910390fd5b60005b838110156102495782828281811061016a5761016a610589565b905060200201356002600087878581811061018757610187610589565b905060200201602081019061019c9190610559565b6001600160a01b031681526020810191909152604001600020558484828181106101c8576101c8610589565b90506020020160208101906101dd9190610559565b6001600160a01b03167fe9265a195022c259cf0e071627a53105229558f6ee61bb8da03d834172e12f0484848481811061021957610219610589565b9050602002013560405161022f91815260200190565b60405180910390a2806102418161059f565b915050610150565b5050505050565b336000908152600260205260408120549081900361028157604051639549598d60e01b815260040160405180910390fd5b33600081815260026020526040808220829055600154905163a9059cbb60e01b815260048101939093526024830184905290916001600160a01b039091169063a9059cbb906044016020604051808303816000875af11580156102e8573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061030c91906105c6565b90508061032c57604051630e72ae5d60e31b815260040160405180910390fd5b60405182815233907f37b6b531e0147925eddecc58ed2ba245ac160a773b26fffa4a533d663eb97c2a9060200160405180910390a25050565b61036d6103f7565b6103776000610451565b565b6103816103f7565b6001600160a01b0381166103eb5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084015b60405180910390fd5b6103f481610451565b50565b6000546001600160a01b031633146103775760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016103e2565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b60008083601f8401126104b357600080fd5b50813567ffffffffffffffff8111156104cb57600080fd5b6020830191508360208260051b85010111156104e657600080fd5b9250929050565b6000806000806040858703121561050357600080fd5b843567ffffffffffffffff8082111561051b57600080fd5b610527888389016104a1565b9096509450602087013591508082111561054057600080fd5b5061054d878288016104a1565b95989497509550505050565b60006020828403121561056b57600080fd5b81356001600160a01b038116811461058257600080fd5b9392505050565b634e487b7160e01b600052603260045260246000fd5b6000600182016105bf57634e487b7160e01b600052601160045260246000fd5b5060010190565b6000602082840312156105d857600080fd5b8151801515811461058257600080fdfea2646970667358221220665edee083ac94039ce3096ce8144d60f3c9f4b2941e6299379efbe46781ecb364736f6c63430008130033

Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)

0000000000000000000000003161beec360162c6dda803f7f4bc59fc92117642

-----Decoded View---------------
Arg [0] : _moola (address): 0x3161BeEc360162c6dda803f7F4BC59Fc92117642

-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 0000000000000000000000003161beec360162c6dda803f7f4bc59fc92117642


Block Transaction Gas Used Reward
view all blocks produced

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

Validator Index Block Amount
View All Withdrawals

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