Browse Source

fix pair logic

zhangchunrui 1 month ago
parent
commit
122bf2c93c
1 changed files with 6 additions and 0 deletions
  1. 6 0
      index.mjs

+ 6 - 0
index.mjs

@@ -303,6 +303,12 @@ async function processTradePair() {
     console.log(`处理完成,已发送 ${unsentTradePair.length} 个交易对`)
   } else {
     firstRun = false
+    for (const pair of tradePair) {
+      const success = await sendToDiscordTradePair(pair)
+      if (success) {
+        sentTradePair.add(pair.poolAddress)
+      }
+    }
     console.log('第一次运行,不发送交易对')
   }
 }