diff --git a/src/providers/eth_provider/gas.rs b/src/providers/eth_provider/gas.rs index 13162209f..e55087b30 100644 --- a/src/providers/eth_provider/gas.rs +++ b/src/providers/eth_provider/gas.rs @@ -48,10 +48,10 @@ where let gas_used = self.estimate_gas_inner(request, block_id).await?; - // Increase the gas used by 200% to make sure the transaction will not fail due to gas. + // Increase the gas used by 40% to make sure the transaction will not fail due to gas. // This is a temporary solution until we have a proper gas estimation. // Does not apply to Hive feature otherwise end2end tests will fail. - let gas_used = if cfg!(feature = "hive") { gas_used } else { gas_used * 2 }; + let gas_used = if cfg!(feature = "hive") { gas_used } else { gas_used * 140 / 100 }; Ok(U256::from(gas_used)) }