one more
This commit is contained in:
parent
e256ed4754
commit
08a6a8dfdf
|
@ -62,7 +62,7 @@ const useHydrateStore = () => {
|
|||
})
|
||||
})
|
||||
} else {
|
||||
mangoClient.getPerpMarket(marketConfig.publicKey).then(async (market) => {
|
||||
mangoClient.getPerpMarket(marketConfig.publicKey, marketConfig.baseDecimals, marketConfig.quoteDecimals).then(async (market) => {
|
||||
const bidInfo = await connection.getAccountInfo(market.bids)
|
||||
const askInfo = await connection.getAccountInfo(market.asks)
|
||||
|
||||
|
|
|
@ -28,7 +28,7 @@ export function useOpenOrders() {
|
|||
const openOrdersAccount = marginAccount.spotOpenOrdersAccounts[marketIndex]
|
||||
|
||||
const marketName = mangoGroupConfig.spotMarkets.find(
|
||||
(mkt) => mkt.key.toString() === address
|
||||
(mkt) => mkt.publicKey.toString() === address
|
||||
).name
|
||||
|
||||
if (!openOrdersAccount) return []
|
||||
|
|
Loading…
Reference in New Issue