Launch App
Overview

Protocol Overview

QanVault is an on-chain prize vault for a configured QANX ERC-20 token and settlement chain. Each paid ticket enters the daily draw for its purchase day, that week's draw, and that month's draw. The vault records tickets, vault pools, claims, and fees. A keeper submits transactions to move draws through their lifecycle; a smart contract cannot run on a timer by itself.

Find the right guide#

Start with How to Play for wallet and purchase steps, Ticket Mechanics for eligibility, or Prize Claims if you have won. The technical guides explain accounting, randomness, and deployment.

Rules at a glance#

RuleCurrent contract behavior
Ticket priceThe production deployment script configures 100 QANX per paid ticket. Verify ticketPrice() on the intended vault before purchase.
Purchase quantityUp to 10,000 tickets per transaction via O(1) batch ranges. No per-wallet daily or lifetime purchase cap; repeat transactions are allowed.
Ticket eligibilityOne entry each in purchase-day daily, purchase-week weekly, and purchase-month monthly draws. No daily D+1 entry.
Sales allocation50% to daily D, 30% to daily D+1 funding, 7.5% to weekly W, 5% to monthly M, 7.5% to fees.
Winning slotsUp to 10 distinct daily tickets, 3 weekly tickets, and 1 monthly ticket. A wallet may own several winning tickets.
ClaimsWinning wallet calls claimPrize(drawId, winnerIndex) before 72 hours elapse from settlement.
ExpirySomeone must process an expired prize. 7.5% becomes platform fees; 92.5% is assigned to a future daily reserve.

One ticket, three draws

A ticket bought during UTC day D contributes one eligible entry to daily D, the UTC week containing D, and the calendar month containing D. Thirty percent of paid sales finances the next day's daily draw; it does not carry the buyer's ticket into that draw. A single ticket can win in different schedules. Within a single draw, a ticket can win at most once.

Payment and ticket issuance

While the on-chain vault settles strictly in canonical QANX on BNB Smart Chain, the web interface supports automated multi-asset conversion across multiple EVM chains. Players can pay using BNB, USDT, or USDC on BNB Smart Chain (routed directly via PancakeSwap), or ETH, USDT, USDC, POL, and other approved tokens across Ethereum Mainnet, Base, Arbitrum One, and Polygon PoS (routed via Symbiosis Finance). A purchase is established by a successful transaction receipt with the vault's TicketsPurchased event. Hold native gas currency on your active chain for approvals, swaps, and ticket purchases.

Draw timing and liveness

Draws are automated by the protocol's 24/7 background keeper service as soon as each UTC period concludes. As a decentralized security guarantee, the underlying smart contract functions (closeDraw and settleDraw) are permissionless, meaning anyone can close an ended period directly on-chain if keeper infrastructure is ever delayed. Closing fixes the eligible ticket count and its vault pool before requesting randomness. An empty draw settles without a paid oracle request and assigns its pool to a future daily reserve. For a nonempty draw, settlement waits for the original Chainlink VRF request to fulfill. Retry and cancellation are disabled. If fulfillment never arrives, the pool can remain locked indefinitely. A draw does not happen at precisely midnight unless someone submits its transaction then.

Referral tickets and fairness

For every ten paid tickets bought by a directly referred address, its referrer earns a bonus ticket. Claiming bonus tickets enters the schedules current at claim time without adding money to their pools. Bonus entries therefore dilute other tickets' winning odds. Referral relationships are recorded by address, not verified person; a player can control several wallets. See How to Refer and Odds and Prize Tiers.

Full documentation#

Release status & On-Chain Verification#

The QanVault protocol is live on BNB Smart Chain Mainnet (Chain ID: 56). All contract code is published and verified on BscScan.

Live Contract Addresses

ComponentNetworkContract AddressExplorer Verification
QanVault CoreBNB Smart Chain (56)0x5ae863435F5aB9f8c06cE180ceb88E76751D9e25BscScan Verified Contract
Chainlink VRF ProviderBNB Smart Chain (56)0x5fF54dA490C54b369835CB4b3F90Def514c89c44BscScan Verified Contract
Canonical QANX TokenBNB Smart Chain (56)0xAAA9214F675316182Eaa21C85f0Ca99160CC3AAABscScan Token Tracker

How to Verify the Smart Contract

Anyone can inspect and verify the live contracts directly on BscScan or through any standard JSON-RPC provider without relying on frontends:

  1. Inspect Solvency Invariants:

    Navigate to the QanVault Read Contract tab on BscScan and query reconcileAccounting(). The function returns (bool isSolvent, uint256 balance, uint256 requiredReserve). Verify that isSolvent is true, proving that the contract balance strictly matches or exceeds all open pools, pending claims, rollover reserves, and accrued fees.

  2. Verify Randomness Provider Binding:

    Query randomnessProvider() on QanVault to confirm it returns 0x5fF54dA490C54b369835CB4b3F90Def514c89c44. Then query consumerVault() on ChainlinkVRFProvider to confirm bidirectional binding back to 0x5ae863435F5aB9f8c06cE180ceb88E76751D9e25.

  3. Verify Token & Pricing Parameters:

    Confirm canonical QANX token binding (0xAAA9214F675316182Eaa21C85f0Ca99160CC3AAA). Note that legacy compromised token addresses (0xAAA7...) are permanently blacklisted across the protocol. Query ticketPrice() to confirm the invariant price of 100 QANX per ticket.

  4. Verify Non-Custodial Fee Segregation:

    Query platformFeeBps() to confirm 750 basis points (7.5%). The remaining 92.5% of ticket sales is allocated to daily (50%), daily D+1 funding (30%), weekly (7.5%), and monthly (5%) vault pools with zero custodial discretion.

  5. Verify Administrative Boundaries:

    Query owner() to confirm the cold operations wallet (0xeCCF21947dC1581C1F6e3e41e3f9C609048698e1). Review the verified source code to confirm that the owner has no privilege to drain escrowed prize funds or alter past ticket allocations.

For full technical specifications and compiler metadata, consult the Contract Registry and Verification Guide.