Skip to content

Commit

Permalink
update max priority fee and small sb crank improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
NourAlharithi committed Nov 21, 2024
1 parent d7b925a commit dd8dbea
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -145,4 +145,4 @@ scratch

test.yaml
test.config.yaml
devnet.config.yaml
devnet*.config.yaml
4 changes: 2 additions & 2 deletions src/bots/switchboardCranker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ export class SwitchboardCrankerBot implements Bot {
this.slothashSubscriber = new SlothashSubscriber(
this.driftClient.connection,
{
commitment: 'processed',
commitment: 'confirmed',
}
);
}
Expand Down Expand Up @@ -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({
Expand Down
2 changes: 1 addition & 1 deletion src/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ const defaultConfig: Partial<Config> = {
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,
Expand Down

0 comments on commit dd8dbea

Please sign in to comment.