|
|
@@ -229,7 +229,8 @@ class ArbitrageProcess:
|
|
|
gas_price_gwei = gas_price / Decimal('1e9')
|
|
|
gas_price_gwei = gas_price_gwei.quantize(Decimal('1e-9'), rounding=ROUND_DOWN)
|
|
|
|
|
|
- logger.info("鏈上各種校驗")
|
|
|
+ tx_formated = pformat(self.tx, indent=2)
|
|
|
+ logger.info(f"鏈上各種校驗\n{tx_formated}")
|
|
|
estimated_gas_origin = web3.w3.eth.estimate_gas(self.tx)
|
|
|
estimated_gas = int(estimated_gas_origin * self.gas_limit_multiplier)
|
|
|
estimated_wei = Decimal(estimated_gas) * gas_price
|