Skip to content

Latest commit

Β 

History

History
109 lines (74 loc) Β· 2.93 KB

File metadata and controls

109 lines (74 loc) Β· 2.93 KB

User Referral System - Quick Summary

🎯 The Idea

Let your users do marketing instead of paying for ads!

Users get referral codes β†’ Share them β†’ Earn ETH when others mint/buy β†’ You get growth without marketing budget!


πŸ’‘ How It Works (Simple)

  1. User Alice gets code: ref-alice123
  2. Alice shares on Twitter: "Use my code ref-alice123 when minting!"
  3. New user Bob mints with code ref-alice123
  4. Alice automatically gets 15% of mint fee (e.g., 0.0015 ETH)
  5. Bob pays normal price (you cover the referral cost)
  6. You get a new customer at fraction of ad cost!

πŸ’° The Math

Traditional Marketing

  • Ads: $1,000/month = $12,000/year
  • Influencers: $10,000/year
  • Total: $22,000/year

Referral System

  • Pay 15% of mint fee ONLY when someone uses a referral
  • 1000 referred mints at 0.01 ETH = 1.5 ETH referral cost (~$3,000)
  • Total: ~$3,000/year (7x cheaper!)

Plus: Users do the work (sharing, promoting), you get organic growth!


πŸ”§ What We Need to Build

Smart Contracts

  1. Referral Registry - Store codes and map to wallets
  2. ERC-8021 Parser - Read referral codes from transactions
  3. Reward Distribution - Automatically pay referrers

Frontend

  1. Referral Dashboard - Users see their code, stats, earnings
  2. Mint Page - Input field for referral code
  3. Leaderboard - Top referrers get recognition

πŸ“Š Reward Structure

Recommended:

  • Mint Referral: 15% of mint fee to referrer
  • Sale Referral: 10% of marketplace fee to referrer
  • New user pays normal price (you cover referral cost)

Example:

  • Mint costs 0.01 ETH
  • Referrer gets 0.0015 ETH
  • New user pays 0.01 ETH (same as normal)
  • You pay 0.0015 ETH (much cheaper than ads!)

πŸš€ Benefits

For You:

  • βœ… 7x cheaper than ads
  • βœ… Users do marketing (no work for you)
  • βœ… Pay only when users convert (no wasted ad spend)
  • βœ… Viral growth (each user brings 2-3 friends)
  • βœ… Built-in analytics (see which codes work best)

For Users:

  • βœ… Earn ETH from referrals
  • βœ… Leaderboard recognition
  • βœ… Discounts for new users
  • βœ… Gamification (compete with friends)

⚑ Implementation

Timeline: ~4 weeks

  1. Week 1: Registry contract + code registration
  2. Week 2: ERC-8021 integration + reward distribution
  3. Week 3: Frontend dashboard + mint UI
  4. Week 4: Analytics + leaderboard

Cost: Minimal (just development time)

ROI: Massive (cheaper marketing + user-driven growth)


🎯 Next Steps

  1. βœ… Review the detailed design: dev_logs/USER_REFERRAL_SYSTEM_DESIGN.md
  2. βœ… Decide on reward percentages (recommend: 15% mint, 10% sales)
  3. βœ… Choose code format (address-based vs custom username)
  4. πŸš€ Start implementation!

Bottom Line: This is a perfect use case for ERC-8021. You get user-driven marketing, they get rewards, everyone wins! πŸŽ‰