浏览代码

修復識別的bug

skyfffire 5 月之前
父节点
当前提交
cb787a75dd
共有 1 个文件被更改,包括 3 次插入2 次删除
  1. 3 2
      arbitrage_process.py

+ 3 - 2
arbitrage_process.py

@@ -554,7 +554,8 @@ class ArbitrageProcess:
                         continue
 
                     # 處理pending數量
-                    pending_amount = pending_amount + Decimal(deposit['amount'])
+                    if Decimal(deposit['confirmTimes']) < Decimal(deposit['unlockConfirm']):
+                        pending_amount = pending_amount + Decimal(deposit['amount'])
 
                     # 檢查到沒到列表中
                     if deposit['transHash'] != self.arbitrage_details['chain_buy_tx_hash']:
@@ -562,7 +563,7 @@ class ArbitrageProcess:
                     is_list = True
                 
                 # 檢查是否滿足快速提現的條件
-                if is_list == True:
+                if is_list:
                     # 交易所代幣余额判断
                     balances = mexc.trade.get_account_info()['balances']
                     asset_balance = 0