Expand description
CPMM creator-fee collection upgrade helpers. No RPC or account-existence check is required.
Structs§
- Account
Meta - Describes a single account read or written by a program during instruction execution.
- Creator
FeeSplit - Instruction
- A directive for a single invocation of a Solana program.
Enums§
Constants§
Functions§
- derive_
creator_ fee_ share - Canonical address, including when the PDA has not been created on-chain.
- effective_
creator_ fee_ share_ rate - Use the existing PDA’s rate (including zero), otherwise the config’s rate. The caller must supply a validated PDA for the relevant creator/config pair.
- split_
creator_ fee - Exact collection-time estimate: protocol share floors; all remaining dust goes to the creator. Apply independently to creator_fees_token_0 and _1. This does not mutate PoolState or infer a collection result from a shred transaction.
- upgrade_
creator_ fee_ collection_ instruction - Append mandatory readonly accounts to a pre-upgrade collection call.
The first 14 accounts (including all privileges) remain unchanged. Already-upgraded
calls have their appended addresses and signer flags checked and are returned
unchanged. Writable supersets are accepted. Errors leave the instruction unchanged.
amm_configmust be the pool’s config; this helper does not fetch PoolState.