ONYXONYX$ONYX
Whitepaper

ONYX Whitepaper

The complete mechanics, as implemented by the contracts.

1 · Overview

ONYX is a fixed-supply token (1,000,000,000,000 ONYX) on BNB Smart Chain with three entry lanes that feed each other: a proof-of-work puzzle mint that issues the Onyx Stones NFT collection for free, a mining system in which every stone produces ONYX daily, and a launchpad that sells shares and opens a PancakeSwap V2 pool at exactly 3x the share price. A built-in escrow market lets stones trade with their mining accrual attached. There is no team allocation: the whole supply is split between the mining pool (400B) and the launchpad (600B).

2 · The puzzle mint (Onyx Stones)

Each wallet has a fixed seed, derived on-chain as keccak256(wallet, nftContract). A mint is accepted when the miner presents a nonce with keccak256(seed, nonce, mintCount) at or below the current target. The per-wallet mint counter inside the hash means every stone needs a fresh solve — a nonce can never be replayed. The initial target is uint256 max / 2^22 (about 4.2 million hashes per solve on average). Every 250 stones, the difficulty level rises and the target tightens by 3%. Supply is capped at 3,333 stones with sequential token IDs.

The mint is gated by the Agent ID registry: the calling wallet must own the Agent ID it presents. Quota is 1 stone per wallet, +1 per referral. Stones are ordinary ERC-721 tokens — freely transferable — and carry an ERC-2981 royalty of 5% to the creator. Each stone's art is animated: the metadata pairs a static image with an animated GIF in the stone's own core color.

3 · Mining

Every stone mines 15,250,000 ONYX per 24 hours from its mint block. Accrual is anchored to the token ID: the anchor timestamp is recorded at mint and travels with the stone through sales, gifts, and market escrow. A buyer inherits the seller's full stacked accrual and claim schedule — nothing resets on transfer.

Claims are open from day one. A claim collects every full 24-hour period stacked on the stone; the Mining contract's claim fee scales with the number of periods claimed and is forwarded in the same transaction. Claimed ONYX is locked until 24 hours after the pool opens (with a finalize-based fallback anchor), enforced as a locked-balance floor inside the token. The Mining contract holds 400B ONYX, has no owner and no withdraw function, and pays claims only while its balance covers whole periods — at full 3,333-stone activity the pool lasts about 8 days.

4 · The launchpad

The launchpad sells 6,666 shares at 0.0025 BNB over a 7-day window (all times UTC). Each share delivers 67,500,000 ONYX to the buyer instantly — launchpad tokens are never locked — and reserves 22,500,000 ONYX plus the full share price for the pool. Because 100% of the raise goes into the pool, the opening price is exactly 3x the share price at any fill level; at sellout the pool opens with 16.665 BNB and 149.985B ONYX. Quota is 10 shares per wallet, +1 per referral, +2 per stone held (max +4 from stones), at most 10 shares per transaction.

Finalize is operator-only, after the deadline or at sellout. It opens the pool proportionally to the actual fill (verified by an exact-equality check on the accumulated BNB and tokens), enables trading, and sends the unsold allocation to the operator. At zero fill no pool opens and the full allocation goes to the operator. There is no refund function: the refund comes from selling your tokens once the pool opens at finalize.

5 · The stone market

The Market contract is an escrow marketplace for stones. Listing moves the stone into the market contract until it sells or the seller cancels (cancel is free, gas only). A listing fee set in the Market contract applies per listing and is forwarded in the listing transaction. Buying is a single payment of the exact listed price, split in the same transaction: 95% to the seller, 5% creator royalty. While a stone sits in escrow its mining keeps stacking — the market never claims — so the buyer inherits the complete accrual. The same 5% royalty is published via ERC-2981 for external markets.

6 · Token

Total supply1,000,000,000,000 ONYX (fixed, minted once at deploy)
Mining pool400,000,000,000 ONYX (40%)
Launchpad600,000,000,000 ONYX (60%): 6,666 shares × 90M, including a 60M remainder
Team allocationNone
Tax2% on pool trades only — 1% burn, 1% auto-liquidity (LP burned). Wallet transfers untaxed.
Transfer lockAll transfers locked until trading opens, except the launchpad (minter) and the Mining contract (locker).
Mined-token lockLocked-balance floor until pool open + 24 hours.

7 · Referrals

One referral registry serves all lanes. A wallet's referrer binds strictly on its first mint in any lane (stone or share) and can never change; a referee counts once, forever. Each referral raises the referrer's stone quota and share quota by 1. Referrals pay no tokens and no BNB — they only raise quotas.

8 · Timeline

All times are UTC. The stone mint and mining claims open at deployment. The share sale opens one hour after deployment and runs for 7 days. Finalize follows the deadline (or sellout), the pool opens in the finalize transaction, and mined ONYX unlocks 24 hours later. The market accepts listings from deployment.