Skip to content
Fossa

Model groups

Model groups

CommandBehavior
group show --group PUBKEYRead group, token metadata, and backing.
group create --accounts-file FILE --parameters-file FILEPlan a launch from prepared SDK account and parameter objects.
group update-metadata --group PUBKEY --name NAME --symbol SYMBOL --uri URICouncil changes token metadata.
`group configure-reserve --group PUBKEY --route-to-reserve truefalse --tax-bps N --maximum-tax N`
group redeem --group PUBKEY --amount N --minimum-output NBurn model-token atoms for at least the specified payment-token atoms.
group collect-tax --group PUBKEY --destination PUBKEYCollect harvested model-token tax into the bank’s token account.
group sweep --group PUBKEYTransfer remaining backing to treasury only after supply reaches zero.

Creation is an advanced operation. The accounts file uses SDK reserve::InitializeModelGroup; parameters use reserve::GroupInit. Prepare the exact Token-2022 account space and valid quote accounts first. Execution also needs fresh backing and curve-LP signers through --backing-keypair and --curve-lp-keypair. The command does not create every prerequisite. Planning also checks the 1,232-byte transaction limit. A separate payer adds another signature and account key; long metadata can exceed this limit. Use compact metadata at creation, then replace it with group update-metadata if needed. Follow group initialization and the SDK.

Redemption accepts optional --source and --destination. Amounts, minimum output, and maximum tax use integer atoms, not decimal token amounts. Redemption costs 0.025 SOL; council self-redemption skips that transfer. Group creation also pays the DEX’s 0.025 SOL creation fee. Network fees are separate.