Skip to content

Simplify the overrides in admin CLI due to EIP1559 #1506

@aTeoke

Description

@aTeoke

@Mertcan Karik
reported that admin CLI doesn't work with the default parameters on Polygon because it complains about the gas fee being too low. Admin CLI seems to auto-detect that Polygon supports EIP1559 and use it with a 3.12 gwei tip, the problem here is that Polygon block space demand is too volatile because of the low block time, causing large tips to be required very often.
In short, admin CLI doesn't work on Polygon with default parameters. This is a significant problem.

Instead of abandoning EIP1559 transactions, user will be able to choose EIP1559 or our legacy gas oracle. We will utilize Admin CLI overrides

  • no override - we use fetchProviderRecommendedGasPrice from our oracle (legacy)
  • override to use EIP1559 - we use fetchProviderRecommendedEip1559GasPrice from our oracle
  • override to use fixed price - we use fetchConstantGasPrice from our oracle

based on discussion here: https://api3workspace.slack.com/archives/C02AYRX8D89/p1666617038040259

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions