FlareBank docs / Arcade

Arcade docs

Play skill games for a share of one shared pot. One ante, one scored run; your best run counts; the top 10 each round get paid.

Runs on the Coston2 testnet with test tokens — play money with no value.

1 · What the Arcade is

The FlareBank Arcade is a King-of-the-Hill competition. Every game feeds one shared pot held by a smart contract. To play for the pot you stake a 1-BANK ante, which buys one scored run. Your leaderboard score for the round is your best run — not the total — so nobody can buy the top spot by playing more. When the round closes, the top 10 split that round's payout pool, and winnings land in your balance in the pot, ready to withdraw.

Testnet only. The Arcade runs on Flare's Coston2 test network with test BANK (tBANK), which anyone can mint for free and which has no value. Nothing you win or lose is real money.

You can also play free warm-up runs with no wallet and no stake; they never score.

2 · Getting started

  1. Connect a wallet (MetaMask or any browser wallet). The page switches it to Coston2 (chain id 114), adding the network if needed. On a phone without a wallet it opens MetaMask's app.
  2. Get test gas (C2FLR) from the Flare faucet — choose Coston2. Every transaction needs a little.
  3. Mint test BANK — the Mint button gives you 10 tBANK.
  4. Wrap → wBANK. Like real BANK, tBANK charges 1% on every transfer, so wrapping 5 tBANK gives you 4.95 wBANK. wBANK moves without fees.
  5. Deposit wBANK into your balance in the pot. You can also skip this — the in-game Stake button can pull wBANK straight from your wallet.

3 · Playing a scored run

  1. Enter the round — “Enter round — stake 1 BANK” on the Arcade page, or “Stake 1 BANK” inside the game. Each stake is one transaction and buys exactly one scored run. You can stake as many times as you like.
  2. Play a game opens the game. The game is coin-operated: press Insert token to start a scored run (it checks you have an unused stake first).
  3. Once per round your wallet asks you to sign a message — no transaction, no gas:
    FlareBank arcade
    I'm playing for the pot with wallet <your address>
    Round <n>
    It proves the run is yours, so nobody can score for your wallet.
  4. Finish the run. When it ends, the game server reports it and your score appears on the leaderboard.

A run cut off before the end — a disconnect or a server restart — is never reported, so it does not use up your token. Stakes you never play are not refunded, and runs that finish after the round has closed (plus a short grace period of about 10 minutes) don't count.

4 · Scoring

points = round( 1000 × performance × game weight × streak bonus )

performance   0 to 1, worked out by the game server from your run
game weight   Treasury Defence = 1.0  (harder games will weigh more)
streak bonus  1 + 0.25 × (consecutive previous rounds you scored in), at most 3×
  • Treasury Defence: performance = score ÷ (score + 12,000). Your score grows with every kill, every wave cleared (20 × the wave number plus lives left) and a 1,000 bonus for clearing wave 18; Relentless mode doubles it (Steady ×1). A run is 18 waves, then overtime until your lives run out. A perfect 18-wave run is roughly 11,000 on Steady and 22,000 on Relentless.
  • Streaks: scoring in consecutive rounds adds 0.25× per round, up to 3× after 8 rounds in a row.
  • Your round score is your best run, not the sum of your runs. Ties share a rank (1, 1, 3…).

5 · Rounds and payouts

  • A round lasts 48,000 Coston2 blocks — about 28½ hours. Settling it adds about 1½ hours, so payouts land roughly every 30 hours. The timer counts blocks, not clock time.
  • Only wallets that staked in the round can be paid for it, and players with zero points are left out.
  • The top 10 split the round's payout pool on a sliding scale:
RankShare of the poolAt a 66.8 wBANK pool (round 3)
110/55 = 18.2%12.14
29/55 = 16.4%10.92
38/55 = 14.5%9.71
47/55 = 12.7%8.50
56/55 = 10.9%7.28
65/55 = 9.1%6.07
74/55 = 7.3%4.86
83/55 = 5.5%3.64
92/55 = 3.6%2.43
101/55 = 1.8%1.21
  • Players tied on points split the places they occupy evenly.
  • No wallet can receive more than 20% of a round's pool.
  • If fewer than 10 players score, the unused shares stay in the pot for later rounds.
  • Winnings are added to your balance in the pot. They never expire; press Withdraw all to move them to your wallet. You can withdraw any time, even if the pot is paused.

