ETH Price: $3,187.32 (-0.50%)

Contract

0xDBd6eFb2019367c72e3284eE69494Dd49552f557

Overview

ETH Balance

0 ETH

ETH Value

$0.00

More Info

Private Name Tags

Multichain Info

No addresses found
Transaction Hash
Block
From
To
Gm33459232025-06-16 15:45:34217 days ago1750088734IN
0xDBd6eFb2...49552f557
0.000025 ETH0.000000130.00100025

Latest 1 internal transaction

Advanced mode:
Parent Transaction Hash Block From To
33459232025-06-16 15:45:34217 days ago1750088734
0xDBd6eFb2...49552f557
0.000025 ETH

Cross-Chain Transactions
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
GM

Compiler Version
v0.8.30+commit.73712a01

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, MIT license

Contract Source Code (Solidity)

/**
 *Submitted for verification at KatanaScan.com on 2025-08-01
*/

// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

contract GM {
    address public feeRecipient = 0xE987eC8d38c95A86752e2073eeD1260ECf2e9083;
    uint256 public GM_FEE = 0.000025 ether;

    uint256 public totalGMs;
    mapping(address => uint256) public gmCount;
    address[] public allUsers;

    event GMed(address indexed user, uint256 totalUserGMs);

    function gm() external payable {
        require(msg.value == GM_FEE, "Incorrect GM fee");

        // transfer fee to recipient
        (bool success, ) = feeRecipient.call{value: msg.value}("");
        require(success, "Fee transfer failed");

        // increment GM count
        if (gmCount[msg.sender] == 0) {
            allUsers.push(msg.sender);
        }

        gmCount[msg.sender] += 1;
        totalGMs += 1;

        emit GMed(msg.sender, gmCount[msg.sender]);
    }

    function getAllUsers() external view returns (address[] memory) {
        return allUsers;
    }

    function getGMsForAddress(address user) external view returns (uint256) {
        return gmCount[user];
    }
}

Contract Security Audit

Contract ABI

