Experimental on-chain options game inspired by the "bynomo" hackathon demo — rebuilt for the Stacks ecosystem.
Provide a one-click interface to open ultra-short options on BTC / ETH / BNB using Stacks smart contracts (Clarity), Stacks-native liquidity, and Bitcoin-secured settlement. Players click multiplier boxes; every click opens an option position that settles automatically when the round expires.
- Clarity contracts
options-core: manages rounds, bets, payouts.liquidity-pool: houses bankroll, fees, and LP accounting.oracle-adapter: consumes signed price feeds (Pyth / Switchboard / custom relay).
- Oracle relay: lightweight service that posts signed price snapshots every round.
- Game coordinator: optional service to start rounds on cadence + stream events via websockets.
- Frontend: React/Next.js client with Stacks wallet integration (Leather, Hiro), optimistic UI, and leaderboards.
- Set vault + oracle addresses
For the basic prototype, point the vault to the
(contract-call? .options-core set-contracts 'ST123..options-core 'ST123..oracle-adapter)
options-corecontract principal so STX stakes escrow inside the same contract. - Create a round
Arguments: round id, asset ticker, strike price (scaled to oracle precision), expiry height, lock height, oracle id string.
(contract-call? .options-core create-round u1 "BTC" u62000000000 u123456 "pyth-btc")
- Place a bet
Args: round id, stake in micro-STX, multiplier in basis points, direction (
(contract-call? .options-core place-bet u1 u1000000 u20000 true)
true= up). - Lock & settle
lock-roundonce entries should stop.settle-roundwith the observed final oracle price.
- Claim
- Players call
claim-winningsto receive payouts based on strike vs. final price.
- Players call
- Product & economic design (this week)
- Define round cadence, strike logic, multiplier table, liquidity model, fee flow.
- Finalize oracle + token choices (STX vs. sBTC vs. SIP-010 stable).
- Smart-contract MVP (weeks 2–3)
- Scaffold contracts, data maps, and settlement logic; add Clarinet tests.
- Formalize oracle message verification + price sanity checks.
- Middleware services (week 4)
- Build price-relay + round scheduler + alerting.
- Frontend alpha (weeks 4–5)
- Implement grid UI, wallet flows, history, admin toggles.
- Testnet & audits (weeks 6+)
- Deploy to Stacks testnet, run alpha tournament, fix bugs, then plan audit + mainnet launch.
contracts/ # Clarity smart contracts (options-core, liquidity pool, oracle adapter)
docs/ # Architecture diagrams, specs, tokenomics
services/ # Backend services (price relay, coordinator)
scripts/ # Dev scripts, simulations, analyzers
More docs coming soon in docs/. Track tasks via GitHub Issues / Projects.
- Copy the sanitized Clarinet examples into real settings files that stay on your machine only:
Fill in mnemonics or encrypted blobs per Clarinet’s docs.
cp settings/Devnet.example.toml settings/Devnet.toml cp settings/Testnet.example.toml settings/Testnet.toml cp settings/Mainnet.example.toml settings/Mainnet.toml
- Keep any
.envorsettings/*.tomlfiles local—.gitignorenow blocks them so they never ship to GitHub. - Rotate any mnemonics you may have previously committed (the ones in older commits were Clarinet sample keys, but please replace them locally if you cloned earlier).