Skip to content

Commit

Permalink
hf: vebal rank query
Browse files Browse the repository at this point in the history
  • Loading branch information
alter-eggo committed Jul 4, 2024
1 parent 0318868 commit 01014f0
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/composables/queries/useLockRankQuery.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ import QUERY_KEYS from '@/constants/queryKeys';
import useGraphQuery from './useGraphQuery';
import useNetwork from '../useNetwork';
import { FETCH_ONCE_OPTIONS } from '@/constants/vue-query';
import { GqlChain } from '@/services/api/graphql/generated/api-types';
import { EnumType } from 'json-to-graphql-query';

const attrs = {
balance: true,
Expand All @@ -25,14 +27,17 @@ export function useLockRankQuery(account: ComputedRef<string>) {
queryKey,
() => ({
veBalGetUser: {
__args: {
chain: new EnumType(GqlChain.Mainnet),
address: account.value?.toLowerCase(),
},
...attrs,
},
}),
reactive({
enabled: computed(() => !!account.value),
...FETCH_ONCE_OPTIONS,
}),
false,
{ accountAddress: account.value }
false
);
}

0 comments on commit 01014f0

Please sign in to comment.