Skip to content

Commit

Permalink
use luts
Browse files Browse the repository at this point in the history
Signed-off-by: microwavedcola1 <[email protected]>
  • Loading branch information
microwavedcola1 committed Aug 9, 2024
1 parent 75c9558 commit cab39ec
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ts/client/scripts/sb-on-demand-crank.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ import { AnchorProvider, Wallet } from 'switchboard-anchor';
import { Group } from '../src/accounts/group';
import { parseSwitchboardOracle } from '../src/accounts/oracle';
import { MangoClient } from '../src/client';
import { MANGO_V4_ID, MANGO_V4_MAIN_GROUP } from '../src/constants';
import { MANGO_V4_ID, MANGO_V4_MAIN_GROUP, SBOD_ORACLE_LUTS } from '../src/constants';
import { createComputeBudgetIx } from '../src/utils/rpc';
import { manageFeeWebSocket } from './manageFeeWs';
import { getOraclesForMangoGroup } from './sb-on-demand-crank-utils';
Expand Down Expand Up @@ -241,6 +241,7 @@ async function setupBackgroundRefresh(
...txChunk.map((tx) => ({
signers: [],
transactionInstruction: tx,
alts: SBOD_ORACLE_LUTS.map(x=>new PublicKey(x)),
})),
],
sequenceType: SequenceType.Parallel,
Expand All @@ -249,6 +250,7 @@ async function setupBackgroundRefresh(
maxTxesInBatch: 10,
autoRetry: false,
logFlowInfo: false,
useVersionedTransactions: true,
},
callbacks: {
afterEveryTxSend: function (data) {
Expand Down

0 comments on commit cab39ec

Please sign in to comment.