Skip to content

Commit

Permalink
Remove legacy (#514)
Browse files Browse the repository at this point in the history
  • Loading branch information
bryzettler authored Dec 21, 2023
1 parent a88deea commit 0f9e37b
Showing 1 changed file with 1 addition and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down Expand Up @@ -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(() => [])
);
}
}
}
);
Expand Down

0 comments on commit 0f9e37b

Please sign in to comment.