File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
src/components/account/AccountList Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ import useVaultAprs from 'hooks/vaults/useVaultAprs'
16
16
import useStore from 'store'
17
17
import { calculateAccountApy , calculateAccountBalanceValue } from 'utils/accounts'
18
18
import { mergeBNCoinArrays } from 'utils/helpers'
19
- import usePerpsMarket from 'hooks/perps/usePerpsMarket '
19
+ import usePerpsMarketStates from 'hooks/perps/usePerpsMarketStates '
20
20
21
21
interface Props {
22
22
accountId : string
@@ -31,7 +31,7 @@ export default function AccountStats(props: Props) {
31
31
const { data : vaultAprs } = useVaultAprs ( )
32
32
const { data : perpsVault } = usePerpsVault ( )
33
33
const astroLpAprs = useAstroLpAprs ( )
34
- const perpsMarket = usePerpsMarket ( )
34
+ const perpsMarketStates = usePerpsMarketStates ( )
35
35
36
36
const positionBalance = useMemo (
37
37
( ) => ( ! account ? null : calculateAccountBalanceValue ( account , assets ) ) ,
@@ -58,7 +58,7 @@ export default function AccountStats(props: Props) {
58
58
vaultAprs ,
59
59
astroLpAprs ,
60
60
perpsVault ?. apy || 0 ,
61
- perpsMarket || undefined ,
61
+ perpsMarketStates . data || [ ] ,
62
62
) ,
63
63
[
64
64
account ,
@@ -68,7 +68,7 @@ export default function AccountStats(props: Props) {
68
68
vaultAprs ,
69
69
astroLpAprs ,
70
70
perpsVault ?. apy ,
71
- perpsMarket ,
71
+ perpsMarketStates . data ,
72
72
] ,
73
73
)
74
74
You can’t perform that action at this time.
0 commit comments