Skip to content

The latestBlockPercentileGasPrice gas price strategy fails if the chain ID of a transaction is a big number #1892

@bbenligiray

Description

@bbenligiray

See https://github.com/api3dao/tasks/issues/85#issuecomment-1742776927

Recently polygon-testnet started including system transactions in its blocks that have big number chain IDs. ethers treats chain IDs as a Number, which causes it to throw while trying to process said transactions. The latestBlockPercentileGasPrice gas price strategy processes individual transactions from past blocks, which means it would also be affected by this.

Two possible solutions:

  • Remove latestBlockPercentileGasPrice altogether
  • Wrap the ethers function to preprocess transactions so that ethers doesn't see this big number chain IDs (the solution used to address https://github.com/api3dao/tasks/issues/85)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions