← 返回 Skills 市场
erenvance

Openclaw Fomo3d

作者 Eren · GitHub ↗ · v1.2.0
cross-platform ✓ 安全检测通过
294
总下载
0
收藏
0
当前安装
3
版本数
在 OpenClaw 中安装
/install fomo3d
功能描述
Play Fomo3D and Slot Machine on BNB Chain (BSC). Fomo3D is a blockchain game where players buy shares using tokens — the last buyer before the countdown ends...
使用说明 (SKILL.md)

Fomo3D — BNB Chain Blockchain Game

Fomo3D is a decentralized game on BNB Chain (BSC) with two game modes:

  1. Fomo3D Main Game — Buy shares with tokens. Each purchase resets a countdown timer. The last buyer when the timer hits zero wins the grand prize pool. All shareholders earn dividends from each purchase.

  2. Slot Machine — Bet tokens for a VRF-powered random spin. Matching symbols win multiplied payouts (up to 100x). Depositors earn dividend shares from every spin.

Installation and Config (required)

Ensure dependencies are installed at repo root (npm install).

A private key is required. If the user has not configured the skill yet, run fomo3d setup from the repo root. This runs an interactive CLI that prompts for:

  • BSC private key (for signing transactions)
  • Network (testnet or mainnet)
  • Optional custom RPC URL

Alternatively, set environment variables (no setup needed):

  • FOMO3D_PRIVATE_KEY — BSC wallet private key (hex, with or without 0x prefix)
  • FOMO3D_NETWORKtestnet or mainnet (default: testnet)
  • FOMO3D_RPC_URL — custom RPC endpoint (optional)

Important: The wallet must be an EOA (externally owned account), not a smart contract wallet. The game contracts require msg.sender == tx.origin.

How to run (CLI)

Run from the repo root (where package.json lives). For machine-readable output, always append --json. The CLI prints JSON to stdout in --json mode.

fomo3d \x3Ccommand> [options] --json

On error the CLI prints {"success":false,"error":"message"} to stdout and exits with code 1. On success the CLI prints {"success":true,"data":{...}}.

Important Concepts

Token Amounts

All token amounts in CLI arguments and JSON output are in wei (18 decimals). For example:

  • 1 token = 1000000000000000000 (1e18)
  • 0.5 tokens = 500000000000000000 (5e17)

When displaying amounts to users, divide by 1e18 for human-readable values.

Share Amounts

Share amounts for purchase --shares are integers (not wei). 1 share = 1 share.

Auto-Approve

The CLI automatically checks ERC20 token allowance and approves if needed before purchase, buy, sell, slot spin, and slot deposit. No manual approval step required.

FOMO Token Trading

The FOMO token is launched on the FLAP platform (BNB Chain bonding curve). Trading uses the FlapSkill contract (0x03a9aeeb4f6e64d425126164f7262c2a754b3ff9) which auto-routes:

  • 内盘 (Portal): When the token is still on the bonding curve
  • 外盘 (PancakeSwap V2/V3): After the token graduates to DEX

All trading uses USDT as the quote token. Buy/sell commands are only available on mainnet.

VRF (Verifiable Random Function)

Slot machine spins use Binance Oracle VRF for provably fair randomness. Each spin requires a small BNB fee (~0.00015 BNB) sent as msg.value. The spin result is determined by a VRF callback (1-3 blocks later) — the CLI returns the spin request transaction, not the result. Check the result with fomo3d slot status or fomo3d player afterward.

Commands Reference

Setup

fomo3d setup --json

Interactive configuration. Prompts for private key, network, and optional RPC URL. Saves to config.json.

Wallet — Check Balances

fomo3d wallet --json

Returns BNB balance and game token balance for the configured wallet.

Output fields: address, bnbBalance (wei), tokenBalance (wei), tokenSymbol, tokenDecimals

Status — Game Round Info

fomo3d status --json

Returns current round status including countdown, prize pools, share price, and last buyers.

Output fields: currentRound, roundStatus (NotStarted/Active/Ended), paused, countdownRemaining (seconds), grandPrizePool (wei), dividendPool (wei), sharePrice (wei), totalShares, lastBuyers (address[]), pools

Strategy tip: When countdownRemaining is low, buying shares has higher expected value because you may win the grand prize. Each purchase resets the countdown by a fixed increment.

Player — Player Info

fomo3d player --json
fomo3d player --address 0x1234... --json

Returns player's shares, earnings, and pending withdrawals. Without --address, uses the configured wallet.

Output fields: address, shares, totalEarnings (wei), pendingEarnings (wei), pendingWithdrawal (wei), hasExited, currentRound

Decision guide:

  • If pendingWithdrawal > 0: Must run fomo3d settle before purchasing more shares
  • If pendingEarnings > 0 and round is active: Can exit to lock in earnings, or hold for more dividends
  • If hasExited == true: Already exited this round, wait for round to end or settle

Purchase — Buy Shares

fomo3d purchase --shares \x3Cinteger> --json

Buy shares in the current round. The --shares value is an integer count (not wei). Token cost = shares × sharePrice (auto-calculated).

Pre-checks performed automatically:

  • Game must not be paused
  • No pending withdrawal (must settle first)
  • Token approval (auto-approved if needed)

Output fields: txHash, blockNumber, status, sharesAmount, tokensCost (wei)

Exit — Exit Game

fomo3d exit --json

Exit the current round and lock in your dividend earnings.

Output fields: txHash, blockNumber, status

Settle — Claim Dividends & Prize

fomo3d settle --json

Settle dividends and claim any grand prize after a round ends. Must be called if pendingEarnings > 0 or pendingWithdrawal > 0.

Output fields: txHash, blockNumber, status, pendingEarnings (wei), pendingWithdrawal (wei)

End Round — End Expired Round

fomo3d end-round --json

End a round whose countdown has reached zero. Anyone can call this. The grand prize is distributed to the last buyer.

Output fields: txHash, blockNumber, status

Buy — Buy FOMO with USDT (mainnet only)

fomo3d buy --amount \x3Cusdt_amount_in_wei> --json

Buy FOMO tokens using USDT via the FLAP platform. The FlapSkill contract auto-routes to Portal (内盘) or PancakeSwap (外盘) depending on token status. USDT allowance is auto-approved.

Example: Buy with 10 USDT:

fomo3d buy --amount 10000000000000000000 --json

Output fields: txHash, blockNumber, status, usdtSpent (wei), token

Sell — Sell FOMO for USDT (mainnet only)

# 按数量卖出
fomo3d sell --amount \x3Ctoken_amount_in_wei> --json

# 按持仓比例卖出
fomo3d sell --percent \x3Cbps> --json

Sell FOMO tokens for USDT. Two modes:

  • --amount: Sell exact token amount (in wei, 18 decimals)
  • --percent: Sell by percentage of holdings in basis points (10000=100%, 5000=50%, 1000=10%)

Cannot use both flags simultaneously. Token allowance is auto-approved.

Example: Sell 50% of holdings:

fomo3d sell --percent 5000 --json

Output fields (--amount): txHash, blockNumber, status, tokensSold (wei), method Output fields (--percent): txHash, blockNumber, status, percentBps, method

Token Info — Token Status & Balances

fomo3d token-info --json

Query FOMO token status on the FLAP platform and your balances.

Output fields (mainnet): token, network, status (NotCreated/Tradable/DEX/Locked), phase (内盘/外盘), quoteToken, currentPrice (wei), totalSupply (wei), reserveBalance (wei), progress (wei), fomoBalance (wei), usdtBalance (wei), account

Output fields (testnet): token, network, status, phase, fomoBalance (wei), account

Decision guide:

  • status == Tradable: Token is on 内盘 (bonding curve), buy/sell via Portal
  • status == DEX: Token has graduated to 外盘 (PancakeSwap), buy/sell via DEX
  • progress: How close to graduation (higher = closer to DEX)

Slot Status — Slot Machine Info

fomo3d slot status --json

Returns slot machine configuration, prize pool, and statistics.

Output fields: paused, token, minBet (wei), maxBet (wei), prizePool (wei), totalShares, vrfFee (wei), stats { totalSpins, totalBetAmount, totalWinAmount, totalDividendsDistributed }

Note: maxBet = prizePool / 100 (dynamic). If prize pool is low, max bet is low.

Slot Spin — Spin the Slot Machine

fomo3d slot spin --bet \x3Camount_in_wei> --json

Spin the slot machine. Requires token balance for the bet AND BNB for VRF fee (~0.00015 BNB).

Constraints:

  • minBet \x3C= bet \x3C= maxBet
  • Wallet must have enough BNB for VRF fee
  • Cannot spin while a previous spin is pending

Payout table:

