-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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): change min base fee to 0.01 gwei #16914
Conversation
feat(protocol): change min base fee to 0.01 gwei
🚨 Report Summary
For more details view the full report in OpenZeppelin Code Inspector |
console2.log("base fee:", i, baseFee); | ||
} | ||
|
||
// base fee will reach 1 gwei if gasExcess > 18540000000 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
// base fee will reach 1 gwei if gasExcess > 18540000000 | |
// base fee will reach 0.1 gwei if gasExcess > 18540000000 |
|
||
for (; baseFee < 1 gwei; ++i) { | ||
baseFee = Lib1559Math.basefee(config.gasTargetPerL1Block * i, adjustmentFactor); | ||
console2.log("base fee:", i, baseFee); | ||
} | ||
|
||
// base fee will reach 1 gwei if gasExcess > 19620000000 | ||
// base fee will reach 10 gwei if gasExcess > 19620000000 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
// base fee will reach 10 gwei if gasExcess > 19620000000 | |
// base fee will reach 1 gwei if gasExcess > 19620000000 |
@@ -33,7 +41,7 @@ contract TestLib1559Math is TaikoTest { | |||
} | |||
|
|||
// base fee will reach 10 gwei if gasExcess > 20760000000 | |||
console2.log("base fee will reach 10 gwei if gasExcess >", config.gasTargetPerL1Block * i); | |||
console2.log("base fee will reach 1 gwei if gasExcess >", config.gasTargetPerL1Block * i); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
console2.log("base fee will reach 1 gwei if gasExcess >", config.gasTargetPerL1Block * i); | |
console2.log("base fee will reach 10 gwei if gasExcess >", config.gasTargetPerL1Block * i); |
The current 0.1 gwei base fee is still too large comparing with some alternative L2s.