ETH Price: $2,866.16 (-2.56%)

Contract

0x2BBe51DC57C4c8D2395cf889EA612A5b33562219

Overview

ETH Balance

0.0001152 ETH

ETH Value

$0.33 (@ $2,866.16/ETH)

More Info

Private Name Tags

ContractCreator

Multichain Info

No addresses found
Transaction Hash
Block
From
To
On Chain GM385009842026-01-24 10:09:0342 hrs ago1769249343IN
0x2BBe51DC...b33562219
0.000018 ETH0.000000030.0006974
On Chain GM381821882026-01-20 17:35:475 days ago1768930547IN
0x2BBe51DC...b33562219
0.000018 ETH00.00000027
On Chain GM378285392026-01-16 15:21:389 days ago1768576898IN
0x2BBe51DC...b33562219
0.000018 ETH00.00000028
On Chain GM375622292026-01-13 13:23:0812 days ago1768310588IN
0x2BBe51DC...b33562219
0.000018 ETH00.00000035
On Chain GM373788112026-01-11 10:26:1014 days ago1768127170IN
0x2BBe51DC...b33562219
0.000018 ETH0.000000040.00100025
On Chain GM372359182026-01-09 18:44:3716 days ago1767984277IN
0x2BBe51DC...b33562219
0.000018 ETH0.000000040.00100025
On Chain GM370397412026-01-07 12:15:0018 days ago1767788100IN
0x2BBe51DC...b33562219
0.000018 ETH00.00000025
On Chain GM368951172026-01-05 20:04:3620 days ago1767643476IN
0x2BBe51DC...b33562219
0.000018 ETH00.00000035
On Chain GM367666292026-01-04 8:23:0821 days ago1767514988IN
0x2BBe51DC...b33562219
0.000018 ETH00.00000032
On Chain GM365977892026-01-02 9:29:0823 days ago1767346148IN
0x2BBe51DC...b33562219
0.000018 ETH00.00000035
On Chain GM364477862025-12-31 15:49:0525 days ago1767196145IN
0x2BBe51DC...b33562219
0.000018 ETH0.000000060.0013
On Chain GM362838382025-12-29 18:16:3727 days ago1767032197IN
0x2BBe51DC...b33562219
0.000018 ETH00.00000039
On Chain GM361090462025-12-27 17:43:2529 days ago1766857405IN
0x2BBe51DC...b33562219
0.000018 ETH00.00000036
On Chain GM359983682025-12-26 10:58:4730 days ago1766746727IN
0x2BBe51DC...b33562219
0.000018 ETH00.00000038
On Chain GM358984882025-12-25 7:14:0731 days ago1766646847IN
0x2BBe51DC...b33562219
0.000018 ETH00.00000031
On Chain GM358167042025-12-24 8:31:0332 days ago1766565063IN
0x2BBe51DC...b33562219
0.000018 ETH00.00000038
On Chain GM356592182025-12-22 12:46:1734 days ago1766407577IN
0x2BBe51DC...b33562219
0.000018 ETH00.00010031
On Chain GM355670722025-12-21 11:10:3135 days ago1766315431IN
0x2BBe51DC...b33562219
0.000018 ETH00.00000036
On Chain GM354768512025-12-20 10:06:5036 days ago1766225210IN
0x2BBe51DC...b33562219
0.000018 ETH00.00000131
On Chain GM353930242025-12-19 10:49:4337 days ago1766141383IN
0x2BBe51DC...b33562219
0.000018 ETH00.00000031
On Chain GM353023532025-12-18 9:38:3238 days ago1766050712IN
0x2BBe51DC...b33562219
0.000018 ETH00.0000003
On Chain GM352338132025-12-17 14:36:1239 days ago1765982172IN
0x2BBe51DC...b33562219
0.000018 ETH0.000000040.00100031
On Chain GM351171362025-12-16 6:11:3540 days ago1765865495IN
0x2BBe51DC...b33562219
0.000018 ETH00.00000039
On Chain GM350433452025-12-15 9:41:4441 days ago1765791704IN
0x2BBe51DC...b33562219
0.000018 ETH00.00000384
On Chain GM349714482025-12-14 13:43:2742 days ago1765719807IN
0x2BBe51DC...b33562219
0.000018 ETH00.00000045
View all transactions

Latest 25 internal transactions (View All)

