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