From 56fcd68be7d30b1c393aaf2b24c189e19fab8c0d Mon Sep 17 00:00:00 2001 From: Bryan Stitt Date: Mon, 23 Jan 2023 12:32:59 -0800 Subject: [PATCH] increase gas estimation on polygon even more --- web3_proxy/src/bin/web3_proxy_cli/main.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/web3_proxy/src/bin/web3_proxy_cli/main.rs b/web3_proxy/src/bin/web3_proxy_cli/main.rs index 54027093..539c04c2 100644 --- a/web3_proxy/src/bin/web3_proxy_cli/main.rs +++ b/web3_proxy/src/bin/web3_proxy_cli/main.rs @@ -144,12 +144,13 @@ fn main() -> anyhow::Result<()> { } if top_config.app.chain_id == 137 { + // TODO: these numbers are arbitrary. i think the maticnetwork/erigon fork has a bug if top_config.app.gas_increase_min.is_none() { - top_config.app.gas_increase_min = Some(U256::from(25_000)); + top_config.app.gas_increase_min = Some(U256::from(40_000)); } if top_config.app.gas_increase_percent.is_none() { - top_config.app.gas_increase_percent = Some(U256::from(25)); + top_config.app.gas_increase_percent = Some(U256::from(40)); } }