Index of every page on this site: llms.txt
All skills
whetstoneresearch avatar

/solana-cpmm-migration

@4f654fe
Run it yourself

Configure and verify doppler-sol initializer migrations into CPMM pools, including migrator payloads, state PDAs, migrated pool hook config, recipient distribution, and remaining-account order.

Use this Skill: https://skilld.dev/gh/whetstoneresearch/doppler-skills/solana-cpmm-migration

Nothing lands on disk. Nothing to clean up.

Fork this Skill

Edit a local copy. It keeps the author and licence.

SKILL.md

≈54 tokens for metadata: the name and description. ≈615 when used: this file. ≈513 more on demand in 3 files.

Description uses 2.7% of example budget

Before choosing a Skill, your Agent reads its name and description. All available Skills share that space.

  • A shorter description leaves more room for other Skills. This entry exceeds our 1% size suggestion.

In our Claude Code example, all Skill names and descriptions share 8,000 characters. This Skill uses ≈217 characters, or 2.7%.

The 1% threshold is a size suggestion. Longer descriptions can still fit.

Your model, settings, and other Skills decide how much text your Agent can read.

Example settings and source

The example uses a 200k-token context and default Claude Code settings. The count includes the name, description, separators, and when_to_use when present. Codex also counts local file paths.

Skit's source and limits: Codex 0.160.1, Claude Code 2.1.292.

Consumer Source of Truth: Use the published @whetstone-research/doppler-sdk Solana helpers and generated IDLs for addresses, payloads, and account decoding.

Solana CPMM Migration

When to use

  • You are integrating a Solana launch that migrates into a CPMM pool.
  • You need to build or decode CPMM migrator payloads from a client.
  • You are debugging launch vault handoff, recipient distribution, or CPMM pool initialization from transaction/account state.

Mental model

The CPMM migrator is an external program invoked by the Initializer. It registers per-launch migration parameters during launch initialization, then consumes launch vault balances during migration and creates the destination CPMM pool.

Core workflow

  1. Derive the CpmmMigratorState PDA with SDK helpers from the launch address.
  2. Encode register_launch payload with SDK or IDL builders and pass it as initializer migrator_init_payload.
  3. Encode migrate payload with SDK or IDL builders and store it as initializer migrator_migrate_payload.
  4. Include CPMM migrator accounts as remaining accounts to initialize_launch and migrate_launch.
  5. At migration, verify min raise, optional price floor, token partitions, recipient accounts, and CPMM pool creation.

Quick facts

Item Detail
Program CPMM migrator
Migrator state PDA [b"state", launch]
Migration authority PDA [b"migration_authority"]
Init instruction register_launch
Migration instruction migrate
Recipient capacity 2 recipients
Destination CPMM pool and position

Failure modes

  • Register and migrate payloads disagree on launch supply partitions.
  • Recipient ATAs are missing, out of order, or extra.
  • base_for_liquidity or base_for_distribution does not match launch state.
  • Minimum quote raise or migration price floor is not met.
  • CPMM pool mints are passed in non-canonical order.
  • Remaining accounts omit CPMM, token, ATA, protocol fee, hook, or recipient accounts required by the migrator path.

References

Related skills

Source: SKILL.md on GitHub

No rule matched.

skilld matched fixed text patterns in SKILL.md and file names. Patterns miss obfuscated code.

skilld run checks every file with the same patterns. It asks for approval before it loads a Skill with a behavior marked Needs approval.

1 warning5mo3 checks · Risk SAFE
  • Gen Agent Trust Hub5mo

    This skill provides documentation and guidance for Solana CPMM migrations. It contains no executable code or scripts and refers to legitimate developer tools associated with the author.

  • Socket5mo

    No alerts

  • Snyk5mo

    Risk: MEDIUM · 1 issue

Signed by skilld at 4f654fe. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub 2 months ago.

Steadyupdated 6 months ago
metadata
{
  "author": "doppler",
  "version": "1.0"
}

README badge

README badge for whetstoneresearch/doppler-skills/solana-cpmm-migration