Getting Started

How It Works

The QanVault protocol operates as an automated, non-custodial lottery and prize vault system. This document outlines the complete step-by-step lifecycle from ticket purchase to winner settlement.


The 4-Stage Protocol Lifecycle#

01

Stage 1: Multi-Chain Ticket Purchase

Inflow & Swaps

Players select ticket quantity (100 QANX per ticket, approx. $1.24) and purchase across multiple EVM chains.

BSC QANXNative purchase on BNB Smart Chain with zero DEX swap fees
BNB / BSC USDTAutomated routing through PancakeSwap v3 in a single transaction
Ethereum QANXDirect payment with subsidized 1.0% bridge fee via Symbiosis
Ethereum ETH / USDTUniswap v3 swap + Symbiosis cross-chain bridge (1.0% fee)
02

Stage 2: Deterministic Escrow Allocation

10,000 bps Split

Upon receipt, the smart contract immediately and deterministically partitions the 100 QANX per ticket across 5 segregated accounting reserves.

50% Daily (D)Current day prize pool drawn at 00:00:00 UTC
30% Daily (D+1)Autonomous second-chance reserve for the following day
7.5% Weekly (W)ISO week jackpot closing every Monday at 00:00:00 UTC
5.0% Monthly (M)Grand monthly jackpot closing on the 1st of each month
7.5% Protocol OpsDecentralized keeper gas, VRF randomness fees, and audits
03

Stage 3: Provably Fair Draw Execution

Verifiable VRF

Automated keeper bots trigger draw execution at scheduled intervals using quantum-resistant cryptographic commitments.

Interval SealingEligible integer ticket ranges are sealed at 00:00:00 UTC
Entropy RevealUnbiasable randomness seed selects winning ticket ID without replacement
Zero FrontrunningCommit-reveal architecture prevents miners and bots from predicting outcomes
04

Stage 4: Canonical Prize Claim & Settlement

Canonical BSC

All prizes settle canonically on BNB Smart Chain in wrapped QANX, ensuring sub-cent claim fees and autonomous rollover protection.

72-Hour Claim WindowWinners claim directly from non-custodial smart contracts
100% Rollover InvariantUnclaimed prizes automatically roll over to seed future jackpots
Zero Custodial RiskFunds are never held by an operator and cannot be confiscated
StageFocusKey Highlights
01. Ticket PurchaseMulti-Chain InflowBSC QANX, BNB, BSC USDT, Ethereum QANX (1% bridge fee), Ethereum ETH/USDT
02. Escrow Allocation10,000 bps Split50% Daily (D), 30% Following Day (D+1), 7.5% Weekly, 5% Monthly, 7.5% Ops
03. Draw ExecutionProvably Fair VRFCommit-reveal ticket range sealing at 00:00:00 UTC with unbiasable entropy
04. Prize ClaimCanonical BSC Hub72h non-custodial claims in wrapped QANX with 100% automated jackpot rollover

1. Ticket Purchase & Multi-Chain Inflow#

A single ticket costs 100 QANX (approximately $1.24 at current valuation).

Players can enter using five flexible multi-chain payment paths:

  • Direct BSC QANX: Native entry on BNB Smart Chain with zero DEX swap fees and zero bridge fees.
  • BNB or BSC USDT: Swapped into QANX on PancakeSwap v3 in a single seamless on-chain transaction.
  • Ethereum QANX (ERC-20): Direct payment in Ethereum QANX with a subsidized 1.0% bridge fee, batched through Symbiosis Finance into the canonical BSC prize vault.
  • Ethereum ETH or ERC-20 USDT: Swapped into QANX on Uniswap v3 and batched across the Symbiosis cross-chain bridge into the canonical BSC prize contract with the subsidized 1.0% bridge fee.
  • Unspent Dust Refunds: Any residual tokens resulting from slippage or price fluctuations are automatically credited back to the player's wallet in the same transaction.

2. Deterministic Fund Splitting (No Hidden Fees)#

When funds enter the protocol, the smart contract immediately and deterministically partitions the 100 QANX per ticket across 5 segregated accounting buckets:

Bucket NameShareBasis Points (bps)QANX per TicketPurpose
Current Day Daily Draw ($D$)50.0%5,000 bps50.0 QANXPaid out in the 00:00:00 UTC daily draw
Following Day Daily Draw ($D+1$)30.0%3,000 bps30.0 QANXReserved for tomorrow's daily draw
Weekly Jackpot ($W$)7.5%750 bps7.5 QANXPaid out on Monday 00:00:00 UTC
Monthly Jackpot ($M$)5.0%500 bps5.0 QANXPaid out on the 1st of every month
Platform Operations Fee7.5%750 bps7.5 QANXCovers keeper bot gas, VRF fees, and infrastructure
Total Allocation100.0%10,000 bps100.0 QANX100% Fully Solvent Escrow
Note
All allocations are enforced at the smart contract level. The protocol operator cannot alter allocation ratios or divert funds outside of the designated vault contracts.

3. Draw Scheduling & Ticket Eligibility#

Tickets are minted as sequential, contiguous integer ranges:

\text{Ticket ID Range} = [T_{\text{start}}, T_{\text{end}}]

Because ranges are contiguous, the contract can verify ticket eligibility in O(1) constant time without loop iterations or unbounded gas costs.

  • Daily Draws: Take place every 24 hours at 00:00:00 UTC. Every ticket purchased on Day N is entered into Draw N (with 50% pot weight) and Draw N+1 (with 30% pot weight).
  • Weekly Jackpots: Close every Monday at 00:00:00 UTC. All tickets purchased during the preceding 7 days compete for 100% of the accumulated weekly pot.
  • Monthly Grand Jackpots: Close at 00:00:00 UTC on the 1st day of each month. All tickets purchased during the calendar month compete for the grand prize.

4. Provably Fair Winner Selection#

Winner selection uses a two-phase commit-reveal scheme:

  1. Commit Phase: At the close of a draw period, the draw coordinator commits the hash of a secret random seed:
$$H = \text{keccak256}(\text{Seed} \parallel \text{DrawId} \parallel \text{BlockHash})

This freezes the eligible ticket list and prevents anyone from buying tickets after seeing the seed.

  1. Reveal Phase: The seed is revealed on-chain and verified against H.
  2. Winner Derivation: The winning ticket index is computed deterministically:
$$\text{Winning Index} = (\text{Verified Seed}) \pmod{\text{Total Tickets}}

The architecture is fully modular, allowing seamless upgrades to native QAN Platform post-quantum VRF consensus or Chainlink VRF.


5. Canonical BSC Settlement & 72-Hour Claims#

All prizes are denominated and paid in wrapped QANX on BNB Smart Chain:

  • Winners have 72 hours from draw finalization to execute their single-signature claim transaction.
  • When claimed, prize tokens transfer directly into the winner's wallet.
  • If a prize remains unclaimed after 72 hours, the keeper contract automatically triggers a rollover, redistributing 100% of the unclaimed funds into the subsequent draw pot.

Next Steps#