@@ -6,18 +6,14 @@ import { LuCheck, LuCopy } from "react-icons/lu";
66import CeremonySummary from "@/app/routes/create-cluster/ceremony-summary.tsx" ;
77import { useQuery } from "@tanstack/react-query" ;
88import { stringifyBigints } from "@/lib/utils/bigint.ts" ;
9- import {
10- DKG_VERSIONS ,
11- generateSSVKeysDockerCMD ,
12- } from "@/lib/utils/keyshares.ts" ;
9+ import { generateSSVKeysDockerCMD } from "@/lib/utils/keyshares.ts" ;
1310import type { Address } from "viem" ;
1411import { useAccount } from "@/hooks/account/use-account.ts" ;
1512import { useSSVAccount } from "@/hooks/use-ssv-account.ts" ;
1613import { useBulkActionContext } from "@/guard/bulk-action-guard.tsx" ;
1714import { useReshareDkg } from "@/hooks/use-reshare-dkg.ts" ;
1815import { useCopyToClipboard } from "react-use" ;
1916import { CompletedBadge } from "@/components/ui/completed-badge.tsx" ;
20- import { useOperatorsDKGHealth } from "@/hooks/operator/use-operator-dkg-health.ts" ;
2117
2218const VALIDATOR_COUNT_THRESHOLD = 20 ;
2319
@@ -45,16 +41,6 @@ const CeremonySection = ({
4541 const context = useBulkActionContext ( ) ;
4642 const reshareContext = useReshareDkg ( ) ;
4743 const [ copyState , copy ] = useCopyToClipboard ( ) ;
48- const health = useOperatorsDKGHealth (
49- context . dkgReshareState . newOperators . length
50- ? context . dkgReshareState . newOperators
51- : context . dkgReshareState . operators ,
52- ) ;
53- const version = health . data ?. every (
54- ( { isHealthy, isOutdated } ) => isHealthy && isOutdated ,
55- )
56- ? DKG_VERSIONS . OLD
57- : DKG_VERSIONS . NEW ;
5844
5945 const cmd = useQuery ( {
6046 queryKey : stringifyBigints ( [
@@ -85,7 +71,6 @@ const CeremonySection = ({
8571 signatures,
8672 os : context . dkgReshareState . selectedOs ,
8773 proofsString,
88- version,
8974 } ) ,
9075 ) ;
9176 } ,
0 commit comments