From 610340146d8f711265ee292635e9372510917e8e Mon Sep 17 00:00:00 2001 From: Filip Dunder Date: Sun, 21 Apr 2024 14:49:26 +0200 Subject: [PATCH] fix: filters --- bot.ts | 2 +- index.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/bot.ts b/bot.ts index 2ad6490..0202af6 100644 --- a/bot.ts +++ b/bot.ts @@ -353,7 +353,7 @@ export class Bot { private async filterMatch(poolKeys: LiquidityPoolKeysV4) { if (this.config.filterCheckInterval === 0 || this.config.filterCheckDuration === 0) { - return; + return true; } const timesToCheck = this.config.filterCheckDuration / this.config.filterCheckInterval; diff --git a/index.ts b/index.ts index 39acf85..c4011d4 100644 --- a/index.ts +++ b/index.ts @@ -114,7 +114,7 @@ function printDetails(wallet: Keypair, quoteToken: Token, bot: Bot) { logger.info(`Snipe list refresh interval: ${SNIPE_LIST_REFRESH_INTERVAL} ms`); logger.info(`Filter check interval: ${botConfig.filterCheckInterval} ms`); logger.info(`Filter check duration: ${botConfig.filterCheckDuration} ms`); - logger.info(`Consecutive filter matches: ${botConfig.consecutiveMatchCount} ms`); + logger.info(`Consecutive filter matches: ${botConfig.consecutiveMatchCount}`); logger.info(`Check renounced: ${botConfig.checkRenounced}`); logger.info(`Check freezable: ${botConfig.checkFreezable}`); logger.info(`Check burned: ${botConfig.checkBurned}`);