- useAllPositions(connection: Connection, wallet: ConnectedWallet, honeyId: string, honeyMarketId: string, devnet?: boolean): { bids?: helpers.Bid[]; error?: Error; fetchPositions: ((isDevnet: boolean) => Promise<{ bids: any; positions: helpers.NftPosition[] }>); loading: boolean; positions?: helpers.NftPosition[] }
-
Parameters
-
connection: Connection
-
wallet: ConnectedWallet
-
honeyId: string
-
honeyMarketId: string
-
Optional
devnet: boolean
Returns { bids?: helpers.Bid[]; error?: Error; fetchPositions: ((isDevnet: boolean) => Promise<{ bids: any; positions: helpers.NftPosition[] }>); loading: boolean; positions?: helpers.NftPosition[] }
-
-
Optional
error?: Error
-
fetchPositions: ((isDevnet: boolean) => Promise<{ bids: any; positions: helpers.NftPosition[] }>)
-
loading: boolean
-
Mostly deprecated, use fetchAllMarkets instead
Returns
nft borrow positions and bids against the market