Flash Trade Perpetuals
Lineagei
Frameworki
What's Anchor?
Batteries-included Rust framework. Ships account-validation codegen, 8-byte instruction discriminators, and an on-chain IDL — the program describes itself.
Bigger binary and higher rent in exchange for safety rails, introspection, and dev speed. The choice of a team optimizing for correctness over on-chain footprint.
Originally Coral (Armani Ferrante); now community-maintained.
What it is
The de facto standard. Rust macros (#[program], #[derive(Accounts)]) eliminate boilerplate: it auto-generates 8-byte account and instruction discriminators — SHA256("account:<Name>")[..8] and SHA256("global:<ix>")[..8] — handles Borsh (de)serialization, enforces account constraints declaratively (mut, has_one, seeds, init), and emits a JSON IDL that client libraries consume directly. The cost: Borsh copies data on every deserialize (not zero-copy), and the macro machinery adds binary bloat and compute overhead — irrelevant for ~99% of programs.
When to pick it
Building a new protocol, moving fast, or wanting maximum ecosystem compatibility. It's the beginner default and stays the right call for most production programs.
How it looks on-chain
The most recognizable framework. Every account it owns begins with an 8-byte discriminator, and the IDL is often published on-chain at a PDA derived from the program id. Both are strong, reliable fingerprints — this is the only framework we can label with confidence.
Others in the wild: Steel (Ore team — near-native performance on solana-program), Seahorse (Python → Anchor), and Poseidon & Quasar (TypeScript → Rust). Transpilers inherit their lowering target's fingerprint: a Quasar or Poseidon program that compiles down to Anchor will look like Anchor on-chain — discriminators and all.
Anchor docsFootprinti
Recovered architecturei
Reachi
Controli
What's upgrade authority?
The upgrade authority is the account allowed to replace a program's code after it's deployed.
If it's set (mutable), that key can push new bytecode at any time — including malicious code, the classic "rug" vector. If it's null (immutable / frozen), the code can never change; what 's on-chain is final. A Squads multisig sits in between — upgrades are possible but need M-of-N signers, not one hot wallet. So mutable + single hot-wallet = highest risk; immutable or multisig = stronger guarantees.
What's a verified build?
A verified build proves the program running on-chain was compiled from the public source you can read — nothing hidden.
Someone re-compiles the source in a deterministic (Docker) environment and checks the resulting bytecode is byte-for-byte identical to what's deployed; tools like solana-verify do this and record it with a verification service. "Not verified" isn't a red flag by itself — most programs simply never submit one. It just means you're trusting the deployed bytecode as-is, with no source cross-check.
Security.txti
What's a security.txt?
A block of contact info a developer embeds directly in the program binary — the Neodyme convention — so whitehats know how to report a vulnerability.
It carries contacts, a disclosure policy, auditors, and a source link. It's self-declared, so treat it as a claim, not proof — but its presence signals a team that expects scrutiny and wants to be reachable.
Convictioni
Interface — the on-chain IDLi
24 of 196 instructions used · 172 never called in this window
Flash Trade Perpetuals Exchange
Instructions 196
add_collateral_er
- owner
- signersigner
- session_tokenoptional
- perpetuals
- basketwritable
- user_deposit_ledger
- marketwritable
- pool
- target_custody
- receiving_custodywritable
- lock_custodywritable
- target_oracle_account
- receiving_oracle_account
- lock_oracle_account
- realloc_vaultwritable
- event_authority
- program
- ix_sysvar
- paramsAddCollateralErParams
add_compounding_liquidity_er
- owner
- payersigner
- poolwritable
- in_custodywritable
- reward_custodywritable
- lp_token_mint
- compounding_deposit_receiptwritable
- in_custody_token_mint
- transfer_authority
- perpetuals
- funding_account
- compounding_token_account
- pool_compounding_lp_vault
- in_custody_token_account
- compounding_token_mint
- in_custody_oracle_account
- reward_custody_oracle_account
- token_program
- receiving_token_program
- system_program
- program_id
- event_authority
- program
- ix_sysvar
- magic_program
- magic_contextwritable
add_compounding_liquidity_settle
- ownerwritable
- compounding_token_accountwritable
- funding_accountwritable
- pool
- in_custody
- in_custody_token_accountwritable
- in_custody_token_mint
- pool_compounding_lp_vaultwritable
- lp_token_mintwritable
- compounding_token_mintwritable
- transfer_authority
- perpetuals
- compounding_deposit_receiptwritable
- token_program
- receiving_token_program
- system_program
- event_authority
- program
- escrow_auth
- escrow
add_compounding_liquidity_with_action
- ownersignerwritable
- funding_accountwritable
- compounding_token_accountwritable
- pool_compounding_lp_vaultwritable
- transfer_authority
- perpetuals
- pool
- in_custody
- in_custody_token_accountwritable
- reward_custody
- lp_token_mint
- compounding_token_mint
- in_custody_token_mint
- buffer_compounding_deposit_receiptwritable
- delegation_record_compounding_deposit_receiptwritable
- delegation_metadata_compounding_deposit_receiptwritable
- compounding_deposit_receiptwritable
- token_program
- funding_token_program
- funding_mint
- system_program
- event_authority
- program
- ix_sysvar
- owner_program
- delegation_program
- paramsAddCompoundingLiquidityWithActionParams
add_custody
- adminsignerwritable
- multisigwritable
- transfer_authority
- perpetuals
- poolwritable
- custodywritable
- custody_token_accountwritable
- custody_token_mint
- system_program
- token_program
- rent
- paramsAddCustodyParams
add_custody_er
- adminsignerwritable
- multisig
- poolwritable
- custody
- realloc_vaultwritable
- event_authority
- program
- paramsAddCustodyErParams
add_custody_token22_account
- adminsignerwritable
- multisig
- transfer_authority
- perpetuals
- pool
- custody_token_accountwritable
- custody_token_mint
- system_program
- token_program
- rent
- paramsAddCustodyToken22AccountParams
add_internal_oracle
- adminsignerwritable
- multisig
- custody_token_mint
- int_oracle_accountwritable
- system_program
- rent
- paramsAddInternalOracleParams
add_liquidity_and_stake_er
- owner
- payersigner
- poolwritable
- custodywritable
- lp_token_mint
- deposit_receiptwritable
- custody_token_mint
- transfer_authority
- perpetuals
- flp_stake_accountwritable
- pool_staked_lp_vault
- funding_account
- custody_token_account
- custody_oracle_account
- token_program
- receiving_token_program
- system_program
- program_id
- event_authority
- program
- ix_sysvar
- magic_program
- magic_contextwritable
add_liquidity_and_stake_settle
- ownerwritable
- receiving_accountwritable
- pool
- custody
- custody_token_accountwritable
- custody_token_mint
- pool_staked_lp_vaultwritable
- lp_token_mintwritable
- transfer_authority
- perpetuals
- deposit_receiptwritable
- token_program
- receiving_token_program
- system_program
- event_authority
- program
- escrow_auth
- escrow
add_liquidity_and_stake_with_action
- ownersignerwritable
- funding_accountwritable
- transfer_authority
- perpetuals
- pool
- custody
- custody_token_accountwritable
- custody_token_mint
- lp_token_mint
- buffer_flp_stake_accountwritable
- delegation_record_flp_stake_accountwritable
- delegation_metadata_flp_stake_accountwritable
- flp_stake_accountwritable
- pool_staked_lp_vaultwritable
- buffer_deposit_receiptwritable
- delegation_record_deposit_receiptwritable
- delegation_metadata_deposit_receiptwritable
- deposit_receiptwritable
- token_program
- funding_token_program
- funding_mint
- system_program
- event_authority
- program
- ix_sysvar
- owner_program
- delegation_program
- paramsAddLiquidityAndStakeWithActionParams
add_market
- adminsignerwritable
- multisigwritable
- transfer_authority
- perpetuals
- poolwritable
- marketwritable
- target_custody
- collateral_custody
- system_program
- rent
- paramsAddMarketParams
add_market_er
- adminsignerwritable
- multisig
- poolwritable
- target_custody
- collateral_custody
- marketwritable
- realloc_vaultwritable
- event_authority
- program
- paramsAddMarketErParams
add_pool
- adminsignerwritable
- oracle_authority
- multisigwritable
- transfer_authority
- perpetualswritable
- poolwritable
- lp_token_mintwritable
- metadata_accountwritable
- system_program
- token_program
- metadata_program
- rent
- paramsAddPoolParams
batch_delegate_flp_stake
- adminsignerwritable
- multisig
- owner_program
- delegation_program
- system_program
- event_authority
- program
- paramsBatchDelegateFlpStakeParams
batch_delegate_token_stake
- adminsignerwritable
- multisig
- owner_program
- delegation_program
- system_program
- event_authority
- program
- paramsBatchDelegateTokenStakeParams
batch_delegate_trading
- adminsignerwritable
- multisig
- owner_program
- delegation_program
- system_program
- event_authority
- program
- paramsBatchDelegateTradingParams
cancel_all_trigger_orders_er
- owner
- signersigner
- session_tokenoptional
- perpetuals
- basketwritable
- event_authority
- program
- paramsCancelAllTriggerOrdersErParams
cancel_limit_order_er
- owner
- signersigner
- session_tokenoptional
- perpetuals
- basketwritable
- pool
- target_custody
- lock_custody
- reserve_custodywritable
- event_authority
- program
- paramsCancelLimitOrderErParams
cancel_trigger_order_er
- owner
- signersigner
- session_tokenoptional
- perpetuals
- basketwritable
- event_authority
- program
- paramsCancelTriggerOrderErParams
cancel_unstake_token_request_er
- ownersignerwritable
- perpetuals
- token_vaultwritable
- token_stake_accountwritable
- realloc_vaultwritable
- magic_fee_vaultwritable
- event_authority
- program
- magic_program
- magic_contextwritable
- paramsCancelUnstakeTokenRequestErParams
close_legacy_order_account_er
- adminsignerwritable
- multisig
- owner
- market
- orderwritable
- system_program
- event_authority
- program
- escrow_auth
- escrow
- paramsCloseLegacyOrderAccountErParams
close_legacy_position_account_er
- adminsignerwritable
- multisig
- owner
- market
- positionwritable
- system_program
- event_authority
- program
- escrow_auth
- escrow
- paramsCloseLegacyPositionAccountErParams
close_position_er
- owner
- signersigner
- session_tokenoptional
- perpetuals
- basketwritable
- poolwritable
- marketwritable
- target_custody
- lock_custodywritable
- dispensing_custodywritable
- target_oracle_account
- lock_oracle_account
- dispensing_oracle_account
- realloc_vaultwritable
- event_authority
- program
- ix_sysvar
- paramsClosePositionErParams
collect_rebate_er
- owner
- payersigner
- perpetuals
- rebate_vaultwritable
- token_stake_accountwritable
- collect_rebate_receiptwritable
- receiving_token_account
- rebate_token_account
- rebate_token_mint
- transfer_authority
- token_program
- system_program
- program_id
- realloc_vaultwritable
- magic_fee_vaultwritable
- event_authority
- program
- magic_program
- magic_contextwritable
collect_rebate_settle
- ownerwritable
- perpetuals
- receiving_token_accountwritable
- rebate_token_accountwritable
- rebate_token_mint
- collect_rebate_receiptwritable
- transfer_authority
- token_program
- system_program
- event_authority
- program
- escrow_auth
- escrow
collect_rebate_with_action
- ownersignerwritable
- receiving_token_accountwritable
- perpetuals
- rebate_vault
- rebate_token_account
- rebate_token_mint
- token_stake_account
- buffer_collect_rebate_receiptwritable
- delegation_record_collect_rebate_receiptwritable
- delegation_metadata_collect_rebate_receiptwritable
- collect_rebate_receiptwritable
- transfer_authority
- token_program
- system_program
- event_authority
- program
- owner_program
- delegation_program
- paramsCollectRebateWithActionParams
collect_revenue_er
- owner
- payersigner
- perpetuals
- token_vaultwritable
- token_stake_accountwritable
- collect_revenue_receiptwritable
- receiving_revenue_account
- revenue_token_account
- revenue_token_mint
- transfer_authority
- token_program
- system_program
- program_id
- realloc_vaultwritable
- magic_fee_vaultwritable
- event_authority
- program
- magic_program
- magic_contextwritable
collect_revenue_settle
- ownerwritable
- perpetuals
- receiving_revenue_accountwritable
- revenue_token_accountwritable
- revenue_token_mint
- collect_revenue_receiptwritable
- transfer_authority
- token_program
- system_program
- event_authority
- program
- escrow_auth
- escrow
collect_revenue_with_action
- ownersignerwritable
- receiving_revenue_accountwritable
- perpetuals
- token_vault
- revenue_token_account
- revenue_token_mint
- token_stake_account
- buffer_collect_revenue_receiptwritable
- delegation_record_collect_revenue_receiptwritable
- delegation_metadata_collect_revenue_receiptwritable
- collect_revenue_receiptwritable
- transfer_authority
- token_program
- system_program
- event_authority
- program
- owner_program
- delegation_program
- paramsCollectRevenueWithActionParams
collect_stake_reward_er
- owner
- payersigner
- perpetuals
- poolwritable
- reward_custodywritable
- flp_stake_accountwritable
- collect_stake_reward_receiptwritable
- reward_mint
- receiving_token_account
- reward_custody_token_account
- transfer_authority
- token_program
- system_program
- program_id
- event_authority
- program
- magic_program
- magic_contextwritable
collect_stake_reward_settle
- ownerwritable
- receiving_token_accountwritable
- pool
- reward_custody_token_accountwritable
- reward_mint
- collect_stake_reward_receiptwritable
- transfer_authority
- perpetuals
- token_program
- system_program
- event_authority
- program
- escrow_auth
- escrow
collect_stake_reward_with_action
- ownersignerwritable
- receiving_token_accountwritable
- perpetuals
- pool
- reward_custody
- flp_stake_account
- reward_mint
- reward_custody_token_account
- buffer_collect_stake_reward_receiptwritable
- delegation_record_collect_stake_reward_receiptwritable
- delegation_metadata_collect_stake_reward_receiptwritable
- collect_stake_reward_receiptwritable
- transfer_authority
- token_program
- system_program
- event_authority
- program
- ix_sysvar
- owner_program
- delegation_program
- paramsCollectStakeRewardWithActionParams
collect_token_reward_er
- owner
- payersigner
- token_vaultwritable
- token_stake_accountwritable
- collect_token_reward_receiptwritable
- token_mint
- transfer_authority
- perpetuals
- receiving_token_account
- token_vault_token_account
- token_program
- system_program
- program_id
- event_authority
- program
- magic_program
- magic_contextwritable
collect_token_reward_settle
- ownerwritable
- receiving_token_accountwritable
- token_vault_token_accountwritable
- token_mint
- transfer_authority
- perpetuals
- collect_token_reward_receiptwritable
- token_program
- system_program
- event_authority
- program
- escrow_auth
- escrow
collect_token_reward_with_action
- ownersignerwritable
- token_vault
- token_vault_token_account
- token_mint
- token_stake_account
- transfer_authority
- receiving_token_accountwritable
- perpetuals
- buffer_receiptwritable
- delegation_record_receiptwritable
- delegation_metadata_receiptwritable
- receiptwritable
- token_program
- system_program
- event_authority
- program
- ix_sysvar
- owner_program
- delegation_program
- paramsCollectTokenRewardWithActionParams
compound_fees_er
- keeper
- payersigner
- perpetuals
- poolwritable
- reward_custodywritable
- reward_custody_oracle_account
- lp_token_mint
- pool_compounding_lp_vault
- compound_fees_receiptwritable
- transfer_authority
- token_program
- system_program
- program_id
- event_authority
- program
- ix_sysvar
- magic_program
- magic_contextwritable
compound_fees_settle
- keeperwritable
- pool
- pool_compounding_lp_vaultwritable
- lp_token_mintwritable
- compound_fees_receiptwritable
- transfer_authority
- perpetuals
- token_program
- system_program
- event_authority
- program
- escrow_auth
- escrow
compound_fees_with_action
- keepersignerwritable
- perpetuals
- pool
- reward_custody
- lp_token_mint
- pool_compounding_lp_vault
- buffer_compound_fees_receiptwritable
- delegation_record_compound_fees_receiptwritable
- delegation_metadata_compound_fees_receiptwritable
- compound_fees_receiptwritable
- transfer_authority
- token_program
- system_program
- event_authority
- program
- ix_sysvar
- owner_program
- delegation_program
- paramsCompoundFeesWithActionParams
create_referral
- ownersignerwritable
- fee_payersignerwritable
- token_stake_account
- referral_accountwritable
- system_program
- paramsCreateReferralParams
create_whitelist
- adminsignerwritable
- multisigwritable
- owner
- whitelistwritable
- system_program
- paramsCreateWhitelistParams
custody_settlement_er
- payersigner
- pool
- custodywritable
- settlement_receiptwritable
- trade_vault
- trade_vault_token_account
- custody_token_account
- token_mint
- transfer_authority
- perpetuals
- token_program
- system_program
- program_id
- event_authority
- program
- magic_program
- magic_contextwritable
custody_settlement_settle
- payerwritable
- pool
- custody
- trade_vaultwritable
- trade_vault_token_accountwritable
- custody_token_accountwritable
- token_mint
- transfer_authority
- perpetuals
- settlement_receiptwritable
- token_program
- event_authority
- program
- escrow_auth
- escrow
custody_settlement_with_action
- payersigner
- pool
- custody
- perpetuals
- transfer_authority
- token_mint
- trade_vault
- trade_vault_token_accountwritable
- custody_token_accountwritable
- buffer_settlement_receiptwritable
- delegation_record_settlement_receiptwritable
- delegation_metadata_settlement_receiptwritable
- settlement_receiptwritable
- token_program
- system_program
- event_authority
- program
- owner_program
- delegation_program
- paramsCustodySettlementWithActionParams
decrease_position_size_er
- owner
- signersigner
- session_tokenoptional
- perpetuals
- basketwritable
- marketwritable
- poolwritable
- target_custody
- dispensing_custodywritable
- lock_custodywritable
- target_oracle_account
- dispensing_oracle_account
- lock_oracle_account
- realloc_vaultwritable
- event_authority
- program
- ix_sysvar
- paramsDecreasePositionSizeErParams
delegate_basket
- payersignerwritable
- owner
- buffer_basketwritable
- delegation_record_basketwritable
- delegation_metadata_basketwritable
- basketwritable
- event_authority
- program
- owner_program
- delegation_program
- system_program
- paramsDelegateBasketParams
delegate_custody
- adminsignerwritable
- multisigwritable
- pool
- buffer_custodywritable
- delegation_record_custodywritable
- delegation_metadata_custodywritable
- custodywritable
- event_authority
- program
- owner_program
- delegation_program
- system_program
- paramsDelegateCustodyParams
delegate_internal_oracle
- adminsignerwritable
- multisigwritable
- custody_token_mint
- buffer_oracle_accountwritable
- delegation_record_oracle_accountwritable
- delegation_metadata_oracle_accountwritable
- oracle_accountwritable
- event_authority
- program
- owner_program
- delegation_program
- system_program
- paramsDelegateInternalOracleParams
delegate_market
- adminsignerwritable
- multisigwritable
- target_custody
- collateral_custody
- buffer_marketwritable
- delegation_record_marketwritable
- delegation_metadata_marketwritable
- marketwritable
- event_authority
- program
- owner_program
- delegation_program
- system_program
- paramsDelegateMarketParams
delegate_pool
- adminsignerwritable
- multisigwritable
- buffer_poolwritable
- delegation_record_poolwritable
- delegation_metadata_poolwritable
- poolwritable
- event_authority
- program
- owner_program
- delegation_program
- system_program
- paramsDelegatePoolParams
delegate_realloc_vault
- adminsignerwritable
- multisigwritable
- buffer_realloc_vaultwritable
- delegation_record_realloc_vaultwritable
- delegation_metadata_realloc_vaultwritable
- realloc_vaultwritable
- event_authority
- program
- system_program
- owner_program
- delegation_program
- paramsDelegateReallocVaultParams
delegate_rebate_vault
- adminsignerwritable
- multisigwritable
- buffer_rebate_vaultwritable
- delegation_record_rebate_vaultwritable
- delegation_metadata_rebate_vaultwritable
- rebate_vaultwritable
- event_authority
- program
- owner_program
- delegation_program
- system_program
- paramsDelegateRebateVaultParams
delegate_token_vault
- adminsignerwritable
- multisigwritable
- buffer_token_vaultwritable
- delegation_record_token_vaultwritable
- delegation_metadata_token_vaultwritable
- token_vaultwritable
- event_authority
- program
- owner_program
- delegation_program
- system_program
- paramsDelegateTokenVaultParams
deposit_direct
- depositorsignerwritable
- owner
- perpetuals
- depositor_token_accountwritable
- token_mint
- trade_vaultwritable
- trade_vault_token_accountwritable
- user_deposit_ledgerwritable
- token_program
- system_program
- event_authority
- program
- paramsDepositDirectParams
deposit_token_stake_er
- owner
- payersigner
- token_vaultwritable
- token_stake_accountwritable
- deposit_receiptwritable
- token_mint
- transfer_authority
- perpetuals
- receiving_account
- token_vault_token_account
- receiving_token_program
- system_program
- program_id
- event_authority
- program
- magic_program
- magic_contextwritable
deposit_token_stake_settle
- ownerwritable
- receiving_accountwritable
- token_vault_token_accountwritable
- token_mint
- transfer_authority
- perpetuals
- deposit_receiptwritable
- receiving_token_program
- system_program
- event_authority
- program
- escrow_auth
- escrow
deposit_token_stake_with_action
- ownersignerwritable
- funding_accountwritable
- token_vault
- token_vault_token_accountwritable
- token_mint
- transfer_authority
- perpetuals
- buffer_token_stake_accountwritable
- delegation_record_token_stake_accountwritable
- delegation_metadata_token_stake_accountwritable
- token_stake_accountwritable
- buffer_deposit_receiptwritable
- delegation_record_deposit_receiptwritable
- delegation_metadata_deposit_receiptwritable
- deposit_receiptwritable
- token_program
- funding_token_program
- system_program
- event_authority
- program
- ix_sysvar
- owner_program
- delegation_program
- paramsDepositTokenStakeWithActionParams
distribute_token_reward
- adminsignerwritable
- multisig
- perpetuals
- transfer_authority
- funding_token_accountwritable
- token_vaultwritable
- token_vault_token_accountwritable
- token_program
- event_authority
- program
- token_mint
- paramsDistributeTokenRewardParams
edit_limit_order_er
- owner
- signersigner
- session_tokenoptional
- perpetuals
- basketwritable
- user_deposit_ledger
- pool
- market
- target_custody
- lock_custody
- reserve_custodywritable
- receive_custody
- target_oracle_account
- reserve_oracle_account
- event_authority
- program
- ix_sysvar
- paramsEditLimitOrderErParams
edit_trigger_order_er
- owner
- signersigner
- session_tokenoptional
- perpetuals
- basketwritable
- pool
- market
- target_custody
- lock_custody
- receive_custody
- target_oracle_account
- lock_oracle_account
- event_authority
- program
- ix_sysvar
- paramsEditTriggerOrderErParams
execute_limit_order_er
- keepersigner
- perpetuals
- basketwritable
- user_deposit_ledger
- poolwritable
- marketwritable
- target_custody
- lock_custodywritable
- reserve_custodywritable
- target_oracle_account
- reserve_oracle_account
- lock_oracle_account
- realloc_vaultwritable
- event_authority
- program
- ix_sysvar
- paramsExecuteLimitOrderErParams
execute_trigger_order_er
- keepersigner
- perpetuals
- basketwritable
- user_deposit_ledger
- poolwritable
- marketwritable
- target_custody
- lock_custodywritable
- dispensing_custodywritable
- target_oracle_account
- lock_oracle_account
- dispensing_oracle_account
- realloc_vaultwritable
- event_authority
- program
- ix_sysvar
- paramsExecuteTriggerOrderErParams
force_close_order_er
- adminsigner
- multisig
- perpetuals
- basketwritable
- pool
- market
- target_custody
- lock_custody
- reserve_custodywritable
- realloc_vaultwritable
- event_authority
- program
- ix_sysvar
- paramsForceCloseOrderErParams
force_close_position_er
- adminsigner
- multisig
- perpetuals
- basketwritable
- poolwritable
- marketwritable
- target_custody
- lock_custodywritable
- target_oracle_account
- lock_oracle_account
- realloc_vaultwritable
- event_authority
- program
- ix_sysvar
- paramsForceClosePositionErParams
get_add_collateral_quote_er
- owner
- perpetuals
- pool
- basket
- market
- target_custody
- target_oracle_account
- lock_custody
- lock_oracle_account
- receiving_custody
- receiving_oracle_account
- ix_sysvar
- paramsGetAddCollateralQuoteErParams
get_add_compounding_liquidity_amount_and_fee
- perpetuals
- pool
- in_custody
- in_custody_oracle_account
- reward_custody
- reward_custody_oracle_account
- lp_token_mint
- compounding_token_mint
- ix_sysvar
- paramsGetAddCompoundingLiquidityAmountAndFeeParams
get_add_liquidity_amount_and_fee
- perpetuals
- pool
- custody
- custody_oracle_account
- lp_token_mint
- ix_sysvar
- paramsGetAddLiquidityAmountAndFeeParams
get_assets_under_management
- perpetuals
- pool
- ix_sysvar
- paramsGetAssetsUnderManagementParams
get_close_position_quote_er
- owner
- perpetuals
- pool
- basket
- market
- target_custody
- target_oracle_account
- lock_custody
- lock_oracle_account
- dispensing_custody
- dispensing_oracle_account
- ix_sysvar
- paramsGetClosePositionQuoteErParams
get_compounding_token_data
- perpetuals
- pool
- lp_token_mint
- ix_sysvar
- paramsGetCompoundingTokenDataParams
get_compounding_token_price
- perpetuals
- pool
- lp_token_mint
- ix_sysvar
- paramsGetCompoundingTokenPriceParams
get_entry_price_and_fee_er
- perpetuals
- pool
- market
- target_custody
- target_oracle_account
- lock_custody
- lock_oracle_account
- ix_sysvar
- paramsGetEntryPriceAndFeeErParams
get_exit_price_and_fee_er
- owner
- perpetuals
- pool
- basket
- market
- target_custody
- target_oracle_account
- lock_custody
- lock_oracle_account
- ix_sysvar
- paramsGetExitPriceAndFeeErParams
get_liquidation_price_er
- owner
- perpetuals
- pool
- basket
- market
- target_custody
- target_oracle_account
- lock_custody
- lock_oracle_account
- ix_sysvar
- paramsGetLiquidationPriceErParams
get_liquidation_state_er
- owner
- perpetuals
- pool
- basket
- market
- target_custody
- target_oracle_account
- lock_custody
- lock_oracle_account
- ix_sysvar
- paramsGetLiquidationStateErParams
get_lp_token_price
- perpetuals
- pool
- lp_token_mint
- ix_sysvar
- paramsGetLpTokenPriceParams
get_open_position_quote_er
- perpetuals
- pool
- market
- target_custody
- target_oracle_account
- lock_custody
- lock_oracle_account
- receiving_custody
- receiving_oracle_account
- ix_sysvar
- paramsGetOpenPositionQuoteErParams
get_oracle_price
- perpetuals
- pool
- custody
- custody_oracle_account
- ix_sysvar
- paramsGetOraclePriceParams
get_oracle_price_er
- perpetuals
- pool
- custody
- custody_oracle_account
- ix_sysvar
- paramsGetOraclePriceErParams
get_pnl_er
- owner
- perpetuals
- pool
- basket
- market
- target_custody
- target_oracle_account
- lock_custody
- lock_oracle_account
- ix_sysvar
- paramsGetPnlErParams
get_position_data_er
- owner
- perpetuals
- pool
- basket
- market
- target_custody
- target_oracle_account
- lock_custody
- lock_oracle_account
- ix_sysvar
- paramsGetPositionDataErParams
get_remove_collateral_quote_er
- owner
- perpetuals
- pool
- basket
- market
- target_custody
- target_oracle_account
- lock_custody
- lock_oracle_account
- dispensing_custody
- dispensing_oracle_account
- ix_sysvar
- paramsGetRemoveCollateralQuoteErParams
get_remove_compounding_liquidity_amount_and_fee
- perpetuals
- pool
- out_custody
- out_custody_oracle_account
- reward_custody
- reward_custody_oracle_account
- lp_token_mint
- compounding_token_mint
- ix_sysvar
- paramsGetRemoveCompoundingLiquidityAmountAndFeeParams
get_remove_liquidity_amount_and_fee
- perpetuals
- pool
- custody
- custody_oracle_account
- lp_token_mint
- ix_sysvar
- paramsGetRemoveLiquidityAmountAndFeeParams
get_swap_amount_and_fees
- perpetuals
- pool
- receiving_custody
- receiving_custody_oracle_account
- dispensing_custody
- dispensing_custody_oracle_account
- ix_sysvar
- paramsGetSwapAmountAndFeesParams
increase_position_size_er
- owner
- signersigner
- session_tokenoptional
- perpetuals
- basketwritable
- user_deposit_ledger
- marketwritable
- poolwritable
- target_custody
- receiving_custodywritable
- lock_custodywritable
- target_oracle_account
- receiving_oracle_account
- lock_oracle_account
- realloc_vaultwritable
- event_authority
- program
- ix_sysvar
- paramsIncreasePositionSizeErParams
init
- upgrade_authoritysignerwritable
- multisigwritable
- transfer_authoritywritable
- perpetualswritable
- perpetuals_program
- perpetuals_program_data
- system_program
- token_program
- paramsInitParams
init_basket
- owner
- payersignerwritable
- basketwritable
- system_program
- paramsInitBasketParams
init_compounding
- adminsignerwritable
- multisigwritable
- transfer_authority
- perpetuals
- poolwritable
- lp_token_mint
- compounding_vaultwritable
- compounding_token_mintwritable
- metadata_accountwritable
- system_program
- token_program
- metadata_program
- rent
- paramsInitCompoundingParams
init_custody_account
- adminsignerwritable
- multisigwritable
- transfer_authority
- perpetuals
- pool
- custodywritable
- custody_token_accountwritable
- custody_token_mint
- system_program
- token_program
- rent
- paramsInitCustodyAccountParams
init_delegate_token_stake
- payersignerwritable
- owner
- buffer_token_stake_accountwritable
- delegation_record_token_stake_accountwritable
- delegation_metadata_token_stake_accountwritable
- token_stake_accountwritable
- system_program
- event_authority
- program
- owner_program
- delegation_program
init_market_account
- adminsignerwritable
- multisigwritable
- transfer_authority
- perpetuals
- pool
- target_custody
- collateral_custody
- marketwritable
- system_program
- rent
- paramsInitMarketAccountParams
init_realloc_vault
- adminsignerwritable
- multisigwritable
- realloc_vaultwritable
- system_program
- rent
- paramsInitReallocVaultParams
init_rebate_vault
- adminsignerwritable
- multisigwritable
- transfer_authority
- perpetuals
- rebate_mint
- rebate_token_accountwritable
- rebate_vaultwritable
- system_program
- token_program
- rent
- paramsInitRebateVaultParams
init_revenue_token_account
- adminsignerwritable
- multisigwritable
- transfer_authority
- perpetuals
- token_vaultwritable
- reward_mint
- revenue_token_accountwritable
- protocol_vaultwritable
- protocol_token_accountwritable
- system_program
- token_program
- rent
- paramsInitRevenueTokenAccountParams
init_staking
- adminsignerwritable
- multisigwritable
- transfer_authority
- perpetuals
- poolwritable
- custodywritable
- lp_token_mint
- staked_lp_token_accountwritable
- system_program
- token_program
- rent
- paramsInitStakingParams
init_token_vault
- adminsignerwritable
- multisigwritable
- perpetuals
- transfer_authority
- funding_token_accountwritable
- token_mint
- token_vaultwritable
- token_vault_token_accountwritable
- system_program
- token_program
- rent
- paramsInitTokenVaultParams
init_trade_vault
- adminsignerwritable
- multisig
- perpetuals
- transfer_authority
- token_mint
- trade_vaultwritable
- trade_vault_token_accountwritable
- system_program
- token_program
init_user_deposit_ledger
- owner
- payersignerwritable
- user_deposit_ledgerwritable
- system_program
- paramsInitUserDepositLedgerParams
liquidate_position_er
- signersignerwritable
- perpetuals
- basketwritable
- poolwritable
- marketwritable
- target_custody
- lock_custodywritable
- target_oracle_account
- lock_oracle_account
- event_authority
- program
- ix_sysvar
- paramsLiquidatePositionErParams
migrate_flp_er
- owner
- payersigner
- poolwritable
- reward_custodywritable
- flp_stake_accountwritable
- reward_custody_oracle_account
- migrate_flp_receiptwritable
- transfer_authority
- perpetuals
- compounding_token_account
- pool_staked_lp_vault
- pool_compounding_lp_vault
- lp_token_mint
- compounding_token_mint
- token_program
- system_program
- program_id
- event_authority
- program
- ix_sysvar
- magic_program
- magic_contextwritable
migrate_flp_settle
- ownerwritable
- compounding_token_accountwritable
- pool
- pool_staked_lp_vaultwritable
- pool_compounding_lp_vaultwritable
- lp_token_mintwritable
- compounding_token_mintwritable
- transfer_authority
- perpetuals
- migrate_flp_receiptwritable
- token_program
- system_program
- event_authority
- program
- escrow_auth
- escrow
migrate_flp_with_action
- ownersignerwritable
- compounding_token_accountwritable
- transfer_authority
- perpetuals
- pool
- reward_custody
- reward_custody_oracle_account
- buffer_flp_stake_accountwritable
- delegation_record_flp_stake_accountwritable
- delegation_metadata_flp_stake_accountwritable
- flp_stake_accountwritable
- pool_staked_lp_vaultwritable
- pool_compounding_lp_vaultwritable
- lp_token_mint
- compounding_token_mintwritable
- buffer_migrate_flp_receiptwritable
- delegation_record_migrate_flp_receiptwritable
- delegation_metadata_migrate_flp_receiptwritable
- migrate_flp_receiptwritable
- token_program
- system_program
- event_authority
- program
- ix_sysvar
- owner_program
- delegation_program
- paramsMigrateFlpWithActionParams
migrate_order_to_basket_er
- adminsigner
- multisig
- owner
- basketwritable
- orderwritable
- market
- lock_custody
- reserve_custody
- realloc_vaultwritable
- paramsMigrateOrderToBasketErParams
migrate_pool_lp_supply
- adminsignerwritable
- multisigwritable
- poolwritable
- lp_token_mint
- system_program
- paramsMigratePoolLpSupplyParams
migrate_position_to_basket_er
- adminsigner
- multisig
- owner
- basketwritable
- positionwritable
- market
- lock_custody
- realloc_vaultwritable
- paramsMigratePositionToBasketErParams
migrate_stake_er
- owner
- payersigner
- poolwritable
- reward_custodywritable
- flp_stake_accountwritable
- reward_custody_oracle_account
- migrate_stake_receiptwritable
- transfer_authority
- perpetuals
- compounding_token_account
- pool_staked_lp_vault
- pool_compounding_lp_vault
- lp_token_mint
- compounding_token_mint
- token_program
- system_program
- program_id
- event_authority
- program
- ix_sysvar
- magic_program
- magic_contextwritable
migrate_stake_settle
- ownerwritable
- compounding_token_accountwritable
- pool
- pool_staked_lp_vaultwritable
- pool_compounding_lp_vaultwritable
- lp_token_mintwritable
- compounding_token_mintwritable
- transfer_authority
- perpetuals
- migrate_stake_receiptwritable
- token_program
- system_program
- event_authority
- program
- escrow_auth
- escrow
migrate_stake_with_action
- ownersignerwritable
- compounding_token_accountwritable
- transfer_authority
- perpetuals
- pool
- reward_custody
- reward_custody_oracle_account
- flp_stake_account
- pool_staked_lp_vaultwritable
- pool_compounding_lp_vaultwritable
- lp_token_mint
- compounding_token_mint
- buffer_migrate_stake_receiptwritable
- delegation_record_migrate_stake_receiptwritable
- delegation_metadata_migrate_stake_receiptwritable
- migrate_stake_receiptwritable
- token_program
- system_program
- event_authority
- program
- ix_sysvar
- owner_program
- delegation_program
- paramsMigrateStakeWithActionParams
move_protocol_fees_er
- keeper
- payersigner
- perpetuals
- poolwritable
- reward_custodywritable
- protocol_vault
- token_vaultwritable
- move_protocol_fees_receiptwritable
- reward_custody_token_account
- revenue_token_account
- protocol_token_account
- token_mint
- transfer_authority
- token_program
- system_program
- program_id
- event_authority
- program
- magic_program
- magic_contextwritable
move_protocol_fees_settle
- keeperwritable
- perpetuals
- pool
- reward_custody_token_accountwritable
- revenue_token_accountwritable
- protocol_token_accountwritable
- token_mint
- protocol_vaultwritable
- move_protocol_fees_receiptwritable
- transfer_authority
- token_program
- system_program
- event_authority
- program
- escrow_auth
- escrow
move_protocol_fees_with_action
- keepersignerwritable
- transfer_authority
- perpetuals
- pool
- reward_custody
- reward_custody_token_accountwritable
- token_vault
- revenue_token_accountwritable
- protocol_vault
- protocol_token_accountwritable
- token_mint
- buffer_move_protocol_fees_receiptwritable
- delegation_record_move_protocol_fees_receiptwritable
- delegation_metadata_move_protocol_fees_receiptwritable
- move_protocol_fees_receiptwritable
- token_program
- system_program
- event_authority
- program
- owner_program
- delegation_program
- paramsMoveProtocolFeesWithActionParams
open_position_er
- owner
- signersigner
- session_tokenoptional
- perpetuals
- basketwritable
- user_deposit_ledger
- poolwritable
- marketwritable
- target_custody
- lock_custodywritable
- receiving_custodywritable
- target_oracle_account
- lock_oracle_account
- receiving_oracle_account
- realloc_vaultwritable
- event_authority
- program
- ix_sysvar
- paramsOpenPositionErParams
place_limit_order_er
- owner
- signersigner
- session_tokenoptional
- perpetuals
- basketwritable
- user_deposit_ledger
- pool
- market
- target_custody
- lock_custody
- reserve_custodywritable
- receive_custody
- target_oracle_account
- reserve_oracle_account
- realloc_vaultwritable
- event_authority
- program
- ix_sysvar
- paramsPlaceLimitOrderErParams
place_trigger_order_er
- owner
- signersigner
- session_tokenoptional
- perpetuals
- basketwritable
- pool
- market
- target_custody
- lock_custody
- receive_custody
- target_oracle_account
- lock_oracle_account
- realloc_vaultwritable
- event_authority
- program
- ix_sysvar
- paramsPlaceTriggerOrderErParams
process_undelegation
- base_accountwritable
- buffer
- payerwritable
- system_program
- account_seedsVec<bytes>
refresh_stake_er
- payersigner
- perpetuals
- poolwritable
- reward_custodywritable
- event_authority
- program
- magic_program
- magic_contextwritable
refresh_token_stake_er
- payersigner
- perpetuals
- token_vaultwritable
- event_authority
- program
- magic_program
- magic_contextwritable
refund_lo_collateral
- adminsignerwritable
- multisigwritable
- user_deposit_ledgerwritable
- refund_lo_budgetwritable
- system_program
- paramsRefundLoCollateralParams
reimburse
- adminsigner
- multisig
- funding_accountwritable
- perpetuals
- poolwritable
- custodywritable
- custody_oracle_account
- custody_token_accountwritable
- token_program
- program
- ix_sysvar
- funding_mint
- paramsReimburseParams
remove_collateral_er
- owner
- signersigner
- session_tokenoptional
- perpetuals
- basketwritable
- marketwritable
- pool
- target_custody
- dispensing_custodywritable
- lock_custodywritable
- target_oracle_account
- dispensing_oracle_account
- lock_oracle_account
- realloc_vaultwritable
- event_authority
- program
- ix_sysvar
- paramsRemoveCollateralErParams
remove_compounding_liquidity_er
- owner
- payersigner
- poolwritable
- out_custodywritable
- reward_custodywritable
- lp_token_mint
- compounding_withdraw_receiptwritable
- out_custody_token_mint
- transfer_authority
- perpetuals
- receiving_account
- compounding_token_account
- pool_compounding_lp_vault
- out_custody_token_account
- compounding_token_mint
- out_custody_oracle_account
- reward_custody_oracle_account
- token_program
- receiving_token_program
- system_program
- program_id
- event_authority
- program
- ix_sysvar
- magic_program
- magic_contextwritable
remove_compounding_liquidity_settle
- ownerwritable
- receiving_accountwritable
- compounding_token_accountwritable
- pool
- out_custody
- out_custody_token_accountwritable
- out_custody_token_mint
- compounding_token_mintwritable
- pool_compounding_lp_vaultwritable
- lp_token_mintwritable
- transfer_authority
- perpetuals
- compounding_withdraw_receiptwritable
- token_program
- receiving_token_program
- system_program
- event_authority
- program
- escrow_auth
- escrow
remove_compounding_liquidity_with_action
- ownersignerwritable
- receiving_accountwritable
- compounding_token_accountwritable
- pool_compounding_lp_vaultwritable
- transfer_authority
- perpetuals
- pool
- out_custody
- out_custody_token_accountwritable
- reward_custody
- lp_token_mint
- compounding_token_mintwritable
- out_custody_token_mint
- buffer_compounding_withdraw_receiptwritable
- delegation_record_compounding_withdraw_receiptwritable
- delegation_metadata_compounding_withdraw_receiptwritable
- compounding_withdraw_receiptwritable
- token_program
- receiving_token_program
- system_program
- event_authority
- program
- ix_sysvar
- owner_program
- delegation_program
- paramsRemoveCompoundingLiquidityWithActionParams
remove_custody
- adminsignerwritable
- receiving_accountwritable
- multisigwritable
- transfer_authoritywritable
- perpetuals
- poolwritable
- custodywritable
- custody_oracle_account
- custody_token_accountwritable
- system_program
- token_program
- ix_sysvar
- receiving_token_mint
- paramsRemoveCustodyParams
remove_custody_er
- adminsignerwritable
- multisig
- perpetuals
- poolwritable
- custodywritable
- realloc_vaultwritable
- magic_fee_vaultwritable
- custody_token_account
- custody_oracle_account
- ix_sysvar
- event_authority
- program
- magic_program
- magic_contextwritable
- paramsRemoveCustodyErParams
remove_custody_settle
- adminsignerwritable
- multisigwritable
- transfer_authority
- perpetuals
- pool
- custodywritable
- custody_token_accountwritable
- receiving_accountwritable
- receiving_token_mint
- token_program
- event_authority
- program
remove_liquidity_er
- owner
- payersigner
- poolwritable
- custodywritable
- reward_custodywritable
- lp_token_mint
- flp_stake_accountwritable
- staking_withdraw_receiptwritable
- custody_token_mint
- transfer_authority
- perpetuals
- pool_staked_lp_vault
- receiving_account
- custody_token_account
- custody_oracle_account
- token_program
- receiving_token_program
- system_program
- program_id
- event_authority
- program
- ix_sysvar
- magic_program
- magic_contextwritable
remove_liquidity_settle
- ownerwritable
- receiving_accountwritable
- pool
- custody
- custody_token_accountwritable
- custody_token_mint
- pool_staked_lp_vaultwritable
- lp_token_mintwritable
- transfer_authority
- perpetuals
- staking_withdraw_receiptwritable
- token_program
- receiving_token_program
- system_program
- event_authority
- program
- escrow_auth
- escrow
remove_liquidity_with_action
- ownersignerwritable
- receiving_accountwritable
- transfer_authority
- perpetuals
- pool
- custody
- reward_custody
- flp_stake_account
- custody_token_accountwritable
- custody_token_mint
- lp_token_mint
- pool_staked_lp_vaultwritable
- buffer_staking_withdraw_receiptwritable
- delegation_record_staking_withdraw_receiptwritable
- delegation_metadata_staking_withdraw_receiptwritable
- staking_withdraw_receiptwritable
- token_program
- receiving_token_program
- system_program
- event_authority
- program
- ix_sysvar
- owner_program
- delegation_program
- paramsRemoveLiquidityWithActionParams
remove_market
- adminsignerwritable
- multisigwritable
- transfer_authoritywritable
- perpetuals
- poolwritable
- marketwritable
- target_custody
- collateral_custody
- system_program
- token_program
- paramsRemoveMarketParams
remove_market_er
- adminsignerwritable
- multisig
- perpetuals
- poolwritable
- marketwritable
- realloc_vaultwritable
- magic_fee_vaultwritable
- event_authority
- program
- magic_program
- magic_contextwritable
remove_market_settle
- adminsignerwritable
- multisigwritable
- pool
- marketwritable
- event_authority
- program
remove_pool
- adminsignerwritable
- multisigwritable
- transfer_authoritywritable
- perpetualswritable
- poolwritable
- system_program
- paramsRemovePoolParams
rename_flp
- adminsignerwritable
- multisigwritable
- transfer_authority
- perpetuals
- poolwritable
- lp_token_mint
- lp_metadata_accountwritable
- system_program
- token_program
- metadata_program
- rent
- paramsRenameFlpParams
resize_internal_oracle
- adminsignerwritable
- multisigwritable
- custody_token_mint
- int_oracle_accountwritable
- system_program
- paramsResizeInternalOracleParams
set_admin_signers
- adminsigner
- multisigwritable
- paramsSetAdminSignersParams
set_custody_config
- adminsignerwritable
- multisigwritable
- poolwritable
- perpetuals
- custodywritable
- custody_oracle_account
- ix_sysvar
- system_program
- paramsSetCustodyConfigParams
set_custody_config_er
- adminsignerwritable
- multisig
- poolwritable
- perpetuals
- custodywritable
- custody_oracle_account
- ix_sysvar
- realloc_vaultwritable
- magic_fee_vaultwritable
- event_authority
- program
- magic_program
- magic_contextwritable
- paramsSetCustodyConfigErParams
set_custody_token_multiplier
- adminsignerwritable
- multisig
- pool
- perpetuals
- custodywritable
- custody_token_mint
- system_program
- paramsSetCustodyTokenMultiplierParams
set_custody_token_multiplier_er
- adminsignerwritable
- multisig
- pool
- perpetuals
- custodywritable
- custody_token_mint
- realloc_vaultwritable
- magic_fee_vaultwritable
- event_authority
- program
- magic_program
- magic_contextwritable
- paramsSetCustodyTokenMultiplierErParams
set_custom_oracle_price
- adminsignerwritable
- multisigwritable
- perpetuals
- pool
- custody
- oracle_accountwritable
- system_program
- paramsSetCustomOraclePriceParams
set_fee_share
- adminsigner
- multisig
- poolwritable
- paramsSetFeeShareParams
set_internal_account_config_er
- adminsignerwritable
- multisig
- custody_token_mint
- int_oracle_accountwritable
- realloc_vaultwritable
- magic_fee_vaultwritable
- event_authority
- program
- magic_program
- magic_contextwritable
- paramsSetInternalAccountConfigErParams
set_internal_current_price
- authoritysignerwritable
- paramsSetInternalCurrentPriceParams
set_internal_current_price_er
- authoritysignerwritable
- magic_program
- magic_contextwritable
- paramsSetInternalCurrentPriceErParams
set_internal_ema_price
- authoritysignerwritable
- paramsSetInternalEmaPriceParams
set_internal_ema_price_er
- authoritysignerwritable
- magic_program
- magic_contextwritable
- paramsSetInternalEmaPriceErParams
set_internal_lazer_price
- payersignerwritable
- pyth_storage
- pyth_treasurywritable
- pyth_lazer_program
- system_program
- paramsSetInternalLazerPriceParams
set_internal_lazer_price_er
- payersigner
- pyth_storage
- magic_program
- magic_contextwritable
- paramsSetInternalLazerPriceErParams
set_lp_token_price_er
- perpetuals
- poolwritable
- realloc_vaultwritable
- magic_fee_vaultwritable
- ix_sysvar
- event_authority
- program
- magic_program
- magic_contextwritable
- paramsSetLpTokenPriceErParams
set_market_config
- adminsignerwritable
- multisigwritable
- marketwritable
- target_custody
- collateral_custody
- paramsSetMarketConfigParams
set_market_config_er
- adminsignerwritable
- multisig
- marketwritable
- target_custody
- collateral_custody
- realloc_vaultwritable
- magic_fee_vaultwritable
- event_authority
- program
- magic_program
- magic_contextwritable
- paramsSetMarketConfigErParams
set_permissions
- adminsigner
- multisigwritable
- perpetualswritable
- paramsSetPermissionsParams
set_perpetuals_config
- adminsignerwritable
- multisigwritable
- perpetualswritable
- paramsSetPerpetualsConfigParams
set_pool_config
- adminsignerwritable
- multisigwritable
- poolwritable
- system_program
- paramsSetPoolConfigParams
set_pool_config_er
- adminsignerwritable
- multisig
- poolwritable
- realloc_vaultwritable
- magic_fee_vaultwritable
- event_authority
- program
- magic_program
- magic_contextwritable
- paramsSetPoolConfigErParams
set_protocol_fee_share
- adminsigner
- multisigwritable
- protocol_vaultwritable
- paramsSetProtocolFeeShareParams
set_test_time
- adminsigner
- multisigwritable
- perpetualswritable
- paramsSetTestTimeParams
set_token_reward
- adminsignerwritable
- multisig
- token_vaultwritable
- token_stake_accountwritable
- event_authority
- program
- paramsSetTokenRewardParams
set_token_stake_level
- adminsignerwritable
- multisigwritable
- perpetuals
- token_vault
- owner
- token_stake_accountwritable
- system_program
- paramsSetTokenStakeLevelParams
set_token_stake_level_er
- adminsignerwritable
- multisig
- perpetuals
- token_vault
- owner
- token_stake_accountwritable
- realloc_vaultwritable
- magic_fee_vaultwritable
- event_authority
- program
- magic_program
- magic_contextwritable
- paramsSetTokenStakeLevelErParams
set_token_vault_config
- adminsignerwritable
- multisigwritable
- token_vaultwritable
- system_program
- paramsSetTokenVaultConfigParams
set_token_vault_config_er
- adminsignerwritable
- multisig
- token_vaultwritable
- realloc_vaultwritable
- magic_fee_vaultwritable
- event_authority
- program
- magic_program
- magic_contextwritable
- paramsSetTokenVaultConfigErParams
set_trade_spread_min_er
- authoritysignerwritable
- magic_program
- magic_contextwritable
- paramsSetTradeSpreadMinErParams
set_whitelist_config
- adminsignerwritable
- multisigwritable
- owner
- whitelistwritable
- system_program
- paramsSetWhitelistConfigParams
settle_rebates_er
- keeper
- payersigner
- perpetuals
- poolwritable
- reward_custodywritable
- reward_custody_oracle_account
- rebate_vaultwritable
- settle_rebates_receiptwritable
- reward_custody_token_account
- rebate_token_account
- token_mint
- transfer_authority
- token_program
- system_program
- program_id
- realloc_vaultwritable
- magic_fee_vaultwritable
- event_authority
- program
- ix_sysvar
- magic_program
- magic_contextwritable
settle_rebates_settle
- keeperwritable
- perpetuals
- pool
- reward_custody
- reward_custody_token_accountwritable
- rebate_token_accountwritable
- token_mint
- settle_rebates_receiptwritable
- transfer_authority
- token_program
- system_program
- event_authority
- program
- escrow_auth
- escrow
settle_rebates_with_action
- keepersignerwritable
- transfer_authority
- perpetuals
- pool
- reward_custody
- reward_custody_oracle_account
- reward_custody_token_accountwritable
- rebate_vault
- rebate_token_accountwritable
- token_mint
- buffer_settle_rebates_receiptwritable
- delegation_record_settle_rebates_receiptwritable
- delegation_metadata_settle_rebates_receiptwritable
- settle_rebates_receiptwritable
- token_program
- system_program
- event_authority
- program
- ix_sysvar
- owner_program
- delegation_program
- paramsSettleRebatesWithActionParams
swap_er
- owner
- payersigner
- poolwritable
- in_custodywritable
- out_custodywritable
- in_custody_oracle_account
- out_custody_oracle_account
- swap_receiptwritable
- in_mint
- out_mint
- transfer_authority
- perpetuals
- in_account
- out_account
- in_custody_token_account
- out_custody_token_account
- in_token_program
- out_token_program
- system_program
- program_id
- event_authority
- program
- ix_sysvar
- magic_program
- magic_contextwritable
swap_fee_internal
- ownersigner
- perpetuals
- poolwritable
- reward_custodywritable
- reward_custody_oracle_account
- reward_custody_token_account
- event_authority
- program
- ix_sysvar
- paramsSwapFeeInternalParams
swap_fee_internal_er
- payersignerwritable
- perpetuals
- poolwritable
- reward_custodywritable
- reward_custody_oracle_account
- ix_sysvar
- realloc_vaultwritable
- magic_fee_vaultwritable
- event_authority
- program
- magic_program
- magic_contextwritable
- paramsSwapFeeInternalErParams
swap_settle
- ownerwritable
- in_accountwritable
- out_accountwritable
- pool
- in_custody
- out_custody
- in_custody_token_accountwritable
- out_custody_token_accountwritable
- in_mint
- out_mint
- transfer_authority
- perpetuals
- swap_receiptwritable
- in_token_program
- out_token_program
- system_program
- event_authority
- program
- escrow_auth
- escrow
swap_with_action
- ownersignerwritable
- in_accountwritable
- out_accountwritable
- transfer_authority
- perpetuals
- pool
- in_custody
- out_custody
- in_custody_token_accountwritable
- out_custody_token_accountwritable
- in_mint
- out_mint
- buffer_swap_receiptwritable
- delegation_record_swap_receiptwritable
- delegation_metadata_swap_receiptwritable
- swap_receiptwritable
- in_token_program
- out_token_program
- system_program
- event_authority
- program
- ix_sysvar
- owner_program
- delegation_program
- paramsSwapWithActionParams
test_init
- upgrade_authoritysignerwritable
- multisigwritable
- transfer_authoritywritable
- perpetualswritable
- system_program
- token_program
- paramsTestInitParams
undelegate_basket
- adminsignerwritable
- multisig
- owner
- basketwritable
- magic_program
- magic_contextwritable
undelegate_custody
- adminsignerwritable
- multisig
- pool
- custodywritable
- magic_program
- magic_contextwritable
- paramsUndelegateCustodyParams
undelegate_flp_stake
- adminsignerwritable
- multisig
- owner
- flp_stake_accountwritable
- magic_program
- magic_contextwritable
undelegate_internal_oracle
- adminsignerwritable
- multisig
- custody_token_mint
- oracle_accountwritable
- magic_program
- magic_contextwritable
- paramsUndelegateInternalOracleParams
undelegate_market
- adminsignerwritable
- multisig
- target_custody
- collateral_custody
- marketwritable
- magic_program
- magic_contextwritable
- paramsUndelegateMarketParams
undelegate_pool
- adminsignerwritable
- multisig
- poolwritable
- magic_program
- magic_contextwritable
- paramsUndelegatePoolParams
undelegate_realloc_vault
- adminsignerwritable
- multisig
- realloc_vaultwritable
- magic_program
- magic_contextwritable
- paramsUndelegateReallocVaultParams
undelegate_rebate_vault
- adminsignerwritable
- multisig
- rebate_vaultwritable
- magic_program
- magic_contextwritable
- paramsUndelegateRebateVaultParams
undelegate_token_stake
- adminsignerwritable
- multisig
- owner
- token_stake_accountwritable
- magic_program
- magic_contextwritable
undelegate_token_vault
- adminsignerwritable
- multisig
- token_vaultwritable
- magic_program
- magic_contextwritable
- paramsUndelegateTokenVaultParams
unstake_token_request_er
- ownersignerwritable
- perpetuals
- token_vaultwritable
- token_stake_accountwritable
- realloc_vaultwritable
- magic_fee_vaultwritable
- event_authority
- program
- magic_program
- magic_contextwritable
- paramsUnstakeTokenRequestErParams
withdraw_fees
- adminsigner
- multisigwritable
- transfer_authority
- perpetuals
- protocol_vaultwritable
- protocol_token_accountwritable
- receiving_token_accountwritable
- token_program
- receiving_mint
- paramsWithdrawFeesParams
withdraw_instant_fees
- adminsigner
- multisigwritable
- perpetuals
- transfer_authority
- token_vaultwritable
- token_vault_token_accountwritable
- receiving_token_accountwritable
- token_program
- receiving_token_mint
- paramsWithdrawInstantFeesParams
withdraw_sol_fees
- adminsigner
- multisigwritable
- transfer_authority
- perpetuals
- receiving_accountwritable
- paramsWithdrawSolFeesParams
withdraw_token_er
- owner
- payersigner
- token_vaultwritable
- token_stake_accountwritable
- withdraw_token_receiptwritable
- token_mint
- transfer_authority
- perpetuals
- receiving_token_account
- token_vault_token_account
- token_program
- system_program
- program_id
- event_authority
- program
- magic_program
- magic_contextwritable
withdraw_token_settle
- ownerwritable
- receiving_token_accountwritable
- token_vault_token_accountwritable
- token_mint
- transfer_authority
- perpetuals
- withdraw_token_receiptwritable
- token_program
- system_program
- event_authority
- program
- escrow_auth
- escrow
withdraw_token_with_action
- ownersignerwritable
- token_vault
- token_vault_token_account
- token_mint
- token_stake_account
- transfer_authority
- receiving_token_accountwritable
- perpetuals
- buffer_receiptwritable
- delegation_record_receiptwritable
- delegation_metadata_receiptwritable
- receiptwritable
- token_program
- system_program
- event_authority
- program
- ix_sysvar
- owner_program
- delegation_program
- paramsWithdrawTokenWithActionParams
withdraw_unclaimed_tokens
- adminsigner
- multisigwritable
- perpetuals
- transfer_authority
- token_vaultwritable
- token_vault_token_accountwritable
- receiving_token_accountwritable
- token_program
- receiving_token_mint
- paramsWithdrawUnclaimedTokensParams
withdrawal_er
- owner
- payersigner
- basketwritable
- user_deposit_ledger
- withdrawal_escrow_receiptwritable
- owner_token_account
- token_mint
- trade_vault
- trade_vault_token_account
- transfer_authority
- perpetuals
- token_program
- system_program
- program_id
- event_authority
- program
- magic_program
- magic_contextwritable
withdrawal_settle
- ownerwritable
- owner_token_accountwritable
- token_mint
- trade_vaultwritable
- trade_vault_token_accountwritable
- transfer_authority
- perpetuals
- withdrawal_escrow_receiptwritable
- user_deposit_ledgerwritable
- token_program
- event_authority
- program
- escrow_auth
- escrow
withdrawal_with_action
- ownersigner
- fee_payersignerwritable
- owner_token_accountwritable
- token_mint
- trade_vault
- trade_vault_token_accountwritable
- transfer_authority
- perpetuals
- basket
- user_deposit_ledgerwritable
- buffer_withdrawal_escrow_receiptwritable
- delegation_record_withdrawal_escrow_receiptwritable
- delegation_metadata_withdrawal_escrow_receiptwritable
- withdrawal_escrow_receiptwritable
- token_program
- system_program
- event_authority
- program
- owner_program
- delegation_program
- paramsWithdrawalWithActionParams
Accounts 39
Basket
no fields
CollectRebateReceipt
no fields
CollectRevenueReceipt
no fields
CollectStakeRewardReceipt
no fields
CollectTokenRewardReceipt
no fields
CompoundFeesReceipt
no fields
CompoundingDepositReceipt
no fields
CompoundingWithdrawReceipt
no fields
Custody
no fields
CustodySettlementReceipt
no fields
CustomOracle
no fields
FlpStake
no fields
Market
no fields
MigrateFlpReceipt
no fields
MigrateStakeReceipt
no fields
MoveProtocolFeesReceipt
no fields
Multisig
no fields
Order
no fields
Perpetuals
no fields
Pool
no fields
Position
no fields
ProtocolVault
no fields
ReallocVault
no fields
RebateVault
no fields
Referral
no fields
RefundLoBudget
no fields
SessionTokenV2
no fields
SettleRebatesReceipt
no fields
StakingDepositReceipt
no fields
StakingWithdrawReceipt
no fields
SwapReceipt
no fields
TokenStake
no fields
TokenStakeDepositReceipt
no fields
TokenVault
no fields
TradeVault
no fields
UserDepositLedger
no fields
Whitelist
no fields
WithdrawTokenReceipt
no fields
WithdrawalEscrowReceipt
no fields
Types 358
AddCollateralErLogstruct
- ownerpubkey
- marketpubkey
- trade_idi64
- collateral_priceu64
- collateral_price_exponenti32
- delta_collateral_amountu64
- delta_collateral_usdu64
- final_collateral_usdu64
- final_size_amountu64
- final_size_usdu64
- oracle_account_timei64
- oracle_account_typeu8
- oracle_account_priceu64
- oracle_account_price_exponenti32
- padding[u64; 4]
AddCollateralErParamsstruct
- collateral_deltau64
AddCollateralQuoteDatastruct
- amount_inu64
- collateral_delta_usdu64
- existing_collateral_usdu64
- existing_leverageu64
- existing_liquidation_priceOraclePrice
- new_collateral_usdu64
- new_leverageu64
- new_liquidation_priceOraclePrice
- max_addable_usdu64
- swap_requiredbool
- swap_possiblebool
- passes_min_collateralbool
- passes_leverage_checkbool
AddCompoundingLiquidityErLogstruct
- pool_namestring
- ownerpubkey
- in_custody_uidu64
- amount_inu64
- reward_amountu64
- user_lpu64
- reward_lpu64
- compounding_outu64
- fee_amountu64
- compounding_price_usdu64
- token_in_priceu64
- token_in_price_exponenti32
- slippage_okbool
AddCompoundingLiquiditySettleBaseLogstruct
- ownerpubkey
- poolpubkey
- in_custody_idu8
- user_lpu64
- reward_lpu64
- compounding_outu64
- amount_returnedu64
AddCompoundingLiquidityWithActionBaseLogstruct
- pool_namestring
- ownerpubkey
- in_custody_uidu64
- reward_custody_uidu64
- amount_inu64
- min_compounding_amount_outu64
AddCompoundingLiquidityWithActionParamsstruct
- amount_inu64
- min_compounding_amount_outu64
- queue_er_actionbool`true` → queue `_er` as a post-delegation action in this same base tx (forwards the full AUM account set in `remaining_accounts`). `false` → delegate the receipt with NO action; a keeper calls `add_compounding_liquidity_er` on the ER in a separate tx. Use when the AUM set would push the base tx past the 64-account limit. See the client-side account count.
AddCustodyErLogstruct
- poolpubkey
- custodypubkey
- custody_uidu8
- unique_custody_countu8
AddCustodyErParamsstruct
- ratiosVec<TokenRatios>New ratios after this custody is added. Must have length `pool.ratios.len() + 1`, matching the invariant in `add_custody`.
AddCustodyParamsstruct
- is_stablebool
- depeg_adjustmentbool
- is_virtualbool
- inverse_pricebool
- token22bool
- oracleOracleParams
- pricingPricingParams
- permissionsPermissions
- feesFees
- borrow_rateBorrowRateParams
- ratiosVec<TokenRatios>
- token_amount_multiplieru64
- min_reserve_usdu64
- limit_price_buffer_bpsu64
AddCustodyToken22AccountParamsstruct
- token_account_spaceu64
AddInternalOracleParamsstruct
- expoi32
- lazer_feed_idu32
AddLiquidityAndStakeErLogstruct
- pool_namestring
- ownerpubkey
- custody_uidu64
- amount_inu64
- lp_amount_outu64
- fee_amountu64
- lp_price_usdu64
- token_in_priceu64
- token_in_price_exponenti32
- slippage_okbool
AddLiquidityAndStakeSettleBaseLogstruct
- ownerpubkey
- poolpubkey
- custody_idu8
- lp_amountu64
- amount_returnedu64
AddLiquidityAndStakeWithActionBaseLogstruct
- pool_namestring
- ownerpubkey
- custody_uidu64
- amount_inu64
- min_lp_amount_outu64
AddLiquidityAndStakeWithActionParamsstruct
- amount_inu64
- min_lp_amount_outu64
- queue_er_actionbool`true` → queue `_er` as a post-delegation action in this same base tx (forwards the full AUM account set in `remaining_accounts`). `false` → delegate the receipt with NO action; a keeper calls `add_liquidity_and_stake_er` on the ER in a separate tx. Use when the AUM set would push the base tx past the 64-account limit. See the client-side account count.
AddMarketErLogstruct
- poolpubkey
- marketpubkey
- target_custodypubkey
- collateral_custodypubkey
- sideu8
- target_custody_uidu8
- collateral_custody_uidu8
AddMarketErParamsstruct
no fields
AddMarketParamsstruct
- sideSide
- correlationbool
- max_payoff_bpsu64
- permissionsMarketPermissions
AddPoolParamsstruct
- namestring
- permissionsPermissions
- max_aum_usdu64
- metadata_titlestring
- metadata_symbolstring
- metadata_uristring
- staking_fee_share_bpsu64
- vp_volume_factoru8
- staking_fee_boost_bps[u64; 6]
- min_lp_price_usdu64
- max_lp_price_usdu64
- threshold_usdu64
AmountAndFeestruct
- amountu64
- feeu64
Assetsstruct
- collateralu64
- ownedu64
- lockedu64
Basketstruct
- ownerpubkey
- delegatepubkey
- basket_bumpu8
- padding[u8; 5]
- positions_activebool
- orders_activebool
- debitsVec<Ledger>
- pending_creditsVec<Ledger>
- positionsVec<PositionMeta>
- ordersVec<OrderMeta>
BasketLedgerErLogstruct
- ownerpubkey
- basketpubkey
- token_mintpubkey
- debit_amountu64Amount debited from the basket into a trade (collateral / reserve in).
- credit_amountu64Amount credited back to the basket from a trade (settlement / payout out).
- op_typeu8Source instruction — maps to `BasketLedgerErType`.
BasketOrderstruct
- limit_ordersVec<LimitOrder>
- take_profit_ordersVec<TriggerOrder>
- stop_loss_ordersVec<TriggerOrder>
- is_initialisedbool
- is_activebool
- open_slu8
- open_tpu8
- inactive_slu8
- inactive_tpu8
- active_ordersu8
- reference_timestampi64
- execution_countu64
- padding[u64; 6]
BatchDelegateFlpStakeLogstruct
- processedu32
- skippedu32
BatchDelegateFlpStakeParamsstruct
no fields
BatchDelegateFlpStakeUserLogstruct
- flp_stakepubkey
- ownerpubkey
- poolpubkey
BatchDelegateTokenStakeLogstruct
- processedu32
- skippedu32
BatchDelegateTokenStakeParamsstruct
no fields
BatchDelegateTokenStakeUserLogstruct
- token_stakepubkey
- ownerpubkey
BatchDelegateTradingLogstruct
- processedu32
- skippedu32
BatchDelegateTradingParamsstruct
no fields
BatchDelegateTradingUserLogstruct
- tradingpubkey
- nft_mintpubkey
- ownerpubkey
BorrowRateParamsstruct
- base_rateu64
- slope1u64
- slope2u64
- optimal_utilizationu64
BorrowRateStatestruct
- current_rateu64
- cumulative_lock_feeu128
- last_updatei64
BurnAndClaimLogstruct
- ownerpubkey
- nft_mintpubkey
- claim_amountu64
- current_timestampi64
BurnAndStakeLogstruct
- ownerpubkey
- nft_mintpubkey
- token_stakepubkey
- stake_amountu64
- current_timestampi64
- last_updated_timestampi64
- levelu8
- active_stake_amountu64
CancelAllTriggerOrdersErParamsstruct
- marketpubkey
CancelLimitOrderErLogstruct
- ownerpubkey
- marketpubkey
- limit_priceu64
- limit_price_exponenti32
- size_amountu64
- size_usdu64
- reserve_priceu64
- reserve_price_exponenti32
- reserve_amountu64
- reserve_usdu64
- stop_loss_priceu64
- stop_loss_price_exponenti32
- take_profit_priceu64
- take_profit_price_exponenti32
- receive_custody_uidu8
- oracle_account_timei64
- oracle_account_typeu8
- oracle_account_priceu64
- oracle_account_price_exponenti32
CancelLimitOrderErParamsstruct
- marketpubkey
- order_idu8
CancelTriggerOrderErLogstruct
- ownerpubkey
- marketpubkey
- priceu64
- price_exponenti32
- size_amountu64
- receive_custody_uidu8
- is_stop_lossbool
CancelTriggerOrderErParamsstruct
- marketpubkey
- order_idu8
- is_stop_lossbool
CancelUnstakeTokenRequestErLogstruct
- ownerpubkey
- token_stakepubkey
- amountu64
- current_timestampi64
- last_updated_timestampi64
- levelu8
- active_stake_amountu64
- level_eligible_amountu64
CancelUnstakeTokenRequestErParamsstruct
- withdraw_request_idu8
CloseLegacyOrderAccountErLogstruct
- adminpubkey
- ownerpubkey
- marketpubkey
- orderpubkey
- migratedbool
- emptybool
CloseLegacyOrderAccountErParamsstruct
no fields
CloseLegacyPositionAccountErLogstruct
- adminpubkey
- ownerpubkey
- marketpubkey
- positionpubkey
- migratedbool
- emptybool
CloseLegacyPositionAccountErParamsstruct
no fields
ClosePositionErLogstruct
- ownerpubkey
- marketpubkey
- trade_idi64
- entry_priceu64
- entry_price_exponenti32
- durationi64
- exit_priceu64
- exit_price_exponenti32
- size_amountu64
- size_usdu64
- collateral_priceu64
- collateral_price_exponenti32
- collateral_usdu64
- profit_usdu64
- loss_usdu64
- fee_usdu64
- rebate_usdu64
- discount_usdu64
- exit_fee_usdu64
- output_custody_uidu8
- output_amountu64
- oracle_account_timei64
- oracle_account_typeu8
- oracle_account_priceu64
- oracle_account_price_exponenti32
- price_impact_usdu64
- locked_amountu64
- padding[u64; 2]
ClosePositionErParamsstruct
- price_with_slippageOraclePrice
- privilegePrivilege
ClosePositionQuoteDatastruct
- receive_token_amountu64
- receive_token_amount_usdu64
- mark_priceOraclePrice
- entry_priceOraclePrice
- existing_liquidation_priceOraclePrice
- new_liquidation_priceOraclePrice
- existing_sizeu64
- new_sizeu64
- existing_collateral_usdu64
- new_collateral_usdu64
- existing_leverageu64
- new_leverageu64
- settled_pnl_usdu64
- is_profitablebool
- profit_usdu64
- loss_usdu64
- feesu64
- fees_before_discountu64
- exit_fee_usdu64
- exit_fee_before_discount_usdu64
- lock_and_unsettled_fee_usdu64
- price_impact_usdu64
- is_solventbool
- swap_requiredbool
- swap_possiblebool
- is_partial_closebool
CollectRebateErLogstruct
- ownerpubkey
- token_stakepubkey
- rebate_amountu64
- rebate_usdu64
CollectRebateReceiptstruct
- ownerpubkey
- rebate_vaultpubkey
- rebate_mintpubkey
- claim_amountu64
- claim_usdu64
- bumpu8
- processedu80 before the ER step runs, 1 after.
- padding[u8; 6]
CollectRebateSettleBaseLogstruct
- ownerpubkey
- rebate_amountu64
- rebate_usdu64
CollectRebateWithActionBaseLogstruct
- ownerpubkey
- rebate_mintpubkey
CollectRebateWithActionParamsstruct
no fields
CollectRevenueErLogstruct
- ownerpubkey
- token_stakepubkey
- revenue_amountu64
- current_timestampi64
- last_updated_timestampi64
- active_stake_amountu64
- level_eligible_amountu64
- last_epoch_countu32
CollectRevenueReceiptstruct
- ownerpubkey
- token_vaultpubkey
- revenue_mintpubkey
- claim_amountu64
- bumpu8
- processedu80 before the ER step runs, 1 after.
- padding[u8; 6]
CollectRevenueSettleBaseLogstruct
- ownerpubkey
- revenue_amountu64
CollectRevenueWithActionBaseLogstruct
- ownerpubkey
- revenue_mintpubkey
CollectRevenueWithActionParamsstruct
no fields
CollectStakeRewardErLogstruct
- ownerpubkey
- pool_namestring
- reward_mintpubkey
- inline_refresh_creditu64
- claim_amountu64
CollectStakeRewardReceiptstruct
- poolpubkey
- ownerpubkey
- reward_mintpubkey
- claim_amountu64
- bumpu8
- processedu80 before the ER refresh step runs, 1 after. The settle handler only transfers rewards when this is 1; unprocessed receipts close as a no-op.
- padding[u8; 6]
CollectStakeRewardSettleBaseLogstruct
- ownerpubkey
- poolpubkey
- reward_mintpubkey
- claim_amountu64
CollectStakeRewardWithActionBaseLogstruct
- pool_namestring
- ownerpubkey
- reward_mintpubkey
CollectStakeRewardWithActionParamsstruct
no fields
CollectTokenRewardErLogstruct
- ownerpubkey
- amountu64
- allowedbool
CollectTokenRewardReceiptstruct
- ownerpubkey
- token_mintpubkey
- amountu64
- bumpu8
- processedu80 before the ER credit step runs, 1 after — gates the settle handler.
- padding[u8; 6]
CollectTokenRewardSettleBaseLogstruct
- ownerpubkey
- amountu64
CollectTokenRewardWithActionBaseLogstruct
- ownerpubkey
CollectTokenRewardWithActionParamsstruct
no fields
CompoundFeesErLogstruct
- pool_namestring
- keeperpubkey
- reward_amountu64
- reward_lp_amountu64
- reward_per_lp_stakedu64
- lp_price_usdu64
- compounding_price_usdu64
CompoundFeesReceiptstruct
- poolpubkey
- keeperpubkey
- reward_amountu64
- reward_lp_to_mintu64
- bumpu8
- processedu80 before the ER pricing step runs, 1 after — gates the mint / settle handler.
- padding[u8; 6]
CompoundFeesSettleBaseLogstruct
- poolpubkey
- keeperpubkey
- reward_lp_amountu64
CompoundFeesWithActionBaseLogstruct
- pool_namestring
- keeperpubkey
CompoundFeesWithActionParamsstruct
- queue_er_actionbool`true` → queue `_er` as a post-delegation action in this same base tx (forwards the full AUM account set in `remaining_accounts`). `false` → delegate the receipt with NO action; a keeper calls `compound_fees_er` on the ER in a separate tx. Use when the AUM set would push the base tx past the 64-account limit.
CompoundingDepositReceiptstruct
- poolpubkey
- liquidity_providerpubkey
- in_token_mintpubkey
- amount_inu64
- min_compounding_amount_outu64
- reward_amountu64
- reward_lp_to_mintu64
- user_lp_to_mintu64
- compounding_to_mintu64
- fee_amountu64
- in_custody_idu8
- reward_custody_idu8
- bumpu8
- processedu80 before the ER pricing/slippage step runs, 1 after — gates the settle handler and prevents reentrant ER calls.
- padding[u8; 4]
CompoundingStatsstruct
- active_amountu64
- total_supplyu64
- reward_snapshotu128
- fee_share_bpsu64
- last_compound_timei64
CompoundingTokenDatastruct
- lp_priceu64
- compounding_priceu64
- ratiosVec<u64>
CompoundingWithdrawReceiptstruct
- poolpubkey
- liquidity_providerpubkey
- out_token_mintpubkey
- custody_token_accountpubkey
- compounding_amount_inu64
- min_token_amount_outu64
- reward_amountu64
- reward_lp_mintedu64
- out_lp_to_redeemu64
- out_token_amountu64
- fee_amountu64
- out_custody_idu8
- reward_custody_idu8
- bumpu8
- processedu80 before the ER pricing/slippage step runs, 1 after — gates the settle handler and prevents reentrant ER calls.
- padding[u8; 4]
CreateReferralParamsstruct
no fields
CreateWhitelistParamsstruct
- is_swap_fee_exemptbool
- is_deposit_fee_exemptbool
- is_withdrawal_fee_exemptbool
- pool_addresspubkey
Custodystruct
- poolpubkey
- mintpubkey
- token_accountpubkey
- decimalsu8
- is_stablebool
- depeg_adjustmentbool
- is_virtualbool
- inverse_pricebool
- oracleOracleParams
- pricingPricingParams
- permissionsPermissions
- feesFees
- borrow_rateBorrowRateParams
- token_amount_multiplieru64
- assetsAssets
- fees_statsFeesStats
- borrow_rate_stateBorrowRateState
- bumpu8
- token_account_bumpu8
- token22bool
- uidu8
- reserved_amountu64
- min_reserve_usdu64
- limit_price_buffer_bpsu64
- trade_receivableu64
- trade_payableu64
- padding[u8; 16]
CustodySettlementErLogstruct
- poolpubkey
- custodypubkey
- token_mintpubkey
- net_amountu64
- custody_to_vaultbool
CustodySettlementReceiptstruct
- poolpubkey
- custodypubkey
- token_mintpubkey
- net_amountu64
- custody_to_vaultbool
- processedu8
- bumpu8
- padding[u8; 5]
CustodySettlementSettleBaseLogstruct
- poolpubkey
- custodypubkey
- token_mintpubkey
- net_amountu64
- custody_to_vaultbool
CustodySettlementWithActionBaseLogstruct
- poolpubkey
- custodypubkey
- token_mintpubkey
CustodySettlementWithActionParamsstruct
no fields
CustomOraclestruct
- priceu64
- expoi32
- confu64
- emau64
- publish_timei64
- lazer_feed_idu32
- lazer_priceu64
- _reserved[u8; 20]
DecreasePositionSizeErLogstruct
- ownerpubkey
- marketpubkey
- trade_idi64
- entry_priceu64
- entry_price_exponenti32
- durationi64
- exit_priceu64
- exit_price_exponenti32
- delta_size_amountu64
- delta_size_usdu64
- final_size_amountu64
- final_size_usdu64
- collateral_priceu64
- collateral_price_exponenti32
- delta_collateral_usdu64
- profit_usdu64
- loss_usdu64
- fee_usdu64
- rebate_usdu64
- discount_usdu64
- exit_fee_usdu64
- oracle_account_timei64
- oracle_account_typeu8
- oracle_account_priceu64
- oracle_account_price_exponenti32
- price_impact_usdu64
- delta_locked_amountu64
- output_amountu64Amount credited to the owner's basket (in `output_custody_uid` token) for this partial close — the settled payout, mirroring close_position_er.
- output_custody_uidu8
- padding[u64; 2]
DecreasePositionSizeErParamsstruct
- price_with_slippageOraclePrice
- size_deltau64
- privilegePrivilege
DelegateBasketLogstruct
- ownerpubkey
- basketpubkey
- commit_frequencyu32
- validatorpubkey
DelegateBasketParamsstruct
no fields
DelegateCustodyLogstruct
- custodypubkey
- poolpubkey
- commit_frequencyu32
- validatorpubkey
DelegateCustodyParamsstruct
no fields
DelegateInternalOracleLogstruct
- oracle_accountpubkey
- custody_token_mintpubkey
- commit_frequencyu32
- validatorpubkey
DelegateInternalOracleParamsstruct
no fields
DelegateMarketLogstruct
- marketpubkey
- target_custodypubkey
- collateral_custodypubkey
- sideu8
- commit_frequencyu32
- validatorpubkey
DelegateMarketParamsstruct
no fields
DelegatePoolLogstruct
- poolpubkey
- commit_frequencyu32
- validatorpubkey
DelegatePoolParamsstruct
no fields
DelegateReallocVaultLogstruct
- realloc_vaultpubkey
- commit_frequencyu32
- validatorpubkey
- funding_lamportsu64
DelegateReallocVaultParamsstruct
- funding_lamportsu64Lamports to top the vault up with before delegating. Pass 0 to skip.
DelegateRebateVaultLogstruct
- rebate_vaultpubkey
- commit_frequencyu32
- validatorpubkey
DelegateRebateVaultParamsstruct
no fields
DelegateTokenVaultLogstruct
- token_vaultpubkey
- commit_frequencyu32
- validatorpubkey
DelegateTokenVaultParamsstruct
no fields
DepositDirectBaseLogstruct
- ownerpubkey
- depositorpubkey
- token_mintpubkey
- amountu64
DepositDirectParamsstruct
- amountu64
DepositEntrystruct
- mintpubkey
- amountu64
DepositTokenStakeErLogstruct
- ownerpubkey
- deposit_amountu64
- active_stake_amountu64
- levelu8
- creditedbool
DepositTokenStakeSettleBaseLogstruct
- ownerpubkey
- deposit_amountu64
- creditedbool
- amount_refundedu64
DepositTokenStakeWithActionBaseLogstruct
- ownerpubkey
- deposit_amountu64
DepositTokenStakeWithActionParamsstruct
- deposit_amountu64
DistributeTokenRewardLogstruct
- amountu64
- epoch_countu32
- padding[u64; 2]
DistributeTokenRewardParamsstruct
- amountu64
- epoch_countu32
EditLimitOrderErLogstruct
- ownerpubkey
- marketpubkey
- limit_priceu64
- limit_price_exponenti32
- size_amountu64
- size_usdu64
- reserve_priceu64
- reserve_price_exponenti32
- reserve_amountu64
- reserve_usdu64
- stop_loss_priceu64
- stop_loss_price_exponenti32
- take_profit_priceu64
- take_profit_price_exponenti32
- receive_custody_uidu8
- oracle_account_timei64
- oracle_account_typeu8
- oracle_account_priceu64
- oracle_account_price_exponenti32
EditLimitOrderErParamsstruct
- order_idu8
- limit_priceOraclePrice
- size_amountu64
- stop_loss_priceOraclePrice
- take_profit_priceOraclePrice
EditTriggerOrderErLogstruct
- ownerpubkey
- marketpubkey
- priceu64
- price_exponenti32
- size_amountu64
- size_usdu64
- receive_custody_uidu8
- is_stop_lossbool
EditTriggerOrderErParamsstruct
- order_idu8
- trigger_priceOraclePrice
- delta_size_amountu64
- is_stop_lossbool
ExecuteLimitOrderErLogstruct
- ownerpubkey
- marketpubkey
- trade_idi64
- entry_priceu64
- entry_price_exponenti32
- delta_size_amountu64
- delta_size_usdu64
- final_size_amountu64
- final_size_usdu64
- collateral_priceu64
- collateral_price_exponenti32
- delta_collateral_amountu64
- delta_collateral_usdu64
- final_collateral_usdu64
- fee_usdu64
- rebate_usdu64
- discount_usdu64
- entry_fee_usdu64
- oracle_account_timei64
- oracle_account_typeu8
- oracle_account_priceu64
- oracle_account_price_exponenti32
- limit_priceu64
- limit_price_exponenti32
- reserve_custody_uidu8
- padding[u64; 3]
ExecuteLimitOrderErParamsstruct
- order_idu8
- privilegePrivilege
ExecuteTriggerOrderErLogstruct
- ownerpubkey
- marketpubkey
- trade_idi64
- entry_priceu64
- entry_price_exponenti32
- durationi64
- exit_priceu64
- exit_price_exponenti32
- delta_size_amountu64
- delta_size_usdu64
- final_size_amountu64
- final_size_usdu64
- collateral_priceu64
- collateral_price_exponenti32
- delta_collateral_usdu64
- profit_usdu64
- loss_usdu64
- fee_usdu64
- rebate_usdu64
- discount_usdu64
- exit_fee_usdu64
- output_custody_uidu8
- out_amountu64
- is_stop_lossbool
- oracle_account_timei64
- oracle_account_typeu8
- oracle_account_priceu64
- oracle_account_price_exponenti32
- trigger_priceu64
- trigger_price_exponenti32
- price_impact_usdu64
- delta_locked_amountu64
- padding[u64; 2]
ExecuteTriggerOrderErParamsstruct
- is_stop_lossbool
- order_idu8
- privilegePrivilege
Feesstruct
- modeFeesMode
- swap_inRatioFees
- swap_outRatioFees
- stable_swap_inRatioFees
- stable_swap_outRatioFees
- add_liquidityRatioFees
- remove_liquidityRatioFees
- open_positionu64
- close_positionu64
- volatilityu64
FeesModeenum
- Fixed
- Linear
FeesStatsstruct
- accruedu128
- distributedu128
- paidu128
- reward_per_lp_stakedu64
- protocol_feeu64
FlpStakestruct
- ownerpubkey
- poolpubkey
- stake_statsStakeStats
- reward_snapshotu128
- unclaimed_rewardsu64
- fee_share_bpsu64
- is_initializedu8
- bumpu8
ForceCloseOrderErLogstruct
- adminpubkey
- ownerpubkey
- marketpubkey
- order_idu8
- limit_priceu64
- limit_price_exponenti32
- size_amountu64
- reserve_amountu64
- padding[u64; 3]
ForceCloseOrderErParamsstruct
no fields
ForceClosePositionErLogstruct
- adminpubkey
- ownerpubkey
- marketpubkey
- trade_idi64
- entry_priceu64
- entry_price_exponenti32
- durationi64
- exit_priceu64
- exit_price_exponenti32
- size_amountu64
- size_usdu64
- collateral_priceu64
- collateral_price_exponenti32
- collateral_usdu64
- profit_usdu64
- loss_usdu64
- fee_usdu64
- oracle_account_timei64
- oracle_account_typeu8
- oracle_account_priceu64
- oracle_account_price_exponenti32
- price_impact_usdu64
- locked_amountu64
- output_amountu64
- output_custody_uidu8Custody (token) the `output_amount` was credited to the basket in.
- padding[u64; 1]
ForceClosePositionErParamsstruct
no fields
ForceCloseTriggerOrderErLogstruct
- adminpubkey
- ownerpubkey
- marketpubkey
- trigger_orders_cancelledu8
- padding[u64; 4]
GetAddCollateralQuoteErParamsstruct
- amount_inu64
GetAddCompoundingLiquidityAmountAndFeeParamsstruct
- amount_inu64
GetAddLiquidityAmountAndFeeParamsstruct
- amount_inu64
GetAssetsUnderManagementParamsstruct
no fields
GetClosePositionQuoteErParamsstruct
- size_delta_usdu64
- privilegePrivilege
- discount_indexOption<u8>
- trigger_priceOption<OraclePrice>
GetCompoundingTokenDataParamsstruct
no fields
GetCompoundingTokenPriceParamsstruct
no fields
GetEntryPriceAndFeeErParamsstruct
- collateralu64
- sizeu64
- sideSide
GetExitPriceAndFeeErParamsstruct
no fields
GetLiquidationPriceErParamsstruct
no fields
GetLiquidationStateErParamsstruct
no fields
GetLpTokenPriceParamsstruct
no fields
GetOpenPositionQuoteErParamsstruct
- amount_inu64
- leverageu64
- privilegePrivilege
- discount_indexOption<u8>
- limit_priceOption<OraclePrice>
- take_profit_priceOption<OraclePrice>
- stop_loss_priceOption<OraclePrice>
GetOraclePriceErParamsstruct
no fields
GetOraclePriceParamsstruct
no fields
GetPnlErParamsstruct
no fields
GetPositionDataErParamsstruct
no fields
GetRemoveCollateralQuoteErParamsstruct
- collateral_delta_usdu64
GetRemoveCompoundingLiquidityAmountAndFeeParamsstruct
- compounding_amount_inu64
GetRemoveLiquidityAmountAndFeeParamsstruct
- lp_amount_inu64
GetSwapAmountAndFeesParamsstruct
- amount_inu64
IncreasePositionSizeErLogstruct
- ownerpubkey
- marketpubkey
- trade_idi64
- entry_priceu64
- entry_price_exponenti32
- delta_size_amountu64
- delta_size_usdu64
- input_amountu64
- delta_collateral_usdu64
- final_size_amountu64
- final_size_usdu64
- final_collateral_usdu64
- fee_usdu64
- rebate_usdu64
- discount_usdu64
- entry_fee_usdu64
- is_degenbool
- oracle_account_timei64
- oracle_account_typeu8
- oracle_account_priceu64
- oracle_account_price_exponenti32
- padding[u64; 4]
IncreasePositionSizeErParamsstruct
- price_with_slippageOraclePrice
- size_deltau64
- delta_collateral_amountu64
- privilegePrivilege
InitBasketParamsstruct
- position_capacityu8
- order_capacityu8
- ledger_capacityu8
- order_item_capacityu8
InitCompoundingParamsstruct
- fee_share_bpsu64
- metadata_titlestring
- metadata_symbolstring
- metadata_uristring
InitCustodyAccountParamsstruct
- pool_namestring
- pool_bumpu8
- is_stablebool
- depeg_adjustmentbool
- is_virtualbool
- inverse_pricebool
- token22bool
- oracleOracleParams
- pricingPricingParams
- permissionsPermissions
- feesFees
- borrow_rateBorrowRateParams
- token_amount_multiplieru64
- min_reserve_usdu64
- limit_price_buffer_bpsu64
- uidu8Custody UID assigned by the caller (must equal the pool's next `unique_custody_count`). We can't read Pool here, so the admin supplies it and the companion `add_custody_er` verifies it.
InitDelegateTokenStakeEventstruct
- ownerpubkey
- token_stakepubkey
InitMarketAccountParamsstruct
- pool_namestring
- pool_bumpu8
- target_custody_mintpubkeyMint of the target custody — used to derive its PDA seed check.
- target_custody_bumpu8
- collateral_custody_mintpubkeyMint of the collateral custody — used to derive its PDA seed check.
- collateral_custody_bumpu8
- sideSide
- correlationbool
- max_payoff_bpsu64
- permissionsMarketPermissions
InitParamsstruct
- min_signaturesu8
- permissionsPermissions
- voltage_multiplierVoltageMultiplier
- trading_discount[u64; 6]
- referral_rebate[u64; 6]
- default_rebateu64
InitReallocVaultParamsstruct
- funding_lamportsu64Lamports to transfer from admin into the vault on top of the rent-exempt minimum. 0 is allowed but leaves no headroom for reallocs.
InitRebateVaultParamsstruct
- allow_rebate_payoutbool
InitRevenueTokenAccountParamsstruct
- fee_share_bpsu64
InitStakingParamsstruct
- staking_fee_share_bpsu64
InitTokenVaultParamsstruct
- token_permissionsTokenPermissions
- amountu64
- withdraw_time_limiti64
- withdraw_instant_feeu64
- stake_level[u64; 6]
InitUserDepositLedgerParamsstruct
- deposit_capacityu8
InternalEmaPricestruct
- ema_priceu64
- publish_timei64
InternalPricestruct
- priceu64
- confu64
- publish_timei64
Ledgerstruct
- mintpubkey
- amountu64
LimitOrderstruct
- limit_priceOraclePrice
- reserve_amountu64
- reserve_custody_uidu8
- receive_custody_uidu8
- size_amountu64
- stop_loss_priceOraclePrice
- take_profit_priceOraclePrice
LiquidatePositionErLogstruct
- ownerpubkey
- marketpubkey
- trade_idi64
- entry_priceu64
- entry_price_exponenti32
- durationi64
- exit_priceu64
- exit_price_exponenti32
- size_amountu64
- size_usdu64
- collateral_priceu64
- collateral_price_exponenti32
- collateral_usdu64
- profit_usdu64
- loss_usdu64
- fee_usdu64
- penalty_usdu64
- exit_fee_usdu64
- oracle_account_timei64
- oracle_account_typeu8
- oracle_account_priceu64
- oracle_account_price_exponenti32
- padding[u64; 4]
LiquidatePositionErParamsstruct
no fields
Marketstruct
- poolpubkey
- target_custodypubkey
- collateral_custodypubkey
- sideSide
- correlationbool
- max_payoff_bpsu64
- permissionsMarketPermissions
- degen_exposure_usdu64
- collective_positionPositionStats
- target_custody_uidu8
- padding[u8; 7]
- collateral_custody_uidu8
- padding2[u8; 7]
- bumpu8
MarketPermissionsstruct
- allow_open_positionbool
- allow_close_positionbool
- allow_collateral_withdrawalbool
- allow_size_changebool
MigrateFlpErLogstruct
- pool_namestring
- ownerpubkey
- compounding_token_amountu64
- lp_amount_outu64
- reward_lp_amountu64
- reward_per_lp_stakedu64
- lp_price_usdu64
- slippage_okbool
MigrateFlpReceiptstruct
- poolpubkey
- ownerpubkey
- compounding_token_accountpubkey
- compounding_token_amountu64sFLP / compounding-token amount the user is burning (locked upfront in entry).
- lp_amount_outu64LP redeemed from the burnt compounding tokens, transferred from compounding → staked vault on settle (ER-filled).
- reward_lp_amountu64LP minted as pool-side compounding reward (ER-filled).
- bumpu8
- processedu80 before the ER pricing/slippage step runs, 1 after — gates the settle handler. `lp_amount_out > 0` ⇒ settle success branch; `== 0` ⇒ settle failure (refund) branch.
- padding[u8; 6]
MigrateFlpSettleBaseLogstruct
- ownerpubkey
- poolpubkey
- compounding_token_amountu64
- lp_amount_outu64
- reward_lp_amountu64
MigrateFlpWithActionBaseLogstruct
- pool_namestring
- ownerpubkey
- compounding_token_amountu64
MigrateFlpWithActionParamsstruct
- compounding_token_amountu64
- queue_er_actionbool`true` → queue `_er` as a post-delegation action in this same base tx (forwards the full AUM account set in `remaining_accounts`). `false` → delegate the receipt with NO action; a keeper calls `migrate_flp_er` on the ER in a separate tx. Use when the AUM set would push the base tx past the 64-account limit. See the client-side account count.
MigrateOrderToBasketErParamsstruct
no fields
MigratePoolLpSupplyLogstruct
- pool_namestring
- lp_supplyu64
MigratePoolLpSupplyParamsstruct
- pool_namestring
- pool_bumpu8
MigratePositionLogstruct
- ownerpubkey
- marketpubkey
- positionpubkey
- entry_priceu64
- entry_price_exponenti32
- size_amountu64
- size_usdu64
- collateral_amountu64
- collateral_usdu64
- collateral_priceu64
- collateral_price_exponenti32
MigratePositionToBasketErParamsstruct
no fields
MigrateStakeErLogstruct
- pool_namestring
- ownerpubkey
- amountu64
- compounding_amount_outu64
- pool_reward_lp_amountu64
- reward_per_lp_stakedu64
- lp_price_usdu64
- slippage_okbool
MigrateStakeReceiptstruct
- poolpubkey
- ownerpubkey
- compounding_token_accountpubkey
- amountu64LP amount the user is migrating from staked → compounding.
- compounding_amount_outu64sFLP / compounding-token amount minted to the user (ER-filled).
- pool_reward_lp_amountu64LP minted as pool-side compounding reward (ER-filled).
- bumpu8
- processedu80 before the ER pricing/slippage step runs, 1 after — gates the settle handler. `compounding_amount_out > 0` ⇒ settle success branch; `== 0` ⇒ settle failure (refund) branch.
- padding[u8; 6]
MigrateStakeSettleBaseLogstruct
- ownerpubkey
- poolpubkey
- amountu64
- compounding_amount_outu64
- pool_reward_lp_amountu64
MigrateStakeWithActionBaseLogstruct
- pool_namestring
- ownerpubkey
- amountu64
MigrateStakeWithActionParamsstruct
- amountu64
- queue_er_actionbool`true` → queue `_er` as a post-delegation action in this same base tx (forwards the full AUM account set in `remaining_accounts`). `false` → delegate the receipt with NO action; a keeper calls `migrate_stake_er` on the ER in a separate tx. Use when the AUM set would push the base tx past the 64-account limit.
MoveProtocolFeesErLogstruct
- pool_namestring
- keeperpubkey
- protocol_fee_totalu64
- revenue_amountu64
- protocol_fee_amountu64
MoveProtocolFeesReceiptstruct
- poolpubkey
- keeperpubkey
- reward_custody_token_accountpubkeySnapshotted at entry so settle binds the SPL source to the exact reward custody token account the receipt was created against — prevents an attacker from passing a different custody token account that happens to share the same mint.
- revenue_amountu64ER-filled. Transferred reward_custody_token_account → revenue_token_account.
- protocol_fee_amountu64ER-filled. Transferred reward_custody_token_account → protocol_token_account.
- bumpu8
- processedu80 before the ER step runs, 1 after.
- padding[u8; 14]
MoveProtocolFeesSettleBaseLogstruct
- poolpubkey
- keeperpubkey
- revenue_amountu64
- protocol_fee_amountu64
- fee_share_bpsu64
MoveProtocolFeesWithActionBaseLogstruct
- pool_namestring
- keeperpubkey
MoveProtocolFeesWithActionParamsstruct
no fields
Multisigstruct
- num_signersu8
- num_signedu8
- min_signaturesu8
- instruction_accounts_lenu8
- instruction_data_lenu16
- instruction_hashu64
- signers[pubkey; 6]
- signed[u8; 6]
- bumpu8
NewPositionPricesAndFeestruct
- entry_priceOraclePrice
- fee_usdu64
OpenPositionErLogstruct
- ownerpubkey
- marketpubkey
- trade_idi64
- input_custody_uidu8
- input_priceu64
- input_price_exponenti32
- input_amountu64
- entry_priceu64
- entry_price_exponenti32
- size_amountu64
- size_usdu64
- collateral_usdu64
- fee_usdu64
- rebate_usdu64
- discount_usdu64
- entry_fee_usdu64
- is_degenbool
- oracle_account_timei64
- oracle_account_typeu8
- oracle_account_priceu64
- oracle_account_price_exponenti32
- padding[u64; 4]
OpenPositionErParamsstruct
- price_with_slippageOraclePrice
- collateral_amountu64
- size_amountu64
- privilegePrivilege
OpenPositionQuoteDatastruct
- amount_inu64
- swap_requiredbool
- collateral_amountu64
- collateral_usdu64
- size_amountu64
- size_usdu64
- entry_priceOraclePrice
- liquidation_priceOraclePrice
- entry_fee_usdu64
- entry_fee_before_discount_usdu64
- volatility_fee_usdu64
- total_fee_usdu64
- fee_rateu64
- leverageu64
- available_liquidity_usdu64
- borrow_fee_rateu64
- has_existing_positionbool
- old_leverageu64
- old_entry_priceOraclePrice
- old_liquidation_priceOraclePrice
- final_leverageu64
- final_entry_priceOraclePrice
- final_liquidation_priceOraclePrice
- max_position_size_usdu64
- passes_max_position_sizebool
- passes_max_exposurebool
- passes_max_utilizationbool
- take_profit_quoteTriggerQuote
- stop_loss_quoteTriggerQuote
OracleParamsstruct
- int_oracle_accountpubkey
- reserved_oracle_accountpubkey
- oracle_typeOracleType
- max_divergence_bpsu64
- max_conf_bpsu64
- max_price_age_secu32
- max_backup_age_secu32
OraclePricestruct
- priceu64
- exponenti32
OracleTypeenum
- None
- Custom
- Pyth
Orderstruct
- ownerpubkey
- marketpubkey
- limit_orders[LimitOrder; 5]
- take_profit_orders[TriggerOrder; 5]
- stop_loss_orders[TriggerOrder; 5]
- is_initialisedbool
- is_activebool
- open_slu8
- open_tpu8
- inactive_slu8
- inactive_tpu8
- active_ordersu8
- bumpu8
- reference_timestampi64
- execution_countu64
- migrate_flagbool
- padding[u8; 7]
- padding_u64[u64; 5]
OrderMetastruct
- marketpubkey
- orderBasketOrder
Permissionsstruct
- allow_swapbool
- allow_add_liquiditybool
- allow_remove_liquiditybool
- allow_open_positionbool
- allow_close_positionbool
- allow_collateral_withdrawalbool
- allow_size_changebool
- allow_liquidationbool
- allow_lp_stakingbool
- allow_fee_distributionbool
- allow_ungated_tradingbool
- allow_fee_discountsbool
- allow_referral_rebatesbool
Perpetualsstruct
- permissionsPermissions
- poolsVec<pubkey>
- collectionsVec<pubkey>
- voltage_multiplierVoltageMultiplier
- trading_discount[u64; 6]
- referral_rebate[u64; 6]
- default_rebateu64
- inception_timei64
- transfer_authority_bumpu8
- perpetuals_bumpu8
- trade_limitu8
- trigger_order_limitu8
- rebate_limit_usdu32
PlaceLimitOrderErLogstruct
- ownerpubkey
- marketpubkey
- limit_priceu64
- limit_price_exponenti32
- size_amountu64
- size_usdu64
- reserve_priceu64
- reserve_price_exponenti32
- reserve_amountu64
- reserve_usdu64
- stop_loss_priceu64
- stop_loss_price_exponenti32
- take_profit_priceu64
- take_profit_price_exponenti32
- receive_custody_uidu8
- oracle_account_timei64
- oracle_account_typeu8
- oracle_account_priceu64
- oracle_account_price_exponenti32
PlaceLimitOrderErParamsstruct
- limit_priceOraclePrice
- reserve_amountu64
- size_amountu64
- stop_loss_priceOraclePrice
- take_profit_priceOraclePrice
PlaceTriggerOrderErLogstruct
- ownerpubkey
- marketpubkey
- priceu64
- price_exponenti32
- size_amountu64
- size_usdu64
- receive_custody_uidu8
- is_stop_lossbool
PlaceTriggerOrderErParamsstruct
- trigger_priceOraclePrice
- delta_size_amountu64
- is_stop_lossbool
Poolstruct
- namestring
- permissionsPermissions
- inception_timei64
- lp_mintpubkey
- oracle_authoritypubkey
- staked_lp_vaultpubkey
- reward_custodypubkey
- custodiesVec<pubkey>
- ratiosVec<TokenRatios>
- marketsVec<pubkey>
- max_aum_usdu64
- bufferu64
- raw_aum_usdu64
- equity_usdu64
- total_stakedStakeStats
- staking_fee_share_bpsu64
- bumpu8
- lp_mint_bumpu8
- staked_lp_vault_bumpu8
- vp_volume_factoru8
- unique_custody_countu8
- padding[u8; 3]
- staking_fee_boost_bps[u64; 6]
- compounding_mintpubkey
- compounding_lp_vaultpubkey
- compounding_statsCompoundingStats
- compounding_mint_bumpu8
- compounding_lp_vault_bumpu8
- min_lp_price_usdu64
- max_lp_price_usdu64
- lp_priceu64
- compounding_lp_priceu64
- last_updated_timestampi64
- fees_obligation_usdu64
- rebate_obligation_usdu64
- threshold_usdu64
- lp_supplyu64Tracked LP token supply for accurate calculations during concurrent ER ops. Updated atomically with `equity_usd` whenever LP is minted/burnt — by either the ER side of the split flow or any mainnet non-ER liquidity ix. Reads on the ER use this field instead of `lp_token_mint.supply`, which would be stale across in-flight deposits / burns.
Positionstruct
- ownerpubkey
- marketpubkey
- delegatepubkey
- open_timei64
- update_timei64
- entry_priceOraclePrice
- size_amountu64
- size_usdu64
- locked_amountu64
- locked_usdu64
- price_impact_usdu64
- collateral_usdu64
- unsettled_value_usdu64
- unsettled_fees_usdu64
- cumulative_lock_fee_snapshotu128
- degen_size_usdu64
- reference_priceOraclePrice
- is_activebool
- buffer[u8; 2]
- price_impact_setu8
- size_decimalsu8
- locked_decimalsu8
- collateral_decimalsu8
- bumpu8
- migrate_flagbool
- padding[u8; 7]
PositionDatastruct
- entry_oracle_priceOraclePrice
- size_amountu64
- size_usdu64
- collateral_amountu64
- collateral_usdu64
- pnlPositionPnl
- pnl_with_fee_usdi64
- pnl_percentage_with_feei64
- pnl_without_fee_usdi64
- pnl_percentage_without_feei64
- leverageu64
- liquidation_priceOraclePrice
PositionMetastruct
- marketpubkey
- positionPosition
PositionPnlstruct
- profit_usdu64
- loss_usdu64
- exit_fee_usdu64
- borrow_fee_usdu64
- exit_fee_amountu64
- borrow_fee_amountu64
- price_impact_usdu64
- price_impact_setbool
PositionStatsstruct
- open_positionsu64
- update_timei64
- average_entry_priceOraclePrice
- size_amountu64
- size_usdu64
- locked_amountu64
- locked_usdu64
- collateral_amountu64
- collateral_liability_usdu64
- unsettled_fee_usdu64
- cumulative_lock_fee_snapshotu128
- size_decimalsu8
- locked_decimalsu8
- collateral_decimalsu8
PriceAndFeestruct
- priceOraclePrice
- fee_usdu64
PricingParamsstruct
- trade_spread_minu64
- trade_spread_maxu64
- swap_spreadu64
- min_init_leverageu32
- min_init_degen_leverageu32
- max_init_leverageu32
- max_init_degen_leverageu32
- max_leverageu32
- max_degen_leverageu32
- min_collateral_usdu32
- min_degen_collateral_usdu32
- delay_secondsi64
- max_utilizationu32
- degen_position_factoru16
- degen_exposure_factoru16
- max_position_size_usdu64
- max_exposure_usdu64
Privilegeenum
- None
- Stake
- Referral
ProfitAndLossstruct
- profitu64
- lossu64
ProtocolVaultstruct
- keypubkey
- token_accountpubkey
- is_initializedbool
- bumpu8
- token_account_bumpu8
- fee_share_bpsu64
- fee_amountu64
- padding[u64; 4]
RatioFeesstruct
- min_feeu64
- target_feeu64
- max_feeu64
ReallocVaultstruct
- bumpu8
- padding[u8; 31]
RebateVaultstruct
- keypubkey
- token_accountpubkey
- is_initializedbool
- allow_payoutbool
- bumpu8
- token_account_bumpu8
- available_usdu64
- available_amountu64
- padding[u64; 4]
Referralstruct
- is_initializedbool
- bumpu8
- referer_token_stake_accountpubkey
- referer_booster_accountpubkey
- padding[u64; 4]
ReferralRebateLogstruct
- token_stakepubkey
- ownerpubkey
- rebate_usdu64
- volume_usdu64
- voltage_points_typeu8
- blocked_rebate_usdu64
- padding[u64; 3]
RefreshStakeErLogstruct
- pool_namestring
- reward_per_lp_stakedu64
- processedu32
- skippedu32
RefreshStakeUserErLogstruct
- ownerpubkey
- pool_namestring
- reward_amountu64
- reward_mintpubkey
- reward_shareu64
RefreshTokenStakeErLogstruct
- revenue_per_faf_stakedu64
- processedu32
- skippedu32
RefreshTokenStakeUserErLogstruct
- ownerpubkey
- token_stakepubkey
- revenue_amountu64
- newly_unlocked_amountu64
- current_timestampi64
- last_updated_timestampi64
- levelu8
- active_stake_amountu64
- level_eligible_amountu64
RefundLoBudgetstruct
- spentu64Cumulative amount refunded so far; kept <= `REFUND_LO_MAX_TOTAL`.
- bumpu8
RefundLoCollateralLogstruct
- adminpubkey
- ownerpubkey
- mintpubkey
- amountu64
- total_spentu64Running collective total after this refund.
- max_totalu64
RefundLoCollateralParamsstruct
- amountu64Native USDC base units to add to the owner's deposit ledger.
ReimburseParamsstruct
- amount_inu64
RemoveCollateralErLogstruct
- ownerpubkey
- marketpubkey
- trade_idi64
- collateral_priceu64
- collateral_price_exponenti32
- delta_collateral_usdu64
- final_collateral_usdu64
- final_size_amountu64
- final_size_usdu64
- receive_amountu64
- output_custody_uidu8Custody (token) the `receive_amount` was credited to the basket in.
- oracle_account_timei64
- oracle_account_typeu8
- oracle_account_priceu64
- oracle_account_price_exponenti32
- padding[u64; 4]
RemoveCollateralErParamsstruct
- collateral_delta_usdu64
RemoveCollateralQuoteDatastruct
- collateral_delta_usdu64
- receive_token_amountu64
- receive_token_amount_usdu64
- existing_collateral_usdu64
- existing_leverageu64
- existing_liquidation_priceOraclePrice
- new_collateral_usdu64
- new_leverageu64
- new_liquidation_priceOraclePrice
- max_withdrawable_usdu64
- swap_requiredbool
- swap_possiblebool
- passes_min_collateralbool
- passes_leverage_checkbool
RemoveCompoundingLiquidityErLogstruct
- pool_namestring
- ownerpubkey
- out_custody_uidu64
- compounding_amount_inu64
- reward_amountu64
- out_lp_to_redeemu64
- out_token_amountu64
- fee_amountu64
- compounding_price_usdu64
- token_out_priceu64
- token_out_price_exponenti32
- slippage_okbool
RemoveCompoundingLiquiditySettleBaseLogstruct
- ownerpubkey
- poolpubkey
- out_custody_idu8
- amount_outu64
- compounding_remintedu64
- lp_diff_mintedu64
- lp_diff_burntu64
RemoveCompoundingLiquidityWithActionBaseLogstruct
- pool_namestring
- ownerpubkey
- out_custody_uidu64
- reward_custody_uidu64
- compounding_amount_inu64
- min_amount_outu64
RemoveCompoundingLiquidityWithActionParamsstruct
- compounding_amount_inu64
- min_amount_outu64
- queue_er_actionbool`true` → queue `_er` as a post-delegation action in this same base tx (forwards the full AUM account set in `remaining_accounts`). `false` → delegate the receipt with NO action; a keeper calls `remove_compounding_liquidity_er` on the ER in a separate tx. Use when the AUM set would push the base tx past the 64-account limit. See the client-side account count.
RemoveCustodyErLogstruct
- poolpubkey
- custodypubkey
- mintpubkey
RemoveCustodyErParamsstruct
- ratiosVec<TokenRatios>
RemoveCustodyParamsstruct
- ratiosVec<TokenRatios>
RemoveCustodySettleBaseLogstruct
- poolpubkey
- custodypubkey
- residual_amountu64
RemoveLiquidityErLogstruct
- pool_namestring
- ownerpubkey
- custody_uidu64
- lp_amount_inu64
- amount_outu64
- fee_amountu64
- lp_price_usdu64
- user_rewardu64
- token_out_priceu64
- token_out_price_exponenti32
- slippage_okbool
RemoveLiquiditySettleBaseLogstruct
- ownerpubkey
- poolpubkey
- custody_idu8
- lp_burntu64
- amount_outu64
RemoveLiquidityWithActionBaseLogstruct
- pool_namestring
- ownerpubkey
- custody_uidu64
- unstake_amountu64
- min_amount_outu64
RemoveLiquidityWithActionParamsstruct
- unstake_amountu64LP amount to unstake + redeem. ER caps this at `flp_stake.stake_stats.active_amount` after the inline-refresh pending→active promotion.
- min_amount_outu64
- queue_er_actionbool`true` → queue `_er` as a post-delegation action in this same base tx (forwards the full AUM account set in `remaining_accounts`). `false` → delegate the receipt with NO action; a keeper calls `remove_liquidity_er` on the ER in a separate tx. Use when the AUM set would push the base tx past the 64-account limit. See the client-side account count.
RemoveMarketErLogstruct
- poolpubkey
- marketpubkey
- target_custodypubkey
- collateral_custodypubkey
RemoveMarketParamsstruct
no fields
RemoveMarketSettleBaseLogstruct
- marketpubkey
- target_custodypubkey
- collateral_custodypubkey
RemovePoolParamsstruct
no fields
RenameFlpParamsstruct
- flagu64
- lp_token_namestring
- lp_token_symbolstring
- lp_token_uristring
ResizeInternalOracleParamsstruct
- lazer_feed_idu32
SessionTokenV2struct
- authoritypubkey
- target_programpubkey
- session_signerpubkey
- fee_payerpubkey
- valid_untili64
SetAdminSignersParamsstruct
- min_signaturesu8
SetCustodyConfigErLogstruct
- poolpubkey
- custodypubkey
- adminpubkey
SetCustodyConfigErParamsstruct
- is_virtualOption<bool>
- depeg_adjustmentOption<bool>
- inverse_priceOption<bool>
- oracleOption<OracleParams>
- pricingOption<PricingParams>
- permissionsOption<Permissions>
- feesOption<Fees>
- borrow_rateOption<BorrowRateParams>
- ratiosOption<Vec<TokenRatiosWire>>
- min_reserve_usdOption<u64>
- limit_price_buffer_bpsOption<u64>
- token22Option<bool>
SetCustodyConfigParamsstruct
- is_virtualbool
- depeg_adjustmentbool
- inverse_pricebool
- oracleOracleParams
- pricingPricingParams
- permissionsPermissions
- feesFees
- borrow_rateBorrowRateParams
- ratiosVec<TokenRatios>
- min_reserve_usdu64
- limit_price_buffer_bpsu64
- token22bool
SetCustodyTokenMultiplierErLogstruct
- custodypubkey
- adminpubkey
- token_amount_multiplieru64
SetCustodyTokenMultiplierErParamsstruct
no fields
SetCustodyTokenMultiplierParamsstruct
no fields
SetCustomOraclePriceParamsstruct
- priceu64
- expoi32
- confu64
- emau64
- publish_timei64
SetFeeShareParamsstruct
- fee_share_bpsu64
SetInternalAccountConfigErLogstruct
- adminpubkey
- custody_token_mintpubkey
- int_oracle_accountpubkey
- lazer_feed_idu32
SetInternalAccountConfigErParamsstruct
- lazer_feed_idu32
SetInternalCurrentPriceErParamsstruct
- use_current_timeu8
- pricesVec<InternalPrice>
SetInternalCurrentPriceParamsstruct
- use_current_timeu8
- pricesVec<InternalPrice>
SetInternalEmaPriceErParamsstruct
- pricesVec<InternalEmaPrice>
SetInternalEmaPriceParamsstruct
- pricesVec<InternalEmaPrice>
SetInternalLazerPriceErParamsstruct
- message_databytes
SetInternalLazerPriceParamsstruct
- message_databytes
SetLpTokenPriceErLogstruct
- poolpubkey
- lp_priceu64
- compounding_lp_priceu64
SetLpTokenPriceErParamsstruct
no fields
SetMarketConfigErLogstruct
- marketpubkey
- adminpubkey
SetMarketConfigErParamsstruct
- max_payoff_bpsu64
- permissionsMarketPermissions
- correlationbool
SetMarketConfigParamsstruct
- max_payoff_bpsu64
- permissionsMarketPermissions
- correlationbool
SetPermissionsParamsstruct
- permissionsPermissions
SetPerpetualsConfigParamsstruct
- allow_ungated_tradingbool
- trading_discount[u64; 6]
- referral_rebate[u64; 6]
- default_rebateu64
- voltage_multiplierVoltageMultiplier
- trade_limitu8
- trigger_order_limitu8
- rebate_limit_usdu32
SetPoolConfigErLogstruct
- poolpubkey
- adminpubkey
SetPoolConfigErParamsstruct
- permissionsPermissions
- oracle_authoritypubkey
- max_aum_usdu64
- staking_fee_share_bpsu64
- vp_volume_factoru8
- staking_fee_boost_bps[u64; 6]
- min_lp_price_usdu64
- max_lp_price_usdu64
- threshold_usdu64
SetPoolConfigParamsstruct
- permissionsPermissions
- oracle_authoritypubkey
- max_aum_usdu64
- staking_fee_share_bpsu64
- vp_volume_factoru8
- staking_fee_boost_bps[u64; 6]
- min_lp_price_usdu64
- max_lp_price_usdu64
- threshold_usdu64
SetProtocolFeeShareParamsstruct
- fee_share_bpsu64
SetTestTimeParamsstruct
- timei64
SetTokenRewardLogstruct
- token_stakepubkey
- amountu64
- epoch_countu32
- padding[u64; 2]
SetTokenRewardParamsstruct
- amountu64
- epoch_countu32
SetTokenStakeLevelErLogstruct
- adminpubkey
- ownerpubkey
- levelu8
SetTokenStakeLevelErParamsstruct
- levelu8
- rebate_rateu64
- max_rebate_usdu64
SetTokenStakeLevelParamsstruct
- levelu8
- rebate_rateu64
- max_rebate_usdu64
SetTokenVaultConfigErLogstruct
- adminpubkey
SetTokenVaultConfigErParamsstruct
- token_permissionsTokenPermissions
- withdraw_time_limiti64
- withdraw_instant_feeu64
- stake_level[u64; 6]
- unlock_periodi64
- allow_revenue_distributionu8
SetTokenVaultConfigParamsstruct
- token_permissionsTokenPermissions
- withdraw_time_limiti64
- withdraw_instant_feeu64
- stake_level[u64; 6]
- unlock_periodi64
- allow_revenue_distributionu8
SetTradeSpreadMinErParamsstruct
- trade_spread_minVec<u32>
SetWhitelistConfigParamsstruct
- is_swap_fee_exemptbool
- is_deposit_fee_exemptbool
- is_withdrawal_fee_exemptbool
- pool_addresspubkey
SettleRebatesErLogstruct
- pool_namestring
- keeperpubkey
- required_usdu64
- rebate_usdu64
- rebate_amountu64
SettleRebatesReceiptstruct
- poolpubkey
- keeperpubkey
- rebate_amountu64ER-filled. Transferred reward_custody_token_account → rebate_token_account.
- rebate_usdu64ER-filled. Settled portion of pool.rebate_obligation_usd; added to rebate_vault.available_usd.
- bumpu8
- processedu80 before the ER step runs, 1 after.
- padding[u8; 6]
SettleRebatesSettleBaseLogstruct
- poolpubkey
- keeperpubkey
- rebate_amountu64
- rebate_usdu64
SettleRebatesWithActionBaseLogstruct
- pool_namestring
- keeperpubkey
SettleRebatesWithActionParamsstruct
no fields
Sideenum
- None
- Long
- Short
StakeStatsstruct
- pending_activationu64
- active_amountu64
- pending_deactivationu64
- deactivated_amountu64
StakingDepositReceiptstruct
- poolpubkey
- liquidity_providerpubkey
- in_token_mintpubkey
- amount_inu64
- min_lp_amount_outu64
- lp_tokens_to_mintu64
- fee_amountu64
- in_custody_idu8
- bumpu8
- processedu80 before the ER pricing/slippage step runs, 1 after — gates the settle handler
- padding[u8; 5]
StakingWithdrawReceiptstruct
- poolpubkey
- liquidity_providerpubkey
- token_mintpubkey
- custody_token_accountpubkey
- lp_tokens_burntu64
- token_amount_to_withdrawu64
- min_token_amount_outu64
- fee_amountu64
- custody_idu8
- bumpu8
- processedu80 before the ER pricing/slippage step runs, 1 after — gates the settle handler and prevents reentrant ER calls.
- padding[u8; 5]
SwapAmountAndFeesstruct
- amount_outu64
- fee_inu64
- fee_outu64
SwapErLogstruct
- pool_namestring
- ownerpubkey
- in_custody_uidu64
- out_custody_uidu64
- amount_inu64
- amount_outu64
- fee_in_amountu64
- fee_out_amountu64
- slippage_okbool
SwapFeeInternalErLogstruct
- pool_namestring
- payerpubkey
- fee_amountu64
- padding[u64; 4]
SwapFeeInternalErParamsstruct
no fields
SwapFeeInternalLogstruct
- pool_namestring
- ownerpubkey
- custody_in_uidu64
- custody_out_uidu64
- swap_amountu64
- reward_custody_amountu64
SwapFeeInternalLogV2struct
- pool_namestring
- ownerpubkey
- custody_in_uidu64
- custody_out_uidu64
- swap_amountu64
- reward_custody_amountu64
- in_oracle_account_timei64
- in_oracle_account_typeu8
- in_oracle_account_priceu64
- in_oracle_account_price_exponenti32
- out_oracle_account_timei64
- out_oracle_account_typeu8
- out_oracle_account_priceu64
- out_oracle_account_price_exponenti32
SwapFeeInternalLogV3struct
- pool_namestring
- ownerpubkey
- fee_amountu64
- padding[u64; 4]
SwapFeeInternalParamsstruct
no fields
SwapReceiptstruct
- poolpubkey
- ownerpubkey
- in_accountpubkey
- out_accountpubkey
- in_mintpubkey
- out_mintpubkey
- amount_inu64
- min_amount_outu64
- amount_outu64
- fee_inu64
- fee_outu64
- in_custody_uidu8Custody UID, not the custody vector position.
- out_custody_uidu8Custody UID, not the custody vector position.
- bumpu8
- processedu80 before the ER pricing/slippage step runs, 1 after — gates the settle handler. `amount_out > 0` ⇒ settle success branch; `amount_out == 0` ⇒ settle failure (refund) branch.
- padding[u8; 4]
SwapSettleBaseLogstruct
- ownerpubkey
- poolpubkey
- in_custody_uidu64
- out_custody_uidu64
- amount_inu64
- amount_outu64
- fee_inu64
- fee_outu64
SwapWithActionBaseLogstruct
- pool_namestring
- ownerpubkey
- in_custody_uidu64
- out_custody_uidu64
- amount_inu64
- min_amount_outu64
SwapWithActionParamsstruct
- amount_inu64
- min_amount_outu64
- queue_er_actionbool`true` → queue `_er` as a post-delegation action in this same base tx (forwards the full AUM account set in `remaining_accounts`). `false` → delegate the receipt with NO action; a keeper calls `swap_er` on the ER in a separate tx. Use when the AUM set would push the base tx past the 64-account limit. See the client-side account count.
TestInitParamsstruct
- min_signaturesu8
- permissionsPermissions
TokenPermissionsstruct
- allow_depositsbool
- allow_withdrawalbool
- allow_reward_withdrawalbool
TokenRatiosstruct
- targetu64
- minu64
- maxu64
TokenRatiosWirestruct
- targetu16
- minu16
- maxu16
TokenStakestruct
- ownerpubkey
- is_initializedbool
- bumpu8
- levelu8
- withdraw_request_countu8
- withdraw_request[WithdrawRequest; 3]
- rebate_rateu64
- active_stake_amountu64
- update_timestampi64
- trade_timestampi64
- trade_counteru32
- last_reward_epoch_countu32
- reward_tokensu64
- unclaimed_revenue_amountu64
- revenue_snapshotu128
- claimable_rebate_usdu64
- rebate_usd_snapshotu64
- rebate_day_timestampi64
- max_rebate_usdu64
- padding[u64; 4]
TokenStakeDepositReceiptstruct
- ownerpubkey
- token_mintpubkey
- deposit_amountu64
- bumpu8
- processedu80 before the ER credit step runs, 1 after — gates the settle handler.
- creditedu81 → ER credited the stake; 0 → ER rejected (e.g. deposits disabled in the delegation window). `_settle` closes either way.
- padding[u8; 5]
TokenStakeStatsstruct
- locked_amountu64
- active_amountu64
- withdrawable_amountu64
- bufferu64
TokenVaultstruct
- is_initializedbool
- bumpu8
- token_account_bumpu8
- token_mintpubkey
- token_vault_token_accountpubkey
- token_permissionsTokenPermissions
- withdraw_time_limiti64
- withdraw_instant_feeu64
- withdraw_instant_fee_earnedu64
- stake_level[u64; 6]
- tokens_stakedTokenStakeStats
- reward_tokens_to_distributeu128
- reward_tokens_paidu128
- tokens_to_distributeu128
- tokens_distributedu128
- last_reward_epoch_countu32
- reward_tokens_distributedu128
- allow_revenue_distributionu8
- padding[u8; 11]
- revenue_token_account_bumpu8
- revenue_per_faf_stakedu64
- revenue_accruedu128
- revenue_distributedu128
- revenue_paidu128
- unlock_periodi64
- padding2[u64; 3]
TradeVaultstruct
- token_mintpubkey
- token_accountpubkey
- token_amountu64
- bumpu8
- token_account_bumpu8
- padding[u8; 6]
TriggerOrderstruct
- trigger_priceOraclePrice
- trigger_sizeu64
- receive_custody_uidu8
TriggerQuotestruct
- exit_priceOraclePrice
- profit_usdu64
- loss_usdu64
- exit_fee_usdu64
- receive_usdu64
- is_solventbool
UndelegateCustodyParamsstruct
no fields
UndelegateInternalOracleParamsstruct
no fields
UndelegateMarketParamsstruct
no fields
UndelegatePoolParamsstruct
no fields
UndelegateReallocVaultParamsstruct
no fields
UndelegateRebateVaultParamsstruct
no fields
UndelegateTokenVaultParamsstruct
no fields
UnstakeTokenRequestErLogstruct
- ownerpubkey
- token_stakepubkey
- unstake_amountu64
- current_timestampi64
- last_updated_timestampi64
- levelu8
- active_stake_amountu64
- level_eligible_amountu64
UnstakeTokenRequestErParamsstruct
- unstake_amountu64
UserDepositLedgerstruct
- bumpu8
- padding[u8; 7]
- ownerpubkey
- depositsVec<DepositEntry>
- reserved_withdrawalsVec<DepositEntry>
VoltageMultiplierstruct
- volumeu64
- rewardsu64
- rebatesu64
VoltagePointsLogstruct
- token_stakepubkey
- voltage_pointsu64
- rebate_usdu64
- voltage_points_typeu8
- benefits_statusu8
- padding[u8; 31]
Whiteliststruct
- ownerpubkey
- is_initializedbool
- bumpu8
- is_swap_fee_exemptbool
- is_deposit_fee_exemptbool
- is_withdrawal_fee_exemptbool
- buffer[u8; 3]
- poolpubkey
WithdrawFeesParamsstruct
no fields
WithdrawInstantFeesParamsstruct
no fields
WithdrawRequeststruct
- withdrawable_amountu64
- locked_amountu64
- time_remainingi64
WithdrawSolFeesParamsstruct
- amountu64
WithdrawTokenErLogstruct
- ownerpubkey
- withdraw_request_idu8
- amountu64
- allowedbool
WithdrawTokenReceiptstruct
- ownerpubkey
- token_mintpubkey
- amountu64
- withdraw_request_idu8Index into `token_stake.withdraw_request` to settle. Set on base, read on ER.
- bumpu8
- processedu80 before the ER step runs, 1 after — gates the settle handler.
- padding[u8; 5]
WithdrawTokenSettleBaseLogstruct
- ownerpubkey
- amountu64
WithdrawTokenWithActionBaseLogstruct
- ownerpubkey
- withdraw_request_idu8
WithdrawTokenWithActionParamsstruct
- withdraw_request_idu8
WithdrawUnclaimedTokensParamsstruct
no fields
WithdrawalErLogstruct
- ownerpubkey
- mintpubkey
- requested_amountu64
- available_amountu64
- processed_amountu64
- ledger_deductibleu64
WithdrawalEscrowReceiptstruct
- ownerpubkey
- mintpubkey
- amountu64
- ledger_deductibleu64
- ledger_reservedu64
- requested_ati64
- processedu8
- bumpu8
- padding[u8; 6]
WithdrawalSettleBaseLogstruct
- ownerpubkey
- token_mintpubkey
- amountu64
- ledger_deductibleu64
WithdrawalWithActionBaseLogstruct
- ownerpubkey
- token_mintpubkey
- requested_amountu64
WithdrawalWithActionParamsstruct
- amountu64
Events 124
AddCollateralErLog
no fields
AddCompoundingLiquidityErLog
no fields
AddCompoundingLiquiditySettleBaseLog
no fields
AddCompoundingLiquidityWithActionBaseLog
no fields
AddCustodyErLog
no fields
AddLiquidityAndStakeErLog
no fields
AddLiquidityAndStakeSettleBaseLog
no fields
AddLiquidityAndStakeWithActionBaseLog
no fields
AddMarketErLog
no fields
BasketLedgerErLog
no fields
BatchDelegateFlpStakeLog
no fields
BatchDelegateFlpStakeUserLog
no fields
BatchDelegateTokenStakeLog
no fields
BatchDelegateTokenStakeUserLog
no fields
BatchDelegateTradingLog
no fields
BatchDelegateTradingUserLog
no fields
BurnAndClaimLog
no fields
BurnAndStakeLog
no fields
CancelLimitOrderErLog
no fields
CancelTriggerOrderErLog
no fields
CancelUnstakeTokenRequestErLog
no fields
CloseLegacyOrderAccountErLog
no fields
CloseLegacyPositionAccountErLog
no fields
ClosePositionErLog
no fields
CollectRebateErLog
no fields
CollectRebateSettleBaseLog
no fields
CollectRebateWithActionBaseLog
no fields
CollectRevenueErLog
no fields
CollectRevenueSettleBaseLog
no fields
CollectRevenueWithActionBaseLog
no fields
CollectStakeRewardErLog
no fields
CollectStakeRewardSettleBaseLog
no fields
CollectStakeRewardWithActionBaseLog
no fields
CollectTokenRewardErLog
no fields
CollectTokenRewardSettleBaseLog
no fields
CollectTokenRewardWithActionBaseLog
no fields
CompoundFeesErLog
no fields
CompoundFeesSettleBaseLog
no fields
CompoundFeesWithActionBaseLog
no fields
CustodySettlementErLog
no fields
CustodySettlementSettleBaseLog
no fields
CustodySettlementWithActionBaseLog
no fields
DecreasePositionSizeErLog
no fields
DelegateBasketLog
no fields
DelegateCustodyLog
no fields
DelegateInternalOracleLog
no fields
DelegateMarketLog
no fields
DelegatePoolLog
no fields
DelegateReallocVaultLog
no fields
DelegateRebateVaultLog
no fields
DelegateTokenVaultLog
no fields
DepositDirectBaseLog
no fields
DepositTokenStakeErLog
no fields
DepositTokenStakeSettleBaseLog
no fields
DepositTokenStakeWithActionBaseLog
no fields
DistributeTokenRewardLog
no fields
EditLimitOrderErLog
no fields
EditTriggerOrderErLog
no fields
ExecuteLimitOrderErLog
no fields
ExecuteTriggerOrderErLog
no fields
ForceCloseOrderErLog
no fields
ForceClosePositionErLog
no fields
ForceCloseTriggerOrderErLog
no fields
IncreasePositionSizeErLog
no fields
InitDelegateTokenStakeEvent
no fields
LiquidatePositionErLog
no fields
MigrateFlpErLog
no fields
MigrateFlpSettleBaseLog
no fields
MigrateFlpWithActionBaseLog
no fields
MigratePoolLpSupplyLog
no fields
MigratePositionLog
no fields
MigrateStakeErLog
no fields
MigrateStakeSettleBaseLog
no fields
MigrateStakeWithActionBaseLog
no fields
MoveProtocolFeesErLog
no fields
MoveProtocolFeesSettleBaseLog
no fields
MoveProtocolFeesWithActionBaseLog
no fields
OpenPositionErLog
no fields
PlaceLimitOrderErLog
no fields
PlaceTriggerOrderErLog
no fields
ReferralRebateLog
no fields
RefreshStakeErLog
no fields
RefreshStakeUserErLog
no fields
RefreshTokenStakeErLog
no fields
RefreshTokenStakeUserErLog
no fields
RefundLoCollateralLog
no fields
RemoveCollateralErLog
no fields
RemoveCompoundingLiquidityErLog
no fields
RemoveCompoundingLiquiditySettleBaseLog
no fields
RemoveCompoundingLiquidityWithActionBaseLog
no fields
RemoveCustodyErLog
no fields
RemoveCustodySettleBaseLog
no fields
RemoveLiquidityErLog
no fields
RemoveLiquiditySettleBaseLog
no fields
RemoveLiquidityWithActionBaseLog
no fields
RemoveMarketErLog
no fields
RemoveMarketSettleBaseLog
no fields
SetCustodyConfigErLog
no fields
SetCustodyTokenMultiplierErLog
no fields
SetInternalAccountConfigErLog
no fields
SetLpTokenPriceErLog
no fields
SetMarketConfigErLog
no fields
SetPoolConfigErLog
no fields
SetTokenRewardLog
no fields
SetTokenStakeLevelErLog
no fields
SetTokenVaultConfigErLog
no fields
SettleRebatesErLog
no fields
SettleRebatesSettleBaseLog
no fields
SettleRebatesWithActionBaseLog
no fields
SwapErLog
no fields
SwapFeeInternalErLog
no fields
SwapFeeInternalLog
no fields
SwapFeeInternalLogV2
no fields
SwapFeeInternalLogV3
no fields
SwapSettleBaseLog
no fields
SwapWithActionBaseLog
no fields
UnstakeTokenRequestErLog
no fields
VoltagePointsLog
no fields
WithdrawTokenErLog
no fields
WithdrawTokenSettleBaseLog
no fields
WithdrawTokenWithActionBaseLog
no fields
WithdrawalErLog
no fields
WithdrawalSettleBaseLog
no fields
WithdrawalWithActionBaseLog
no fields
Errors 82
- 6000MultisigAccountNotAuthorizedAccount is not authorized to sign this instruction
- 6001MultisigAlreadySignedAccount has already signed this instruction
- 6002MultisigAlreadyExecutedThis instruction has already been executed
- 6003MathOverflowOverflow in arithmetic operation
- 6004UnsupportedOracleUnsupported price oracle
- 6005InvalidOracleAccountInvalid oracle account
- 6006InvalidOracleStateInvalid oracle state
- 6007StaleOraclePriceStale oracle price
- 6008InvalidOraclePriceInvalid oracle price
- 6009InvalidEnvironmentInstruction is not allowed in production
- 6010InvalidPoolStateInvalid pool state
- 6011InvalidCustodyStateInvalid custody state
- 6012InvalidMarketStateInvalid Market state
- 6013InvalidCollateralCustodyInvalid collateral custody
- 6014InvalidPositionStateInvalid position state
- 6015InvalidDispensingCustodyInvalid Dispensing Custody
- 6016InvalidPerpetualsConfigInvalid perpetuals config
- 6017InvalidPoolConfigInvalid pool config
- 6018InvalidCustodyConfigInvalid custody config
- 6019InsufficientAmountReturnedInsufficient token amount returned
- 6020MaxPriceSlippagePrice slippage limit exceeded
- 6021MaxLeveragePosition leverage limit exceeded
- 6022MaxInitLeveragePosition initial leverage limit exceeded
- 6023MinLeveragePosition leverage less than minimum
- 6024CustodyAmountLimitCustody amount limit exceeded
- 6025PositionAmountLimitPosition amount limit exceeded
- 6026TokenRatioOutOfRangeToken ratio out of range
- 6027UnsupportedTokenToken is not supported
- 6028UnsupportedCustodyCustody is not supported
- 6029UnsupportedPoolPool is not supported
- 6030UnsupportedMarketMarket is not supported
- 6031InstructionNotAllowedInstruction is not allowed at this time
- 6032MaxUtilizationToken utilization limit exceeded
- 6033CloseOnlyModeClose-only mode activated
- 6034MinCollateralMinimum collateral limit breached
- 6035PermissionlessOracleMissingSignaturePermissionless oracle update must be preceded by Ed25519 signature verification instruction
- 6036PermissionlessOracleMalformedEd25519DataEd25519 signature verification data does not match expected format
- 6037PermissionlessOracleSignerMismatchEd25519 signature was not signed by the oracle authority
- 6038PermissionlessOracleMessageMismatchSigned message does not match instruction params
- 6039ExponentMismatchExponent Mismatch betweeen operands
- 6040CloseRatioInvalid Close Ratio
- 6041InsufficientStakeAmountInsufficient LP tokens staked
- 6042InvalidFeeDeltasInvalid Fee Deltas
- 6043InvalidFeeDistributionCustodyInvalid Fee Distrivution Custody
- 6044InvalidCollectionInvalid Collection
- 6045InvalidOwnerOwner of Token Account does not match
- 6046InvalidAccessOnly nft holders or referred users can trade
- 6047TokenStakeAccountMismatchToken Stake account doesnot match referral account
- 6048MaxDepostsReachedMax deposits reached
- 6049InvalidStopLossPriceInvalid Stop Loss price
- 6050InvalidTakeProfitPriceInvalid Take Profit price
- 6051ExposureLimitExceededMax exposure limit exceeded for the market
- 6052MaxStopLossOrdersStop Loss limit exhausted
- 6053MaxTakeProfitOrdersTake Profit limit exhausted
- 6054MaxOpenOrderOpen order limit exhausted
- 6055InvalidOrderInvalid Order
- 6056InvalidLimitPriceInvalid Limit price
- 6057MinReserveMinimum reserve limit breached
- 6058MaxWithdrawTokenRequestWithdraw Token Request limit exhausted
- 6059InvalidRewardDistributionInvalid Reward Distribution
- 6060LpPriceOutOfBoundsLiquidity Token price is out of bounds
- 6061InsufficientRebateReservesInsufficient rebate reserves
- 6062OraclePenaltyAlreadySetOracle penalty already set on this position
- 6063InvalidLazerMessageInvalid Lazer message
- 6064InvalidLazerPayloadInvalid Lazer payload
- 6065InvalidLazerChannelInvalid Lazer channel
- 6066InvalidLazerTimestampInvalid Lazer timestamp
- 6067InvalidWithdrawalInvalid amount for withdrawal
- 6068InvalidWithdrawRequestIdInvalid withdraw request ID
- 6069InvalidWhitelistAccountInvalid whitelist account
- 6070BackupPriceDeviationBackup price out of bounds
- 6071OracleConfidenceOutOfBoundsOracle confidence out of bounds
- 6072InvalidStakingDepositReceiptInvalid deposit receipt state
- 6073InvalidStakingWithdrawReceiptInvalid withdraw receipt state
- 6074InvalidCompoundingReceiptInvalid compounding receipt state
- 6075ReceiptMismatchReceipt fields do not match the provided pool/custody
- 6076ReceiptAlreadyProcessedReceipt has already been processed
- 6077ReceiptNotProcessedReceipt has not been processed yet
- 6078MigrationLpMintMismatchLP mint does not match the pool's lp_mint
- 6079PoolLpSupplyAlreadyMigratedPool lp_supply has already been migrated
- 6080InsufficientAumAccountsNot enough AUM accounts forwarded to queue the post-delegation action
- 6081DeprecatedInstructionInstruction is deprecated
What's an IDL?
An IDL — Interface Description Language — is a JSON spec that describes how to talk to a program: its instructions, the accounts each one needs, argument and account types, events, and errors.
Anchor auto-generates it at build time. A program can publish it on-chain at a PDA derived from its id, so any client or explorer can decode the program's transactions without its source code.
Why it's often missing
Publishing is opt-in — a courtesy, not a requirement. Many programs never do, and non-Anchor frameworks (Pinocchio, native, Steel) don't produce one at all; their interface lives in an off-chain Shank/Codama artifact, or nowhere public. Absence means you can't auto-decode it — not that anything is wrong.
24 of 196 instructions used · 172 never called in this window · +21 more
Tractioni
The recordi
| Event | When | Detail | Receipt |
|---|---|---|---|
| DEPLOY | 3d ago | slot 432,000,548 | poll…0548 |