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

feat(protocol): basefee goes up faster [do not merge] #16551

Closed
wants to merge 5 commits into from

Conversation

dantaik
Copy link
Contributor

@dantaik dantaik commented Mar 28, 2024

In this PR, I change the base fee math based on OZ's feedback (multiplying gasTarget * adjustmentQuotient).

You can see from the modified test that it also works, and the basefee goes up faster -- it will reach 1gwei if gasExcess is 167*gasTarget, instead of the previous 327*gasTarget.

From this PR I think we can confirm both approach works (with or without multiplying gasTarget * adjustmentQuotient), it's a matter of time to accumulate a bigger gasExcess.

I encourage @Brechtpd and @adaki2004 to review this PR but do not suggest to merge it.

@dantaik dantaik marked this pull request as ready for review March 28, 2024 10:14
@dantaik dantaik changed the title feat(protocol): basefee goes up faster feat(protocol): basefee goes up faster [do not merge] Mar 28, 2024
Copy link

openzeppelin-code bot commented Mar 28, 2024

feat(protocol): basefee goes up faster [do not merge]

Generated at commit: 39986fcf89f6ebc9dcd24f7cb188d1491c53068b

🚨 Report Summary

Severity Level Results
Contracts Critical
High
Medium
Low
Note
Total
2
2
0
3
41
48
Dependencies Critical
High
Medium
Low
Note
Total
0
0
0
0
0
0

For more details view the full report in OpenZeppelin Code Inspector

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.

1 participant