ソースを参照

orderTime容错

龚成明 2 年 前
コミット
75fa5910b4
1 ファイル変更2 行追加2 行削除
  1. 2 2
      libs/token.js

+ 2 - 2
libs/token.js

@@ -37,7 +37,7 @@ module.exports = class Token {
 
       this.orderAmount = localData.orderAmount
       this.orderPrice = localData.orderPrice
-      this.orderTime = localData.orderTime
+      this.orderTime = localData.orderTime ? localData.orderTime : 0
       this.nextHandleTime = localData.nextHandleTime
     } catch (e) {}
   }
@@ -59,7 +59,7 @@ module.exports = class Token {
 
     context.tokenMap[tokenHash] = token
 
-    logger.info(`${token.exchange.pair}初始化完毕,orderPrice:${token.orderPrice}, orderAmount:${token.orderAmount}.`)
+    logger.info(`${token.exchange.pair}初始化完毕,orderPrice:${token.orderPrice}, orderAmount:${token.orderAmount}, orderTime:${token.orderTime}.`)
   }
 
   static async batchInit(context, logger, ierc20TokenAddressList, priceTickFilterMap, lotSizeFilterMap) {