Skip to content

emmanuelkings949-pixel/fairgate-solana

Repository files navigation

🛡️ FairGate: Anti-Bot Launchpad Gated by FairScale

FairGate is a high-security launchpad prototype on Solana. It leverages FairScale's reputation engine to ensure that exclusive opportunities (like airdrops and presales) are reserved for genuine humans, not bot farms.

🚀 The Solution

Many Solana launches are ruined by bots draining liquidity in seconds. FairGate solves this by:

  1. Identity Verification: Connecting to the user's Solana wallet.
  2. Reputation Analysis: Securely fetching the user's FairScale score (0-100).
  3. Logic Gating: Automatically disabling sensitive UI components (like the "Claim" button) for any wallet with a score below 40.

🛠️ Technical Implementation

  • Next.js 16 (Turbopack): Utilizing the latest App Router for speed.
  • Secure API Routes: The FairScale API key is stored in .env.local and called through a server-side route (/api/score) to prevent the key from being exposed to the browser.
  • Client-Side Safety: Implemented dynamic mounting to ensure a seamless wallet-connection experience without hydration errors.

📦 How to Run

  1. Add FAIRSCALE_API_KEY to your .env.local.
  2. Run npm install.
  3. Run npm run dev.

About

FairGate is a reputation-gated launchpad on Solana that uses FairScale to protect exclusive rewards from bot exploitation. By integrating secure server-side API routes, it real-time verifies user reputation to unlock high-value features for genuine community members.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors