Skip to content

Commit

Permalink
tune
Browse files Browse the repository at this point in the history
  • Loading branch information
dantaik committed Mar 28, 2024
1 parent 8d66d6e commit af98c66
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions packages/protocol/contracts/L2/LibL2Config.sol
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ library LibL2Config {
config_.gasTargetPerL1Block = 60_000_000;
config_.basefeeAdjustmentQuotient = 8;

// We pick this value to make the min base fee 0.1gwei
config_.gasExcessMinValue = 18_440_000_000;
// This value is picked to make the min base fee close to but slightly smaller than 0.1gwei
config_.gasExcessMinValue = 18_435_000_000;
}
}
2 changes: 1 addition & 1 deletion packages/protocol/test/L2/Lib1559Math.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ contract TestLib1559Math is TaikoTest {
uint256 i;

baseFee = Lib1559Math.basefee(config.gasExcessMinValue, adjustmentFactor);
assertEq(baseFee, 100_671_168); // about 0.1gwei
assertEq(baseFee, 99_627_953); // slightly smaller than 0.1gwei
console2.log("gasExcessMinValue:", config.gasExcessMinValue);
console2.log("min base fee:", baseFee);

Expand Down

0 comments on commit af98c66

Please sign in to comment.