Skip to content

Commit

Permalink
add some context comment
Browse files Browse the repository at this point in the history
  • Loading branch information
lumtis committed Oct 2, 2024
1 parent 01b97d1 commit 17b201d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions zetaclient/chains/evm/signer/gas.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}

Expand Down

0 comments on commit 17b201d

Please sign in to comment.