UNPKG

@bluefin-exchange/bluefin7k-aggregator-sdk

Version:
16 lines (15 loc) 585 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.normalizeTokenType = normalizeTokenType; exports.denormalizeTokenType = denormalizeTokenType; exports.checkIsSui = checkIsSui; const tokens_1 = require("../constants/tokens"); function normalizeTokenType(type) { return type === tokens_1.SUI_TYPE ? tokens_1.SUI_FULL_TYPE : type; } function denormalizeTokenType(type) { return type === tokens_1.SUI_FULL_TYPE ? tokens_1.SUI_TYPE : type; } function checkIsSui(type) { return type === tokens_1.SUI_FULL_TYPE || type === tokens_1.SUI_TYPE; }