diff --git a/packages/voter-stake-registry-hooks/src/hooks/useClaimAllPositionsRewards.ts b/packages/voter-stake-registry-hooks/src/hooks/useClaimAllPositionsRewards.ts index e314edc08..09ab7c7ff 100644 --- a/packages/voter-stake-registry-hooks/src/hooks/useClaimAllPositionsRewards.ts +++ b/packages/voter-stake-registry-hooks/src/hooks/useClaimAllPositionsRewards.ts @@ -6,7 +6,7 @@ import { delegatedPositionKey, init, } from "@helium/helium-sub-daos-sdk"; -import { batchParallelInstructions, chunks, sendMultipleInstructions, Status } from "@helium/spl-utils"; +import { batchParallelInstructions, Status } from "@helium/spl-utils"; import { PublicKey, TransactionInstruction } from "@solana/web3.js"; import { useAsyncCallback } from "react-async-hook"; import { useHeliumVsrState } from "../contexts/heliumVsrContext"; @@ -75,16 +75,6 @@ export const useClaimAllPositionsRewards = () => { multiDemArray.flat(), onProgress ); - - for (const positionInsturctions of multiDemArray) { - // This is an arbitrary threshold and we assume that up to 4 instructions can be inserted as a single Tx - const ixsChunks = chunks(positionInsturctions, 4); - await sendMultipleInstructions( - provider, - ixsChunks, - ixsChunks.map(() => []) - ); - } } } );