Function useBorrowPositions

  • mostly deprecated, use fetchAllMarkets instead

    Returns

    list of collateral nft positions and loan positions

    Parameters

    • connection: Connection

      to the cluster

    • wallet: ConnectedWallet

      wallet adapter or null for read-only

    • honeyId: string

      of the program

    • honeyMarketId: string

      of the market

    Returns { collateralNFTPositions?: helpers.CollateralNFTPosition[]; error?: Error; loading: boolean; loanPositions?: helpers.LoanPosition[]; refreshPositions: (() => Promise<void>) }

Generated using TypeDoc