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

/solana-fee-accounting

@4f654fe
Run it yourself

Reference for doppler-sol launch, CPMM, protocol, and migration fee accounting across Initializer, CPMM, and CPMM migrator flows.

Use this Skill: https://skilld.dev/gh/whetstoneresearch/doppler-skills/solana-fee-accounting

Nothing lands on disk. Nothing to clean up.

Fork this Skill

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

SKILL.md

≈38 tokens for metadata: the name and description. ≈704 when used: this file. ≈481 more on demand in 3 files.

Description uses 1.9% 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 ≈153 characters, or 1.9%.

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 SDK/IDL decoders and on-chain account state for fee reconciliation.

Solana Fee Accounting

When to use

  • You are reconciling launch curve fees, CPMM LP fees, or protocol fees.
  • You are reconciling migration-time distribution or fee harvesting behavior for an integration.
  • You need to compare Solana fee behavior to EVM proceeds split or fee locker concepts.

Mental model

Solana fee accounting is spread across program surfaces:

  • Initializer curve trades charge swap fees into LaunchFeeState.
  • claim_fees, replace_fee_beneficiary, and set_fee_policy operate on launch fee policy and distributions.
  • harvest_migrated_fees and distribute_base_allocation_no_migration cover post-launch fee/allocation flows.
  • CPMM swaps split fees between distributable LP fees and compounding reserves.
  • CPMM protocol fees can mint shares into a protocol fee position and redeem shares.
  • CPMM migrator handles launch distribution and liquidity handoff.

Do not assume EVM StreamableFeesLocker, TopUpDistributor, or proceeds-split semantics are present unless a current Solana program implements them.

Core workflow

  1. Identify whether the action is launch trading, migration, post-migration CPMM trading, or fee collection.
  2. Read the relevant account state directly, not only vault balances.
  3. For CPMM, separate reserves from fees_unclaimed*.
  4. Include protocol fee position shares when checking total_shares.
  5. For migration, reconcile reserved base partitions and recipient distribution.
  6. Check SDK/IDL version and decoded account state before making claims about fee parity.

Quick facts

Fee surface Primary state
Launch swap fee Launch.swap_fee_bps, LaunchFeeState
CPMM swap fee Pool.swap_fee_bps
CPMM distributable fee split Pool.fee_split_bps, fee growth fields
CPMM protocol fee config protocol fee settings, protocol fee position
Migration distribution CPMM migrator state and recipient accounts

Failure modes

  • Reconciling fees from SPL vault balances without subtracting reserves and unclaimed fee buckets.
  • Ignoring LaunchFeeState or protocol fee position shares.
  • Treating recipient distribution as EVM proceeds split parity.
  • Assuming launch fee behavior is stable without checking recent doppler-sol changes.
  • Confusing creator/admin fee claims with LP fee collection.

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

    The skill is a collection of reference documentation for Solana fee accounting. It contains no executable code, network operations, or external dependencies.

  • 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-fee-accounting