Launch App
Multi-Chain Architecture & Tokenomics

Tokenomics & Vault Math

QanVault operates on a mathematically deterministic, segregated accounting framework. Every incoming token is accounted for at the protocol level, guaranteeing absolute solvency and eliminating insolvency or deficit risk.

Inflow Source

Allocation Example: 100 QANX Paid Ticket

10,000 Basis Points Total Allocation

50.0%5,000 bps
Daily Pot (D)
50.0 QANX
00:00:00 UTC Daily Draw
30.0%3,000 bps
Daily Seed Reserve (D+1)
30.0 QANX
Seeds Tomorrow's Pot (tickets do not carry over)
7.5%750 bps
Weekly Vault (W)
7.5 QANX
Monday 00:00:00 UTC
5.0%500 bps
Monthly Vault (M)
5.0 QANX
1st of Each Month
7.5%750 bps
Protocol Treasury
7.5 QANX
Accrued treasury reserves

1. Segregated Capital Partitioning#

Each ticket is purchased for 100 QANX. The smart contract instantly allocates every paid purchase across five segregated on-chain reserves according to fixed basis points (10,000 basis points = 100%):

Reserve DestinationBasis PointsSharePer 100 QANX TicketExecution Cadence
Active Daily Draw (D)5,000 bps50.0%50.0 QANXCloses daily at 00:00:00 UTC
Next-Day Seed Reserve (D+1)3,000 bps30.0%30.0 QANXSeeds tomorrow's initial starting pot
Weekly Vault (W)750 bps7.5%7.5 QANXCloses every Monday at 00:00:00 UTC
Monthly Vault (M)500 bps5.0%5.0 QANXCloses on the 1st of each month at 00:00:00 UTC
Protocol Treasury750 bps7.5%7.5 QANXSustains decentralized infrastructure, keeper gas, and discretionary ecosystem growth or marketing, with no guaranteed schedule or expectation of return
∑ Allocations = 50\% + 30\% + 7.5\% + 5.0\% + 7.5\% = 100.0\% (10,000 bps)

The Seed Reserve Architecture (30%)

The 30% allocation to Daily Seed Reserve (D+1) provides perpetual momentum for the protocol:

  • It guarantees that each new day's vault launches with significant pre-funded seed liquidity, even before the first ticket of the day is purchased.
  • Tickets purchased on day D compete exclusively in day D's draw (as well as that week's and month's draws) and do not carry over to day D+1. This keeps ticket pools fair and uncluttered.

2. Vault Accounting Lifecycle#

Capital transitions through four distinct accounting states during a draw cycle:

Vault Accounting Lifecycle

Capital Transitions Across Four Segregated States

Solvency Invariant Engine
Entry InflowPlayer Purchase

Player buys tickets with QANX on the configured settlement chain (100 QANX per ticket).

+C Inflow
1. StatetotalUnsettledPools
Draws Open · Accumulating Tickets & Allocations

Ticket purchases accumulate into segregated vault pools: Daily Vault (50%), Daily Seed Reserve (30%), Weekly Vault (7.5%), Monthly Vault (5%), and Protocol Treasury (7.5%).

closeDraw()&VRF Fulfillment
2. StatetotalClaimLiabilities
Winning Tickets Selected · 72-Hour Claim Window Starts

Upon VRF fulfillment, winning tickets are selected via sparse Fisher-Yates shuffle. Prize capital transitions from unsettled pool balances into segregated claim liabilities.

Settlement Outcomes
Within 72 Hours
Winning Wallet Claims→claimPrize()

Winning wallet calls claimPrize(drawId, winnerIndex). Tokens are sent directly to the winning wallet and totalClaimLiabilities is decremented.

Settlement DestinationQANX Sent Directly to Winning Wallet
72h Deadline Expired
72h Expiry→expireAndRollover()

Unclaimed prizes are recycled permissionlessly: 7.5% allocated to Protocol Treasury and 92.5% rolled over into Next Daily Reserve.

Rollover Allocation7.5% Treasury + 92.5% Next Daily Reserve
  1. Unsettled Pools (`totalUnsettledPools`): While draws are active, ticket allocations accumulate in segregated state variables (dailySalesPool, dailyNextSalesPool, weeklySalesPool, monthlySalesPool).

  2. Claim Liabilities (`totalClaimLiabilities`): When a draw settles, the allocated vault pool transitions from unsettled funds into claim liabilities.

  3. Claim Settlement: When a winning wallet calls claimPrize, tokens are transferred directly to their wallet and totalClaimLiabilities is decremented.

  4. Expiry & Rollover: If 72 hours elapse without a claim, calling expireAndRollover moves 7.5% to accruedPlatformFees (Protocol Treasury) and 92.5% into dailyRolloverReserve.


3. The Protocol Solvency Invariant#

The core contract exposes the public view function reconcileAccounting() to prove protocol solvency in real time:

TokenBalance(Vault) ≥ totalUnsettledPools + totalClaimLiabilities + dailyRolloverReserve + weeklyRolloverReserve + monthlyRolloverReserve + accruedPlatformFees
  • 100% Fully Backed: At any given block, the vault holds sufficient real QANX tokens to satisfy every open vault, pending claim, rollover reserve, and operator fee.
  • Surplus Isolation: Any surplus tokens sent to the vault by accident remain locked within the contract balance and cannot be extracted to cause player fund deficits.
  • Isolated Fee Extraction: The owner can call withdrawPlatformFees() solely to collect accruedPlatformFees. The function is mathematically barred from accessing active vault pools or unclaimed player balances.