package markets

import (
	"log/slog"

	"github.com/costap/quarkshologridledger/tongo-core/internal/domain/entity"
)

// Service manages market hydration, pricing, and suspension.
type Service struct {
	logger *slog.Logger
}

// New creates a new Service instance.
func New(logger *slog.Logger) *Service {
	return &Service{
		logger: logger,
	}
}

// HydrateMarkets generates markets for a new match from templates.
func (s *Service) HydrateMarkets(match *entity.Match, templates []entity.MarketTemplate) {
	s.logger.Debug("Hydrating markets from templates for match", "id", match.ID)
}

// UpdatePrices converts probabilities to prices with margin.
func (s *Service) UpdatePrices(match *entity.Match) {
	s.logger.Debug("Updating market prices for match", "id", match.ID)
}

// SuspendAll suspends all markets in a match.
func (s *Service) SuspendAll(match *entity.Match, durationTicks int) {
	s.logger.Info("Suspending all markets for match", "id", match.ID, "duration", durationTicks)
}
