node icon indicating copy to clipboard operation
node copied to clipboard

`zetacore` : gas payment multiplier for coinType Zeta

Open kingpinXD opened this issue 9 months ago • 2 comments

When paying for gas (for a call on connected chain )

We use a multiplier when the CoinType is Zeta

	// overpays gas price
	const multiplier = 2
	gasPrice = gasPrice.MulUint64(multiplier)
	priorityFee = priorityFee.MulUint64(multiplier)

But this multiplier is not user For ERC20 and GAS types

The logic should be refactored to be uniform for all cointypes .

kingpinXD avatar Mar 19 '25 05:03 kingpinXD

Where it is used? In general we stopped any kind of maintainance on the ZETA withdraws for now

lumtis avatar Mar 19 '25 15:03 lumtis

Its used here https://github.com/zeta-chain/zeta-node/blob/368114f3f7a5bd38637684c0376f7a83b75633e6/x/crosschain/keeper/gas_payment.go#L358-L369

This calcualtion may be used by a V1 msg-passing cctx , with receiver chain set as a connected Chain.

kingpinXD avatar Mar 19 '25 16:03 kingpinXD