Index of every page on this site: llms.txt
All skills
Run it yourself

Reference for doppler-sol CPMM pools, positions, swaps, liquidity, protocol fee positions, oracle accounts, hooks, and PDA-based pool addressing.

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

Nothing lands on disk. Nothing to clean up.

Fork this Skill

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

referencesPOOL-ACCOUNTING.md

≈259 tokens on demand. Your agent reads this file only when SKILL.md points to it.

CPMM Pool Accounting

Reserves and vaults

Pool.reserve0 and Pool.reserve1 are AMM reserves. They exclude distributable fees.

Token vault balances can be larger than reserves because vaults also hold:

  • unclaimed LP fees
  • protocol-fee-related amounts before collection
  • accidental extra tokens that may be skimmed

Do not reconcile reserve math using vault balances without accounting for fee buckets.

Positions

Liquidity is tracked as shares in Position accounts:

  • user positions are keyed by owner and position id
  • the protocol fee position is a position keyed by pool, protocol fee owner, and position id 0

Fee accrual uses global fee growth fields on the pool and per-position snapshots.

Swaps

swap_exact_in uses exact input and enforces minimum output. If a hook is configured, the hook may reject or adjust fee behavior according to enabled flags.

Liquidity

Initial liquidity mints shares from sqrt(amount0 * amount1). Later adds mint proportional shares using current reserves and total shares.

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 is a technical reference for Solana CPMM (Constant Product Market Maker) protocols, providing documentation on PDA derivation, pool accounting, and oracle structures. It consists entirely of informational markdown files with no executable components or security risks detected.

  • 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