"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.getCurrencyConfiguration = void 0;
const LiveConfig_1 = require("@ledgerhq/live-config/LiveConfig");
const getCurrencyConfiguration = (currency) => {
    const currencyData = LiveConfig_1.LiveConfig.getValueByKey(`config_currency_${currency.id}`);
    if (!currencyData) {
        throw new Error(`No currency configuration available for ${currency.id}`);
    }
    return currencyData;
};
exports.getCurrencyConfiguration = getCurrencyConfiguration;
//# sourceMappingURL=index.js.map