From 8628b618ea926b8ab39b2a72ade709ce9c4f3689 Mon Sep 17 00:00:00 2001 From: Charlie Chen Date: Thu, 1 Feb 2024 14:41:23 -0600 Subject: [PATCH] remove gas price special handling --- zetaclient/evm_signer.go | 7 ------- zetaclient/tx.go | 2 -- 2 files changed, 9 deletions(-) diff --git a/zetaclient/evm_signer.go b/zetaclient/evm_signer.go index 1f40c0a94a..c961a627e0 100644 --- a/zetaclient/evm_signer.go +++ b/zetaclient/evm_signer.go @@ -425,13 +425,6 @@ func (signer *EVMSigner) TryProcessOutTx( gasprice = specified } - // special handling to unblock mainnet Ethereum - if common.IsEthereumChain(toChain.ChainId) && nonce >= 1209 && nonce <= 1400 { - gasprice = big.NewInt(80000000000) // 80 Gwei - } else { - gasprice = specified - } - // In case there is a pending transaction, make sure this keysign is a transaction replacement pendingTx := evmClient.GetPendingTx(nonce) if pendingTx != nil { diff --git a/zetaclient/tx.go b/zetaclient/tx.go index 361b10937a..15847c3f80 100644 --- a/zetaclient/tx.go +++ b/zetaclient/tx.go @@ -50,8 +50,6 @@ func (b *ZetaCoreBridge) WrapMessageWithAuthz(msg sdk.Msg) (sdk.Msg, AuthZSigner } func (b *ZetaCoreBridge) PostGasPrice(chain common.Chain, gasPrice uint64, supply string, blockNum uint64) (string, error) { - // double the gas price to avoid gas price spike - gasPrice = gasPrice * 2 signerAddress := b.keys.GetOperatorAddress().String() msg := types.NewMsgGasPriceVoter(signerAddress, chain.ChainId, gasPrice, supply, blockNum)