@buzzr/dfs-engine
    Preparing search index...

    Function isWithinReconciliationWindow

    • Returns true when a bet's settledAt is within its league's window relative to now. Returns false for unsupported leagues (so callers don't have to gate). now is injectable for tests.

      Bets settled in the future (negative elapsed) are treated as in-window — defensive against minor clock skew between the DB and the runtime.

      Parameters

      • league: string | null | undefined
      • settledAt: string | Date | null | undefined
      • now: number | Date = ...

      Returns boolean