nexushub-commands 1.5.0 → 1.5.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.
@@ -207,7 +207,7 @@ tslib_1.__decorate([
207
207
  {
208
208
  text: x.name,
209
209
  command: DepositCommand,
210
- payload: Object.assign(Object.assign({}, args), { coin: x.name }),
210
+ payload: Object.assign(Object.assign({}, args), { coin: x.code }),
211
211
  },
212
212
  ]),
213
213
  },
@@ -94,7 +94,7 @@ let GetDepositOrderCommand = class GetDepositOrderCommand extends evogram_1.Comm
94
94
  // prettier-ignore
95
95
  header: '<blockquote><b>📥 Создана заявка на пополнение</b></blockquote>\n\n' +
96
96
  `<i>— Сумма пополнения: ${order.amount} ${order.currency}</i>\n` +
97
- `<i>— Курс: ${order.currency} ≈ ${order.crypto.rate} ${order.crypto.currency}</i>\n\n` +
97
+ `<i>— Курс: 1 ${order.currency} ≈ ${order.crypto.rate} ${order.crypto.currency}</i>\n\n` +
98
98
  `<i>— Сеть пополнения: ${order.crypto.wallet.currency.name} / ${order.crypto.wallet.network}</i>\n` +
99
99
  `<i>— Время пополнения: до ${new Date(order.expiresAt).toLocaleString('ru')} по МКС</i>\n\n` +
100
100
  `<b>${order.crypto.wallet.address}</b>`,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nexushub-commands",
3
- "version": "1.5.0",
3
+ "version": "1.5.2",
4
4
  "main": "./lib/index.js",
5
5
  "license": "MIT",
6
6
  "dependencies": {
@@ -93,7 +93,7 @@ export class DepositCommand extends Command {
93
93
  {
94
94
  text: x.name,
95
95
  command: DepositCommand,
96
- payload: { ...args, coin: x.name },
96
+ payload: { ...args, coin: x.code },
97
97
  },
98
98
  ]),
99
99
  },
@@ -105,8 +105,8 @@ export class GetDepositOrderCommand extends Command {
105
105
  '<blockquote><b>📥 Создана заявка на пополнение</b></blockquote>\n\n' +
106
106
 
107
107
  `<i>— Сумма пополнения: ${order.amount} ${order.currency}</i>\n` +
108
- `<i>— Курс: ${order.currency} ≈ ${order.crypto.rate} ${order.crypto.currency}</i>\n\n` +
109
-
108
+ `<i>— Курс: 1 ${order.currency} ≈ ${order.crypto.rate} ${order.crypto.currency}</i>\n\n` +
109
+
110
110
  `<i>— Сеть пополнения: ${order.crypto.wallet.currency.name} / ${order.crypto.wallet.network}</i>\n` +
111
111
  `<i>— Время пополнения: до ${new Date(order.expiresAt).toLocaleString('ru')} по МКС</i>\n\n` +
112
112