@jetthai/cuora 1.1.24 → 1.1.25
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.
- package/CHANGELOG.md +2 -0
- package/dist/bundle.mjs +12 -10
- package/package.json +1 -1
- package/src/machine/withdraw_crypto.js +6 -5
- package/src/machine/withdraw_vn.js +6 -5
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
|
|
4
4
|
|
|
5
|
+
### [1.1.25](https://github.com/jetthai/cuora-module/compare/v1.1.24...v1.1.25) (2023-01-04)
|
|
6
|
+
|
|
5
7
|
### [1.1.24](https://github.com/jetthai/cuora-module/compare/v1.1.23...v1.1.24) (2023-01-04)
|
|
6
8
|
|
|
7
9
|
### [1.1.23](https://github.com/jetthai/cuora-module/compare/v1.1.22...v1.1.23) (2023-01-03)
|
package/dist/bundle.mjs
CHANGED
|
@@ -14806,6 +14806,7 @@ function withdraw_vn (request) {
|
|
|
14806
14806
|
attachmentType: null, // null | 'withdraw' | 'pool'
|
|
14807
14807
|
maximumWithdrawAmount: 0,
|
|
14808
14808
|
enableWithdrawAmount: 0,
|
|
14809
|
+
enableWithdraw: false,
|
|
14809
14810
|
|
|
14810
14811
|
amount: null,
|
|
14811
14812
|
bank: null,
|
|
@@ -15117,6 +15118,7 @@ function withdraw_vn (request) {
|
|
|
15117
15118
|
maximumWithdrawAmount: +maximumWithdrawAmount,
|
|
15118
15119
|
enableWithdrawAmount: +enableWithdrawAmount,
|
|
15119
15120
|
amount: +enableWithdrawAmount,
|
|
15121
|
+
enableWithdraw,
|
|
15120
15122
|
}
|
|
15121
15123
|
}),
|
|
15122
15124
|
setOtp: assign((context, event) => {
|
|
@@ -15171,13 +15173,12 @@ function withdraw_vn (request) {
|
|
|
15171
15173
|
return bank && amount > 0
|
|
15172
15174
|
},
|
|
15173
15175
|
isConvertible: (context, event) => {
|
|
15174
|
-
const {
|
|
15175
|
-
return
|
|
15176
|
+
const { enableWithdraw } = context;
|
|
15177
|
+
return enableWithdraw
|
|
15176
15178
|
},
|
|
15177
15179
|
isNotWithdrawable: (context, event) => {
|
|
15178
|
-
const {
|
|
15179
|
-
|
|
15180
|
-
return withdrawLimit !== 0 || balance < minWithdrawAmount
|
|
15180
|
+
const { enableWithdraw } = context;
|
|
15181
|
+
return !enableWithdraw
|
|
15181
15182
|
},
|
|
15182
15183
|
isOtpRequired: (context, event) => {
|
|
15183
15184
|
return event.data?.status === 'otp-verifying'
|
|
@@ -15278,6 +15279,7 @@ function withdraw_crypto (request) {
|
|
|
15278
15279
|
|
|
15279
15280
|
maxWithdrawAmount: null,
|
|
15280
15281
|
availableWithdrawAmount: null,
|
|
15282
|
+
enableWithdraw: false,
|
|
15281
15283
|
|
|
15282
15284
|
attachmentType: null, // null | 'withdraw' | 'pool'
|
|
15283
15285
|
|
|
@@ -15606,6 +15608,7 @@ function withdraw_crypto (request) {
|
|
|
15606
15608
|
maximumWithdrawAmount: +maximumWithdrawAmount,
|
|
15607
15609
|
enableWithdrawAmount: +enableWithdrawAmount,
|
|
15608
15610
|
amount: +enableWithdrawAmount,
|
|
15611
|
+
enableWithdraw,
|
|
15609
15612
|
}
|
|
15610
15613
|
|
|
15611
15614
|
// const rules = event.data.rules.filter((rule) => rule.maxWithdrawAmount > 0)
|
|
@@ -15714,13 +15717,12 @@ function withdraw_crypto (request) {
|
|
|
15714
15717
|
return selectedNetwork && address && amount && charge
|
|
15715
15718
|
},
|
|
15716
15719
|
isConvertible: (context, event) => {
|
|
15717
|
-
const {
|
|
15718
|
-
return
|
|
15720
|
+
const { enableWithdraw } = context;
|
|
15721
|
+
return enableWithdraw
|
|
15719
15722
|
},
|
|
15720
15723
|
isNotWithdrawable: (context, event) => {
|
|
15721
|
-
const {
|
|
15722
|
-
|
|
15723
|
-
return withdrawLimit !== 0 || balance < minWithdrawAmount
|
|
15724
|
+
const { enableWithdraw } = context;
|
|
15725
|
+
return !enableWithdraw
|
|
15724
15726
|
},
|
|
15725
15727
|
isCalculable: (context, event) => {
|
|
15726
15728
|
const { selectedNetwork, amount } = context;
|
package/package.json
CHANGED
|
@@ -24,6 +24,7 @@ export default function (request) {
|
|
|
24
24
|
|
|
25
25
|
maxWithdrawAmount: null,
|
|
26
26
|
availableWithdrawAmount: null,
|
|
27
|
+
enableWithdraw: false,
|
|
27
28
|
|
|
28
29
|
attachmentType: null, // null | 'withdraw' | 'pool'
|
|
29
30
|
|
|
@@ -352,6 +353,7 @@ export default function (request) {
|
|
|
352
353
|
maximumWithdrawAmount: +maximumWithdrawAmount,
|
|
353
354
|
enableWithdrawAmount: +enableWithdrawAmount,
|
|
354
355
|
amount: +enableWithdrawAmount,
|
|
356
|
+
enableWithdraw,
|
|
355
357
|
}
|
|
356
358
|
|
|
357
359
|
// const rules = event.data.rules.filter((rule) => rule.maxWithdrawAmount > 0)
|
|
@@ -460,13 +462,12 @@ export default function (request) {
|
|
|
460
462
|
return selectedNetwork && address && amount && charge
|
|
461
463
|
},
|
|
462
464
|
isConvertible: (context, event) => {
|
|
463
|
-
const {
|
|
464
|
-
return
|
|
465
|
+
const { enableWithdraw } = context
|
|
466
|
+
return enableWithdraw
|
|
465
467
|
},
|
|
466
468
|
isNotWithdrawable: (context, event) => {
|
|
467
|
-
const {
|
|
468
|
-
|
|
469
|
-
return withdrawLimit !== 0 || balance < minWithdrawAmount
|
|
469
|
+
const { enableWithdraw } = context
|
|
470
|
+
return !enableWithdraw
|
|
470
471
|
},
|
|
471
472
|
isCalculable: (context, event) => {
|
|
472
473
|
const { selectedNetwork, amount } = context
|
|
@@ -26,6 +26,7 @@ export default function (request) {
|
|
|
26
26
|
attachmentType: null, // null | 'withdraw' | 'pool'
|
|
27
27
|
maximumWithdrawAmount: 0,
|
|
28
28
|
enableWithdrawAmount: 0,
|
|
29
|
+
enableWithdraw: false,
|
|
29
30
|
|
|
30
31
|
amount: null,
|
|
31
32
|
bank: null,
|
|
@@ -337,6 +338,7 @@ export default function (request) {
|
|
|
337
338
|
maximumWithdrawAmount: +maximumWithdrawAmount,
|
|
338
339
|
enableWithdrawAmount: +enableWithdrawAmount,
|
|
339
340
|
amount: +enableWithdrawAmount,
|
|
341
|
+
enableWithdraw,
|
|
340
342
|
}
|
|
341
343
|
}),
|
|
342
344
|
setOtp: assign((context, event) => {
|
|
@@ -391,13 +393,12 @@ export default function (request) {
|
|
|
391
393
|
return bank && amount > 0
|
|
392
394
|
},
|
|
393
395
|
isConvertible: (context, event) => {
|
|
394
|
-
const {
|
|
395
|
-
return
|
|
396
|
+
const { enableWithdraw } = context
|
|
397
|
+
return enableWithdraw
|
|
396
398
|
},
|
|
397
399
|
isNotWithdrawable: (context, event) => {
|
|
398
|
-
const {
|
|
399
|
-
|
|
400
|
-
return withdrawLimit !== 0 || balance < minWithdrawAmount
|
|
400
|
+
const { enableWithdraw } = context
|
|
401
|
+
return !enableWithdraw
|
|
401
402
|
},
|
|
402
403
|
isOtpRequired: (context, event) => {
|
|
403
404
|
return event.data?.status === 'otp-verifying'
|