@somnia-chain/markets-sdk


@somnia-chain/markets-sdk / index / VaultPayoutFallback

Type Alias: VaultPayoutFallback

VaultPayoutFallback = object

Defined in: packages/sdk/src/binary/portfolio.ts:560

A vault-credit fallback record (mirror of the indexer VaultPayoutFallback entity) — an append-only history of payouts that could not be delivered to the wallet and were credited to the owner's ERC20Vault balance instead. This is the HISTORY layer; for the live claimable amount read client.getVaultBalance. Amounts are raw token units.

Properties

id

id: string

Defined in: packages/sdk/src/binary/portfolio.ts:562

Record id (${blockNumber}_${logIndex}).


owner

owner: string

Defined in: packages/sdk/src/binary/portfolio.ts:564

Credited owner (lowercased).


token

token: string

Defined in: packages/sdk/src/binary/portfolio.ts:566

Credited token (lowercased).


amount

amount: string

Defined in: packages/sdk/src/binary/portfolio.ts:568

Amount credited to the vault balance (raw token units).


market

market: string

Defined in: packages/sdk/src/binary/portfolio.ts:570

Market id the fallback was emitted for (lowercased).


pool

pool: string

Defined in: packages/sdk/src/binary/portfolio.ts:577

The pool that emitted the credit (lowercased): the market's pool address, which on SPOT is also the market id. The credit sits in THIS pool's vault, so it is the vault to pass to client.getVaultBalance.


timestamp

timestamp: string

Defined in: packages/sdk/src/binary/portfolio.ts:579

Timestamp (unix seconds) of the credit.


txHash

txHash: string

Defined in: packages/sdk/src/binary/portfolio.ts:581

Tx hash the credit landed in.