fix(genesis): add presale and creator-rewards CPMM protocol fees - #566
brandontulsi wants to merge 2 commits into
Conversation
- Split Launch Pool CPMM into creator fees off/on; with creator fees on, the fees match Bonding Curve CPMM - Correct the creator-fees-off Raydium fee from 0.04% to 0.08% - Add Presale and Presale CPMM (off/on) tables, restoring the `presale` fee config the presale page still references - Update the Genesis fee blurb, overview intro and FAQ answer (en/ja/ko/zh)
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
Navigate logical layers of code changes, visualize relationships, and explore their blast radius. No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: ASSERTIVE Plan: Essentials Run ID: 📒 Files selected for processing (5)
Included review availability: 4 reviews are currently available. Your included PR review attempts over the past 7 days set your current allowance at 5 reviews per hour. Summary by CodeRabbit
WalkthroughGenesis fee schedules now distinguish Launch Pool and Presale options by creator-fee setting. Fee descriptions in four languages now cover bonding-curve swaps, post-graduation Raydium CPMM trading, and Launch Pool or Presale withdrawals. ChangesGenesis fee schedules and localized descriptions
Priority: ⬇️ Low Estimated code review effort: 3 (Moderate) | ~20 minutes Change: Bug fix Suggested reviewers: Merge Risk: ⚪ Minimal · up to The fee schedules and documentation are consistent with the intended launch variants, so no actionable merge-blocking risk remains. 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Comment |
The Raydium pool charges a creator fee either way; with the switch off, all of it is the protocol fee. What the launch chooses is whether the creator earns a share, which the Metaplex app calls Creator Rewards.
Summary
presalefee config whilepresale.mdstill references it, so the presale page currently shows "Fee config not found: presale" plus two inline "[Config not found: presale]" errors. This restores it./protocol-feesand the Genesis overview's fee intro and cost FAQ (en/ja/ko/zh). They described only the bonding curve fee model.Where the numbers come from
Bq9YmSkZ6f13L4rPsx9MxSXuyPfKCBbvrbvarKti1LdGon mainnet: 0.50% trade fee, of which Raydium's protocol + fund share is 16% (0.08%) and LPs keep 0.42%. The 0.40% creator fee goes entirely to the Metaplex fee wallet (collect_raydium_cpmm_fees_v2).CRRS5ieQmBrZjWhcj99JuGrT5tyuWDaGAXLXLFjbAtjQon mainnet: 0.25% trade fee (LPs 0.21%, Raydium 0.04%). The 1.00% creator fee splits 60% creator, 40% protocol (DEFAULT_RAYDIUM_CREATOR_FEE_BPS = 6000).PresaleBucketV2::DEPOSIT_FEE_BPS = 0(metaplex-foundation/genesis#391). Every mainnet presale created since 2026-08-20 has 0%.UnlockedBucketV2claim fee of 500 bps on quote-token proceeds. Every mainnet unlocked bucket created since 2026-03-18 has 5%.RaydiumLPflows.Launches created before metaplex-foundation/genesis#348 (launch pool) and #391 (presale) keep the old 2% deposit/withdraw fees. The tables show current defaults.
Testing
next dev: the Genesis overview renders all 8 tables with the values above in en, ja, ko and zh. The presale page renders its fee table with no "not found" errors, and the FAQ JSON-LD carries the new answer.next linton the product file,markdownlint-cli2on the changed pages andvalidate-translationspass.Screenshots
English pages only. Before is the live docs site, after is this PR's Vercel preview.
Protocol Fees page, Genesis section
Genesis overview, Protocol Fees intro
Genesis overview, cost FAQ
Presale page, Fees section
Presale page, deposit fee mentions