23 lines
763 B
JavaScript
23 lines
763 B
JavaScript
"use strict";
|
|
/**
|
|
* USDT-only wallet capabilities for deposits and Candle Predict stakes.
|
|
*/
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
exports.USDT_WALLET_CODE = void 0;
|
|
exports.enrichWalletType = enrichWalletType;
|
|
exports.assertUsdtWalletType = assertUsdtWalletType;
|
|
exports.USDT_WALLET_CODE = 'USDT_TRC20';
|
|
function enrichWalletType(walletType) {
|
|
const enabled = walletType.code === exports.USDT_WALLET_CODE;
|
|
return {
|
|
...walletType,
|
|
depositEnabled: enabled,
|
|
predictionEnabled: enabled,
|
|
};
|
|
}
|
|
function assertUsdtWalletType(code) {
|
|
if (code !== exports.USDT_WALLET_CODE) {
|
|
throw new Error(`Only ${exports.USDT_WALLET_CODE} is supported`);
|
|
}
|
|
}
|
|
//# sourceMappingURL=walletCapabilities.js.map
|