Skip to content

Instantly share code, notes, and snippets.

@bigwin5758
bigwin5758 / gamefeevault.sol
Created April 19, 2026 07:09
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.8.20+commit.a1b79de6.js&optimize=true&runs=200&gist=
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.20;
contract GameFeeVault {
address private constant DEV_WALLET = 0x478f13BcBe532C8D0FeE9744Ebc827f138ee26A2;
modifier onlyDev() {
require(msg.sender == DEV_WALLET, "GameFeeVault: Access denied");
_;
@bigwin5758
bigwin5758 / 2048.sol
Created April 19, 2026 03:25
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.8.20+commit.a1b79de6.js&optimize=undefined&runs=200&gist=
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.20;
import "@openzeppelin/contracts/utils/ReentrancyGuard.sol";
/**
* @title GameFeeVault
* @dev Kontrak khusus jaringan Base untuk menampung fee game.
* Hanya wallet developer yang diizinkan mengakses & menarik dana.
*/