use luts
Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
This commit is contained in:
parent
75c95586dc
commit
cab39ec23b
|
@ -26,7 +26,7 @@ import { AnchorProvider, Wallet } from 'switchboard-anchor';
|
||||||
import { Group } from '../src/accounts/group';
|
import { Group } from '../src/accounts/group';
|
||||||
import { parseSwitchboardOracle } from '../src/accounts/oracle';
|
import { parseSwitchboardOracle } from '../src/accounts/oracle';
|
||||||
import { MangoClient } from '../src/client';
|
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 { createComputeBudgetIx } from '../src/utils/rpc';
|
||||||
import { manageFeeWebSocket } from './manageFeeWs';
|
import { manageFeeWebSocket } from './manageFeeWs';
|
||||||
import { getOraclesForMangoGroup } from './sb-on-demand-crank-utils';
|
import { getOraclesForMangoGroup } from './sb-on-demand-crank-utils';
|
||||||
|
@ -241,6 +241,7 @@ async function setupBackgroundRefresh(
|
||||||
...txChunk.map((tx) => ({
|
...txChunk.map((tx) => ({
|
||||||
signers: [],
|
signers: [],
|
||||||
transactionInstruction: tx,
|
transactionInstruction: tx,
|
||||||
|
alts: SBOD_ORACLE_LUTS.map(x=>new PublicKey(x)),
|
||||||
})),
|
})),
|
||||||
],
|
],
|
||||||
sequenceType: SequenceType.Parallel,
|
sequenceType: SequenceType.Parallel,
|
||||||
|
@ -249,6 +250,7 @@ async function setupBackgroundRefresh(
|
||||||
maxTxesInBatch: 10,
|
maxTxesInBatch: 10,
|
||||||
autoRetry: false,
|
autoRetry: false,
|
||||||
logFlowInfo: false,
|
logFlowInfo: false,
|
||||||
|
useVersionedTransactions: true,
|
||||||
},
|
},
|
||||||
callbacks: {
|
callbacks: {
|
||||||
afterEveryTxSend: function (data) {
|
afterEveryTxSend: function (data) {
|
||||||
|
|
Loading…
Reference in New Issue