GLAMIDL Reference

crystallize_fees

Calculates and crystallizes time/performance fees for a tokenized vault.

Applies toVaultTokenized VaultSingle-Asset Vault

Required conditions

  • 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

AccountRoleDescription
glam_statewritableGLAM state account that stores vault configuration, integration ACLs, delegate permissions, policies, assets, mint linkage, and pricing records.
glam_escrowread-onlyEscrow account or escrow token account used by mint flows.
glam_mintwritableToken mint account used or validated by this instruction.
escrow_mint_atawritableToken mint account used or validated by this instruction.
signersigner, writableCalling authority or fee payer.
glam_protocol_programread-onlyGLAM Protocol program account used for authorization or CPI.
token_2022_programread-onlyToken-2022 program account.

No arguments

Policy & permissions

  • No manager or protocol authority access check is enforced. Any signer can trigger fee crystallization when AUM and fee state are valid.

TypeScript SDK usage

await glamClient.fees.crystallizeFees();

Cross-instruction constraints

  • Requires fresh pricing for the vault. The pricing operation itself must be atomic in a single transaction.