diff --git a/.gitignore b/.gitignore index c7a57632..004a93bd 100644 --- a/.gitignore +++ b/.gitignore @@ -145,4 +145,4 @@ scratch test.yaml test.config.yaml -devnet.config.yaml +devnet*.config.yaml diff --git a/src/bots/switchboardCranker.ts b/src/bots/switchboardCranker.ts index f769d898..9e7ccdb2 100644 --- a/src/bots/switchboardCranker.ts +++ b/src/bots/switchboardCranker.ts @@ -51,7 +51,7 @@ export class SwitchboardCrankerBot implements Bot { this.slothashSubscriber = new SlothashSubscriber( this.driftClient.connection, { - commitment: 'processed', + commitment: 'confirmed', } ); } @@ -120,7 +120,7 @@ export class SwitchboardCrankerBot implements Bot { ixs.push(this.bundleSender!.getTipIx()); } else { const priorityFees = - this.priorityFeeSubscriber?.getCustomStrategyResult() || 0; + this.priorityFeeSubscriber?.getHeliusPriorityFeeLevel() || 0; logger.info(`Priority fee for ${alias}: ${priorityFees}`); ixs.push( ComputeBudgetProgram.setComputeUnitPrice({ diff --git a/src/config.ts b/src/config.ts index 2f00c914..6c9aa80c 100644 --- a/src/config.ts +++ b/src/config.ts @@ -240,7 +240,7 @@ const defaultConfig: Partial = { txConfirmationEndpoint: process.env.TX_CONFIRMATION_ENDPOINT, priorityFeeMethod: process.env.PRIORITY_FEE_METHOD ?? 'solana', maxPriorityFeeMicroLamports: parseInt( - process.env.MAX_PRIORITY_FEE_MICRO_LAMPORTS ?? '10000' + process.env.MAX_PRIORITY_FEE_MICRO_LAMPORTS ?? '1000000' ), priorityFeeMultiplier: 1.0, keeperPrivateKey: process.env.KEEPER_PRIVATE_KEY,