/**
 * ISO-4217 Currency Service
 */

import { getDb } from '../db/index.js'
import { logger } from '../lib/logger.js'

export class CurrencyService {
  async getCurrencyMetadata(code: string) {
    const db = getDb()
    const result = await db.query(
      `SELECT * FROM currencies WHERE code = $1`,
      [code]
    )
    return result.rows[0] || null
  }
}

export const currencyService = new CurrencyService()

