Tokenomics & Vault Math
On this page (4 sections)
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.
Allocation Example: 100 QANX Paid Ticket
10,000 Basis Points Total Allocation
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 Destination | Basis Points | Share | Per 100 QANX Ticket | Execution Cadence |
|---|---|---|---|---|
| Active Daily Draw (D) | 5,000 bps | 50.0% | 50.0 QANX | Closes daily at 00:00:00 UTC |
| Next-Day Seed Reserve (D+1) | 3,000 bps | 30.0% | 30.0 QANX | Seeds tomorrow's initial starting pot |
| Weekly Vault (W) | 750 bps | 7.5% | 7.5 QANX | Closes every Monday at 00:00:00 UTC |
| Monthly Vault (M) | 500 bps | 5.0% | 5.0 QANX | Closes on the 1st of each month at 00:00:00 UTC |
| Protocol Treasury | 750 bps | 7.5% | 7.5 QANX | Sustains decentralized infrastructure, keeper gas, and discretionary ecosystem growth or marketing, with no guaranteed schedule or expectation of return |
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
Player buys tickets with QANX on the configured settlement chain (100 QANX per ticket).
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%).
Upon VRF fulfillment, winning tickets are selected via sparse Fisher-Yates shuffle. Prize capital transitions from unsettled pool balances into segregated claim liabilities.
claimPrize()Winning wallet calls claimPrize(drawId, winnerIndex). Tokens are sent directly to the winning wallet and totalClaimLiabilities is decremented.
expireAndRollover()Unclaimed prizes are recycled permissionlessly: 7.5% allocated to Protocol Treasury and 92.5% rolled over into Next Daily Reserve.
Unsettled Pools (`totalUnsettledPools`): While draws are active, ticket allocations accumulate in segregated state variables (
dailySalesPool,dailyNextSalesPool,weeklySalesPool,monthlySalesPool).Claim Liabilities (`totalClaimLiabilities`): When a draw settles, the allocated vault pool transitions from unsettled funds into claim liabilities.
Claim Settlement: When a winning wallet calls
claimPrize, tokens are transferred directly to their wallet andtotalClaimLiabilitiesis decremented.Expiry & Rollover: If 72 hours elapse without a claim, calling
expireAndRollovermoves 7.5% toaccruedPlatformFees(Protocol Treasury) and 92.5% intodailyRolloverReserve.
3. The Protocol Solvency Invariant#
The core contract exposes the public view function reconcileAccounting() to prove protocol solvency in real time:
- 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 collectaccruedPlatformFees. The function is mathematically barred from accessing active vault pools or unclaimed player balances.