nexushub-commands 2.9.1 → 2.9.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -262,7 +262,7 @@ tslib_1.__decorate([
|
|
|
262
262
|
let minAmount = (_d = minAmountSetting[config.currency]) !== null && _d !== void 0 ? _d : (yield minAmountSetting['RUB'].convert({ from: 'RUB', to: config.currency, ceiled: true }));
|
|
263
263
|
const minDepositByMethod = yield config.API.get('/config/minDepositByMethod').then((x) => x.data.value);
|
|
264
264
|
// prettier-ignore
|
|
265
|
-
if (minDepositByMethod && minDepositByMethod[args.method] !== undefined && (yield minAmount.convert({ from: config.currency, to: 'RUB' })) < minDepositByMethod[args.method])
|
|
265
|
+
if (config.currency.toUpperCase() === 'RUB' && minDepositByMethod && minDepositByMethod[args.method] !== undefined && (yield minAmount.convert({ from: config.currency, to: 'RUB' })) < minDepositByMethod[args.method])
|
|
266
266
|
minAmount = yield minDepositByMethod[args.method].convert({ from: 'RUB', to: config.currency });
|
|
267
267
|
validateArgs.minAmount = minAmount;
|
|
268
268
|
// Функция для красивого округления суммы
|
package/package.json
CHANGED
|
@@ -145,7 +145,7 @@ export class DepositCommand extends Command {
|
|
|
145
145
|
|
|
146
146
|
const minDepositByMethod = await config.API.get('/config/minDepositByMethod').then((x) => x.data.value)
|
|
147
147
|
// prettier-ignore
|
|
148
|
-
if (minDepositByMethod && minDepositByMethod[args.method] !== undefined && (await minAmount.convert({ from: config.currency, to: 'RUB' })) < minDepositByMethod[args.method])
|
|
148
|
+
if (config.currency.toUpperCase() === 'RUB' && minDepositByMethod && minDepositByMethod[args.method] !== undefined && (await minAmount.convert({ from: config.currency, to: 'RUB' })) < minDepositByMethod[args.method])
|
|
149
149
|
minAmount = await minDepositByMethod[args.method].convert({ from: 'RUB', to: config.currency });
|
|
150
150
|
|
|
151
151
|
validateArgs.minAmount = minAmount
|