Documentation
    Preparing search index...

    Interface ExpiryPnlRealizedReceipt

    vault_events::ExpiryPnlRealized: the change in the pool's gross realized result on one expiry since that expiry's previous emission, emitted with every ExpiryPnl. An expiry's first emission (its first settled sweep) carries the lifetime result, which can be a loss. A later one carries the extra cash a later sweep returned, always a profit. Gross: before the protocol/LP split, and including the sponsor fee subsidies mints moved into expiry cash.

    interface ExpiryPnlRealizedReceipt {
        amount: number;
        expiryMs: bigint;
        inProfit: boolean;
        marketId: string;
        propbookUnderlyingId: number;
        raw: { amount: bigint };
        settlementPriceRaw: bigint;
        signedAmountRaw: bigint;
        vaultId: string;
    }
    Index
    amount: number

    The change's magnitude, in USDC.

    expiryMs: bigint
    inProfit: boolean

    False only for a loss, which only an expiry's first emission reports.

    marketId: string
    propbookUnderlyingId: number
    raw: { amount: bigint }
    settlementPriceRaw: bigint

    The settlement price, 1e9-scaled.

    signedAmountRaw: bigint

    The change with its sign: +amount for a profit, −amount for a loss.

    vaultId: string