Advanced mode:
Parent Transaction Hash Block From To
385009842026-01-24 10:09:0342 hrs ago1769249343
0x2BBe51DC...b33562219
0.0000144 ETH
381821882026-01-20 17:35:475 days ago1768930547
0x2BBe51DC...b33562219
0.0000144 ETH
378285392026-01-16 15:21:389 days ago1768576898
0x2BBe51DC...b33562219
0.0000144 ETH
375622292026-01-13 13:23:0812 days ago1768310588
0x2BBe51DC...b33562219
0.0000144 ETH
373788112026-01-11 10:26:1014 days ago1768127170
0x2BBe51DC...b33562219
0.0000144 ETH
372359182026-01-09 18:44:3716 days ago1767984277
0x2BBe51DC...b33562219
0.0000144 ETH
370397412026-01-07 12:15:0018 days ago1767788100
0x2BBe51DC...b33562219
0.0000144 ETH
368951172026-01-05 20:04:3620 days ago1767643476
0x2BBe51DC...b33562219
0.0000144 ETH
367666292026-01-04 8:23:0821 days ago1767514988
0x2BBe51DC...b33562219
0.0000144 ETH
365977892026-01-02 9:29:0823 days ago1767346148
0x2BBe51DC...b33562219
0.0000144 ETH
364477862025-12-31 15:49:0525 days ago1767196145
0x2BBe51DC...b33562219
0.0000144 ETH
362838382025-12-29 18:16:3727 days ago1767032197
0x2BBe51DC...b33562219
0.0000144 ETH
361090462025-12-27 17:43:2529 days ago1766857405
0x2BBe51DC...b33562219
0.0000144 ETH
359983682025-12-26 10:58:4730 days ago1766746727
0x2BBe51DC...b33562219
0.0000144 ETH
358984882025-12-25 7:14:0731 days ago1766646847
0x2BBe51DC...b33562219
0.0000144 ETH
358167042025-12-24 8:31:0332 days ago1766565063
0x2BBe51DC...b33562219
0.0000144 ETH
356592182025-12-22 12:46:1734 days ago1766407577
0x2BBe51DC...b33562219
0.0000144 ETH
355670722025-12-21 11:10:3135 days ago1766315431
0x2BBe51DC...b33562219
0.0000144 ETH
354768512025-12-20 10:06:5036 days ago1766225210
0x2BBe51DC...b33562219
0.0000144 ETH
353930242025-12-19 10:49:4337 days ago1766141383
0x2BBe51DC...b33562219
0.0000144 ETH
353023532025-12-18 9:38:3238 days ago1766050712
0x2BBe51DC...b33562219
0.0000144 ETH
352338132025-12-17 14:36:1239 days ago1765982172
0x2BBe51DC...b33562219
0.0000144 ETH
351171362025-12-16 6:11:3540 days ago1765865495
0x2BBe51DC...b33562219
0.0000144 ETH
350433452025-12-15 9:41:4441 days ago1765791704
0x2BBe51DC...b33562219
0.0000144 ETH
349714482025-12-14 13:43:2742 days ago1765719807
0x2BBe51DC...b33562219
0.0000144 ETH
View All Internal Transactions

Cross-Chain Transactions
Loading...
Loading

Minimal Proxy Contract for 0xc6781ee67cc92569a7790d95d3a55750f221f6f3

Contract Name:
GmBoost

Compiler Version
v0.8.30+commit.73712a01

Optimization Enabled:
Yes with 200 runs

Other Settings:
paris EvmVersion

Contract Source Code (Solidity Standard Json-Input format)

// SPDX-License-Identifier: MIT
pragma solidity 0.8.30;

import {IFeeManager} from "./IFeeManager.sol";
import {ReentrancyGuard} from "@openzeppelin/contracts/utils/ReentrancyGuard.sol";

