How to Refer & Earn
On this page (8 sections)
The QanVault Referral Program is designed as a mutual win-win: the sharer earns lifelong ticket rewards, and the new player receives instant free welcome bonus tickets.
Share Link
Share your unique referral URL (?ref=ABCD) with friends and community.
Referral Selection
Browser referral data is not authoritative; the first valid on-chain attribution wins.
On-Chain Attribution
QanVault records the referrer on purchase. Address checks do not prove distinct people.
1:10 Bonus Tickets
Every ten paid tickets per referee earns one claimable bonus. Claiming adds unfunded entries to current periods and dilutes other tickets' odds.
1. Win-Win Structure & The 10:1 Ratio#
A. Referee Welcome Bonus: 2 Free Tickets
When a new player joins using your referral link and makes their first single purchase of 10 or more tickets, the smart contract automatically mints 2 extra bonus tickets directly to their wallet in that transaction with zero additional cost (Buy 10, Receive 12 tickets).
- Qualification: Must be at least 10 tickets in a single transaction (cannot be split across smaller purchases, e.g. 5 + 5).
- Delivery: Automatic and instant (no separate claim transaction or gas fee required).
- Frequency: Strictly one-time welcome bonus per referred wallet. Enforced directly by the smart contract state (
hasReceivedWelcomeBonus[wallet] == true), guaranteeing no wallet can ever receive more than 2 welcome bonus tickets.
B. Referrer Lifelong Benefit: 1 Free Ticket per 10 Paid Tickets
For every 10 paid tickets purchased by a wallet attributed to your referral code, you earn 1 free bonus ticket:
Real-World Examples
| Referee Purchase Event | Referee Receives | Referrer Earns | Progression to Next Bonus |
|---|---|---|---|
| First purchase: 5 Tickets | 5 Tickets (paid) | 0 Bonus Tickets | 5 paid tickets credited (5 to next) |
| Second purchase: 10 Tickets | 12 Tickets (10 paid + 2 Free Welcome) | 1 Bonus Ticket | 15 total paid credited (5 to next) |
| Future purchase: 50 Tickets | 50 Tickets (paid) | 5 Bonus Tickets | 65 total paid credited (5 to next) |
| Future purchase: 1,000 Tickets | 1,000 Tickets (paid) | 100 Bonus Tickets | 1,065 total paid credited (5 to next) |
2. Attribution Rules & Referral Lifecycle#
Attribution follows a deterministic multi-stage lifecycle across frontend indexing and blockchain contract logic:
Prior to First Purchase (Latest Referral Attribution):
- When a visitor enters via a referral link (
qanvault.io/?ref=CODE), their pending referrer is stored in secure session storage and synchronized to backend indexing. - Latest Click Wins: If a prospective player visits via Referrer A, does not make a purchase, leaves, and later returns via Referrer B's link, their pending attribution is dynamically reassigned to Referrer B.
Pre-Purchase Real-Time Tracking:
- As soon as an invited player connects their Web3 wallet, they immediately appear in the inviter's Referrals Dashboard under "Referred Wallets" with the status
Connected (Pending Purchase)and0 Tickets. - This provides referrers with live visibility into their conversion funnel before on-chain ticket sales occur.
First Qualifying Purchase Locks Attribution On-Chain:
- When the player executes their first ticket purchase transaction on BNB Smart Chain,
QanVault.solirreversibly commitsreferrerOf[referee] = referrer. - Once confirmed on-chain, attribution is permanent, immutable, and lifelong. No subsequent links, session clearing, or wallet re-connections can overwrite it.
Sybil & Self-Referral Prevention:
- Self-referrals are strictly rejected (
referee != referrer). - Circular referral chains are prevented on-chain via ancestor traversal checks (
_requireAcyclicReferral).
3. Claiming Your Earned Bonus Tickets#
Referral bonus tickets are never forced into a draw automatically; you choose exactly when to claim them to maximize your winning strategy.
Claiming Steps
Open the Referrals tab or dashboard on qanvault.io.
Review your statistics:
- Total Referees: Number of wallets linked to your referral code.
- Referee Tickets Purchased: Total volume of paid tickets purchased by your network.
- Claimable Bonus Tickets: Free tickets ready to be minted.
Click Claim Bonus Tickets to call
claimReferralBonusTickets(count).Up to 100 bonus tickets can be minted in each claim transaction.
4. Draw Entry & Prize Eligibility#
When you claim referral bonus tickets:
- They are issued with sequential ticket IDs from
nextTicketId. - They automatically enter the active Daily (D), Weekly (W), and Monthly (M) draws at the exact moment of the claim transaction.
- Bonus tickets hold the exact same mathematical probability of winning each prize tier as paid tickets!