diff --git a/src/bots/filler.ts b/src/bots/filler.ts index 48aade15..2a112c9d 100644 --- a/src/bots/filler.ts +++ b/src/bots/filler.ts @@ -1438,9 +1438,11 @@ export class FillerBot implements Bot { units: 1_400_000, }), ComputeBudgetProgram.setComputeUnitPrice({ - microLamports: Math.min( - this.priorityFeeSubscriber.maxPriorityFee * 1.2, - MAX_COMPUTE_UNIT_PRICE_MICRO_LAMPORTS + microLamports: Number( + Math.min( + Math.floor(this.priorityFeeSubscriber.maxPriorityFee * 1.2), + MAX_COMPUTE_UNIT_PRICE_MICRO_LAMPORTS + ) ), }), ]; @@ -1501,10 +1503,12 @@ export class FillerBot implements Bot { units: 1_400_000, }), ComputeBudgetProgram.setComputeUnitPrice({ - microLamports: Number(Math.min( - Math.floor(this.priorityFeeSubscriber.maxPriorityFee * 1.2), - MAX_COMPUTE_UNIT_PRICE_MICRO_LAMPORTS - )), + microLamports: Number( + Math.min( + Math.floor(this.priorityFeeSubscriber.maxPriorityFee * 1.2), + MAX_COMPUTE_UNIT_PRICE_MICRO_LAMPORTS + ) + ), }), ]; diff --git a/src/bots/spotFiller.ts b/src/bots/spotFiller.ts index 0cdb2a39..c57f8f84 100644 --- a/src/bots/spotFiller.ts +++ b/src/bots/spotFiller.ts @@ -1139,9 +1139,11 @@ export class SpotFillerBot implements Bot { units: 1_400_000, }), ComputeBudgetProgram.setComputeUnitPrice({ - microLamports: Math.min( - this.priorityFeeSubscriber.maxPriorityFee * 1.2, - MAX_COMPUTE_UNIT_PRICE_MICRO_LAMPORTS + microLamports: Number( + Math.min( + Math.floor(this.priorityFeeSubscriber.maxPriorityFee * 1.2), + MAX_COMPUTE_UNIT_PRICE_MICRO_LAMPORTS + ) ), }), ];