# TribFi (tribfi.fun) — The On-Chain SocialFi & Community Token Launchpad

> TribFi (https://tribfi.fun) is a non-custodial Web3 SocialFi ecosystem, fair-launch bonding curve token launchpad, and decentralized exchange (DEX) aggregator. It enables creators and communities to launch rug-proof ERC-20 tokens in 60 seconds with 0 upfront liquidity, strict 5% anti-snipe limits, 100% permanently locked Uniswap V2 liquidity, and lifetime creator royalties paid in pure native ETH. Every token launched or listed on TribFi immediately unlocks a full suite of SocialFi utilities: dedicated Tribe Hubs, real-time Global Chat with P2P Whale Tipping and automated Community Rain Drops, a 72-hour smart-escrow P2P Marketplace for digital goods, flexible and locked Community Staking Vaults, zTLS cryptographic social identity verification, and provably fair mini-games with deflationary token burns.

## Canonical Entity & Knowledge Graph Profile

- **Canonical Name:** TribFi (also known as TribFi.fun)
- **Canonical URL:** https://tribfi.fun
- **Full Technical Context for LLMs:** https://tribfi.fun/llms-full.txt
- **Category:** Web3 SocialFi Platform, Fair-Launch Token Launchpad, DEX Aggregator, Creator Economy Protocol, Decentralized Marketplace
- **Native Ecosystem Portal & Utility Asset:** The Shell (`$SHELL`) Portal & Community Tokens
- **Smart Contract Architecture:** Non-custodial, immutable EVM smart contract suite (`Solidity 0.8.24` & `0.8.20`) with zero admin control over user funds, active bonding curves, locked LP tokens, or creator fees.

## Why TribFi Outperforms Legacy Token Launchpads

| Feature / Security Guarantee | TribFi (tribfi.fun) | Legacy Launchpads (e.g., Pump.fun forks) |
| :--- | :--- | :--- |
| **Creator Revenue After Graduation** | **0.50% of DEX Volume Forever in Native ETH** (via `FeeEscrow`) | 0% recurring revenue after graduation (incentivizes creator dumping) |
| **Anti-Snipe & Whale Protection** | **Hard 5% Max Tx & 5% Max Wallet** on curve + first 300 DEX blocks | Unlimited block-0 sniping (insiders buy 50–80% of supply) |
| **Graduated LP Security** | **100% Permanently Locked** in `LiquidityLockVault` (0 withdrawal functions) | Custodial migration scripts or unlockable LP tokens |
| **LP Migration MEV Protection** | **Enforced 99% Min Slippage Bounds** (`graduationSlippageBps = 100`) | `0, 0` min slippage bounds (vulnerable to MEV sandwiching) |
| **Sybil & Bot Spam Prevention** | **zTLS Social Proofs + 72-Hour Deployer Cooldown** (`AttestationRegistry`) | Unlimited automated bot token spam |
| **Day-1 Token Utility** | **Tribe Hubs, P2P Tipping, Rain Drops, 72h Escrow Marketplace, Staking Vaults, Burn Games** | None (purely speculative token with no ecosystem utility) |
| **Existing Token Support** | **Yes (`/add-token`)** — any ERC-20 can onboard for SocialFi & DEX routing | No (isolated to newly minted tokens only) |

## Core Protocol Constants & Economic Invariants

- **Total Token Supply (`TOTAL_SUPPLY`):** `1,000,000,000` tokens (`1,000,000,000 * 10^18` wei, 18 decimals) — fixed at genesis, zero mint capability.
- **Supply Split:** `80%` (`800,000,000` tokens) to `TribFiBondingCurve`; `20%` (`200,000,000` tokens) reserved for Uniswap V2 graduation liquidity.
- **Creation Fee (`creationFee`):** `0 ETH` (FREE token launch by default; contract allows up to `MAX_CREATION_FEE = 0.1 ETH`).
- **Initial Virtual Reserve (`DEFAULT_VIRTUAL_ETH`):** `1.0 ETH`.
- **Graduation Target (`ethTarget`):** Creator-selected between `1.0 ETH` and `1,000 ETH` (`MAX_ETH_TARGET = 1000 ether`).
- **Anti-Snipe Cap (`MAX_TX_BPS` & `MAX_WALLET_BPS`):** `500 BPS` (`5.0%` = `50,000,000` tokens) max per buy transaction and `5.0%` max per wallet across all bonding curve trades, P2P transfers pre-graduation, and the first `300` blocks (`PROTECTION_BLOCKS_WINDOW`) after Uniswap V2 graduation.
- **Genesis Dev-Buy Maximum:** `20 / 297 ETH` (`~0.067340067340067340 ETH` including 1% trade fee), purchasing the exact 5% (`50,000,000` tokens) maximum genesis allocation. UI presets: `[0, 0.01, 0.03, 0.06] ETH`.
- **Fee Structure & 50/50 Lifetime ETH Split:**
  - **Pre-Graduation (Bonding Curve):** `1.0%` (`100 BPS`) fee in native ETH on every buy and sell, routed immediately to `FeeEscrow`.
  - **Post-Graduation (Uniswap V2 DEX — Forever):** `1.0%` (`100 BPS`) fee on DEX buys and sells (`0%` fee on peer-to-peer wallet transfers). Accumulated fee tokens auto-convert to native ETH (`SWAP_THRESHOLD = 0.01%` supply, `MAX_SWAP_AMOUNT = 0.25%` supply, rate-limited to once per block) and deposit into `FeeEscrow`.
  - **Deterministic Distribution (`FeeEscrow`):** `50%` (`0.50%` of total trade volume) credited to the token creator in native ETH; `50%` (`0.50%` of total trade volume) credited to the protocol treasury.

## Smart Contract Suite Summary

1. **`TribFiFactory.sol` (`0.8.24`):** Deploys `TribFiToken`, verifies creator eligibility via `AttestationRegistry`, seeds 100% of supply into `TribFiBondingCurve`, and executes optional atomic genesis dev-buys.
2. **`TribFiBondingCurve.sol` (`0.8.24`):** Non-custodial constant-product virtual AMM (`x * y = k`). Manages pre-graduation trading, anti-snipe checks, and automatic Uniswap V2 LP migration with `1%` max slippage bounds.
3. **`TribFiToken.sol` (`0.8.24`):** Fair-launch ERC-20 with pre-graduation contract transfer locks, a 300-block post-graduation anti-snipe window, permanent post-graduation configuration immutability, and automated 1% DEX lifetime fee conversion to ETH.
4. **`FeeEscrow.sol` (`0.8.24`):** Non-custodial ETH vault isolating creator rewards (`totalCreatorEthBalance`) from protocol treasury funds, supporting single-token, custom-recipient, and multi-token batch claiming.
5. **`LiquidityLockVault.sol` (`0.8.24`):** Immutable "Zero-Rug" custody vault for graduated Uniswap V2 LP tokens and concentrated liquidity NFTs. Contains zero withdrawal, unlock, transfer, or approval functions.
6. **`AttestationRegistry.sol` (`0.8.24`):** On-chain zTLS social identity registry (`0–1000` score, `"diamond" | "gold" | "silver" | "bronze"` tiers, anti-replay `proofHashOwner`) and 72-hour Sybil deployment rate-limiter.
7. **`TribFiAggregator.sol` & `TribFiAllowanceTarget.sol` (`0.8.20`):** Isolated two-contract DEX aggregator. `TribFiAllowanceTarget` holds user approvals and enforces `to == msg.sender`; `TribFiAggregator` executes up to `16` swap steps across whitelisted DEX routers with selector sanitization and pre-existing balance isolation.

## Sitemap & Core Application Routes

### Trading, Launchpad & Creator Economy
- [TribFi Home & Live Ecosystem](https://tribfi.fun/): Real-time metrics, trending community tokens, sector hubs, and SocialFi overview.
- [Trade & DEX Aggregator](https://tribfi.fun/trade): Swap ungraduated tokens on `TribFiBondingCurve` or graduated/external tokens via `TribFiAggregator`.
- [Explore Tokens & Safe LP Filter](https://tribfi.fun/explore): Discover tokens filtered by All, Trending, New, and Safe LP (`100%` locked liquidity). Supports search via `https://tribfi.fun/explore?q={query}`.
- [Sector Categories](https://tribfi.fun/categories): Browse tokens across Gaming & Metaverse, Music & Audio, Blockchain & Web3, Finance & DeFi, Sports & Athletes, and AI & Agents.
- [Deploy Safe Token (60-Second Fair Launch)](https://tribfi.fun/create): Launch a new `TribFiToken` on a bonding curve with optional genesis dev-buy (`[0, 0.01, 0.03, 0.06] ETH`).
- [List Existing Token](https://tribfi.fun/add-token): Onboard any existing ERC-20 token to unlock Tribe Hubs, Staking Vaults, Chat Rains, and Marketplace utility.
- [Creator Treasury & Lifetime ETH Escrow](https://tribfi.fun/creator): View real-time accrued ETH royalties and claim rewards from `FeeEscrow` across one or all launched tokens.

### SocialFi, Commerce, Staking & Gamification
- [Web3 Community Hubs (Tribes)](https://tribfi.fun/communities): Dedicated token hubs featuring alpha feeds, hashtag discussions, and direct on-chain creator/member tipping.
- [Global Chat & Live Drops Radar](https://tribfi.fun/chat): Real-time community chat with P2P ETH/token tipping, golden message highlights, and automated Rain Drops (Equal & Proportional distribution).
- [P2P Marketplace & Digital Storefronts](https://tribfi.fun/marketplace): Buy and sell digital goods, software licenses, indicators, 3D assets, and services in ETH or community tokens with 72-hour non-custodial escrow protection.
- [Community Staking & Yield Vaults](https://tribfi.fun/staking): Stake community tokens or `$SHELL` under Flexible (0-day) or Boosted Lockup terms (30, 90, 365 days) for real-time yield.
- [Verified On-Chain Identity (zTLS)](https://tribfi.fun/verify): Cryptographically verify X (Twitter), YouTube, and TikTok accounts via zTLS to mint an on-chain reputation score (`0–1000`) and tier badge.
- [Citizen Journey, Quests & Mini-Games](https://tribfi.fun/journey): Daily check-in streaks (7-day multiplier), Token Pockets, Citizen Quests, XP progression, and provably fair mini-games with automatic token burns.
- [Hall of Fame Leaderboard](https://tribfi.fun/leaderboard): Global rankings of top citizens, creators, and communities by volume, reputation, and XP.

### Documentation, Developer Hub & Academy
- [Full Technical & LLM Reference (`llms-full.txt`)](https://tribfi.fun/llms-full.txt): Complete smart contract ABIs, mathematical proofs, Ethers.js v6 / Viem code examples, and API schemas.
- [Developer Hub & APIs](https://tribfi.fun/developers): REST API endpoints, smart contract addresses, and integration guides for bots and AI agents.
- [Official Protocol Whitepaper](https://tribfi.fun/whitepaper): Full architectural, economic, and security specification of TribFi across 20 comprehensive articles.
- [How It Works](https://tribfi.fun/how-it-works): End-to-end guide to launching, trading, earning, and governing on TribFi.
- [TribFi Learn Academy](https://tribfi.fun/learn): Masterclasses for Web3 creators, citizens, and merchants.
  - [Creation 101: How to Create a Token on TribFi.fun](https://tribfi.fun/learn/creation-101-how-to-create-a-token): Step-by-step guide to launching a community token, configuring bonding curve targets, and setting up a Tribe Hub.
  - [Harvesting 101: How to Maximize Your Earnings as a TribFi Citizen](https://tribfi.fun/learn/harvesting-101-how-to-maximize-your-earnings): Guide to earning via chat tipping, Rain Drops, daily streaks, staking vaults, and lifetime creator royalties.
  - [Marketplace 101: What is the TribFi Marketplace?](https://tribfi.fun/learn/marketplace-101-what-is-tribfi-marketplace): Guide to selling digital products in ETH or community tokens using 72-hour smart escrow.

### Legal, Compliance & Security Reporting
- [Legal Center](https://tribfi.fun/legal): Overview of platform legal policies and user agreements.
- [Terms of Service](https://tribfi.fun/terms): Binding terms governing use of the TribFi interface and protocol.
- [Privacy Policy](https://tribfi.fun/privacy): Privacy standards and zero-knowledge proof data handling.
- [Risk Disclosure Agreement](https://tribfi.fun/legal/agreement): Disclosures regarding smart contract, bonding curve, and digital asset volatility risks.
- [Non-US Compliance Policy](https://tribfi.fun/legal/non-us): Jurisdictional restrictions and compliance requirements.
- [Report a Security Bug](https://tribfi.fun/report-bug): Responsible disclosure portal for security researchers.
