@yoroi/swap
Version:
The Swap package of Yoroi SDK
37 lines (36 loc) • 1.3 kB
JavaScript
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.getDexByProtocol = getDexByProtocol;
var _types = require("@yoroi/types");
function getDexByProtocol(protocol) {
switch (protocol) {
case _types.Swap.Protocol.Minswap_v1:
case _types.Swap.Protocol.Minswap_v2:
case _types.Swap.Protocol.Minswap_stable:
return _types.Swap.Dex.Minswap;
case _types.Swap.Protocol.Muesliswap_v2:
case _types.Swap.Protocol.Muesliswap_clp:
return _types.Swap.Dex.Muesliswap;
case _types.Swap.Protocol.Spectrum_v1:
return _types.Swap.Dex.Spectrum;
case _types.Swap.Protocol.Sundaeswap_v1:
case _types.Swap.Protocol.Sundaeswap_v3:
return _types.Swap.Dex.Sundaeswap;
case _types.Swap.Protocol.Teddy_v1:
return _types.Swap.Dex.Teddy;
case _types.Swap.Protocol.Vyfi_v1:
return _types.Swap.Dex.Vyfi;
case _types.Swap.Protocol.Wingriders_v1:
case _types.Swap.Protocol.Wingriders_v2:
return _types.Swap.Dex.Wingriders;
case _types.Swap.Protocol.Splash_v1:
return _types.Swap.Dex.Splash;
case _types.Swap.Protocol.Cswap:
return _types.Swap.Dex.Cswap;
case _types.Swap.Protocol.Unsupported:
return _types.Swap.Dex.Unsupported;
}
}
//# sourceMappingURL=getDexByProtocol.js.map