Skip to content

fix(genesis): add presale and creator-rewards CPMM protocol fees - #566

Open
brandontulsi wants to merge 2 commits into
mainfrom
brandon/genesis-launch-pool-presale-fees
Open

brandontulsi wants to merge 2 commits into
mainfrom
brandon/genesis-launch-pool-presale-fees

Conversation

@brandontulsi

@brandontulsi brandontulsi commented Sep 22, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • Split Launch Pool CPMM into creator rewards off and on. The Raydium pool charges a creator fee either way. The launch chooses at creation whether the creator earns a share of it, which the Metaplex app calls Creator Rewards. With creator rewards on, the fees match Bonding Curve CPMM, where they are always on.
  • Correct the creator-rewards-off Raydium fee from 0.04% to 0.08%.
  • Add Presale, Presale CPMM (Creator Rewards Off) and Presale CPMM (Creator Rewards On). Feature/genesis protocol fees update #501 removed the presale fee config while presale.md still references it, so the presale page currently shows "Fee config not found: presale" plus two inline "[Config not found: presale]" errors. This restores it.
  • Update the Genesis blurb on /protocol-fees and 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

Table rows Source
CPMM, creator rewards off Raydium AMM config Bq9YmSkZ6f13L4rPsx9MxSXuyPfKCBbvrbvarKti1LdG on 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).
CPMM, creator rewards on Raydium AMM config CRRS5ieQmBrZjWhcj99JuGrT5tyuWDaGAXLXLFjbAtjQ on 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).
Presale user deposit fee 0% PresaleBucketV2::DEPOSIT_FEE_BPS = 0 (metaplex-foundation/genesis#391). Every mainnet presale created since 2026-08-20 has 0%.
Creator withdraw fee 5% UnlockedBucketV2 claim fee of 500 bps on quote-token proceeds. Every mainnet unlocked bucket created since 2026-03-18 has 5%.
Liquidity requirement 20%, 1-year quarterly lock Launch creation validation in the Metaplex API, same for launch pool and presale RaydiumLP flows.

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 lint on the product file, markdownlint-cli2 on the changed pages and validate-translations pass.
  • The ja/ko/zh text reuses each locale's existing Genesis terms. A native-speaker skim is welcome.

Screenshots

English pages only. Before is the live docs site, after is this PR's Vercel preview.

Protocol Fees page, Genesis section

Before After
before-protocol-fees-genesis after-protocol-fees-genesis

Genesis overview, Protocol Fees intro

Before After
before-genesis-overview-intro after-genesis-overview-intro

Genesis overview, cost FAQ

Before After
before-genesis-overview-faq after-genesis-overview-faq

Presale page, Fees section

Before After
before-presale-fees after-presale-fees

Presale page, deposit fee mentions

Before After
before-presale-how-it-works after-presale-how-it-works
before-presale-notes after-presale-notes

- 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)
@vercel

vercel Bot commented Sep 22, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
developer-hub Ready Ready Preview Sep 23, 2026 1:11am UTC

Request Review

@coderabbitai

coderabbitai Bot commented Sep 22, 2026 •

Copy link
Copy Markdown
Contributor

Review in Change Stack →

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 configuration

Configuration used: Organization UI

Review profile: ASSERTIVE

Plan: Essentials

Run ID: e214ad2d-65bf-44e9-8824-2924f4fbdee5

📥 Commits

Reviewing files that changed from the base of the PR and between 526710e and 740b474.

📒 Files selected for processing (5)
  • src/components/products/genesis/index.js
  • src/pages/en/smart-contracts/genesis/index.md
  • src/pages/ja/smart-contracts/genesis/index.md
  • src/pages/ko/smart-contracts/genesis/index.md
  • src/pages/zh/smart-contracts/genesis/index.md

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

  • Updates
    • Clarified Genesis fees for bonding-curve swaps, post-graduation Raydium CPMM trading, and withdrawals from Launch Pool or Presale launches.
    • Added fee schedules for Launch Pool and Presale trading, including differences based on whether creator rewards are enabled.
    • Clarified that bonding-curve CPMM pools include creator rewards.
    • Updated Genesis fee descriptions across supported languages.

Walkthrough

Genesis 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.

Changes

Genesis fee schedules and localized descriptions

Layer / File(s) Summary
Fee titles and schedules
src/components/products/genesis/index.js
Genesis adds Launch Pool and Presale fee titles and schedules for creator fees enabled or disabled. The schedules include Presale deposit and creator-withdraw fees.
Localized fee descriptions
src/pages/*/protocol-fees.md, src/pages/*/smart-contracts/genesis/index.md
Fee descriptions in English, Japanese, Korean, and Chinese identify bonding-curve swaps, post-graduation Raydium CPMM trading, and Launch Pool or Presale withdrawals. They also describe creator-fee conditions and update Genesis page dates.

Priority: ⬇️ Low

Estimated code review effort: 3 (Moderate) | ~20 minutes

Change: Bug fix

Suggested reviewers: marksackerberg

Merge Risk: ⚪ Minimal · up to 740b4

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)
Check name Status Explanation
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 1…
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
Title check ✅ Passed The title clearly summarizes the main changes: adding presale fee configurations and creator-rewards CPMM protocol fees for Genesis.
Description check ✅ Passed The description directly explains the fee configuration changes, the restored presale configuration, corrected Raydium fees, documentation updates, testing, and migration details.
✨ Finishing Touches
📝 Generate docstrings
  • Commit to this branch
  • Create a new PR
🧪 Generate unit tests (beta)
  • Commit to this branch
  • Create a new PR

Comment @coderabbitai help to get the list of available commands.

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.
@brandontulsi brandontulsi changed the title fix(genesis): add presale and creator-fee CPMM protocol fees fix(genesis): add presale and creator-rewards CPMM protocol fees Sep 23, 2026

This branch was successfully deployed

1 active deployment
Preview — 740b4741 Deployed Sep 23, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant