pub fn compute_max_fee(
base_fee_per_gas_wei: u128,
priority_fee_per_gas_wei: u128,
base_fee_buffer_bps: u32,
) -> Result<u128>Expand description
Computes the EIP-1559 max fee per gas: the base fee with base_fee_buffer_bps applied
plus the priority fee, without applying any ceiling.
ยงErrors
Returns an error if the arithmetic overflows.