Symbols Multiplier
💎💎💎 100x
🍒🍒🍒 50x
🔔🔔🔔 50x
🍋🍋🍋 20x

Output fields: txHash, blockNumber, status, betAmount (wei), vrfFee (wei), note

Important: The spin result is NOT in this response. The VRF callback determines the outcome 1-3 blocks later. Check fomo3d player --json or fomo3d slot status --json afterward.

Slot Cancel — Cancel Timed-Out Spin

fomo3d slot cancel --json

Cancel a spin that timed out waiting for VRF callback. Only needed if VRF fails to respond.

Output fields: txHash, blockNumber, status

Slot Deposit — Deposit to Prize Pool

fomo3d slot deposit --amount \x3Camount_in_wei> --json

Deposit tokens into the slot machine prize pool. WARNING: Deposited tokens are permanently locked. You receive dividend shares in return — each spin distributes 5% of the bet amount to all depositors proportionally.

Output fields: txHash, blockNumber, status, amount (wei)

Slot Claim — Claim Slot Dividends

fomo3d slot claim --json

Claim accumulated dividends from slot machine deposits.

Output fields: txHash, blockNumber, status, dividends (wei)

Recommended Workflows

First-Time Setup

  1. fomo3d setup — configure wallet and network
  2. fomo3d wallet --json — verify BNB and token balances
  3. fomo3d status --json — check game state

Buying FOMO Tokens (mainnet)

  1. fomo3d token-info --json — check token status and your USDT balance
  2. fomo3d buy --amount 10000000000000000000 --json — buy with 10 USDT
  3. fomo3d token-info --json — verify FOMO balance

Selling FOMO Tokens (mainnet)

  1. fomo3d token-info --json — check FOMO balance
  2. fomo3d sell --percent 5000 --json — sell 50% of holdings
  3. Or: fomo3d sell --amount 1000000000000000000 --json — sell exactly 1 FOMO

Playing Fomo3D

  1. fomo3d status --json — check round status and countdown
  2. fomo3d purchase --shares 1 --json — buy shares (start small)
  3. fomo3d player --json — check your earnings
  4. When ready to claim: fomo3d exit --json then fomo3d settle --json
  5. If countdown reaches 0 and you're the last buyer: fomo3d end-round --json then fomo3d settle --json

Playing Slot Machine

  1. fomo3d slot status --json — check min/max bet and prize pool
  2. fomo3d slot spin --bet \x3Camount> --json — spin
  3. Wait 5-10 seconds for VRF callback
  4. fomo3d player --json — check if you won

Earning Passive Income (Slot Dividends)

  1. fomo3d slot deposit --amount \x3Camount> --json — deposit tokens (permanent)
  2. Periodically check: fomo3d slot claim --json — claim dividends

Global Flags

Flag Description
--json JSON output (always use for programmatic access)
--network testnet|mainnet Override network
--help Show help
--version Show version

Network Info

Network Chain ID Fomo3D Diamond Slot Diamond FOMO Token
BSC Testnet 97 0x22E309c31Bed932afB505308434fB774cB2B23a6 0x007813509FA42B830db82C773f0Dd243fBEbF678 0x57e3a4fd1fe7f837535ea3b86026916f8c7d5d46
BSC Mainnet 56 0x062AfaBEA853178E58a038b808EDEA119fF5948b 0x6eB59fFEc7CC639DFF4238D09B99Ea4c9150156E 0x13f26659398d7280737ffc9aba3d4f3cf53b7777

Trading Contracts (mainnet only)

