Explorar o código

fix pair logic

zhangchunrui hai 1 mes
pai
achega
122bf2c93c
Modificáronse 1 ficheiros con 6 adicións e 0 borrados
  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('第一次运行,不发送交易对')
   }
 }