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

reset lastBaseFee if fee config changes #241

Merged
merged 7 commits into from
Aug 30, 2022
Merged

Conversation

darioush
Copy link
Collaborator

@darioush darioush commented Aug 30, 2022

The computation in suggestDynamicFees holds on to lastBaseFee even if the fee was modified in the most recent block. This causes an issue for estimating the fee of the block immediately following a block with a change to the min base fee.

closes: #228

@darioush darioush requested a review from aaronbuchwald August 30, 2022 01:37
@darioush darioush marked this pull request as ready for review August 30, 2022 17:01
@aaronbuchwald aaronbuchwald self-requested a review August 30, 2022 19:33
Copy link
Collaborator

@aaronbuchwald aaronbuchwald left a comment

Choose a reason for hiding this comment

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

LGTM

@aaronbuchwald aaronbuchwald merged commit 5bfb71e into master Aug 30, 2022
@ceyonur ceyonur deleted the gas-estimation-fix branch February 22, 2023 14:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Gas Fee Estimation problem after setFeeConfig is called
3 participants