Skip to content

Commit 29d16de

Browse files
refactor(starknet_batcher): fee market documentation reshape (#2964)
1 parent bbe7f0b commit 29d16de

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

crates/starknet_batcher/src/fee_market.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@ const MAX_BLOCK_SIZE: u64 = 4000000000; // In gas units. It's equivalent to 40M
1515
/// Calculate the base gas price for the next block according to EIP-1559.
1616
///
1717
/// # Parameters
18-
/// - `price`: The base gas price of the current block.
18+
/// - `price`: The base gas price per unit (in fri) of the current block.
1919
/// - `gas_used`: The total gas used in the current block.
20-
/// - `gas_target`: The target gas usage per block (usually half of the gas limit).
20+
/// - `gas_target`: The target gas usage per block (usually half of a block's gas limit).
2121
pub fn calculate_next_base_gas_price(price: u64, gas_used: u64, gas_target: u64) -> u64 {
2222
// Setting the target at 50% of the max block size balances the rate of gas price changes,
2323
// helping to prevent sudden spikes, particularly during increases, for a better user

0 commit comments

Comments
 (0)