From 17b201d26ed234d3d2280adc6ce20a06cfc89300 Mon Sep 17 00:00:00 2001 From: lumtis Date: Wed, 2 Oct 2024 10:48:09 +0200 Subject: [PATCH] add some context comment --- zetaclient/chains/evm/signer/gas.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/zetaclient/chains/evm/signer/gas.go b/zetaclient/chains/evm/signer/gas.go index d8b1c6f86c..82aefe6ddb 100644 --- a/zetaclient/chains/evm/signer/gas.go +++ b/zetaclient/chains/evm/signer/gas.go @@ -97,6 +97,10 @@ func gasFromCCTX(cctx *types.CrossChainTx, logger zerolog.Logger) (Gas, error) { Str("cctx.forced_priority_fee", gasPrice.String()). Msg("gasPrice is less than priorityFee, setting priorityFee = gasPrice") + // this should in theory never happen, but this reported bug might be a cause: https://github.com/zeta-chain/node/issues/2954 + // in this case we lower the priorityFee to the gasFeecCap to ensure the transaction is valid + // the only potential issue is the transaction might not cover the baseFee + // the gas stability pool mechanism help to mitigate this issue priorityFee = big.NewInt(0).Set(gasPrice) }