GLAM MintProduction
claim_fees
Claims accrued manager or protocol fees from a tokenized vault.
Handler narrative
- Load the GLAM state or program account required by the instruction and verify the signer.
- Read current valuation and fee configuration, calculate accrued fees, then record or distribute fee shares according to policy.
Required conditions
- The submitted accounts must match the declared account list, signer requirements, writable requirements, fixed program addresses, and account relationships shown below.
- The GLAM state account is the source of truth for owner, enabled integrations, delegate permissions, policies, assets, borrowable assets, timelock settings, mint linkage, and pricing records.
- The vault account must be the PDA controlled by the core protocol program and derived conceptually from the state account; instructions use it as the vault authority for SOL, token accounts, and external positions.
- Mint actions must satisfy the linked GLAM state, Token-2022 mint configuration, mint policy, and any request queue or escrow state involved in the flow.
- The vault must have fresh pricing records for the operation; fee or fulfillment math depends on NAV values written by the pricing flow.
Accounts
| Account | Role | Description |
|---|---|---|
| glam_state | read-only | State account owned by the GLAM Protocol program; it records vault configuration, policies, and pricing records. |
| glam_vault | writable | Vault account controlled by the GLAM Protocol program; conceptually derived from the state account and used as the vault authority. |
| glam_mint | writable | Token-2022 mint associated with the GLAM mint or tokenized vault. |
| glam_escrow | read-only | Program-derived account used by this instruction; clients should prefer SDK helpers when available. |
| escrow_mint_ata | writable | Token mint account used by the instruction. |
| signer | signer, writable | Calling authority. It must be the owner or a delegate with the explicit permission required by this instruction. |
| deposit_asset | read-only | Instruction-specific account supplied by the caller or SDK. |
| vault_deposit_ata | writable | Token account read or written by the instruction. |
| protocol_fee_authority | read-only | Instruction-specific account supplied by the caller or SDK. |
| protocol_fee_authority_ata | writable | Token account read or written by the instruction. |
| manager_fee_authority | read-only | Instruction-specific account supplied by the caller or SDK. |
| manager_fee_authority_ata | writable | Token account read or written by the instruction. |
| glam_config | read-only | Global GLAM configuration account for fee and asset/oracle metadata. |
| glam_protocol_program | read-only | GLAM Protocol program account used for authorization or CPI. |
| system_program | read-only | Standard Solana program account required by the instruction. |
| associated_token_program | read-only | Standard Solana program account required by the instruction. |
| deposit_token_program | read-only | Instruction-specific account supplied by the caller or SDK. |
| token_2022_program | read-only | Standard Solana program account required by the instruction. |
Arguments
No arguments.
Policy & permissions
- No external integration enablement is required beyond the program-level functionality involved in this instruction.
- Manager or protocol authority is required according to the mint and fee configuration.
TypeScript SDK usage
await glamClient.fees.claimFees();Cross-instruction constraints
- No additional cross-instruction constraint is documented beyond account initialization, authority checks, and policy validation.