Skip to content

Remove SuggestGasPrice usage for setting the gas price when signing txs #1085

Closed

Description

@lubtd

We using by default for EVM chains a gas price retrieve from the chain directly instead of the one set in ZetaChain cctx:

suggested, err := signer.client.SuggestGasPrice(context.Background())

This can leads to inconsistency, the gas price used should always be processed on ZetaChain because it is the used used to burn the fees and reduce the amount of the tx.

If we use a bigger value for the signing than the one onchain (which is the case in smoke tests):
There is less gas burned on ZetaChain and the amount is not reduced the same as the actual fees on the external chain which leads either to a bigger zrc20 supply on ZetaChain than locked on the external (accounting issue) or a bigger value sent to the user (net loss for the TSS)

Somewhat the same issue as #1081 but for EVM chains

Activity

  1. added
    zetaclient
    security
    on Sep 4, 2023
  2. self-assigned this
    on Jun 28, 2024
  3. lubtd commented on Nov 24, 2024

    @lubtd
    ContributorAuthor

    Related issue closed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

securityzetaclient

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions