From b7f8ed33c8f9ab39ecaf606a69653cec5c9f5d6f Mon Sep 17 00:00:00 2001 From: Stanislav Breadless Date: Wed, 20 Dec 2023 23:46:51 +0100 Subject: [PATCH] decrease the fee because of increased number of transactions --- SystemConfig.json | 4 ++-- ethereum/contracts/zksync/Config.sol | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/SystemConfig.json b/SystemConfig.json index 9b11b9636..22fd1f84d 100644 --- a/SystemConfig.json +++ b/SystemConfig.json @@ -6,8 +6,8 @@ "L1_GAS_PER_PUBDATA_BYTE": 17, "BATCH_OVERHEAD_L2_GAS": 1200000, "BATCH_OVERHEAD_L1_GAS": 1000000, - "MAX_TRANSACTIONS_IN_BATCH": 1024, - "BOOTLOADER_TX_ENCODING_SPACE": 8740224, + "MAX_TRANSACTIONS_IN_BATCH": 10000, + "BOOTLOADER_TX_ENCODING_SPACE": 9090400, "L1_TX_INTRINSIC_L2_GAS": 167157, "L1_TX_INTRINSIC_PUBDATA": 88, "L1_TX_MIN_L2_GAS_BASE": 173484, diff --git a/ethereum/contracts/zksync/Config.sol b/ethereum/contracts/zksync/Config.sol index 01a7a8f8e..8f0f33851 100644 --- a/ethereum/contracts/zksync/Config.sol +++ b/ethereum/contracts/zksync/Config.sol @@ -107,7 +107,7 @@ uint256 constant PACKED_L2_BLOCK_TIMESTAMP_MASK = 0xffffffffffffffffffffffffffff /// need to pay to compensate for the batch being closed. /// @dev It is expected that the L1 contracts will enforce that the L2 gas price will be high enough to compensate /// the operator in case the batch is closed because of tx slots filling up. -uint256 constant TX_SLOT_OVERHEAD_L2_GAS = 80000; +uint256 constant TX_SLOT_OVERHEAD_L2_GAS = 10000; /// @dev The overhead for each byte of the bootloader memory that the encoding of the transaction. /// It is roughly equal to 80kk/BOOTLOADER_MEMORY_FOR_TXS, i.e. how many gas would an L1->L2 transaction