Source Code
Latest 25 from a total of 1,143 transactions
| Transaction Hash |
|
Block
|
From
|
To
|
|||||
|---|---|---|---|---|---|---|---|---|---|
| Gm | 145958581 | 97 days ago | IN | 0 ETH | 0.000000029174 | ||||
| Gm | 145957662 | 97 days ago | IN | 0 ETH | 0.00000002922 | ||||
| Gm | 145955327 | 97 days ago | IN | 0 ETH | 0.000000028834 | ||||
| Gm | 145945777 | 97 days ago | IN | 0 ETH | 0.000000028635 | ||||
| Gm | 145934383 | 97 days ago | IN | 0 ETH | 0.000000029953 | ||||
| Gm | 145922956 | 97 days ago | IN | 0 ETH | 0.000000030151 | ||||
| Gm | 145920490 | 98 days ago | IN | 0 ETH | 0.000000028696 | ||||
| Gm | 145915848 | 98 days ago | IN | 0 ETH | 0.000000028946 | ||||
| Gm | 145914619 | 98 days ago | IN | 0 ETH | 0.000000028839 | ||||
| Gm | 145910976 | 98 days ago | IN | 0 ETH | 0.000000028759 | ||||
| Gm | 145907246 | 98 days ago | IN | 0 ETH | 0.000000028864 | ||||
| Gm | 145905307 | 98 days ago | IN | 0 ETH | 0.000000028774 | ||||
| Gm | 145902673 | 98 days ago | IN | 0 ETH | 0.000000028685 | ||||
| Gm | 145895515 | 98 days ago | IN | 0 ETH | 0.000000030333 | ||||
| Gm | 145879797 | 98 days ago | IN | 0 ETH | 0.000000046226 | ||||
| Gm | 145876591 | 99 days ago | IN | 0 ETH | 0.000000030304 | ||||
| Gm | 145871569 | 99 days ago | IN | 0 ETH | 0.000000028735 | ||||
| Gm | 145867110 | 99 days ago | IN | 0 ETH | 0.000000028589 | ||||
| Gm | 145865282 | 99 days ago | IN | 0 ETH | 0.000000028712 | ||||
| Gm | 145861410 | 99 days ago | IN | 0 ETH | 0.000000047145 | ||||
| Gm | 145861278 | 99 days ago | IN | 0 ETH | 0.000000029672 | ||||
| Gm | 145860591 | 99 days ago | IN | 0 ETH | 0.000000029337 | ||||
| Gm | 145857273 | 99 days ago | IN | 0 ETH | 0.000000029279 | ||||
| Gm | 145857107 | 99 days ago | IN | 0 ETH | 0.000000029085 | ||||
| Gm | 145848167 | 99 days ago | IN | 0 ETH | 0.000000031562 |
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Cross-Chain Transactions
Loading...
Loading
Contract Name:
DailyGM
Compiler Version
v0.8.24+commit.e11b9ed9
Optimization Enabled:
Yes with 1000000 runs
Other Settings:
cancun EvmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: UNLICENSED
pragma solidity 0.8.24;
contract DailyGM {
/// @notice Mapping to track each user's last GM day (UTC day number)
mapping(address user => uint256 lastGMDay) public lastGMDay;
/// @notice Event emitted when a new GM is recorded
event GM(address indexed user, address indexed recipient);
/// @notice Function to say GM
/// @dev Used to record a GM for the caller
/// @dev Recipient set to address zero, since GM is not for a specific user
/// @dev Ensures caller can only GM once per UTC day
function gm() external {
_checkDailyLimit();
lastGMDay[msg.sender] = _currentDay();
emit GM(msg.sender, address(0));
}
/// @notice Function to GM to a recipient
/// @dev Prevents self-GM
function gmTo(address recipient) external {
if (recipient == msg.sender) {
revert("Cannot GM to yourself");
}
_checkDailyLimit();
lastGMDay[msg.sender] = _currentDay();
emit GM(msg.sender, recipient);
}
/// @dev Private function to check if caller has already GMed today
function _checkDailyLimit() private view {
if (lastGMDay[msg.sender] == _currentDay()) {
revert("Already GMed today");
}
}
/// @dev Utility: current UTC day number
function _currentDay() private view returns (uint256) {
return block.timestamp / 1 days;
}
}{
"evmVersion": "cancun",
"metadata": {
"bytecodeHash": "ipfs"
},
"optimizer": {
"enabled": true,
"runs": 1000000
},
"remappings": [],
"outputSelection": {
"*": {
"*": [
"evm.bytecode",
"evm.deployedBytecode",
"devdoc",
"userdoc",
"metadata",
"abi"
]
}
}
}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":true,"internalType":"address","name":"recipient","type":"address"}],"name":"GM","type":"event"},{"inputs":[],"name":"gm","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"recipient","type":"address"}],"name":"gmTo","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"user","type":"address"}],"name":"lastGMDay","outputs":[{"internalType":"uint256","name":"lastGMDay","type":"uint256"}],"stateMutability":"view","type":"function"}]Contract Creation Code
608060405234801561000f575f80fd5b506102ff8061001d5f395ff3fe608060405234801561000f575f80fd5b506004361061003f575f3560e01c80633649049b14610043578063c0129d4314610074578063e884624b1461007e575b5f80fd5b610062610051366004610257565b5f6020819052908152604090205481565b60405190815260200160405180910390f35b61007c610091565b005b61007c61008c366004610257565b6100dd565b6100996101c4565b6100a1610244565b335f818152602081905260408082209390935591517f9bb60bdb6bb0920fe69f94499caf047e26d87945a4791e95ea8f70536625b7b4908390a3565b3373ffffffffffffffffffffffffffffffffffffffff821603610161576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601560248201527f43616e6e6f7420474d20746f20796f757273656c66000000000000000000000060448201526064015b60405180910390fd5b6101696101c4565b610171610244565b335f8181526020819052604080822093909355915173ffffffffffffffffffffffffffffffffffffffff8416927f9bb60bdb6bb0920fe69f94499caf047e26d87945a4791e95ea8f70536625b7b491a350565b6101cc610244565b335f9081526020819052604090205403610242576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601260248201527f416c726561647920474d656420746f64617900000000000000000000000000006044820152606401610158565b565b5f6102526201518042610291565b905090565b5f60208284031215610267575f80fd5b813573ffffffffffffffffffffffffffffffffffffffff8116811461028a575f80fd5b9392505050565b5f826102c4577f4e487b71000000000000000000000000000000000000000000000000000000005f52601260045260245ffd5b50049056fea2646970667358221220074fc3ea9eb48cb97e9c2a93e6846b6f7ace11b33f8ddfbcc6d7b651ac30086164736f6c63430008180033
Deployed Bytecode
0x608060405234801561000f575f80fd5b506004361061003f575f3560e01c80633649049b14610043578063c0129d4314610074578063e884624b1461007e575b5f80fd5b610062610051366004610257565b5f6020819052908152604090205481565b60405190815260200160405180910390f35b61007c610091565b005b61007c61008c366004610257565b6100dd565b6100996101c4565b6100a1610244565b335f818152602081905260408082209390935591517f9bb60bdb6bb0920fe69f94499caf047e26d87945a4791e95ea8f70536625b7b4908390a3565b3373ffffffffffffffffffffffffffffffffffffffff821603610161576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601560248201527f43616e6e6f7420474d20746f20796f757273656c66000000000000000000000060448201526064015b60405180910390fd5b6101696101c4565b610171610244565b335f8181526020819052604080822093909355915173ffffffffffffffffffffffffffffffffffffffff8416927f9bb60bdb6bb0920fe69f94499caf047e26d87945a4791e95ea8f70536625b7b491a350565b6101cc610244565b335f9081526020819052604090205403610242576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601260248201527f416c726561647920474d656420746f64617900000000000000000000000000006044820152606401610158565b565b5f6102526201518042610291565b905090565b5f60208284031215610267575f80fd5b813573ffffffffffffffffffffffffffffffffffffffff8116811461028a575f80fd5b9392505050565b5f826102c4577f4e487b71000000000000000000000000000000000000000000000000000000005f52601260045260245ffd5b50049056fea2646970667358221220074fc3ea9eb48cb97e9c2a93e6846b6f7ace11b33f8ddfbcc6d7b651ac30086164736f6c63430008180033
Loading...
Loading
Loading...
Loading
Loading...
Loading
Net Worth in USD
$0.00
Net Worth in ETH
0
Multichain Portfolio | 32 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.