瀏覽代碼

fix: filters

Filip Dunder 1 年之前
父節點
當前提交
610340146d
共有 2 個文件被更改,包括 2 次插入2 次删除
  1. 1 1
      bot.ts
  2. 1 1
      index.ts

+ 1 - 1
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;

+ 1 - 1
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}`);