Skip to content

Commit

Permalink
fix(protocol): refine EIP-1559 basefee calculation and gas excess adj…
Browse files Browse the repository at this point in the history
…ustment in TaikoL2 (#17871)

Co-authored-by: dantaik <[email protected]>
Co-authored-by: Brecht Devos <[email protected]>
  • Loading branch information
3 people committed Aug 6, 2024
1 parent b71a4c1 commit 132531b
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions packages/protocol/contract_layout.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,10 @@
| __gap | uint256[49] | 202 | 0 | 1568 | contracts/L2/TaikoL2.sol:TaikoL2 |
| l2Hashes | mapping(uint256 => bytes32) | 251 | 0 | 32 | contracts/L2/TaikoL2.sol:TaikoL2 |
| publicInputHash | bytes32 | 252 | 0 | 32 | contracts/L2/TaikoL2.sol:TaikoL2 |
| gasExcess | uint64 | 253 | 0 | 8 | contracts/L2/TaikoL2.sol:TaikoL2 |
| parentGasExcess | uint64 | 253 | 0 | 8 | contracts/L2/TaikoL2.sol:TaikoL2 |
| lastSyncedBlock | uint64 | 253 | 8 | 8 | contracts/L2/TaikoL2.sol:TaikoL2 |
| parentTimestamp | uint64 | 253 | 16 | 8 | contracts/L2/TaikoL2.sol:TaikoL2 |
| __deprecated2 | uint64 | 253 | 24 | 8 | contracts/L2/TaikoL2.sol:TaikoL2 |
| parentGasTarget | uint64 | 253 | 24 | 8 | contracts/L2/TaikoL2.sol:TaikoL2 |
| l1ChainId | uint64 | 254 | 0 | 8 | contracts/L2/TaikoL2.sol:TaikoL2 |
| __gap | uint256[46] | 255 | 0 | 1472 | contracts/L2/TaikoL2.sol:TaikoL2 |

Expand Down
2 changes: 1 addition & 1 deletion packages/protocol/contracts/mainnet/MainnetTaikoL1.sol
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ contract MainnetTaikoL1 is TaikoL1 {
maxAnchorHeightOffset: 64,
basefeeAdjustmentQuotient: 8,
basefeeSharingPctg: 75,
gasTargetPerL1Block: 60_000_000,
gasIssuancePerSecond: 5_000_000,
ontakeForkHeight: 374_400 // = 7200 * 52
});
}
Expand Down
2 changes: 1 addition & 1 deletion packages/protocol/utils/generate_genesis/taikoL2.ts
Original file line number Diff line number Diff line change
Expand Up @@ -515,7 +515,7 @@ async function generateContractConfigs(
// TaikoL2 => CrossChainOwned
l1ChainId,
// TaikoL2
gasExcess: param1559.gasExcess,
parentGasExcess: param1559.gasExcess,
publicInputHash: `${ethers.utils.solidityKeccak256(
["bytes32[256]"],
[
Expand Down

0 comments on commit 132531b

Please sign in to comment.