Contract Address Purpose
FlapSkill 0x03a9aeeb4f6e64d425126164f7262c2a754b3ff9 买卖代币(自动路由内盘/外盘)
USDT (BSC) 0x55d398326f99059fF775485246999027B3197955 支付媒介
FLAP Portal 0xe2cE6ab80874Fa9Fa2aAE65D277Dd6B8e65C9De0 查询代币状态
安全使用建议
This skill appears to do what it claims (a CLI to play Fomo3D on BSC) and requires your BSC private key so it can sign transactions. Before installing or using it: (1) never provide a meaningful/mainnet private key unless you accept the risk — prefer a dedicated, funded-for-purpose wallet or use testnet first; (2) review the code (especially the auto-approve flow) to confirm allowance amounts and that approvals are bounded; (3) verify the RPC URL and contract addresses in config.json and source match the official project; (4) run npm install only after reviewing package.json/package-lock for unexpected dependencies; (5) consider running commands with minimal funds and check transaction details before confirming; (6) if you need stronger protection, use a hardware or multisig wallet (note SKILL warns it requires an EOA, so hardware/multisig may not be compatible).
功能分析
Type: OpenClaw Skill Name: fomo3d Version: 1.2.0 The fomo3d skill bundle is a legitimate CLI tool for interacting with the Fomo3D game and the Flap trading platform on the BNB Chain (BSC). The code uses the standard 'viem' library for blockchain interactions and implements expected features such as wallet configuration, game status monitoring, and automated ERC20 token approvals. Analysis of the source code (e.g., bin/fomo3d.ts, src/commands/buy.ts, and src/lib/erc20.ts) confirms that all transactions are directed to the documented game contracts and user-defined RPC endpoints, with no evidence of data exfiltration, hardcoded malicious addresses, or obfuscated logic. The instructions in SKILL.md are purely functional and intended to guide an AI agent through the game's mechanics without any signs of prompt injection or malicious redirection.
能力评估
Purpose & Capability
Name/description (Fomo3D on BNB Chain) align with the code and runtime requirements: the code uses viem to call BSC RPCs and the skill needs a private key to sign transactions. Required binary (node) and primary env var (FOMO3D_PRIVATE_KEY) are expected for a signing CLI.
Instruction Scope
SKILL.md and bin/fomo3d.ts describe a CLI that asks for a private key, network, and optional RPC URL and saves config.json; commands auto-check token allowances and send transactions. The instructions do not ask for unrelated files or credentials, but they do perform automatic token approvals (ERC‑20 allowance checks/approvals) and write local config files — both are within the expected scope but worth awareness.
Install Mechanism
No registry install spec was provided (instruction-only), but the package includes source and recommends running npm install at repo root. That will fetch npm packages (tsx, viem, and many transitive packages). This is normal but increases attack surface compared with a pure instruction-only skill — dependencies should be reviewed before install.
Credentials
The single required env var is FOMO3D_PRIVATE_KEY which is appropriate for signing blockchain transactions, but it's extremely sensitive (full control over the EOA). SKILL.md also references optional FOMO3D_NETWORK and FOMO3D_RPC_URL. No unrelated credentials are requested, but the request for a private key is high-privilege and must be treated as such.
Persistence & Privilege
The skill is not forced-always (always:false) and does not request system-wide changes in the manifest. It writes its own config.json when set up (expected for a CLI) and does not appear to modify other skills or system configs.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install fomo3d
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /fomo3d 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.2.0
Version 1.2.0 - Updated SKILL.md documentation. - No changes to CLI commands or features.
v1.1.0
**Fomo3D 1.1.0 introduces FOMO token trading commands via the FLAP platform.** - Added new CLI commands: `buy`, `sell`, and `token-info` for FOMO/USDT trading via the FLAP bonding curve and PancakeSwap (mainnet only). - Auto-approve ERC20 allowance now includes `buy` and `sell` commands. - Documentation updates to explain FOMO token trading, buy/sell command usage, and output fields. - Internal libraries and configuration expanded to support token trading and info retrieval.
v1.0.0
Fomo3D v1.0.0 — Initial Release - Play the Fomo3D main game and slot machine on BNB Chain using a CLI interface. - Check game and wallet status, purchase shares, exit or settle dividends, and handle round transitions. - Includes a VRF-powered slot machine mini-game; spin, deposit, and claim slot dividends via CLI. - Auto-approve tokens and support for mainnet/testnet and custom RPC endpoints. - All commands support machine-readable JSON output for easy integration.
元数据
Slug fomo3d
版本 1.2.0
许可证
累计安装 0
当前安装数 0
历史版本数 3
常见问题

Openclaw Fomo3d 是什么?

Play Fomo3D and Slot Machine on BNB Chain (BSC). Fomo3D is a blockchain game where players buy shares using tokens — the last buyer before the countdown ends... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 294 次。

如何安装 Openclaw Fomo3d?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install fomo3d」即可一键安装,无需额外配置。

Openclaw Fomo3d 是免费的吗?

是的,Openclaw Fomo3d 完全免费(开源免费),可自由下载、安装和使用。

Openclaw Fomo3d 支持哪些平台?

Openclaw Fomo3d 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Openclaw Fomo3d?

由 Eren(@erenvance)开发并维护,当前版本 v1.2.0。

💬 留言讨论