API
[{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"totalUserGMs","type":"uint256"}],"name":"GMed","type":"event"},{"inputs":[],"name":"GM_FEE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"allUsers","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"feeRecipient","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getAllUsers","outputs":[{"internalType":"address[]","name":"","type":"address[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"user","type":"address"}],"name":"getGMsForAddress","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"gm","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"gmCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalGMs","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"}]

60806040525f80546001600160a01b03191673e987ec8d38c95a86752e2073eed1260ecf2e90831790556516bcc41e9000600155348015603d575f5ffd5b506104c48061004b5f395ff3fe608060405260043610610079575f3560e01c8063a2bdedf41161004c578063a2bdedf41461013a578063c0129d4314610159578063e2842d7914610163578063e3ea4c4d14610184575f5ffd5b80633c5827a91461007d57806346904840146100bb5780635efb0b17146100f1578063a29002ac14610125575b5f5ffd5b348015610088575f5ffd5b506100a86100973660046103da565b60036020525f908152604090205481565b6040519081526020015b60405180910390f35b3480156100c6575f5ffd5b505f546100d9906001600160a01b031681565b6040516001600160a01b0390911681526020016100b2565b3480156100fc575f5ffd5b506100a861010b3660046103da565b6001600160a01b03165f9081526003602052604090205490565b348015610130575f5ffd5b506100a860025481565b348015610145575f5ffd5b506100d9610154366004610407565b610199565b6101616101c1565b005b34801561016e575f5ffd5b5061017761037a565b6040516100b2919061041e565b34801561018f575f5ffd5b506100a860015481565b600481815481106101a8575f80fd5b5f918252602090912001546001600160a01b0316905081565b600154341461020a5760405162461bcd60e51b815260206004820152601060248201526f496e636f727265637420474d2066656560801b60448201526064015b60405180910390fd5b5f80546040516001600160a01b039091169034908381818185875af1925050503d805f8114610254576040519150601f19603f3d011682016040523d82523d5f602084013e610259565b606091505b50509050806102a05760405162461bcd60e51b8152602060048201526013602482015272119959481d1c985b9cd9995c8819985a5b1959606a1b6044820152606401610201565b335f9081526003602052604081205490036102f757600480546001810182555f919091527f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19b0180546001600160a01b031916331790555b335f908152600360205260408120805460019290610316908490610469565b92505081905550600160025f82825461032f9190610469565b9091555050335f818152600360209081526040918290205491519182527f62894b2016aade70592cc64269c3a26dc6abb9ff47e766bd6b666c7f4d378ca1910160405180910390a250565b606060048054806020026020016040519081016040528092919081815260200182805480156103d057602002820191905f5260205f20905b81546001600160a01b031681526001909101906020018083116103b2575b5050505050905090565b5f602082840312156103ea575f5ffd5b81356001600160a01b0381168114610400575f5ffd5b9392505050565b5f60208284031215610417575f5ffd5b5035919050565b602080825282518282018190525f918401906040840190835b8181101561045e5783516001600160a01b0316835260209384019390920191600101610437565b509095945050505050565b8082018082111561048857634e487b7160e01b5f52601160045260245ffd5b9291505056fea26469706673582212201cbff4f6aaa5ed35ba428cc135caf452d0508bbeab73f481ab938f322966313464736f6c634300081e0033

Deployed Bytecode

0x608060405260043610610079575f3560e01c8063a2bdedf41161004c578063a2bdedf41461013a578063c0129d4314610159578063e2842d7914610163578063e3ea4c4d14610184575f5ffd5b80633c5827a91461007d57806346904840146100bb5780635efb0b17146100f1578063a29002ac14610125575b5f5ffd5b348015610088575f5ffd5b506100a86100973660046103da565b60036020525f908152604090205481565b6040519081526020015b60405180910390f35b3480156100c6575f5ffd5b505f546100d9906001600160a01b031681565b6040516001600160a01b0390911681526020016100b2565b3480156100fc575f5ffd5b506100a861010b3660046103da565b6001600160a01b03165f9081526003602052604090205490565b348015610130575f5ffd5b506100a860025481565b348015610145575f5ffd5b506100d9610154366004610407565b610199565b6101616101c1565b005b34801561016e575f5ffd5b5061017761037a565b6040516100b2919061041e565b34801561018f575f5ffd5b506100a860015481565b600481815481106101a8575f80fd5b5f918252602090912001546001600160a01b0316905081565b600154341461020a5760405162461bcd60e51b815260206004820152601060248201526f496e636f727265637420474d2066656560801b60448201526064015b60405180910390fd5b5f80546040516001600160a01b039091169034908381818185875af1925050503d805f8114610254576040519150601f19603f3d011682016040523d82523d5f602084013e610259565b606091505b50509050806102a05760405162461bcd60e51b8152602060048201526013602482015272119959481d1c985b9cd9995c8819985a5b1959606a1b6044820152606401610201565b335f9081526003602052604081205490036102f757600480546001810182555f919091527f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19b0180546001600160a01b031916331790555b335f908152600360205260408120805460019290610316908490610469565b92505081905550600160025f82825461032f9190610469565b9091555050335f818152600360209081526040918290205491519182527f62894b2016aade70592cc64269c3a26dc6abb9ff47e766bd6b666c7f4d378ca1910160405180910390a250565b606060048054806020026020016040519081016040528092919081815260200182805480156103d057602002820191905f5260205f20905b81546001600160a01b031681526001909101906020018083116103b2575b5050505050905090565b5f602082840312156103ea575f5ffd5b81356001600160a01b0381168114610400575f5ffd5b9392505050565b5f60208284031215610417575f5ffd5b5035919050565b602080825282518282018190525f918401906040840190835b8181101561045e5783516001600160a01b0316835260209384019390920191600101610437565b509095945050505050565b8082018082111561048857634e487b7160e01b5f52601160045260245ffd5b9291505056fea26469706673582212201cbff4f6aaa5ed35ba428cc135caf452d0508bbeab73f481ab938f322966313464736f6c634300081e0033

Deployed Bytecode Sourcemap

60:1047:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;235:42;;;;;;;;;;-1:-1:-1;235:42:0;;;;;:::i;:::-;;;;;;;;;;;;;;;;;451:25:1;;;439:2;424:18;235:42:0;;;;;;;;79:72;;;;;;;;;;-1:-1:-1;79:72:0;;;;-1:-1:-1;;;;;79:72:0;;;;;;-1:-1:-1;;;;;651:32:1;;;633:51;;621:2;606:18;79:72:0;487:203:1;993:111:0;;;;;;;;;;-1:-1:-1;993:111:0;;;;;:::i;:::-;-1:-1:-1;;;;;1083:13:0;1056:7;1083:13;;;:7;:13;;;;;;;993:111;205:23;;;;;;;;;;;;;;;;284:25;;;;;;;;;;-1:-1:-1;284:25:0;;;;;:::i;:::-;;:::i;381:498::-;;;:::i;:::-;;887:98;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;158:38::-;;;;;;;;;;;;;;;;284:25;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;284:25:0;;-1:-1:-1;284:25:0;:::o;381:498::-;444:6;;431:9;:19;423:48;;;;-1:-1:-1;;;423:48:0;;1724:2:1;423:48:0;;;1706:21:1;1763:2;1743:18;;;1736:30;-1:-1:-1;;;1782:18:1;;;1775:46;1838:18;;423:48:0;;;;;;;;;523:12;541;;:39;;-1:-1:-1;;;;;541:12:0;;;;566:9;;523:12;541:39;523:12;541:39;566:9;541:12;:39;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;522:58;;;599:7;591:39;;;;-1:-1:-1;;;591:39:0;;2279:2:1;591:39:0;;;2261:21:1;2318:2;2298:18;;;2291:30;-1:-1:-1;;;2337:18:1;;;2330:49;2396:18;;591:39:0;2077:343:1;591:39:0;686:10;678:19;;;;:7;:19;;;;;;:24;;674:82;;719:8;:25;;;;;;;-1:-1:-1;719:25:0;;;;;;;;-1:-1:-1;;;;;;719:25:0;733:10;719:25;;;674:82;776:10;768:19;;;;:7;:19;;;;;:24;;791:1;;768:19;:24;;791:1;;768:24;:::i;:::-;;;;;;;;815:1;803:8;;:13;;;;;;;:::i;:::-;;;;-1:-1:-1;;839:10:0;851:19;;;;:7;:19;;;;;;;;;;834:37;;451:25:1;;;834:37:0;;424:18:1;834:37:0;;;;;;;412:467;381:498::o;887:98::-;933:16;969:8;962:15;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;962:15:0;;;;;;;;;;;;;;;;;;;;;;;887:98;:::o;14:286:1:-;73:6;126:2;114:9;105:7;101:23;97:32;94:52;;;142:1;139;132:12;94:52;168:23;;-1:-1:-1;;;;;220:31:1;;210:42;;200:70;;266:1;263;256:12;200:70;289:5;14:286;-1:-1:-1;;;14:286:1:o;695:180::-;754:6;807:2;795:9;786:7;782:23;778:32;775:52;;;823:1;820;813:12;775:52;-1:-1:-1;846:23:1;;695:180;-1:-1:-1;695:180:1:o;880:637::-;1070:2;1082:21;;;1152:13;;1055:18;;;1174:22;;;1022:4;;1253:15;;;1227:2;1212:18;;;1022:4;1296:195;1310:6;1307:1;1304:13;1296:195;;;1375:13;;-1:-1:-1;;;;;1371:39:1;1359:52;;1440:2;1466:15;;;;1431:12;;;;1407:1;1325:9;1296:195;;;-1:-1:-1;1508:3:1;;880:637;-1:-1:-1;;;;;880:637:1:o;2425:222::-;2490:9;;;2511:10;;;2508:133;;;2563:10;2558:3;2554:20;2551:1;2544:31;2598:4;2595:1;2588:15;2626:4;2623:1;2616:15;2508:133;2425:222;;;;:::o

Swarm Source

ipfs://1cbff4f6aaa5ed35ba428cc135caf452d0508bbeab73f481ab938f3229663134

Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

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  ]
[ 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.