Launch App
Getting Started

How to Refer & Earn

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.

01
Share Link

Share your unique referral URL (?ref=ABCD) with friends and community.

02
Referral Selection

Browser referral data is not authoritative; the first valid on-chain attribution wins.

03
On-Chain Attribution

QanVault records the referrer on purchase. Address checks do not prove distinct people.

04
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:

Bonus Tickets Earned = leftlfloor (Total Paid Tickets Purchased by Referee / 10) rightrfloor
Important
Permanent & Lifelong Policy: Attribution is immutable. Any future transaction from your referred player (whether made tomorrow, next week, or next year) will always credit their paid tickets toward your 10:1 referral bonus counter forever!

Real-World Examples

Referee Purchase EventReferee ReceivesReferrer EarnsProgression to Next Bonus
First purchase: 5 Tickets5 Tickets (paid)0 Bonus Tickets5 paid tickets credited (5 to next)
Second purchase: 10 Tickets12 Tickets (10 paid + 2 Free Welcome)1 Bonus Ticket15 total paid credited (5 to next)
Future purchase: 50 Tickets50 Tickets (paid)5 Bonus Tickets65 total paid credited (5 to next)
Future purchase: 1,000 Tickets1,000 Tickets (paid)100 Bonus Tickets1,065 total paid credited (5 to next)
Tip
Cumulative Across All Transactions: Paid purchases accumulate seamlessly across all transactions without expiration. The referrer's bonus ticket counter increments whenever cumulative referee purchases hit the next multiple of 10.

2. Attribution Rules & Referral Lifecycle#

Attribution follows a deterministic multi-stage lifecycle across frontend indexing and blockchain contract logic:

  1. 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.
  1. 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) and 0 Tickets.
  • This provides referrers with live visibility into their conversion funnel before on-chain ticket sales occur.
  1. First Qualifying Purchase Locks Attribution On-Chain:

  • When the player executes their first ticket purchase transaction on BNB Smart Chain, QanVault.sol irreversibly commits referrerOf[referee] = referrer.
  • Once confirmed on-chain, attribution is permanent, immutable, and lifelong. No subsequent links, session clearing, or wallet re-connections can overwrite it.
  1. 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

  1. Open the Referrals tab or dashboard on qanvault.io.

  2. 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.
  1. Click Claim Bonus Tickets to call claimReferralBonusTickets(count).

  2. 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!
Note
Bonus tickets are minted without contributing additional capital to the vault pool. They compete directly alongside paid tickets for the settled vault pools.