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.
You can also play free warm-up runs with no wallet and no stake; they never score.
2 · Getting started
- 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.
- Get test gas (C2FLR) from the Flare faucet — choose Coston2. Every transaction needs a little.
- Mint test BANK — the Mint button gives you 10 tBANK.
- Wrap → wBANK. Like real BANK, tBANK charges 1% on every transfer, so wrapping 5 tBANK gives you 4.95 wBANK. wBANK moves without fees.
- 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
- 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.
- 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).
- 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. - 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:
| Rank | Share of the pool | At a 66.8 wBANK pool (round 3) |
|---|---|---|
| 1 | 10/55 = 18.2% | 12.14 |
| 2 | 9/55 = 16.4% | 10.92 |
| 3 | 8/55 = 14.5% | 9.71 |
| 4 | 7/55 = 12.7% | 8.50 |
| 5 | 6/55 = 10.9% | 7.28 |
| 6 | 5/55 = 9.1% | 6.07 |
| 7 | 4/55 = 7.3% | 4.86 |
| 8 | 3/55 = 5.5% | 3.64 |
| 9 | 2/55 = 3.6% | 2.43 |
| 10 | 1/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 practiceWith about 30 hours between payouts and a pot of about 10,000 wBANK, that is about 66 wBANK per round.
| Each 1 wBANK ante | Goes to |
|---|---|
| 0.97 | The pot |
| 0.02 | A reserve — 40% of it moves into the pot at each settlement |
| 0.01 | The 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:
- The game server reported it, signed with a secret key only the game server holds. Browsers can't report scores directly.
- Your wallet signed the message for this round.
- You staked in this round, on-chain, and staked again since your last scored run.
- 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.
8 · How payouts are settled
- After the round closes and the grace period passes, FlareBank's keeper proposes the payout list from the leaderboard.
- A 2,000-block challenge window (about 70 minutes) follows, during which the Arcade's admin can veto a bad list.
- 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.
9 · Games
| Game | Status |
|---|---|
| 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 down | What happens |
|---|---|
| Game server | No play. A run cut off by a crash isn't reported, so you keep your token. |
| Scoring server | No scored runs or in-game staking; the leaderboard is empty. Depositing, entering and withdrawing still work from the Arcade page. |
| Keeper | A closed round waits to be settled and new entries are refused until it is. Balances can always be withdrawn. |
11 · Contracts (Coston2)
| Contract | Role |
|---|---|
HillPot0xc88dadf677565D6bc7383b5dDbb8CaeD8C1847ef | The pot: rounds, stakes, balances, settlement |
HillAllowlist0x523F91aF5Cb87233e15444ab105b604d3A398729 | 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.