Documentation
    Preparing search index...
    Index

    Constructors

    Properties

    address: string
    adminCap?: string
    balanceManager: BalanceManagerContract
    balanceManagers: { [key: string]: BalanceManager }
    DEEP_TREASURY_ID: string
    DEEPBOOK_PACKAGE_ID: string
    LIQUIDATION_PACKAGE_ID: string
    MARGIN_PACKAGE_ID: string
    MARGIN_REGISTRY_ID: string
    MARGIN_V1: string
    marginAdminCap?: string
    marginMaintainerCap?: string
    marginManagers: { [key: string]: MarginManager }
    marginPyth: MarginPythMode

    Which Pyth deployment margin entrypoints price against.

    network: Network
    pythUpgraded: PythConfig

    Pyth's upgraded Core. Used by margin calls when marginPyth is 'upgraded'.

    REGISTRY_ID: string

    Accessors

    • get activePyth(): PythConfig

      The Pyth deployment margin currently prices against.

      Returns PythConfig

    • get usesUpgradedPyth(): boolean

      True when margin calls should use the upgraded modules and price objects.

      Returns boolean

    Methods

    • Parameters

      • managerKey: string

        Key of the balance manager

      Returns BalanceManager

      The BalanceManager object

      Get the balance manager by key

    • Parameters

      • key: string

      Returns Coin

    • Parameters

      • managerKey: string

        Key of the margin manager

      Returns MarginManager

      The MarginManager object

      Get the margin manager by key

    • Parameters

      • key: string

      Returns MarginPool

    • Parameters

      • key: string

      Returns Pool

    • The PriceInfoObject id for a coin under the active Pyth deployment.

      Throws rather than passing undefined into a move call: under the upgraded deployment a feed may simply have no object yet, and the resulting on-chain abort (EPriceFeedIdMismatch) does not say which coin was at fault.

      Parameters

      • coinKey: string

      Returns string

    • Returns void