Source Code
Overview
HYPE Balance
HYPE Value
$0.00Latest 25 from a total of 7,297 transactions
| Transaction Hash |
|
Block
|
From
|
To
|
|||||
|---|---|---|---|---|---|---|---|---|---|
| On Chain GM | 4391553 | 242 days ago | IN | 0.006 HYPE | 0.01841535 | ||||
| On Chain GM | 4389485 | 242 days ago | IN | 0.006 HYPE | 0.00697895 | ||||
| On Chain GM | 4350386 | 243 days ago | IN | 0.006 HYPE | 0.00471724 | ||||
| On Chain GM | 4345894 | 243 days ago | IN | 0.006 HYPE | 0.00044581 | ||||
| On Chain GM | 4342054 | 243 days ago | IN | 0.006 HYPE | 0.00044137 | ||||
| On Chain GM | 4328032 | 243 days ago | IN | 0.006 HYPE | 0.00001297 | ||||
| On Chain GM | 4322685 | 243 days ago | IN | 0.006 HYPE | 0.00000342 | ||||
| On Chain GM | 4322685 | 243 days ago | IN | 0.006 HYPE | 0.00000342 | ||||
| On Chain GM | 4322685 | 243 days ago | IN | 0.006 HYPE | 0.00000533 | ||||
| On Chain GM | 4320137 | 243 days ago | IN | 0.006 HYPE | 0.00526274 | ||||
| On Chain GM | 4315469 | 244 days ago | IN | 0.006 HYPE | 0.01297065 | ||||
| On Chain GM | 4315266 | 244 days ago | IN | 0.006 HYPE | 0.00611497 | ||||
| On Chain GM | 4314767 | 244 days ago | IN | 0.006 HYPE | 0.00946591 | ||||
| On Chain GM | 4314677 | 244 days ago | IN | 0.006 HYPE | 0.00363141 | ||||
| On Chain GM | 4314664 | 244 days ago | IN | 0.006 HYPE | 0.00233026 | ||||
| On Chain GM | 4314659 | 244 days ago | IN | 0.006 HYPE | 0.00363141 | ||||
| On Chain GM | 4314356 | 244 days ago | IN | 0.006 HYPE | 0.00878118 | ||||
| On Chain GM | 4314251 | 244 days ago | IN | 0.006 HYPE | 0.00489785 | ||||
| On Chain GM | 4314185 | 244 days ago | IN | 0.006 HYPE | 0.00518789 | ||||
| On Chain GM | 4314049 | 244 days ago | IN | 0.006 HYPE | 0.00383078 | ||||
| On Chain GM | 4313769 | 244 days ago | IN | 0.006 HYPE | 0.00342091 | ||||
| On Chain GM | 4313745 | 244 days ago | IN | 0.006 HYPE | 0.00420397 | ||||
| On Chain GM | 4313715 | 244 days ago | IN | 0.006 HYPE | 0.00597909 | ||||
| On Chain GM | 4313648 | 244 days ago | IN | 0.006 HYPE | 0.00582271 | ||||
| On Chain GM | 4313315 | 244 days ago | IN | 0.006 HYPE | 0.005252 |
Latest 25 internal transactions (View All)
Advanced mode:
| Parent Transaction Hash | Block | From | To | |||
|---|---|---|---|---|---|---|
| 4391553 | 242 days ago | 0.006 HYPE | ||||
| 4389485 | 242 days ago | 0.006 HYPE | ||||
| 4350386 | 243 days ago | 0.006 HYPE | ||||
| 4345894 | 243 days ago | 0.006 HYPE | ||||
| 4342054 | 243 days ago | 0.006 HYPE | ||||
| 4328032 | 243 days ago | 0.006 HYPE | ||||
| 4322685 | 243 days ago | 0.006 HYPE | ||||
| 4320137 | 243 days ago | 0.006 HYPE | ||||
| 4315469 | 244 days ago | 0.006 HYPE | ||||
| 4315266 | 244 days ago | 0.006 HYPE | ||||
| 4314767 | 244 days ago | 0.006 HYPE | ||||
| 4314677 | 244 days ago | 0.006 HYPE | ||||
| 4314664 | 244 days ago | 0.006 HYPE | ||||
| 4314659 | 244 days ago | 0.006 HYPE | ||||
| 4314356 | 244 days ago | 0.006 HYPE | ||||
| 4314251 | 244 days ago | 0.006 HYPE | ||||
| 4314185 | 244 days ago | 0.006 HYPE | ||||
| 4314049 | 244 days ago | 0.006 HYPE | ||||
| 4313769 | 244 days ago | 0.006 HYPE | ||||
| 4313745 | 244 days ago | 0.006 HYPE | ||||
| 4313715 | 244 days ago | 0.006 HYPE | ||||
| 4313648 | 244 days ago | 0.006 HYPE | ||||
| 4313315 | 244 days ago | 0.006 HYPE | ||||
| 4313054 | 244 days ago | 0.006 HYPE | ||||
| 4312059 | 244 days ago | 0.006 HYPE |
Cross-Chain Transactions
Loading...
Loading
Contract Name:
OnChainGM
Compiler Version
v0.8.28+commit.7893614a
Optimization Enabled:
Yes with 1500000 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.28;
contract OnChainGM {
// Immutable variables don't use storage slots
address public immutable feeRecipient;
uint256 public immutable GM_FEE;
uint256 public constant TIME_LIMIT = 24 hours;
// Mapping to store last GM timestamp for each user
mapping(address => uint256) public lastGMTimestamp;
// Event for tracking GMs
event OnChainGMEvent(address indexed sender);
constructor() {
feeRecipient = 0x7500A83DF2aF99B2755c47B6B321a8217d876a85;
GM_FEE = 0.006 ether;
}
// Gas optimized GM function with timestamp check
function onChainGM() external payable {
if (msg.value != GM_FEE) {
revert("Incorrect ETH fee");
}
// Check if 24 hours have passed since last GM
if (!(block.timestamp >= lastGMTimestamp[msg.sender] + TIME_LIMIT || lastGMTimestamp[msg.sender] == 0)) {
revert("Wait 24 hours");
}
// Update last GM timestamp
lastGMTimestamp[msg.sender] = block.timestamp;
// Transfer fee after all checks
(bool success,) = feeRecipient.call{value: msg.value}("");
if (!success) {
revert("Fee transfer failed");
}
emit OnChainGMEvent(msg.sender);
}
// View function to check remaining time
function timeUntilNextGM(address user) external view returns (uint256) {
if (lastGMTimestamp[user] == 0) return 0;
uint256 timePassed = block.timestamp - lastGMTimestamp[user];
if (timePassed >= TIME_LIMIT) return 0;
return TIME_LIMIT - timePassed;
}
}{
"libraries": {
".sol": {}
},
"metadata": {
"bytecodeHash": "ipfs"
},
"optimizer": {
"enabled": true,
"runs": 1500000
},
"outputSelection": {
"*": {
"*": [
"evm.bytecode",
"evm.deployedBytecode",
"devdoc",
"userdoc",
"metadata",
"abi"
]
}
}
}Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
Contract ABI
API[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"OnChainGMEvent","type":"event"},{"inputs":[],"name":"GM_FEE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"TIME_LIMIT","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"feeRecipient","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"lastGMTimestamp","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"onChainGM","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"user","type":"address"}],"name":"timeUntilNextGM","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"}]Contract Creation Code
60c0604052348015600e575f5ffd5b50737500a83df2af99b2755c47b6b321a8217d876a85608052661550f7dca7000060a05260805160a0516105056100605f395f818161014d015261017101525f8181607801526102c401526105055ff3fe608060405260043610610063575f3560e01c80636bb6979f116100415780636bb6979f146100f25780638928a1d614610111578063e3ea4c4d1461013c575f5ffd5b806346904840146100675780635011b71c146100c4578063698224ae146100ce575b5f5ffd5b348015610072575f5ffd5b5061009a7f000000000000000000000000000000000000000000000000000000000000000081565b60405173ffffffffffffffffffffffffffffffffffffffff90911681526020015b60405180910390f35b6100cc61016f565b005b3480156100d9575f5ffd5b506100e46201518081565b6040519081526020016100bb565b3480156100fd575f5ffd5b506100e461010c366004610443565b6103ba565b34801561011c575f5ffd5b506100e461012b366004610443565b5f6020819052908152604090205481565b348015610147575f5ffd5b506100e47f000000000000000000000000000000000000000000000000000000000000000081565b7f000000000000000000000000000000000000000000000000000000000000000034146101fd576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601160248201527f496e636f7272656374204554482066656500000000000000000000000000000060448201526064015b60405180910390fd5b335f9081526020819052604090205461021a9062015180906104a3565b421015806102345750335f90815260208190526040902054155b61029a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600d60248201527f5761697420323420686f7572730000000000000000000000000000000000000060448201526064016101f4565b335f908152602081905260408082204290555173ffffffffffffffffffffffffffffffffffffffff7f0000000000000000000000000000000000000000000000000000000000000000169034908381818185875af1925050503d805f811461031d576040519150601f19603f3d011682016040523d82523d5f602084013e610322565b606091505b505090508061038d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601360248201527f466565207472616e73666572206661696c65640000000000000000000000000060448201526064016101f4565b60405133907f2c87d8ee91bb31c46c18656ab95c2c8175461ed9884084ef1ac6d7d029ac815b905f90a250565b73ffffffffffffffffffffffffffffffffffffffff81165f9081526020819052604081205481036103ec57505f919050565b73ffffffffffffffffffffffffffffffffffffffff82165f9081526020819052604081205461041b90426104bc565b905062015180811061042f57505f92915050565b61043c81620151806104bc565b9392505050565b5f60208284031215610453575f5ffd5b813573ffffffffffffffffffffffffffffffffffffffff8116811461043c575f5ffd5b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601160045260245ffd5b808201808211156104b6576104b6610476565b92915050565b818103818111156104b6576104b661047656fea2646970667358221220ef527c8deb755dd50a228c5e199a67cbb40700eba8ead5855ea87f3a8588d69764736f6c634300081c0033
Deployed Bytecode
0x608060405260043610610063575f3560e01c80636bb6979f116100415780636bb6979f146100f25780638928a1d614610111578063e3ea4c4d1461013c575f5ffd5b806346904840146100675780635011b71c146100c4578063698224ae146100ce575b5f5ffd5b348015610072575f5ffd5b5061009a7f0000000000000000000000007500a83df2af99b2755c47b6b321a8217d876a8581565b60405173ffffffffffffffffffffffffffffffffffffffff90911681526020015b60405180910390f35b6100cc61016f565b005b3480156100d9575f5ffd5b506100e46201518081565b6040519081526020016100bb565b3480156100fd575f5ffd5b506100e461010c366004610443565b6103ba565b34801561011c575f5ffd5b506100e461012b366004610443565b5f6020819052908152604090205481565b348015610147575f5ffd5b506100e47f000000000000000000000000000000000000000000000000001550f7dca7000081565b7f000000000000000000000000000000000000000000000000001550f7dca7000034146101fd576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601160248201527f496e636f7272656374204554482066656500000000000000000000000000000060448201526064015b60405180910390fd5b335f9081526020819052604090205461021a9062015180906104a3565b421015806102345750335f90815260208190526040902054155b61029a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600d60248201527f5761697420323420686f7572730000000000000000000000000000000000000060448201526064016101f4565b335f908152602081905260408082204290555173ffffffffffffffffffffffffffffffffffffffff7f0000000000000000000000007500a83df2af99b2755c47b6b321a8217d876a85169034908381818185875af1925050503d805f811461031d576040519150601f19603f3d011682016040523d82523d5f602084013e610322565b606091505b505090508061038d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601360248201527f466565207472616e73666572206661696c65640000000000000000000000000060448201526064016101f4565b60405133907f2c87d8ee91bb31c46c18656ab95c2c8175461ed9884084ef1ac6d7d029ac815b905f90a250565b73ffffffffffffffffffffffffffffffffffffffff81165f9081526020819052604081205481036103ec57505f919050565b73ffffffffffffffffffffffffffffffffffffffff82165f9081526020819052604081205461041b90426104bc565b905062015180811061042f57505f92915050565b61043c81620151806104bc565b9392505050565b5f60208284031215610453575f5ffd5b813573ffffffffffffffffffffffffffffffffffffffff8116811461043c575f5ffd5b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601160045260245ffd5b808201808211156104b6576104b6610476565b92915050565b818103818111156104b6576104b661047656fea2646970667358221220ef527c8deb755dd50a228c5e199a67cbb40700eba8ead5855ea87f3a8588d69764736f6c634300081c0033
Loading...
Loading
Loading...
Loading
Loading...
Loading
Net Worth in USD
$0.09
Net Worth in HYPE
Token Allocations
ETH
100.00%
Multichain Portfolio | 35 Chains
| Chain | Token | Portfolio % | Price | Amount | Value |
|---|---|---|---|---|---|
| BASE | 100.00% | $2,948.03 | 0.000029 | $0.085493 |
Loading...
Loading
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
[ 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.