Skip to content

Better EIP 1559 support for oracle gas price #1059

@schmanu

Description

@schmanu

Is your feature request related to a problem? Please describe.
For EIP 1559 we need different values for gas price estimation:

  • maxFeePerGas OR baseFee
  • maxPriorityFeePerGas

This is currently poorly reflected by our oracle settings as we can only configure one Oracle parameter.

Provide references to the feature you are implementing that requires this change
Workaround for this in the web interface: safe-global/safe-wallet-monorepo#3380

Describe the solution you'd like
We need to be able to configure multiple oracle parameters for 1559 networks. Sadly oracles can vary in which parameters they return. So ideally we invent a new 1559 oracle type which can have different fields:

  • uri (required)
  • baseFeeParameter
  • maxPriorityFeePerGasParameter
  • maxFeePerGasParameter

Any two of the paramter values would be required as the third value can be computed from any combinations

  • baseFeeParameter + maxPriorityFeePerGasParameter = maxFeePerGas
  • maxFeePerGasParameter - baseFeeParameter = maxPriorityFeePerGas
  • maxFeePerGasParameter - maxPriorityFeePerGasParameter = baseFeeParameter

Describe alternatives you've considered
None

Additional context

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