Function useBorrowPositions
- useBorrowPositions(connection: Connection, wallet: ConnectedWallet, honeyId: string, honeyMarketId: string): { collateralNFTPositions?: helpers.CollateralNFTPosition[]; error?: Error; loading: boolean; loanPositions?: helpers.LoanPosition[]; refreshPositions: (() => Promise<void>) }
-
Parameters
-
connection: Connection
-
wallet: ConnectedWallet
-
honeyId: string
-
honeyMarketId: string
Returns { collateralNFTPositions?: helpers.CollateralNFTPosition[]; error?: Error; loading: boolean; loanPositions?: helpers.LoanPosition[]; refreshPositions: (() => Promise<void>) }
-
-
Optional
error?: Error
-
loading: boolean
-
-
refreshPositions: (() => Promise<void>)
-
- (): Promise<void>
-
Returns Promise<void>
mostly deprecated, use fetchAllMarkets instead
Returns
list of collateral nft positions and loan positions