The data structure for a market account

Property

The mint for the token that is used as the quote currency (usually SOL)

Property

The account that has authority to make changes to the market

Property

The account that has authority to make changes to the market

Property

The account that has authority to make changes to the market

Property

The account that has authority to make changes to the market

Property

The market account

Property

The reserve accounts

Property

The reserve accounts

Property

The connection to the cluster

Hierarchy

  • HoneyMarket

Implements

Constructors

Properties

address: PublicKey
cachedReserveInfo: helpers.CachedReserveInfo[]
conn: Connection
marketAuthority: PublicKey
nftCollectionCreator: PublicKey
nftSwitchboardPriceAggregator: PublicKey
owner: PublicKey
quoteTokenMint: PublicKey
reserveList: helpers.TReserve[]

Methods

  • Returns

    approx LTV given the min collateral ratio config

    Parameters

    • index: number = 0

    Returns number

  • Parameters

    • cluster: "mainnet-beta" | "devnet" | "localnet" | "testnet" = 'mainnet-beta'

    Returns Promise<number>

  • Parameters

    • index: number

    Returns Promise<number>

  • Get the latest market account data from the network.

    Returns Promise<void>

Generated using TypeDoc