Skip to main content

Module state

Module state 

Source

Structs§

MarketHeader
Market account header — stored at the beginning of the account data. The RiskEngine state follows immediately after, accessed via raw pointer because RiskEngine is ~1.165 MB and doesn’t derive Copy.

Constants§

MARKET_ACCOUNT_SIZE
Total account size: discriminator + header + engine

Functions§

engine_from_account_data
Helper to get a mutable reference to the RiskEngine from raw account data.
engine_from_account_data_ref
header_from_account_data
market_signer_seeds
Market PDA signer seeds: [b“market“, authority_key, &[bump]]
write_header