@yoroi/swap
Version:
The Swap package of Yoroi SDK
15 lines (14 loc) • 460 B
JavaScript
;
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