Repository navigation
feat: buy, sell and info for Raydium LaunchLab coins - #29
Conversation
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>
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the
|
Hard-Coded Secrets (6)
More info on how to fix Hard-Coded Secrets in General. 👉 Go to the dashboard for detailed results. 📥 Happy? Share your feedback with us. |
* 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>
buy,sellandinfonow 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 withgetProgramAccountson its mint. Trades usebuy_exact_in/sell_exact_inunder 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 returnsgraduated; 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.