bandforband.fun docs
Security & control

Program & verified builds

The wagers program id, its source code, security.txt, and how to check that the deployed bytecode matches the source.

Program

Program id3TojGaWF1N3V1JFtaRWnr2Y2e8qRtNLZPX2ZV7eZbW9y
FrameworkAnchor 1.2
Sourcegithub.com/bandforbandfun/bandforband-program (programs/wagers)
LicenseApache-2.0
Security contact[email protected] (also in the on-chain security.txt)

Accounts

AccountSeedsHolds
Config"config"Admin, settler, biller, treasury, fee caps, refund timeout, pause and backing flags
Mandate"mandate", owner, kindA VIP auto-renew the owner signed: amount per period, period, next charge time, rent payer
Rewards pool"rewards"USDC for promo codes and referral payouts
UserVault"vault", ownerYour vault. Its USDC sits in the token account "vault_token", owner.
Contest"contest", contest idThe contest's rules, rake tier and state. Its USDC sits in "contest_token", contest id.
Entry"entry", contest, playerOne seat: who paid, which side, whether it was claimed
Backing"backing", contest, backerOne backer's bet on a side
Order"order", order idMakes a purchase, tip or promo payment happen exactly once

Every account also stores a layout version and zeroed reserved bytes, so the program can gain fields in an upgrade without moving any existing data.

Verified builds

Build the public source with solana-verify and compare it to the program on mainnet. The crate is wagers at programs/wagers in that repository.

cargo install solana-verify --locked
solana-verify get-program-hash -u mainnet-beta 3TojGaWF1N3V1JFtaRWnr2Y2e8qRtNLZPX2ZV7eZbW9y
solana-verify verify-from-repo -u mainnet-beta \
  --program-id 3TojGaWF1N3V1JFtaRWnr2Y2e8qRtNLZPX2ZV7eZbW9y \
  --library-name wagers --mount-path programs/wagers --arch v3 \
  https://github.com/bandforbandfun/bandforband-program

The two hashes must match. If they do, the code running on-chain is exactly the code in the repository.

Upgrades and configuration

The program's upgrade authority and its admin are a Squads multisig, not a single key. Fee caps, the refund timeout and whether backing is on can only change inside limits written into the program.

On this page