From 7cb3e9b8cb290404dd0bd3c3649d43bb5b258636 Mon Sep 17 00:00:00 2001 From: Charlie Chen Date: Thu, 1 Feb 2024 14:54:56 -0600 Subject: [PATCH] double watched gas price --- zetaclient/tx.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/zetaclient/tx.go b/zetaclient/tx.go index 15847c3f80..361b10937a 100644 --- a/zetaclient/tx.go +++ b/zetaclient/tx.go @@ -50,6 +50,8 @@ 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)