UNPKG

@yoroi/swap

Version:
15 lines (14 loc) 460 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.getAllowedDexes = getAllowedDexes; var _common = require("@yoroi/common"); var _types = require("./types"); function getAllowedDexes({ blocked = [] } = {}) { const dexesWithoutUnsupported = Object.values(_types.Dex).filter(dex => dex !== _types.Dex.Unsupported); return (0, _common.difference)(dexesWithoutUnsupported, blocked); } //# sourceMappingURL=helpers.js.map