/// @title GmBoost - Per-user GM contract (clone) that accepts ETH, splits value,
///         forwards platform share immediately, and accrues owner share for withdrawal.
/// @author GmBoost Team
/// @notice Deploy via Factory as an ERC-1167 minimal proxy pointing to this implementation.
contract GmBoost is ReentrancyGuard {
    // -------------------------- Custom Errors --------------------------
    error AlreadyInitialized();
    error ZeroAddress();
    error NotOwner();
    error InsufficientEth();
    error TransferFailed();
    error UnauthorizedCaller();
    error NothingToWithdraw();

    // ---------------------------- Storage ------------------------------
    /// @notice The user who owns this GM contract.
    address public owner;
    /// @notice Address of FeeManager providing config.
    address public feeManager;
    /// @notice Factory that deployed this implementation.
    address public immutable FACTORY;
    uint16 private constant _BPS_DENOMINATOR = 10_000;
    bool private _initialized;   // One-time initializer guard

    // ---------------------------- Events -------------------------------
    /// @notice Emitted whenever a GM is sent on-chain.
    /// @param sender        The caller who sent the GM (pays msg.value)
    /// @param value         The total ETH sent with the call (tips included)
    /// @param requiredWei   The required minimum at the time of call (from FeeManager)
    /// @param platformShare The amount forwarded to the platform treasury
    /// @param ownerShare    The amount retained in this contract for the owner
    event OnChainGM(
        address indexed sender,
        uint256 value,
        uint256 requiredWei,
        uint256 platformShare,
        uint256 ownerShare
    ); // solhint-disable-line gas-indexed-events

    /// @notice Emitted when owner withdraws accumulated funds
    /// @param owner Address of the owner who withdrew
    /// @param amount Amount withdrawn in wei
    event OwnerWithdrawn(address indexed owner, uint256 amount); // solhint-disable-line gas-indexed-events

    // -------------------------- Constructor ----------------------------
    /// @notice Locks the implementation contract and records the factory address.
    /// @dev Clones use their own storage, so this only affects the implementation.
    ///      The factory address is used to authorize clone initialization.
    /// @param factory_ The address of the GmBoostFactory that will create clones
    constructor(address factory_) {
        if (factory_ == address(0)) revert ZeroAddress();
        _initialized = true;
        FACTORY = factory_;
    }

    // --------------------------- Initializer ---------------------------
    /// @notice Must be called exactly once by the Factory right after cloning.
    /// @dev Custom initialization guard (equivalent to OpenZeppelin Initializable):
    ///      - Implementation locked in constructor (prevents initialization attack on implementation)
    ///      - _initialized flag prevents double initialization on clones
    ///      - Factory-only authorization provides ADDITIONAL protection beyond standard OZ pattern
    ///      - Only the factory can initialize clones to prevent unauthorized deployments
    ///        that could bypass deployment fees or use malicious FeeManager contracts
    ///      - No external dependencies, lower gas costs than inherited Initializable
    /// @param owner_ Address of the contract owner
    /// @param feeManager_ Address of the FeeManager contract
    function initialize(address owner_, address feeManager_) external {
        if (msg.sender != FACTORY) revert UnauthorizedCaller();
        if (_initialized) revert AlreadyInitialized();
        if (owner_ == address(0) || feeManager_ == address(0)) revert ZeroAddress();
        owner = owner_;
        feeManager = feeManager_;
        _initialized = true;
    }

    // --------------------------- Core Logic ----------------------------
    /// @notice Send a GM. Requires at least the configured ETH fee; tips allowed.
    /// @dev No reentrancy guard needed - follows CEI pattern strictly:
    ///      1. Checks (fee validation)
    ///      2. Effects (state is already finalized before external call)
    ///      3. Interactions (external call to feeRecipient)
    ///      Reentrancy cannot exploit as no state writes occur after the call.
    /// Splits full msg.value into platformShare (forwarded now) and ownerShare (retained).
    function onChainGM() external payable {
        // 1) Read config from FeeManager (single STATICCALL)
        (uint256 requiredWei, uint16 ownerShareBps, address feeRecipient) =
            IFeeManager(feeManager).getConfig();

        // Extra safety: feeRecipient should never be zero (guarded in FeeManager) but validate here
        if (feeRecipient == address(0)) revert ZeroAddress();

        // 2) Enforce minimum fee (tips allowed)
        if (msg.value < requiredWei) revert InsufficientEth();

        // 3) Compute split
        //    ownerShare = floor(msg.value * bps / 10_000)
        uint256 ownerShare = (msg.value * ownerShareBps) / _BPS_DENOMINATOR;
        uint256 platformShare = msg.value - ownerShare;

        // 4) Forward platform share now (single external call)
        if (platformShare != 0) {
            // Safe: feeRecipient from FeeManager (Safe multisig controlled, not user input)
            // CEI pattern enforced, explicit success check, no state writes after external call
            (bool ok, ) = payable(feeRecipient).call{value: platformShare}("");
            if (!ok) revert TransferFailed();
        }

        // 5) Owner share is intentionally left in this contract (no transfer here)

        // 6) Emit event (transparent on-chain receipt)
        emit OnChainGM(msg.sender, msg.value, requiredWei, platformShare, ownerShare);
    }

    /// @notice Owner withdraws entire accrued balance (pull model).
    function withdrawOwner() external nonReentrant {
        if (msg.sender != owner) revert NotOwner();
        uint256 bal = address(this).balance;
        if (bal == 0) revert NothingToWithdraw();
        // Safe: owner withdrawing to self (onlyOwner check above, nonReentrant guard on function)
        // ReentrancyGuard + owner validation + balance check before external call
        (bool ok, ) = payable(owner).call{value: bal}("");
        if (!ok) revert TransferFailed();
        emit OwnerWithdrawn(owner, bal);
    }

    // ------------------------- Receive Fallback ------------------------
    /// @notice Accepts ETH sent directly (counted toward owner's balance).
    receive() external payable {}
}

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.1.0) (utils/ReentrancyGuard.sol)

pragma solidity ^0.8.20;

