Skip to content

Commit 30533a2

Browse files
authored
dont use first estimate (#221)
1 parent a27df94 commit 30533a2

2 files changed

Lines changed: 2 additions & 4 deletions

File tree

src/components/VoteOptions.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,9 +55,7 @@ export const VoteOptions: FC<{
5555
setCurrVote(choice.index);
5656
await vote({
5757
choice: choice.index,
58-
onInstructions: onInstructions(provider, {
59-
useFirstEstimateForAll: true,
60-
}),
58+
onInstructions: onInstructions(provider),
6159
});
6260
toast("Vote submitted");
6361
} catch (e: any) {

src/lib/utils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -302,7 +302,7 @@ export const onInstructions =
302302
) =>
303303
async (instructions: TransactionInstruction[], sigs?: Keypair[]) => {
304304
if (provider) {
305-
const computeScaleUp = useFirstEstimateForAll ? 1.4 : 1.2;
305+
const computeScaleUp = 1.4;
306306

307307
if (sigs) {
308308
const transactions = await batchInstructionsToTxsWithPriorityFee(

0 commit comments

Comments
 (0)