@somnia-chain/markets-sdk / index / PerpWalletLinkage
Interface: PerpWalletLinkage
Defined in: packages/sdk/src/perp/linkedWallet.ts:126
A link group, with the maturity the raw graph does not carry.
maturesAt matters for a reason worth stating: ADL netting is gated on maturity so
that a link armed in reaction to an impending auto-deleveraging cannot buy netting
credit. The FUNDING rail deliberately reads the raw graph instead, because the main
proposed the link and owns the allowance, and there is no analogous surprise. So a
link can be fundable and not yet mature — do not use maturesAt to decide whether
a pull will happen.
Properties
main
main:
`0x${string}`
Defined in: packages/sdk/src/perp/linkedWallet.ts:128
The group's main. Zero when the wallet is unlinked.
members
members: readonly
`0x${string}`[]
Defined in: packages/sdk/src/perp/linkedWallet.ts:130
The main plus every child. Empty when the wallet is unlinked.
linkedAt
linkedAt:
bigint
Defined in: packages/sdk/src/perp/linkedWallet.ts:132
Unix seconds the link was formed, or 0.
maturesAt
maturesAt:
bigint
Defined in: packages/sdk/src/perp/linkedWallet.ts:134
Unix seconds the link becomes mature FOR ADL NETTING, or 0. Not a funding gate.
isChild
isChild:
boolean
Defined in: packages/sdk/src/perp/linkedWallet.ts:136
Convenience: whether this wallet is a child (has a main that is not itself).
isMain
isMain:
boolean
Defined in: packages/sdk/src/perp/linkedWallet.ts:138
Convenience: whether this wallet is a main with at least one child.