|
|
@@ -711,7 +711,7 @@ class ArbitrageProcess:
|
|
|
last_deposit_state = None
|
|
|
while waiting_times > 0:
|
|
|
time.sleep(60)
|
|
|
- with mexc_lock:
|
|
|
+ with self.mexc_lock:
|
|
|
deposit_list = copy.deepcopy(self.mexc_data['deposit_list'])
|
|
|
|
|
|
# 是否已經在列表中了,抹茶識別充值會稍微有點慢,所以要耐心等
|
|
|
@@ -736,7 +736,7 @@ class ArbitrageProcess:
|
|
|
# 檢查是否滿足快速提現的條件
|
|
|
if is_list:
|
|
|
# 交易所代幣余额判断
|
|
|
- with mexc_lock:
|
|
|
+ with self.mexc_lock:
|
|
|
balances = copy.deepcopy(self.mexc_data['account_info']['balances'])
|
|
|
asset_balance = 0
|
|
|
for balance in balances:
|
|
|
@@ -766,7 +766,7 @@ class ArbitrageProcess:
|
|
|
last_deposit_state = None
|
|
|
last_deposit_state_formated = None
|
|
|
while waiting_times > 0:
|
|
|
- with mexc_lock:
|
|
|
+ with self.mexc_lock:
|
|
|
deposit_list = copy.deepcopy(self.mexc_data['deposit_list'])
|
|
|
for deposit in deposit_list:
|
|
|
if deposit['transHash'] != self.chain_tx_hash:
|
|
|
@@ -864,7 +864,7 @@ class ArbitrageProcess:
|
|
|
last_deposit_state = None
|
|
|
last_deposit_state_formated = None
|
|
|
while waiting_times > 0:
|
|
|
- with mexc_lock:
|
|
|
+ with self.mexc_lock:
|
|
|
withdraw_list = copy.deepcopy(self.mexc_data['withdraw_list'])
|
|
|
|
|
|
if not isinstance(withdraw_list, list):
|