"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.belongsToSameNetwork = exports.getBaseId = exports.sortAccountsByFiatValue = exports.groupCurrenciesByAsset = void 0;
var groupCurrenciesByAsset_1 = require("./groupCurrenciesByAsset");
Object.defineProperty(exports, "groupCurrenciesByAsset", { enumerable: true, get: function () { return groupCurrenciesByAsset_1.groupCurrenciesByAsset; } });
var sortAccountsByFiatValue_1 = require("./sortAccountsByFiatValue");
Object.defineProperty(exports, "sortAccountsByFiatValue", { enumerable: true, get: function () { return sortAccountsByFiatValue_1.sortAccountsByFiatValue; } });
const getBaseId = (currency) => currency.type === "CryptoCurrency" ? currency.id : currency.parentCurrency.id;
exports.getBaseId = getBaseId;
function belongsToSameNetwork(elem, network) {
    return getBaseId(elem) === getBaseId(network);
}
exports.belongsToSameNetwork = belongsToSameNetwork;
//# sourceMappingURL=index.js.map