From 75feb5b36560b786a54e97280352c0d70c3e2f06 Mon Sep 17 00:00:00 2001 From: Daniel Wang <99078276+dantaik@users.noreply.github.com> Date: Mon, 28 Oct 2024 14:12:08 +0800 Subject: [PATCH] chore(protocol): change Hekla sharingPctg to 80% & gasIssuancePerSecond to 1000000 (#18322) --- packages/protocol/contracts/layer1/hekla/HeklaTaikoL1.sol | 4 ++-- packages/protocol/test/layer2/Lib1559Math.t.sol | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/protocol/contracts/layer1/hekla/HeklaTaikoL1.sol b/packages/protocol/contracts/layer1/hekla/HeklaTaikoL1.sol index 162ca9e930c..df331237bb0 100644 --- a/packages/protocol/contracts/layer1/hekla/HeklaTaikoL1.sol +++ b/packages/protocol/contracts/layer1/hekla/HeklaTaikoL1.sol @@ -22,8 +22,8 @@ contract HeklaTaikoL1 is TaikoL1 { maxAnchorHeightOffset: 64, baseFeeConfig: LibSharedData.BaseFeeConfig({ adjustmentQuotient: 8, - sharingPctg: 75, - gasIssuancePerSecond: 5_000_000, + sharingPctg: 80, + gasIssuancePerSecond: 1_000_000, minGasExcess: 1_340_000_000, maxGasIssuancePerBlock: 600_000_000 // two minutes }), diff --git a/packages/protocol/test/layer2/Lib1559Math.t.sol b/packages/protocol/test/layer2/Lib1559Math.t.sol index dd821e0e13e..b650f231e23 100644 --- a/packages/protocol/test/layer2/Lib1559Math.t.sol +++ b/packages/protocol/test/layer2/Lib1559Math.t.sol @@ -36,7 +36,7 @@ contract TestLib1559Math is TaikoL2Test { console2.log("Mainnet minimal basefee: ", Lib1559Math.basefee(1_340_000_000, 5_000_000 * 8)); } - function test_change_of_quotient_and_gips() public { + function test_change_of_quotient_and_gasIssuancePerSecond() public { uint64 excess = 150 * 2_000_000; uint64 target = 4 * 2_000_000; uint256 unit = 10_000_000; // 0.01 gwei @@ -74,7 +74,7 @@ contract TestLib1559Math is TaikoL2Test { } } - function test_change_of_quotient_and_gips2() public { + function test_change_of_quotient_and_gasIssuancePerSecond2() public { uint64 excess = 1; uint64 target = 60_000_000 * 8; uint256 unit = 10_000_000; // 0.01 gwei