def METHOD_NAME(self, transaction: SignedTransactionAPI) -> int:
    return min(
        transaction.max_fee_per_gas - self.execution_context.base_fee_per_gas,
        transaction.max_priority_fee_per_gas,
    )