Explorar o código

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

skyfffire hai 5 meses
pai
achega
eccd051090
Modificáronse 1 ficheiros con 2 adicións e 4 borrados
  1. 2 4
      as.py

+ 2 - 4
as.py

@@ -168,10 +168,8 @@ def arbitrage_process_flow(process_item):
 
 
 
 
     gas_limit_multiplier = 1
     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
         gas_price_multiplier = 1.5
     elif profit > Decimal(10) * profitLimit:
     elif profit > Decimal(10) * profitLimit:
         gas_price_multiplier = 2
         gas_price_multiplier = 2