Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Base gas fee fix #171

Merged
merged 2 commits into from
Apr 8, 2024
Merged

Base gas fee fix #171

merged 2 commits into from
Apr 8, 2024

Conversation

0xSulpiride
Copy link
Member

@0xSulpiride 0xSulpiride commented Apr 8, 2024

Description

  • fixed pvg estimation on base
  • added etherscan gas oracle for base

image

Types of changes

What types of changes does your code introduce?
Put an x in the boxes that apply

  • Bugfix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Documentation Update
  • Code style update (formatting, renaming)
  • Refactoring (no functional changes, no api changes)
  • Build related changes
  • Other (please describe):

Further comments (optional)

Copy link
Member

@ch4r10t33r ch4r10t33r left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pls test the values returned by th3 gas oracle

export const getBaseGasFee: IOracle = (
apiKey: string | undefined
): Promise<IGetGasFeeResult> =>
getEtherscanGasFee("https://api.basescan.org/api", apiKey);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does this work? I thought this too was returning incorrect values?

Copy link
Member Author

@0xSulpiride 0xSulpiride Apr 8, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

checked these values and they seem to be correct

image

That's 0.024 Gwei - etherscan transactions show this value too

@0xSulpiride 0xSulpiride merged commit 334cc51 into master Apr 8, 2024
2 of 5 checks passed
@0xSulpiride 0xSulpiride deleted the base-gas-fee-fix branch April 8, 2024 07:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants