[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-111987":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":10,"language":11,"languages":10,"totalLinesOfCode":10,"stars":12,"forks":13,"watchers":14,"openIssues":15,"contributorsCount":15,"subscribersCount":15,"size":15,"stars1d":15,"stars7d":15,"stars30d":15,"stars90d":15,"forks30d":15,"starsTrendScore":15,"compositeScore":16,"rankGlobal":10,"rankLanguage":10,"license":17,"archived":18,"fork":18,"defaultBranch":19,"hasWiki":20,"hasPages":18,"topics":21,"createdAt":10,"pushedAt":25,"updatedAt":26,"readmeContent":27,"aiSummary":28,"trendingCount":15,"starSnapshotCount":15,"syncStatus":29,"lastSyncTime":30,"discoverSource":31},111987,"float","floatdotxyz\u002Ffloat","floatdotxyz","Official docs, SDK, CLI and Anchor reference program for Float on Solana (Raydium LaunchLab\u002FCPMM). ","https:\u002F\u002Fwww.floatlaunch.xyz\u002F",null,"TypeScript",150,9,4,0,43.24,"MIT License",false,"main",true,[22,23,24],"crypto","launchpad","solana-launchpad","2026-11-11 20:39:02","2026-11-23 18:23:13","\u003Cdiv align=\"center\">\n\n\u003Cimg src=\"assets\u002Fbanner.svg\" alt=\"Float Community Toolkit: documentation, SDK, CLI and on-chain programs for Float on Solana\" width=\"100%\"\u002F>\n\n\u003Cbr\u002F>\n\n[![Solana](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002FSolana-mainnet-14F195?style=flat-square&logo=solana&logoColor=white&labelColor=0B1020)](https:\u002F\u002Fsolana.com)\n[![Anchor](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002FAnchor-0.31.1-5EEAD4?style=flat-square&labelColor=0B1020)](programs\u002Ffloat-router)\n[![Rust](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002FRust-no__std%20core-F74C00?style=flat-square&logo=rust&logoColor=white&labelColor=0B1020)](crates\u002Ffloat-core)\n[![TypeScript](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002FTypeScript-zero%20deps-3178C6?style=flat-square&logo=typescript&logoColor=white&labelColor=0B1020)](packages\u002Fsdk)\n[![Node](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002FNode-%E2%89%A5%2022.18-5FA04E?style=flat-square&logo=nodedotjs&logoColor=white&labelColor=0B1020)](package.json)\n[![Tests](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002Ftests-127%20passing-4ADE80?style=flat-square&labelColor=0B1020)](#quality-assurance)\n[![License](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002Flicense-MIT-818CF8?style=flat-square&labelColor=0B1020)](LICENSE)\n\n**[Documentation](docs\u002FREADME.md)** · **[Program Specification](docs\u002Fprograms\u002Ffloat-router.md)** · **[SDK Guide](docs\u002Fdevelopers\u002Fsdk.md)** · **[CLI Reference](docs\u002Fdevelopers\u002Fcli.md)** · **[Scripts](docs\u002Fdevelopers\u002Fscripts.md)** · **[Contracts](docs\u002Fcontracts.md)**\n\n\u003C\u002Fdiv>\n\n\u003Cbr\u002F>\n\n## Overview\n\n[Float](https:\u002F\u002Fwww.floatlaunch.xyz\u002F) is a token launch platform on Solana built on **Raydium LaunchLab**. Rather than retaining the platform fee, Float distributes the fees generated by every coin across five recipients and settles them automatically.\n\nThis repository provides a complete, independently verifiable toolkit for those mechanics:\n\n\u003Ctable>\n\u003Ctr>\n\u003Ctd width=\"33%\" valign=\"top\">\n\n### Documentation\n\nComprehensive coverage of every section of the official Float documentation: fee split, fee cycling, holder rewards, trader airdrops, $FLOAT buybacks, tickers, pairs, risks and contracts. Supplemented by an architecture overview, a Raydium integration reference, auditing guides, an FAQ and a glossary.\n\n**→ [`docs\u002F`](docs\u002FREADME.md)**\n\n\u003C\u002Ftd>\n\u003Ctd width=\"33%\" valign=\"top\">\n\n### On-chain programs\n\n**`float-router`** (Anchor) enforces every protocol rule on chain: coin registry, ticker escrow, Raydium CPIs, exact fee split, price-guarded swaps, buybacks burned within the same instruction, holder payouts and merkle airdrops.\n\n**`float-core`** (Rust, `no_std`, no dependencies) contains the shared math.\n\n**→ [`programs\u002F`](programs\u002Ffloat-router) · [`crates\u002F`](crates\u002Ffloat-core)**\n\n\u003C\u002Ftd>\n\u003Ctd width=\"33%\" valign=\"top\">\n\n### SDK, CLI and operations\n\nA **dependency-free** TypeScript SDK with IDL-driven Raydium integration, a 14-command **CLI**, and production-grade **keeper**, **payout bot** and **airdrop pipeline** scripts. All transaction paths run in simulation mode by default.\n\n**→ [`packages\u002F`](packages) · [`scripts\u002F`](scripts)**\n\n\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003C\u002Ftable>\n\n\u003Cbr\u002F>\n\n## Table of Contents\n\n1. [Overview](#overview)\n2. [Fee Model](#fee-model)\n3. [Architecture](#architecture)\n4. [Getting Started](#getting-started)\n   - [Requirements](#requirements)\n   - [Installation and Testing](#installation-and-testing)\n   - [Read-Only Tour](#read-only-tour)\n   - [Deploying a Router on Devnet](#deploying-a-router-on-devnet)\n5. [Command-Line Interface](#command-line-interface)\n6. [On-Chain Program: `float-router`](#on-chain-program-float-router)\n7. [TypeScript SDK](#typescript-sdk)\n8. [Operations: Bots and Scripts](#operations-bots-and-scripts)\n9. [Protocol Reference](#protocol-reference)\n   - [Protocol Constants](#protocol-constants)\n   - [Mainnet Addresses](#mainnet-addresses)\n   - [Router PDAs](#router-pdas)\n10. [Repository Layout](#repository-layout)\n11. [Quality Assurance](#quality-assurance)\n12. [Security](#security)\n13. [Roadmap](#roadmap)\n14. [Contributing](#contributing)\n15. [License](#license)\n\n\u003Cbr\u002F>\n\n## Fee Model\n\n\u003Cdiv align=\"center\">\n\u003Cimg src=\"assets\u002Ffee-split.svg\" alt=\"Fee split: holders 15%, creator 5%, flagship 35%, traders 35%, treasury 10%\" width=\"860\"\u002F>\n\u003C\u002Fdiv>\n\n| Recipient | Share | Settlement asset | Distribution |\n| :-- | --: | :-- | :-- |\n| **Holders** | 15% | Paired token | Distributed pro rata by the payout bot every few minutes, regardless of where the tokens were acquired. A token account is created once the amount owed reaches $2; smaller balances roll over. Unpaid amounts of wallets that sell are redistributed to remaining holders. |\n| **Creator** | 5% | Paired token | Sent to the wallet designated at launch. |\n| **Flagship** | 35% | SOL → $FLOAT | Used to buy $FLOAT once ~5 SOL accumulates or every 4 hours, with at most 1% price impact per purchase. Purchased tokens are **burned on chain**. |\n| **Traders** | 35% | USDC | Airdropped to the top wallets by trading volume. Bot activity and wash trading are excluded; new pairs become eligible after 7 days. |\n| **Treasury** | 10% | Paired token | Platform treasury. Also receives the 1 SOL ticker reuse fees. |\n\nFees accumulate in Raydium's vaults until a **Cycle fees** transaction is executed. The operation is permissionless and is also triggered automatically by the payout bot.\n\n→ [Fee split](docs\u002Fmechanics\u002Ffee-split.md) · [Fee cycling](docs\u002Fmechanics\u002Ffee-cycling.md)\n\n\u003Cbr\u002F>\n\n## Architecture\n\n```mermaid\n%%{init: {\"theme\": \"base\", \"themeVariables\": {\"primaryColor\": \"#0D1634\", \"primaryTextColor\": \"#E6EDF7\", \"primaryBorderColor\": \"#38BDF8\", \"lineColor\": \"#5EEAD4\", \"secondaryColor\": \"#111B3A\", \"tertiaryColor\": \"#0B1020\", \"fontFamily\": \"Inter, ui-sans-serif\"}}}%%\nflowchart LR\n  T([\"Traders\"]) -- \"buy \u002F sell on curve\" --> LL\n  T -- \"swap after graduation\" --> CP\n\n  subgraph RAY[\"Raydium\"]\n    LL[\"LaunchLab\u003Cbr\u002F>\u003Csub>bonding curve\u003C\u002Fsub>\"]\n    CP[\"CPMM\u003Cbr\u002F>\u003Csub>constant product\u003C\u002Fsub>\"]\n    BE[\"Burn & Earn\u003Cbr\u002F>\u003Csub>locked LP\u003C\u002Fsub>\"]\n    LL -- \"migrate_to_cpswap\" --> CP\n    LL -- \"lock LP\" --> BE\n  end\n\n  subgraph ROUTER[\"float-router\"]\n    direction TB\n    CY{{\"cycle_launchlab\u003Cbr\u002F>cycle_cpmm\"}}\n    SP[\"split 15·5·35·35·10\"]\n    CY --> SP\n  end\n\n  LL -- \"claim_platform_fee (CPI)\" --> CY\n  CP -- \"collect_creator_fee (CPI)\" --> CY\n\n  SP -- \"15%\" --> HV[(\"Holders vault\")]\n  SP -- \"5%\" --> CW([\"Creator wallet\"])\n  SP -- \"35%\" --> FV[(\"Flagship vault\")]\n  SP -- \"35%\" --> TV[(\"Traders vault\")]\n  SP -- \"10%\" --> TR([\"Treasury\"])\n\n  HV -- \"payout_holders\" --> H([\"Holders\"])\n  FV -- \"convert → SOL\u003Cbr\u002F>execute_buyback\" --> BURN[\"$FLOAT burned\"]\n  TV -- \"convert → USDC\u003Cbr\u002F>merkle airdrop\" --> TOP([\"Top traders\"])\n```\n\n\u003Cdetails>\n\u003Csummary>\u003Cb>Lifecycle of a fee cycle\u003C\u002Fb> (sequence diagram)\u003C\u002Fsummary>\n\n```mermaid\nsequenceDiagram\n  autonumber\n  actor K as Keeper \u002F any caller\n  participant R as float-router\n  participant L as LaunchLab\n  participant V as Router vaults\n  K->>R: cycle_launchlab(coin)\n  R->>R: verify pool PDA, platform config, quote vault\n  R->>L: claim_platform_fee (signed by authority PDA)\n  L-->>R: paired tokens → intake ATA\n  R->>R: Δ = intake_after − intake_before\n  R->>R: float_core::split(Δ)  (exact, dust → treasury)\n  R->>V: holders 15% · flagship 35% · traders 35%\n  R->>K: creator 5% → creator wallet · treasury 10%\n  R-->>K: emit FeesCycled{coin, Δ, buckets}\n```\n\n\u003C\u002Fdetails>\n\n\u003Cbr\u002F>\n\n## Getting Started\n\n### Requirements\n\n| Component | Version | Purpose |\n| :-- | :-- | :-- |\n| Node.js | ≥ 22.18 | SDK, CLI and scripts (TypeScript runs natively) |\n| Rust | stable | `float-core` |\n| Anchor | 0.31.1 | Building `float-router` |\n| Solana CLI | 2.1 | Building and deploying `float-router` |\n\n### Installation and Testing\n\n```bash\ngit clone https:\u002F\u002Fgithub.com\u002F\u003Cyou>\u002Ffloat-community && cd float-community\nnpm install                       # development dependencies only: typescript, @types\u002Fnode\n\nnpm test                          # SDK, CLI, router client and keeper end-to-end tests\ncargo test -p float-core          # Rust core\nanchor build                      # float-router and its IDL\n```\n\n### Read-Only Tour\n\nThe following commands query mainnet state without submitting any transaction:\n\n```bash\nexport SOLANA_RPC_URL=https:\u002F\u002Fyour-rpc.example\nnpm run float -- addresses                    # All Float and Raydium addresses, with Solscan links\nnpm run float -- split 12.5                   # Distribution of 12.5 SOL in fees\nnpm run float -- ticker '$pepe' --taken PEPE  # Launch cost and refund conditions\nnpm run float -- pool  \u003Ccoin-mint>            # Bonding curve progress and fee rates\nnpm run float -- cycle \u003Ccoin-mint>            # Amounts a \"Cycle fees\" call would route now\nnpm run float -- payouts --wallet \u003Cwallet>    # Holder payouts received by a wallet\nnpm run float -- burns                        # History of $FLOAT buyback burns\n```\n\n### Deploying a Router on Devnet\n\n```bash\nscripts\u002Frouter\u002Fdeploy.sh devnet\nnode scripts\u002Frouter\u002Finit.ts --operator \u003Cbot> --treasury \u003Cwallet> \\\n  --flagship-mint \u003Cmint> --platform-config \u003Claunchlab-platform-config> --pairs \u003Cmint,...> --send\n# Then set platform_fee_wallet and platform_cp_creator to the router authority on the LaunchLab platform config.\nnode scripts\u002Fkeeper\u002Fkeeper.ts --flagship-pool \u003CFLOAT\u002FSOL CPMM> --send\nnode scripts\u002Fkeeper\u002Fpayout-bot.ts --prices prices.json --send\n```\n\n\u003Cbr\u002F>\n\n## Command-Line Interface\n\n\u003Cdiv align=\"center\">\n\u003Cimg src=\"assets\u002Fterminal.svg\" alt=\"Terminal session showing float cycle output with the five-way split\" width=\"900\"\u002F>\n\u003C\u002Fdiv>\n\nThe `float` CLI exposes 14 commands, grouped by the access they require:\n\n| Category | Commands |\n| :-- | :-- |\n| **Read-only** (RPC queries) | `addresses` · `split` · `ticker` · `pool` · `quote` · `cycle` · `inspect` · `holders` · `burns` · `payouts` |\n| **Offline** (local computation) | `airdrop` (ranking and allocation from CSV) · `buyback` (purchase plan within the 1% impact cap) |\n| **Transactional** | `buy` · `sell` on the bonding curve, **simulated unless `--send` is specified** |\n\n→ [CLI reference](docs\u002Fdevelopers\u002Fcli.md)\n\n\u003Cbr\u002F>\n\n## On-Chain Program: `float-router`\n\n`programs\u002Ffloat-router` · Anchor 0.31.1 · 18 instructions · 5 account types · 11 events · 34 error codes\n\n| Area | Instruction | Authorized caller | On-chain enforcement |\n| :-- | :-- | :-- | :-- |\n| **Coins** | `register_coin` | Pool creator | LaunchLab pool PDA, platform config and creator; ticker counter; **1 SOL escrow** on ticker reuse |\n| | `mark_graduated` | Any | LaunchLab `status == 2` |\n| | `settle_ticker_fee` | Any | Refund if graduated within 48 h, otherwise released to treasury |\n| **Cycling** | `cycle_launchlab` | Any | CPI to `claim_platform_fee`; balance-delta attribution; exact split |\n| | `cycle_cpmm` | Any | CPI to `collect_creator_fee`; pool creator must be the router authority |\n| | `swap_base_fees` | Operator | Converts coin-side fees to the paired token under a price guard |\n| **Flagship** | `convert_vault` | Operator | Flagship vault to **WSOL only**, traders vault to **USDC only**, under a price guard |\n| | `execute_buyback` | Operator | 5 SOL \u002F 4 h trigger · **simulated on-chain impact ≤ 1%** · price guard · **burn within the same instruction** |\n| **Holders** | `payout_holders` | Operator | ≤ 20 recipients · paired-mint accounts only · `Σ ≤ holders_unpaid` |\n| **Traders** | `create_airdrop` \u002F `claim_airdrop` \u002F `close_airdrop` | Operator \u002F Any \u002F Operator | Domain-separated SHA-256 merkle tree · one receipt per leaf · `Σ ≤ total` |\n| **Admin** | `initialize` · `update_config` · `set_paused` · `propose_admin` · `accept_admin` | Admin | Validated parameter bounds · two-step admin transfer |\n\n**Guaranteed invariants:** conservation of every cycled amount, per-coin attribution, holder solvency, complete burns, airdrop integrity and bounded slippage.\n\n→ [Full specification](docs\u002Fprograms\u002Ffloat-router.md)\n\n\u003Cbr\u002F>\n\n## TypeScript SDK\n\n```ts\nimport { Connection, MINTS, PublicKey, launchLab, previewCycle, router } from \"@float-community\u002Fsdk\";\n\nconst conn = new Connection(process.env.SOLANA_RPC_URL!);\nconst coin = new PublicKey(\"\u003Ccoin-mint>\");\n\n\u002F\u002F Raydium LaunchLab, decoded directly from the vendored IDL\nconst pool = await launchLab.fetchLaunchLabPool(conn, launchLab.launchLabPda.pool(coin, MINTS.WSOL));\nconst quote = launchLab.quoteBuyExactIn(pool.pool, 1_000_000_000n, launchLab.feeRatesOf(pool));\n\n\u002F\u002F Preview of the amounts a \"Cycle fees\" call would route right now\nconst { split } = await previewCycle(conn, coin, MINTS.WSOL);\n\n\u002F\u002F float-router instruction builders, with account order generated from the Rust source\nconst ix = new router.RouterClient().cycleLaunchLab(payer, coinRecord, config, pool.pool.quote_vault);\n```\n\n| Module | Capabilities |\n| :-- | :-- |\n| **Core** | Base58 · ed25519 on-curve check · PDAs · Borsh · Anchor IDL coder with PDA resolution · JSON-RPC client · legacy transaction signing via `node:crypto` |\n| **Raydium** | LaunchLab (curve quotes, fee split, trade and claim instructions, `TradeEvent` decoding) · CPMM (port of `CurveCalculator`) · Burn & Earn |\n| **Float** | Fee split · cycle preview · holder snapshots and payout model · airdrop ranking, allocation and merkle trees · buyback sizing · price guard · tickers · pairs · burn and payout history |\n| **Router** | `RouterClient` (18 instruction builders) · PDAs · account decoders · `fetchAllCoins` |\n\n→ [SDK guide](docs\u002Fdevelopers\u002Fsdk.md)\n\n\u003Cbr\u002F>\n\n## Operations: Bots and Scripts\n\n| Script | Responsibility |\n| :-- | :-- |\n| [`scripts\u002Frouter\u002Fdeploy.sh`](scripts\u002Frouter\u002Fdeploy.sh) | Key sync → build (optionally verifiable) → IDL check → deployment |\n| [`scripts\u002Frouter\u002Finit.ts`](scripts\u002Frouter\u002Finit.ts) | Initializes the config and the vaults for WSOL, USDC, $FLOAT and every paired mint |\n| [`scripts\u002Fkeeper\u002Fkeeper.ts`](scripts\u002Fkeeper\u002Fkeeper.ts) | Runs `mark_graduated` → `settle_ticker_fee` → `cycle_*` → `swap_base_fees` → `convert_vault` → `execute_buyback` |\n| [`scripts\u002Fkeeper\u002Fpayout-bot.ts`](scripts\u002Fkeeper\u002Fpayout-bot.ts) | Snapshot → payout model → batched `payout_holders`, backed by a persistent rollover ledger |\n| [`scripts\u002Fairdrop\u002F`](scripts\u002Fairdrop) | `build` (ranking, allocation, merkle tree) → `publish` (verifies every proof, commits the root) → `distribute` (pushes claims, skipping existing receipts) |\n\nAll scripts **run in simulation mode by default**, emit structured JSON logs when `LOG_JSON=1` is set, and are tested end to end against a mock RPC in CI.\n\n→ [Scripts documentation](docs\u002Fdevelopers\u002Fscripts.md)\n\n\u003Cbr\u002F>\n\n## Protocol Reference\n\n### Protocol Constants\n\n| Constant | Value | Source |\n| :-- | :-- | :-- |\n| Fee split (bps) | Holders 1500 · Creator 500 · Flagship 3500 · Traders 3500 · Treasury 1000 | `float_core::split::SplitBps::FLOAT` |\n| Holder token account threshold | $2 | `ATA_CREATION_THRESHOLD_USD` |\n| Buyback trigger | 5 SOL or 4 hours | `buyback::TARGET_LAMPORTS`, `MAX_INTERVAL_SECS` |\n| Buyback price impact cap | 1% (100 bps) | `buyback::MAX_IMPACT_BPS` |\n| Cycle price guard | 2% (200 bps), maximum 10% | `guard::DEFAULT_GUARD_BPS` |\n| Ticker format | 1–10 characters `[A-Za-z0-9]`, case-insensitive | `ticker::Ticker::parse` |\n| Ticker reuse fee | 1 SOL, refunded upon graduation within 48 hours | `ticker::REUSE_FEE_LAMPORTS` |\n| Reuse fee effective from | `1793851260` = 2026-11-05 04:01 UTC (Nov 4, 10:01 PM CST) | `ticker::REUSE_FEE_EFFECTIVE_TS` |\n| Airdrop bot exclusion | > 300 trades in one hour, or > 100 trades\u002Fhour in ≥ 5 hours | `BOT_RULES` |\n| New pair eligibility | 7 days | `NEW_PAIR_MATURITY_MS` |\n| Airdrop schedule | #1: 2026-11-04 17:00 UTC, top 100 · #2: 2026-11-11 17:00 UTC, top 250 | `AIRDROP_SCHEDULE` |\n\n### Mainnet Addresses\n\n| Account | Address |\n| :-- | :-- |\n| Float program | [`3KguFi7YYzLgttG46fRism16CfcuNCkDh6U7td9JTqxX`](https:\u002F\u002Fsolscan.io\u002Faccount\u002F3KguFi7YYzLgttG46fRism16CfcuNCkDh6U7td9JTqxX) |\n| Float config | [`AgaKFP4SfEeeM4r4GcSWBwpEAbfHh7wLkJGHqpWrLBQV`](https:\u002F\u002Fsolscan.io\u002Faccount\u002FAgaKFP4SfEeeM4r4GcSWBwpEAbfHh7wLkJGHqpWrLBQV) |\n| $FLOAT mint | [`Bv1a7cEj5aRnJQhMw4kRQqAFesMSd5LwcDnUzq52BMmr`](https:\u002F\u002Fsolscan.io\u002Faccount\u002FBv1a7cEj5aRnJQhMw4kRQqAFesMSd5LwcDnUzq52BMmr) |\n| Buyback and burn vault | [`8CskoMx4FaXjp7gzxNzaWQXGXGVBWYnNWXGcisXuDYAa`](https:\u002F\u002Fsolscan.io\u002Faccount\u002F8CskoMx4FaXjp7gzxNzaWQXGXGVBWYnNWXGcisXuDYAa) |\n| Trader airdrop vault | [`JEK3WrPuiePy8vYmzN7Xfk6YoMChbsiqzBs7X43y3snH`](https:\u002F\u002Fsolscan.io\u002Faccount\u002FJEK3WrPuiePy8vYmzN7Xfk6YoMChbsiqzBs7X43y3snH) |\n| Holder payout bot | [`6LYfrwR67XS8zJPxD2PTEHKocr3d2MBgkZX8umGTfw6E`](https:\u002F\u002Fsolscan.io\u002Faccount\u002F6LYfrwR67XS8zJPxD2PTEHKocr3d2MBgkZX8umGTfw6E) |\n| Treasury | [`2LMWFmbGBfw78ZEas2NFmAYfo4bhyBqYboYh9nk3mDFQ`](https:\u002F\u002Fsolscan.io\u002Faccount\u002F2LMWFmbGBfw78ZEas2NFmAYfo4bhyBqYboYh9nk3mDFQ) |\n| Raydium LaunchLab | [`LanMV9sAd7wArD4vJFi2qDdfnVhFxYSUg6eADduJ3uj`](https:\u002F\u002Fsolscan.io\u002Faccount\u002FLanMV9sAd7wArD4vJFi2qDdfnVhFxYSUg6eADduJ3uj) |\n| Raydium CPMM | [`CPMMoo8L3F4NbTegBCKVNunggL7H1ZpdTHKxQB5qKP1C`](https:\u002F\u002Fsolscan.io\u002Faccount\u002FCPMMoo8L3F4NbTegBCKVNunggL7H1ZpdTHKxQB5qKP1C) |\n| Raydium Burn & Earn | [`LockrWmn6K5twhz3y9w1dQERbmgSaRkfnTeTKbpofwE`](https:\u002F\u002Fsolscan.io\u002Faccount\u002FLockrWmn6K5twhz3y9w1dQERbmgSaRkfnTeTKbpofwE) |\n| `float-router` (reference implementation, default program ID) | `AYBmMVxnWC2o5JGPZm8xo4nrh7fAmxLfrxC3e2RaKomt` |\n\n### Router PDAs\n\n| Account | Seeds |\n| :-- | :-- |\n| `RouterConfig` | `[\"config\"]` |\n| Authority | `[\"authority\"]` |\n| `CoinRecord` | `[\"coin\", mint]` |\n| `TickerRecord` | `[\"ticker\", TICKER]` |\n| Ticker escrow | `[\"ticker_escrow\", mint]` |\n| Vault | `[\"vault\", kind:u8, mint]` (0 = holders · 1 = flagship · 2 = traders) |\n| `AirdropRound` \u002F escrow | `[\"airdrop\", round_le]` \u002F `[\"airdrop\", round_le, \"escrow\"]` |\n| `ClaimReceipt` | `[\"claim\", round_le, index_le]` |\n\n\u003Cbr\u002F>\n\n## Repository Layout\n\n```text\nfloat-community\u002F\n├── programs\u002Ffloat-router\u002F      Anchor program: coins, cycling, split, buyback, payouts, airdrops\n│   └── src\u002F{instructions,raydium,state}\u002F\n├── crates\u002Ffloat-core\u002F          no_std Rust: split, ticker, CPMM, buyback, guard, merkle, zero-copy views\n├── packages\u002F\n│   ├── sdk\u002F                    @float-community\u002Fsdk: core, raydium, float, router (with vendored IDLs)\n│   └── cli\u002F                    @float-community\u002Fcli: the `float` command\n├── scripts\u002F\n│   ├── router\u002F                 deploy.sh, init.ts\n│   ├── keeper\u002F                 keeper.ts, payout-bot.ts\n│   ├── airdrop\u002F                build.ts, publish.ts, distribute.ts\n│   ├── dev\u002F                    IDL generator and checker, fixtures, README assets\n│   └── test\u002F                   Keeper end-to-end tests against a mock RPC\n├── vendor\u002Fraydium\u002F             Raydium CPMM Rust source (Apache-2.0), pinned commit with checksums\n├── assets\u002F                     Images and diagrams used in this README\n├── docs\u002F                       User, mechanics, rewards, program and developer documentation\n└── examples\u002F                   Runnable scripts and sample CSV files\n```\n\n\u003Cbr\u002F>\n\n## Quality Assurance\n\n| Scope | Verification method | Tests |\n| :-- | :-- | --: |\n| Rust core | `cargo test`, `clippy -D warnings`, `rustfmt --check` | 27 |\n| SDK | `node:test`: primitives, IDL coder, Raydium math and layouts, Float rules, merkle trees, router client | 91 |\n| CLI | End-to-end tests against a mock RPC serving IDL-encoded accounts | 8 |\n| Scripts | Keeper run against a mock RPC; the simulated wire transaction is decoded and verified | 1 |\n| Program ↔ client | IDL **generated from the Rust source** and checked by `npm test`; diffed against Anchor's IDL in CI | ✓ |\n| Rust ↔ TypeScript | Shared test vectors: split, CPMM swaps, buyback cap, merkle root and proof fixture, byte offsets against IDL encoding | ✓ |\n| Raydium | Every vendored discriminator matches `sha256(\"global:…\")`; PDAs reproduce `GpMZbSM2…`, `WLHv2UAZ…`, `3f7GcQFG…` | ✓ |\n\nTo run the full verification suite:\n\n```bash\nnpm run check && cargo test -p float-core && anchor build && node scripts\u002Fdev\u002Fcheck-anchor-idl.ts target\u002Fidl\u002Ffloat_router.json\n```\n\n\u003Cbr\u002F>\n\n## Security\n\n- `float-router` is **unaudited reference code**. It must not be deployed with real funds before an independent security audit.\n- Every transaction path in the CLI and scripts **runs in simulation mode by default**.\n- The trust model is documented for each instruction: permissionless routes, bounded operator privileges, and admin actions constrained by validated limits. → [Trust model](docs\u002Fprograms\u002Ffloat-router.md#trust-model)\n- Please report vulnerabilities privately as described in [SECURITY.md](SECURITY.md). Issues affecting the Float program should be reported to the Float team; issues affecting Raydium should be submitted through Raydium's bug bounty program.\n\n\u003Cbr\u002F>\n\n## Roadmap\n\n**Completed**\n\n- [x] Documentation covering every section of the official Float documentation\n- [x] Dependency-free SDK with IDL-driven Raydium integration\n- [x] `float` CLI\n- [x] `float-core` and `float-router` with Raydium LaunchLab and CPMM CPIs\n- [x] Keeper, payout bot and merkle airdrop pipeline\n\n**Planned**\n\n- [ ] LiteSVM integration tests against cloned Raydium bytecode\n- [ ] TWAP reference prices from CPMM `ObservationState`\n- [ ] Token-2022 transfer-fee aware routing for pre-IPO pairs\n- [ ] Versioned transactions and address lookup tables for larger payout batches\n- [ ] Independent security audit\n\n\u003Cbr\u002F>\n\n## Contributing\n\nContributions are welcome. Please read [CONTRIBUTING.md](CONTRIBUTING.md) before opening a pull request. The project follows four guiding principles:\n\n1. The behavior of the Float program is never assumed or inferred.\n2. The SDK remains free of runtime dependencies.\n3. Vendored files are kept verbatim.\n\n\u003Cbr\u002F>\n\n## License\n\nThis repository is released under the [MIT License](LICENSE), with the exception of `vendor\u002Fraydium\u002Fcp-swap-src`, which is distributed under the Apache License 2.0 (see [NOTICE](NOTICE)).\n\n\n\u003Cdiv align=\"center\">\n\u003Cbr\u002F>\n\u003Cimg src=\"assets\u002Ffloat.jpg\" width=\"56\" alt=\"Float Community logo\"\u002F>\n\u003Cbr\u002F>\n\u003C\u002Fdiv>\n","Float 是一个基于 Solana 的去中心化代币发行平台，依托 Raydium LaunchLab（CPMM）构建，核心特点是将交易手续费自动分发至五类受益方（如持币者、交易者、买回销毁等），实现协议收益的链上可验证分配。项目提供完整的开源工具链：含 Anchor 编写的链上路由程序（float-router）、零依赖 Rust 核心数学库（float-core）、无外部依赖的 TypeScript SDK、命令行工具及自动化运营脚本（如 payout bot、airdrop pipeline）。适用于 Solana 生态项目方快速、合规地启动代币并实施透明收益分配机制。",2,"2026-11-24 04:42:00","CREATED_QUERY"]