Skip to main content
TokenEntry identifies one deposit/payout asset. It is embedded in the vault; it has no separate account discriminator. Field names below use onchain snake_case; SDK representations generally use camelCase. Amounts are atomic integers unless stated otherwise. Reserved bytes remain part of the serialized layout.

Fields

Price reference

In a Multiply chain, the first price outputs the vault’s underlying denomination. Each subsequent price outputs the previous price’s input denomination; the final input is the accepted token. Order matters. All referenced prices must be updated in the valuation slot. The generated public helper uses priceId("Simple", { priceId: 12n }) or priceId("Multiply", { priceIds: [12n, 15n] }). Fetcher state can present its transformed price representation; use the appropriate representation for the API receiving it.

Account requirements

token_squads_account is the canonical ATA owned by the Squads vault and receives deposits. token_account_vault is the canonical ATA owned by the Strategy Vault and holds filled withdrawals awaiting claim. Use the mint’s actual token program. The program sets last_observed_amount from the live Squads balance when adding an entry. The mint cannot also be a TokenAccount position. Adding or removing a deposit asset requires zero pending-withdrawal LP.