From 352d02d3ca3187abd139d368988cd322df34897c Mon Sep 17 00:00:00 2001 From: Tanmay Date: Thu, 5 Feb 2026 08:19:58 -0500 Subject: [PATCH] skip gas refund for coin-type zeta --- zetaclient/chains/evm/observer/outbound.go | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/zetaclient/chains/evm/observer/outbound.go b/zetaclient/chains/evm/observer/outbound.go index e6bae1a3d6..b18fd1e243 100644 --- a/zetaclient/chains/evm/observer/outbound.go +++ b/zetaclient/chains/evm/observer/outbound.go @@ -100,13 +100,21 @@ func (ob *Observer) postVoteOutbound( signerAddress := ob.ZetaRepo().GetOperatorAddress() + // For ZETA coin type, set gas values to 0 to skip the refund logic in zetacore. + gasUsed := receipt.GasUsed + gasPrice := math.NewIntFromBigInt(transaction.GasPrice()) + if coinType == coin.CoinType_Zeta { + gasUsed = 0 + gasPrice = math.NewInt(0) + } + msg := crosschaintypes.NewMsgVoteOutbound( signerAddress, cctxIndex, receipt.TxHash.Hex(), receipt.BlockNumber.Uint64(), - receipt.GasUsed, - math.NewIntFromBigInt(transaction.GasPrice()), + gasUsed, + gasPrice, transaction.Gas(), math.NewUintFromBigInt(receiveValue), receiveStatus,