Reach
Turn your social engagement into real-time Bitcoin yield streams. SocialFi meets DeFi
Problem Statement
Reachis the firstSocialFi protocolthat transforms social attention into quantifiable financial value. We bridge the gap between decentralized social networks and institutional-grade DeFi, creating an ecosystem where your social influence unlocks premium Bitcoin yields.Babylon white paper - https://github.com/shreyaspapi/reach/blob/main/Whitepaper_preliminary_draft.pdfThe Problem We're SolvingThe current digital economy is broken in three fundamental ways:Attention has no price tag: Billions of users generate massive value through social engagement, but platforms capture all the upside. Your "likes" and "retweets" are vanity metrics—not assets.DeFi is isolated from reality: High-quality yield products (like Bitcoin staking) live in walled gardens, disconnected from where people actually spend their time—social media.Quality is invisible: It's impossible to distinguish genuine, high-value discourse from spam and bot activity. Everyone's engagement looks the same.Our Solution: The SocialFi StackReachcreates a unified layer that connectsFarcaster(decentralized social) withBitcoin DeFi:AI-Powered Social Scoring: We use Azure OpenAI to analyze every mention, cast, and reply in real-time. Our agents evaluate context, sentiment, and quality—not just raw volume. This generates yourReach Score, a dynamic reputation metric that reflects genuine community contribution.Streaming Token Rewards: High-quality engagement earns$REACH tokens, streamed directly to your wallet in real-time usingSuperfluid. The better your engagement, the higher your flow rate. Think of it as "proof-of-attention."DeFi Yield Unlocks: Your Reach Score doesn't just sit there—it's the key tobonus APYon our TradBTC vaults. The more social capital you build, the better your Bitcoin yields.Institutional Bitcoin Vaults: TradBTC combinesBabylon staking(trustless BTC yield) with institutional strategies, offering 12%+ APY. Live NAV tracking viaPyth Networkoracles ensures full transparency.Why This MattersFor the first time,your social reputation has direct financial utility. Builders, thought leaders, and community contributors can monetize their influence without selling ads or compromising privacy. Meanwhile, DeFi users get access to premium yields previously reserved for institutions—rewarding those who actively strengthen the ecosystem.Reachisn't just another DeFi dashboard or social app. It's theSocialFi operating systemfor Web3's new economy.
Solution
Architecture OverviewReach is afull-stack SocialFi protocolbuilt with cutting-edge Web3 and AI technologies:┌─────────────┐ │ Farcaster │ (Social Layer) └──────┬──────┘ │ Webhooks ▼ ┌─────────────┐ │ Neynar │ (Real-time Events) └──────┬──────┘ │ ▼ ┌─────────────┐ ┌──────────────┐ │ Reach API │─────▶│ Azure OpenAI │ (AI Scoring) └──────┬──────┘ └──────────────┘ │ ▼ ┌─────────────┐ ┌──────────────┐ │ Supabase │◀────▶│ Superfluid │ (Token Streams) └─────────────┘ └──────┬───────┘ │ ▼ ┌─────────────┐ │ $REACH │ (ERC-20 Supertoken) └─────────────┘ ┌──────────────────────────┐ │ DeFi Layer │ │ ┌────────────────────┐ │ │ │ TradBTC Vaults │ │ │ │ • Babylon Staking │ │ │ │ • Pyth Oracles │ │ │ │ • MSTR NAV Tracking│ │ │ └────────────────────┘ │ └──────────────────────────┘Tech Stack Breakdown🎨 Frontend (Next.js 15 + TypeScript)Framework: Next.js 15 with App Router for optimal performanceDesign System: Custom Blueprint-themed UI with sketchy borders, cross-hatching, and technical drawing aestheticsAuth: Privy for seamless Farcaster authenticationWallet: WalletConnect v3 for multi-chain support🔗 Social InfrastructureFarcaster: Decentralized social protocol (the "input layer" for attention)Neynar: Provides real-time webhooks for mentions, replies, and castsWebhook Processing: Custom Node.js middleware validates and routes social events to our scoring engine🤖 AI Scoring EngineAzure OpenAI GPT-4: Evaluates engagement quality using semantic analysisCustom Prompts: Trained to distinguish between:High-value discourse (technical questions, thoughtful replies)Medium-value engagement (memes, casual conversation)Low-value spam ("GM", bot activity, copy-paste)Real-time Processing: Sub-3-second latency from event → score → stream adjustment💾 Backend & DatabaseSupabase: PostgreSQL database with real-time subscriptionsStores user profiles, Reach Scores, and engagement historyRow-level security ensures data privacyDatabase Schema:users: FID, wallet address, Reach Score, tierengagements: Individual social events with AI scoresstream_allocations: Active Superfluid streams per campaign💸 Token Streaming (Superfluid)Superfluid Protocol: Powers real-time $REACH token streamsDynamic Flow Rates: Adjusted based on AI-evaluated engagement qualityGDA Pools(General Distribution Agreement): Used for campaign budgetsCustom Integration:// Example: Adjust user's stream based on new engagement score function updateUserStream(address user, int96 newFlowRate) external { pool.updateMemberUnits(user, calculateUnits(newFlowRate)); }₿ DeFi Layer (TradBTC)Smart Contracts (Foundry + Solidity):MSTRNavOracle.sol: Custom oracle contract that fetches:BTC price from Pyth NetworkMSTR stock price from Pyth NetworkCalculates NAV per share and MNAV premium in real-timeDeployed on Base Sepolia:0x21c1914f8f1a6cd3faaa08c761ec0990d01fab8fIntegration with Babylon:80% of vault assets stake BTC on Babylon for trustless yield20% deployed in low-risk institutional strategies (simulated for hackathon)Live Oracle Dashboard:Real-time NAV display on TradBTC pageFetches on-chain data using ethers.jsAuto-refresh every 60 secondsFallback to demo data if price feeds are staleFrontend Integration:const contract = new ethers.Contract(ORACLE_ADDRESS, ABI, provider); const [nav, mnavMultiple, btcTimestamp, mstrTimestamp] = await contract.getMstrNavAndMnav();🔐 Authentication & WalletsPrivy: Handles Farcaster OAuth + embedded walletsNon-custodial: Users always control their private keysMulti-platform: Same identity across web and mobile🏗 Partner Technologies UsedFarcaster: Core social identity layer. Enables decentralized, verifiable engagement tracking.Neynar: Critical infrastructure for Farcaster webhooks. Without it, real-time event processing would require running our own indexer—expensive and slow.Azure OpenAI: The "brain" of our scoring system. Generic sentiment analysis APIs weren't cutting it—we needed GPT-4's reasoning to distinguish between "this is cool" and "here's why this breaks the protocol's invariant..."Superfluid: Enablescontinuous token streaming, not batched payouts. This creates a "live ticker" feeling where your engagementimmediatelyaffects your wallet balance.Babylon: Provides trustless BTC staking. Traditional Bitcoin yields require custody—Babylon changes the game by making staking non-custodial.Pyth Network: Low-latency, high-fidelity price feeds. We use Pyth for both BTC and MSTR prices to calculate vault NAV on-chain.Supabase: Postgres + real-time subscriptions out-of-the-box. Perfect for rapid prototyping without spinning up custom infrastructure.🎪 Notably Hacky / Clever ImplementationsAI-Weighted Stream Adjustments: Instead of binary "reward or don't," we use acontinuous scoring model. A "great" reply might boost your flow rate by 50%, while a "meh" one gives you 10%. This creates nuanced incentives for quality.MNAV Premium as Yield Benchmark: We track MicroStrategy's NAV premium (MNAV) as a real-time benchmark. When MSTR trades at 2x NAV, it signals strong institutional demand for Bitcoin exposure—we use this to justify our vault's competitive APY.Blueprint Aesthetic: We ditched generic Web3 UI for atechnical drawing theme(sketchy borders, cross-hatching, construction guides). This creates a distinct brand identity and signals "serious engineering" to users.Fallback Oracle Data: Price oracles can go stale during testnet downtime. Our frontend gracefully degrades todemo data(randomized but realistic) so the UX never breaks.Webhook Replay Attack Prevention: Early on, someone could theoretically replay Neynar webhook payloads to farm $REACH. We added:HMAC signature verificationNonce tracking (prevent duplicate event processing)Timestamp validation (reject events older than 5 minutes)
Hackathon
ETHGlobal Buenos Aires
2025
Contributors
- shreyaspapi
74 contributions
- avadam21
4 contributions
- cursoragent
3 contributions
- vercel[bot]
1 contributions