Are you an LLM? Read llms.txt for a summary of the docs, or llms-full.txt for the full context.
Skip to content

State

Global perps runtime state.

Definition

class State(TypedDict):
    last_funding_time: Timestamp
    vault_share_supply: Uint128
    insurance_fund: UsdValue
    treasury: UsdValue

Fields

last_funding_timeTimestamp. ns-precision integer string of the last funding rate update.

vault_share_supplyUint128. Total counterparty-vault LP shares minted.

insurance_fundUsdValue. USD reserves for bad-debt coverage.

treasuryUsdValue. Protocol fee accumulator.

See also