6 · The pot

The pot was seeded with 10,000 wBANK and is designed to pay out gradually, over about six months:

round's payout pool = the smallest of:
    70% of the pot
    pot × (time since the last payout) ÷ 180 days        ← the one that applies in practice

With about 30 hours between payouts and a pot of about 10,000 wBANK, that is about 66 wBANK per round.

Each 1 wBANK anteGoes to
0.97The pot
0.02A reserve — 40% of it moves into the pot at each settlement
0.01The DAO

That 3% is the Arcade's only fee. The page shows your stake as “1 BANK”; on-chain it records the 0.97 that reached the pot.

7 · Fair play

A score only counts if all of these check out:

  1. The game server reported it, signed with a secret key only the game server holds. Browsers can't report scores directly.
  2. Your wallet signed the message for this round.
  3. You staked in this round, on-chain, and staked again since your last scored run.
  4. It arrived before the round's grace period ended.

The game itself runs on the server, which works out your performance — a modified browser can't simply claim a high score, score for someone else's wallet, or score without staking.

What you are trusting. The leaderboard is kept by FlareBank's scoring server, not on-chain, and whoever runs the game server could in principle report any score. Automated play from a modified game client isn't technically prevented either. This is a testnet competition; fully trustless scoring is future work.

8 · How payouts are settled

  1. After the round closes and the grace period passes, FlareBank's keeper proposes the payout list from the leaderboard.
  2. A 2,000-block challenge window (about 70 minutes) follows, during which the Arcade's admin can veto a bad list.
  3. After the window, anyone can finalise it and the winnings are credited.

The contract checks every list, at proposal and again at finalisation:

  • The round must be over.
  • Every winner must have staked in that round, with no duplicates.
  • There are at most 100 winners, and no one gets more than 20% of the pool.
  • The total can't exceed the round's pool.
Settlement inside a secure enclave (TEE) is not live yet. The contract supports enclave-attested settlement, but it is switched off while two design gaps are fixed and an enclave is registered. Until then payouts rely on FlareBank's keeper, the veto window and the checks above.

9 · Games

GameStatus
Treasury Defence — co-op, markets-themed tower defence; the Market Maker taunts you each wave. Steady and Relentless modes.Live
Inkwrit (cards), Circuit (racer), Emberwatch (survival)Built, not yet in the Arcade

The in-game shop uses CHIP, an off-chain practice currency for upgrades during a run — not BANK.

10 · If something is down

If this is downWhat happens
Game serverNo play. A run cut off by a crash isn't reported, so you keep your token.
Scoring serverNo scored runs or in-game staking; the leaderboard is empty. Depositing, entering and withdrawing still work from the Arcade page.
KeeperA closed round waits to be settled and new entries are refused until it is. Balances can always be withdrawn.

11 · Contracts (Coston2)

ContractRole
HillPot
0xc88dadf677565D6bc7383b5dDbb8CaeD8C1847ef
The pot: rounds, stakes, balances, settlement
HillAllowlist
0x523F91aF5Cb87233e15444ab105b604d3A398729
Which games can feed the pot, and their weights
wBANK (test)
0x5483cD579ebb532a960d2583f0Af5E28e9c5c62a
Fee-free 1:1 wrapper for tBANK
tBANK (test)
0x42E75F516a4114C140BB49a3D2F8b3Dc94FCBd1A
Test BANK — 1% transfer fee, free to mint

Admin powers. The Arcade's admin wallet can change the configuration (including the ante and round length), pause new entries, add to the pot, change the keeper and veto a proposed payout list. It cannot take players' balances — withdrawals always work.

These contracts' source code isn't yet verified on the Coston2 explorer; the pot's deployed bytecode has been checked to match its published source exactly. A Flare mainnet version with real BANK is planned to follow an audit.