/**
 * @dev Contract module that helps prevent reentrant calls to a function.
 *
 * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier
 * available, which can be applied to functions to make sure there are no nested
 * (reentrant) calls to them.
 *
 * Note that because there is a single `nonReentrant` guard, functions marked as
 * `nonReentrant` may not call one another. This can be worked around by making
 * those functions `private`, and then adding `external` `nonReentrant` entry
 * points to them.
 *
 * TIP: If EIP-1153 (transient storage) is available on the chain you're deploying at,
 * consider using {ReentrancyGuardTransient} instead.
 *
 * TIP: If you would like to learn more about reentrancy and alternative ways
 * to protect against it, check out our blog post
 * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul].
 */
abstract contract ReentrancyGuard {
    // Booleans are more expensive than uint256 or any type that takes up a full
    // word because each write operation emits an extra SLOAD to first read the
    // slot's contents, replace the bits taken up by the boolean, and then write
    // back. This is the compiler's defense against contract upgrades and
    // pointer aliasing, and it cannot be disabled.

    // The values being non-zero value makes deployment a bit more expensive,
    // but in exchange the refund on every call to nonReentrant will be lower in
    // amount. Since refunds are capped to a percentage of the total
    // transaction's gas, it is best to keep them low in cases like this one, to
    // increase the likelihood of the full refund coming into effect.
    uint256 private constant NOT_ENTERED = 1;
    uint256 private constant ENTERED = 2;

    uint256 private _status;

    /**
     * @dev Unauthorized reentrant call.
     */
    error ReentrancyGuardReentrantCall();

    constructor() {
        _status = NOT_ENTERED;
    }

    /**
     * @dev Prevents a contract from calling itself, directly or indirectly.
     * Calling a `nonReentrant` function from another `nonReentrant`
     * function is not supported. It is possible to prevent this from happening
     * by making the `nonReentrant` function external, and making it call a
     * `private` function that does the actual work.
     */
    modifier nonReentrant() {
        _nonReentrantBefore();
        _;
        _nonReentrantAfter();
    }

    function _nonReentrantBefore() private {
        // On the first call to nonReentrant, _status will be NOT_ENTERED
        if (_status == ENTERED) {
            revert ReentrancyGuardReentrantCall();
        }

        // Any calls to nonReentrant after this point will fail
        _status = ENTERED;
    }

    function _nonReentrantAfter() private {
        // By storing the original value once again, a refund is triggered (see
        // https://eips.ethereum.org/EIPS/eip-2200)
        _status = NOT_ENTERED;
    }

    /**
     * @dev Returns true if the reentrancy guard is currently set to "entered", which indicates there is a
     * `nonReentrant` function in the call stack.
     */
    function _reentrancyGuardEntered() internal view returns (bool) {
        return _status == ENTERED;
    }
}

// SPDX-License-Identifier: MIT
pragma solidity 0.8.30;

/// @title IFeeManager - Interface for reading the current GM payout/fee config
/// @author GmBoost Team
/// @notice Exposes read-only accessors for GM fee and deployment settings.
interface IFeeManager {
    /// @notice Returns the current configuration used by GM contracts.
    /// @return ethFeeWei  The minimum ETH required to call onChainGM (tips allowed).
    /// @return ownerShareBps  The owner's share in basis points (0..10_000).
    /// @return feeRecipient  The platform treasury receiving the platform share.
    function getConfig()
        external
        view
        returns (uint256 ethFeeWei, uint16 ownerShareBps, address feeRecipient);

    /// @notice Returns deployment configuration used by the Factory.
    /// @return deployFeeWei  The ETH fee required to deploy a GM contract (tips allowed).
    /// @return feeRecipient  The platform treasury receiving deployment fees.
    function getDeployConfig()
        external
        view
        returns (uint256 deployFeeWei, address feeRecipient);
}

Settings
{
  "optimizer": {
    "enabled": true,
    "runs": 200
  },
  "evmVersion": "paris",
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  },
  "metadata": {
    "useLiteralContent": true
  }
}

Contract ABI

API
[{"inputs":[{"internalType":"address","name":"factory_","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"AlreadyInitialized","type":"error"},{"inputs":[],"name":"InsufficientEth","type":"error"},{"inputs":[],"name":"NotOwner","type":"error"},{"inputs":[],"name":"NothingToWithdraw","type":"error"},{"inputs":[],"name":"ReentrancyGuardReentrantCall","type":"error"},{"inputs":[],"name":"TransferFailed","type":"error"},{"inputs":[],"name":"UnauthorizedCaller","type":"error"},{"inputs":[],"name":"ZeroAddress","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"sender","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"requiredWei","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"platformShare","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"ownerShare","type":"uint256"}],"name":"OnChainGM","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"OwnerWithdrawn","type":"event"},{"inputs":[],"name":"FACTORY","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"feeManager","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner_","type":"address"},{"internalType":"address","name":"feeManager_","type":"address"}],"name":"initialize","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"onChainGM","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdrawOwner","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]

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.