UNPKG

@yoroi/swap

Version:
11 lines (10 loc) 334 B
"use strict"; import { difference } from '@yoroi/common'; import { Dex } from './types'; export function getAllowedDexes({ blocked = [] } = {}) { const dexesWithoutUnsupported = Object.values(Dex).filter(dex => dex !== Dex.Unsupported); return difference(dexesWithoutUnsupported, blocked); } //# sourceMappingURL=helpers.js.map