aya.capital · Product Plan · v0.1

Lottery Protocol

The AWS of Lotteries — Permissionless · B2B API · Retail + Sweepstakes

$200M+ Market Reference
6 Build Sprints
4 Pool Models
8 Open Decisions

Strategic Position

Core Thesis
Don't build another lottery app. Build the infrastructure layer.

Become the Stripe/AWS of lotteries — a protocol that B2B partners embed, individuals deploy, and retail players use via sweepstakes.

The protocol is the product. Every pool is a customer.
Gap vs Megapot
They have:
  • $1/ticket daily jackpot
  • Pyth randomness
  • NFT tickets (ERC-721)
  • 3-role flywheel (Players/Backers/Referrers)
  • Base chain · $5M Dragonfly funding

Missing:
  • No B2B SDK / white-label
  • No permissionless pool deploy
  • No sweepstakes mode (US-legal)
  • No fiat on-ramp
  • No multi-chain · single global pool only
Gap vs PoolTogether
They have:
  • No-loss PLSA model
  • V5 permissionless vaults
  • POOL governance token
  • 4+ year track record

Missing:
  • No jackpot excitement
  • Yield-dependent prizes (low APY = tiny prizes)
  • Not suitable for promotional / sweepstakes use

Feature Comparison

Feature Megapot PoolTogether Our Protocol
Daily jackpot YES NO YES
Permissionless pool deploy NO YES (V5) YES
B2B SDK / white-label NO NO YES
Sweepstakes mode (US-legal) NO NO YES
Fiat on-ramp NO NO YES
B2B payout trust / escrow NO NO YES
Multi-chain support NO (Base only) YES YES
Social / guild pools NO NO YES
No-loss PLSA hybrid NO YES YES
NFT tickets YES NO YES
Provably fair randomness YES (Pyth) YES YES+ (multi)
Protocol token NO YES (POOL) TBD
Smart contract audits YES (Zellic) YES PLANNED

Economic Pool Models

Model A
Ticket-Funded Jackpot
Revenue = tickets × $1. Simple, predictable, high excitement.
70% prizes
20% backer yield
10% referrers
2% protocol fee
Backers earn ~$0.20 per $1 tickets sold.

Best for: high excitement retail, viral jackpot campaigns.
Model B
PLSA Hybrid No-Loss
DeFi yield funds a guaranteed prize floor. Optional ticket purchase boosts the jackpot on top. No capital loss for depositors — principal is always intact.

Yield strategy configurable: Aave, Compound, or custom vault. Prize guaranteed regardless of ticket sales volume.

Best for: savings crowd, risk-averse users, neobank integrations.
Model C
Perpetual Rolling Pool
Unclaimed prizes roll forward each draw. Jackpot compounds until claimed — creating viral super-jackpot events.

Dynamic backer APY rises with rollover depth. The deeper the rollover, the higher the yield.

Best for: viral jackpot events, community hype cycles, long-tail pools.
Model D
B2B White-Label
Partner deploys pool + funds initial liquidity. Fully on-chain, trustless.

Protocol earns: setup fee + 2% ongoing.
Partner earns: full referrer yield on ALL embedded tickets — auto-distributed every draw. No invoices.

Economic incentive aligns partner with honest behavior.

Best for: enterprise embeds, fintech, gaming platforms.

Smart Contract Architecture

