// lib/accounting/core/currency-snapshot.ts

export interface CurrencySnapshot {
  baseCurrency: string;
  transactionCurrency: string;
  exchangeRate: number;
  currencyPrecision: number;
  asOf: string; // ISO timestamp
}

export function snapshotCurrency(
  baseCurrency: string,
  transactionCurrency: string,
  exchangeRate: number,
  currencyPrecision: number,
  asOf: string
): CurrencySnapshot {
  return {
    baseCurrency,
    transactionCurrency,
    exchangeRate,
    currencyPrecision,
    asOf,
  };
}
