瀏覽代碼

gas price multiplier,減少打包失敗概率。測試。

skyfffire 5 月之前
父節點
當前提交
eccd051090
共有 1 個文件被更改,包括 2 次插入4 次删除
  1. 2 4
      as.py

+ 2 - 4
as.py

@@ -168,10 +168,8 @@ def arbitrage_process_flow(process_item):
 
 
     gas_limit_multiplier = 1
-    gas_price_multiplier = 1
-    if profit > Decimal(2) * profitLimit:
-        gas_price_multiplier = 1.2
-    elif profit > Decimal(5) * profitLimit:
+    gas_price_multiplier = 1.2
+    if profit > Decimal(5) * profitLimit:
         gas_price_multiplier = 1.5
     elif profit > Decimal(10) * profitLimit:
         gas_price_multiplier = 2