100%
%%{init: {'theme':'base','themeVariables':{'primaryColor':'#1e293b','primaryTextColor':'#f8fafc','primaryBorderColor':'#f59e0b','lineColor':'#38bdf8','secondaryColor':'#0f172a','tertiaryColor':'#0a0e1a','nodeBorder':'#f59e0b','mainBkg':'#0f172a','clusterBkg':'#1e293b','titleColor':'#f8fafc','edgeLabelBackground':'#1e293b'}}}%% graph TD PF["PoolFactory\n(permissionless deploy)"]:::gold --> LP["LotteryPool\n(per instance)"]:::gold LP --> TE["TicketEngine\nbuy / batch / auto-sub"]:::default LP --> LPM["LPManager\nbacker deposits & shares"]:::default LP --> RNG["RandomnessProvider"]:::blue LP --> PC["PrizeCalculator\ntier math + guaranteed min"]:::default LP --> PE["PayoutEscrow\nB2B multi-sig trust"]:::red LP --> RR["ReferralRegistry\non-chain revenue split"]:::default RNG --> Pyth["Pyth Entropy\n(primary)"]:::blue RNG --> CLVRF["Chainlink VRF\n(fallback)"]:::blue RNG --> Drand["drand\n(tertiary)"]:::blue classDef gold fill:#1e293b,stroke:#f59e0b,stroke-width:2px,color:#f8fafc classDef blue fill:#1e293b,stroke:#38bdf8,stroke-width:2px,color:#f8fafc classDef red fill:#1e293b,stroke:#ef4444,stroke-width:2px,color:#f8fafc classDef default fill:#0f172a,stroke:#334155,stroke-width:1px,color:#94a3b8

B2B Trust Solution

The Problem
Large B2B partner — a fintech with 500k users — embeds the lottery API. A user wins a $1M jackpot.

Who guarantees the payout? How does the winner convert on-chain funds to fiat?

The partner could withhold. The protocol has no recourse. The user has no trust anchor.

This kills enterprise adoption.
The Solution
Multi-sig escrow: partner + protocol + winner require 2-of-3 signatures to release funds.

Partner can post a collateral bond — slashable on failure to pay.

Regulated custodian option via Circle / Fireblocks for large payouts (>$50k).

Dispute resolution encoded on-chain. No court required.
Revenue Model
Partner earns referrer yield on ALL tickets sold through their embed.

On-chain, auto-distributed every draw cycle. Zero invoices. Zero payment delays.

Economic incentive aligns partner with honest behavior — they earn more by paying out winners, retaining users, and selling more tickets.

Dishonesty costs them future yield. Trust is profitable.

Roadmap

Phase 0
Research
NOW
  • Megapot analysis done
  • PoolTogether done
  • X bookmarks done
  • Economics sim pending
  • Legal pending
  • Notion import pending
Phase 1
Design
NEXT
  • Protocol spec
  • B2B API schema
  • Contract design
  • UX flows
  • Grok CTO review
Phase 2
Sprint 1–2
  • Core contracts
  • Randomness integration
  • LP/Backer logic
  • Payout calculator
Phase 3
Sprint 3–4
  • B2B API + SDK
  • Sweepstakes mode
  • Fiat on-ramp
  • Escrow contracts
Phase 4
Sprint 5–6
LAUNCH
  • White-label UI
  • Pool factory deploy
  • Security audit
  • Mainnet deploy

Open Decisions — Needs Sign-off

BLOCKING PHASE 1
01
Chain Strategy
Base-first OR multi-chain day 1?
Impact: deployment complexity, time-to-market
02
Token
Protocol governance token OR USDC-only?
Impact: fundraising, regulatory risk, community
03
Legal Entity
aya.capital umbrella OR new standalone entity?
Impact: liability, gaming license, fundraising
04
First B2B Target
Who is the anchor integration partner?
Impact: shapes API design and sales motion
05
Sweepstakes Priority
US retail mode — day-1 or Phase 2?
Impact: legal timeline (3–6 months)
06
Existing Contracts
Location of Joseph's existing lottery contracts?
Repo URL or deployed contract address needed
07
Notion Data
Notion workspace URL — Prometheus will pull + index all prior research.
Awaiting workspace URL
08
Audit Budget
$50–150k range. Who funds?
Timeline blocker for mainnet

Research Status

Megapot Deep Analysis
Complete
PoolTogether Reference
Complete
X Bookmarks Pull
3 Megapot bookmarks found
Economics Simulation
Pending (Forge loop)
Legal / Sweepstakes Framework
Pending
Quinti + LottoNation Competitive
Pending
Notion Import
Awaiting URL
Contract Audit
Awaiting location
B2B Trust Architecture
Pending