anvil::eth::fees

Function calculate_next_block_base_fee

Source
pub fn calculate_next_block_base_fee(
    gas_used: u128,
    gas_limit: u128,
    base_fee: u64,
) -> u64
Expand description

Calculate base fee for next block. EIP-1559 spec