Skip to content

feat: buy, sell and info for Raydium LaunchLab coins - #29

Merged
smypmsa merged 1 commit into
v3-nextfrom
feat/launchlab
Nov 8, 2026
Merged

smypmsa merged 1 commit into
v3-nextfrom
feat/launchlab

Conversation

@smypmsa

@smypmsa smypmsa commented Nov 8, 2026

Copy link
Copy Markdown
Member

buy, sell and info now work on coins launched on Raydium LaunchLab, the program behind letsbonk.fun, StonkFun and other launchpads. A mint with no pump.fun curve is looked up there: the SOL pool is derived, and a coin priced in another asset is found with getProgramAccounts on its mint. Trades use buy_exact_in / sell_exact_in under the pool's own configs, with the curve fee read live from them and Token-2022 transfer fees counted in the amounts. Output names the venue (launchlab) and the launchpad, read from its platform config. A graduated LaunchLab coin returns graduated; trading it on CPMM comes next.

Verified with unit tests on mainnet pool accounts, mainnet simulations as live wallets (amounts match to the unit, a Token-2022 quote with a transfer fee included), and surfpool buy-and-sell round trips for a SOL and a Token-2022 quote.

A mint with no pump.fun curve is looked up on LaunchLab, under any launchpad's
platform config and any quote asset, with Token-2022 transfer fees counted.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@coderabbitai

coderabbitai Bot commented Nov 8, 2026

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

Run configuration

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • Trigger review
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@guardrails

guardrails Bot commented Nov 8, 2026

Copy link
Copy Markdown

⚠️ We detected 6 security issues in this pull request:

Hard-Coded Secrets (6)
Severity Details Docs
Medium Title: Base64 High Entropy String
"address": "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL"
📚
Medium Title: Base64 High Entropy String
"address": "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA"
📚
Medium Title: Base64 High Entropy String
"address": "TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb"
📚
Medium Title: Base64 High Entropy String
"address": "675kPX9MHTjS2zt1qfr1NYHuzeLXfQM9H24wFSUt1Mp8"
📚
Medium Title: Base64 High Entropy String
"address": "CPMMoo8L3F4NbTegBCKVNunggL7H1ZpdTHKxQB5qKP1C"
📚
Medium Title: Base64 High Entropy String
"address": "LockrWmn6K5twhz3y9w1dQERbmgSaRkfnTeTKbpofwE"
📚

More info on how to fix Hard-Coded Secrets in General.


👉 Go to the dashboard for detailed results.

📥 Happy? Share your feedback with us.

@smypmsa
smypmsa merged commit 0ee81ae into v3-next Nov 8, 2026
5 of 6 checks passed
smypmsa added a commit that referenced this pull request Nov 9, 2026
* fix(migrate): pass the new pool's boost vault accounts to migrate_v2 (#27)

PumpSwap creates the pool's boost vault during the migration and reverts
without its authority and quote token account, which the IDL doesn't list.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>

* fix(trade): sell what a curve's real reserves can pay, explain buys past the curve (#28)

A sell larger than the curve's real reserves reverted; it now sells the most
they cover and reports the rest. A buy past the curve's remaining tokens now
says how many are left instead of a raw program error.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>

* feat: buy, sell and info for Raydium LaunchLab coins (#29)

A mint with no pump.fun curve is looked up on LaunchLab, under any launchpad's
platform config and any quote asset, with Token-2022 transfer fees counted.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>

* feat: trade graduated LaunchLab coins on Raydium CPMM (#30)

buy and sell follow a graduated LaunchLab coin to its CPMM pool, the way they
follow a pump.fun coin to PumpSwap; --force-amm covers both, and info shows
the pool.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>

* chore: release 0.3.0 (#31)

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
@smypmsa
smypmsa deleted the feat/launchlab branch November 9, 2026 09:51
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