Function useAllPositions

  • Mostly deprecated, use fetchAllMarkets instead

    Returns

    nft borrow positions and bids against the market

    Parameters

    • connection: Connection

      of the cluster

    • wallet: ConnectedWallet

      wallet adapter (or null for read-only)

    • honeyId: string

      of the program

    • honeyMarketId: string

      of the market

    • Optional devnet: boolean

      flag to fetch devnet or mainnet-beta idl

    Returns { bids?: helpers.Bid[]; error?: Error; fetchPositions: ((isDevnet: boolean) => Promise<{ bids: any; positions: helpers.NftPosition[] }>); loading: boolean; positions?: helpers.NftPosition[] }

Generated using TypeDoc