More Info
Private Name Tags
ContractCreator
Latest 25 from a total of 563 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Claim | 4074667 | 7 hrs ago | IN | 0 BERA | 0.00000679 | ||||
Claim | 4071892 | 9 hrs ago | IN | 0 BERA | 0 | ||||
Claim | 4066445 | 12 hrs ago | IN | 0 BERA | 0.00000006 | ||||
Claim | 4063593 | 13 hrs ago | IN | 0 BERA | 0 | ||||
Claim | 4063378 | 13 hrs ago | IN | 0 BERA | 0.00000066 | ||||
Claim | 4059058 | 16 hrs ago | IN | 0 BERA | 0 | ||||
Claim | 4052871 | 19 hrs ago | IN | 0 BERA | 0.00000007 | ||||
Claim | 4052157 | 19 hrs ago | IN | 0 BERA | 0 | ||||
Claim | 4047117 | 22 hrs ago | IN | 0 BERA | 0 | ||||
Claim | 4032281 | 30 hrs ago | IN | 0 BERA | 0 | ||||
Claim | 4027889 | 32 hrs ago | IN | 0 BERA | 0.00000679 | ||||
Claim | 4023667 | 35 hrs ago | IN | 0 BERA | 0.00000679 | ||||
Claim | 4023642 | 35 hrs ago | IN | 0 BERA | 0 | ||||
Claim | 4013075 | 41 hrs ago | IN | 0 BERA | 0.00002263 | ||||
Claim | 4010638 | 42 hrs ago | IN | 0 BERA | 0.00004527 | ||||
Claim | 4006184 | 44 hrs ago | IN | 0 BERA | 0.00000686 | ||||
Claim | 3987843 | 2 days ago | IN | 0 BERA | 0.00000062 | ||||
Claim | 3984318 | 2 days ago | IN | 0 BERA | 0 | ||||
Claim | 3968553 | 2 days ago | IN | 0 BERA | 0.00000005 | ||||
Claim | 3963478 | 2 days ago | IN | 0 BERA | 0.00000028 | ||||
Claim | 3963344 | 2 days ago | IN | 0 BERA | 0.00000309 | ||||
Claim | 3960652 | 2 days ago | IN | 0 BERA | 0.0000002 | ||||
Claim | 3952857 | 3 days ago | IN | 0 BERA | 0.00000897 | ||||
Claim | 3951863 | 3 days ago | IN | 0 BERA | 0.00000114 | ||||
Claim | 3948691 | 3 days ago | IN | 0 BERA | 0.00000143 |
Loading...
Loading
Contract Name:
MoolaClaim
Compiler Version
v0.8.19+commit.7dd6d404
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// 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); } }
// 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.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 (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; } }
{ "optimizer": { "enabled": true, "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[{"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"}]
Contract Creation Code
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
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 34 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
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.