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): change min base fee to 0.01 gwei #16914

Merged
merged 3 commits into from
Apr 29, 2024
Merged

Conversation

dantaik
Copy link
Contributor

@dantaik dantaik commented Apr 29, 2024

The current 0.1 gwei base fee is still too large comparing with some alternative L2s.

Copy link

openzeppelin-code bot commented Apr 29, 2024

feat(protocol): change min base fee to 0.01 gwei

Generated at commit: 530b4da0950551c407a305f0df74aad663077fed

🚨 Report Summary

Severity Level Results
Contracts Critical
High
Medium
Low
Note
Total
2
2
0
5
40
49
Dependencies Critical
High
Medium
Low
Note
Total
0
0
0
0
0
0

For more details view the full report in OpenZeppelin Code Inspector

@dantaik dantaik added this pull request to the merge queue Apr 29, 2024
Merged via the queue into main with commit 8028614 Apr 29, 2024
7 checks passed
@dantaik dantaik deleted the lower_min_base_fee branch April 29, 2024 13:51
console2.log("base fee:", i, baseFee);
}

// base fee will reach 1 gwei if gasExcess > 18540000000
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
// 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
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
// 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);
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
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);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants