everest-npm-features 0.0.57 → 0.0.58
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/dist/{PlayArrow-jzz8Y3XD.js → PlayArrow-BRz9FV4L.js} +1 -1
- package/dist/{auth-jjVjqywi.js → auth-CD7qxhDF.js} +1 -1
- package/dist/{bank-BM66KfAv.js → bank-C2LtDonX.js} +1 -1
- package/dist/components/RocketRamp/MinimalKyc/form.js +2 -2
- package/dist/components/RocketRamp/Player/Buy/cardPayment.js +3 -3
- package/dist/components/RocketRamp/Player/Buy/confirmTransaction.js +3 -3
- package/dist/components/RocketRamp/Player/Buy/form.js +4 -4
- package/dist/components/RocketRamp/Player/Buy/index.js +5 -5
- package/dist/components/RocketRamp/Player/Dashboard/index.js +2 -2
- package/dist/components/RocketRamp/Player/Sell/confirmTransaction.js +3 -3
- package/dist/components/RocketRamp/Player/Sell/form.js +4 -4
- package/dist/components/RocketRamp/Player/Sell/index.js +5 -5
- package/dist/components/RocketRamp/Player/SignIn/index.js +2 -2
- package/dist/components/RocketRamp/Player/SignIn/loginForm.js +2 -2
- package/dist/components/RocketRamp/Player/SignIn/otpForm.js +2 -2
- package/dist/components/RocketRamp/Player/SignUp/email.js +2 -2
- package/dist/components/RocketRamp/Player/SignUp/index.js +2 -2
- package/dist/components/RocketRamp/Player/SignUp/personalInfo.js +2 -2
- package/dist/components/RocketRamp/ResetPassword/index.js +2 -2
- package/dist/components/RocketRamp/Store/SignUp/index.js +2 -2
- package/dist/components/RocketRamp/Store/SignUp/personalInfo.js +2 -2
- package/dist/components/RocketRamp/Store/SignUp/storeInfo.js +2 -2
- package/dist/components/RocketRamp/Transactions/index.js +2 -2
- package/dist/components/Shared/FullKyc/edd.js +2 -2
- package/dist/components/Shared/FullKyc/index.js +3 -3
- package/dist/components/Shared/FullKyc/pep.js +1 -1
- package/dist/components/Shared/FullKyc/personalDetails.js +2 -2
- package/dist/components/Shared/FullKyc/userInfo.js +3 -3
- package/dist/components/Shared/MinimalKyc/index.js +2 -2
- package/dist/components/Wallet/Account/createIban.js +1 -1
- package/dist/components/Wallet/Account/eWallet.d.ts +4 -2
- package/dist/components/Wallet/Account/eWallet.js +30 -28
- package/dist/components/Wallet/Account/iban.d.ts +4 -2
- package/dist/components/Wallet/Account/iban.js +30 -28
- package/dist/components/Wallet/Account/ibanItem.d.ts +4 -2
- package/dist/components/Wallet/Account/ibanItem.js +179 -175
- package/dist/components/Wallet/Account/index.js +190 -177
- package/dist/components/Wallet/Account/sendIban.js +2 -2
- package/dist/components/Wallet/Buy/confirmTransaction.js +4 -4
- package/dist/components/Wallet/Buy/form.js +4 -4
- package/dist/components/Wallet/Buy/index.js +6 -6
- package/dist/components/Wallet/Deposit/index.js +1 -1
- package/dist/components/Wallet/EnterpriseKyc/edd.js +1 -1
- package/dist/components/Wallet/EnterpriseKyc/index.js +3 -3
- package/dist/components/Wallet/EnterpriseKyc/orgDetails.js +2 -2
- package/dist/components/Wallet/EnterpriseKyc/orgInfo.js +1 -1
- package/dist/components/Wallet/EnterpriseKyc/verify.js +1 -1
- package/dist/components/Wallet/History/index.js +2 -2
- package/dist/components/Wallet/MoveToEthereumOrEverChain/index.d.ts +7 -13
- package/dist/components/Wallet/MoveToEthereumOrEverChain/index.js +215 -231
- package/dist/components/Wallet/Portfolio/index.js +5 -5
- package/dist/components/Wallet/Portfolio/tokenRow.js +1 -1
- package/dist/components/Wallet/Profile/documents.js +1 -1
- package/dist/components/Wallet/Profile/index.js +1 -1
- package/dist/components/Wallet/Profile/storage.js +1 -1
- package/dist/components/Wallet/Receive/index.js +2 -2
- package/dist/components/Wallet/Sell/confirmTransaction.js +3 -3
- package/dist/components/Wallet/Sell/form.js +4 -4
- package/dist/components/Wallet/Sell/index.js +6 -6
- package/dist/components/Wallet/Send/index.js +3 -3
- package/dist/components/Wallet/Shared/Auth/otpForm.js +2 -2
- package/dist/components/Wallet/Shared/BankSelect/index.js +3 -3
- package/dist/components/Wallet/Shared/CardCorp/index.js +1 -1
- package/dist/components/Wallet/Shared/addBank.js +2 -2
- package/dist/components/Wallet/Shared/connectPlaidBank.js +2 -2
- package/dist/components/Wallet/Shared/manualSend.js +3 -3
- package/dist/components/Wallet/SignIn/index.js +2 -2
- package/dist/components/Wallet/SignUp/index.js +2 -2
- package/dist/components/Wallet/Stake/gems/index.d.ts +26 -2
- package/dist/components/Wallet/Stake/gems/index.js +74 -85
- package/dist/components/Wallet/Stake/id/index.d.ts +27 -1
- package/dist/components/Wallet/Stake/id/index.js +68 -78
- package/dist/components/Wallet/Stake/index.d.ts +4 -1
- package/dist/components/Wallet/Stake/index.js +232 -201
- package/dist/components/Wallet/Swap/form.js +5 -5
- package/dist/components/Wallet/Swap/index.js +5 -5
- package/dist/components/Wallet/Withdraw/bankSelect.js +4 -4
- package/dist/components/Wallet/Withdraw/confirmTransaction.js +3 -3
- package/dist/components/Wallet/Withdraw/form.js +4 -4
- package/dist/components/Wallet/Withdraw/index.js +5 -5
- package/dist/{constants-Dtk3Gd0Y.js → constants-Styrbvke.js} +4 -4
- package/dist/{cryptoAssets-DT2afvDJ.js → cryptoAssets-CFtzXGbk.js} +1 -1
- package/dist/{index-BEFNlxwM.js → index-AVcxYfIV.js} +4 -4
- package/dist/{index-JdlBukUO.js → index-CKjKCXeQ.js} +4 -4
- package/dist/{index-BGJ8RVKA.js → index-DAla2tRU.js} +5 -5
- package/dist/{index-BUnkeQv6.js → index-DM6mBQ7L.js} +6 -6
- package/dist/{index-B4pP4oLo.js → index-Da-BlrMH.js} +6 -6
- package/dist/{index-CyPm8GTl.js → index-Du_jGnyO.js} +4 -4
- package/dist/{index-BU6Lajc_.js → index-g4Gy1BHB.js} +2 -2
- package/dist/{kyc-BOm2LCSg.js → kyc-Ee4qAZby.js} +1 -1
- package/dist/main.js +7 -7
- package/dist/{order-DuPcaU0K.js → order-uVUTqaQ2.js} +1 -1
- package/dist/{stake-WaB8Q4v-.js → stake-Dgx86wzO.js} +1 -1
- package/dist/{tokenRow-B-tustzZ.js → tokenRow-C-iMHhPj.js} +14 -12
- package/dist/util/constants.d.ts +1 -0
- package/dist/util/constants.js +54 -53
- package/dist/{wallet-BxwOFeSW.js → wallet-BkdExH6h.js} +10 -10
- package/package.json +2 -2
|
@@ -1,23 +1,22 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { useState as
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import { u as
|
|
6
|
-
import { ID_STAKE as i, STAKE_ID_MIN_DAYS as
|
|
7
|
-
import "../../../constants-
|
|
8
|
-
import { a as
|
|
9
|
-
import { f as
|
|
10
|
-
import { s as
|
|
11
|
-
import { fromHuman as
|
|
1
|
+
import { jsx as t, Fragment as ne, jsxs as r } from "react/jsx-runtime";
|
|
2
|
+
import { useState as s, useEffect as w } from "react";
|
|
3
|
+
import Re from "./id/index.js";
|
|
4
|
+
import ye from "./gems/index.js";
|
|
5
|
+
import { u as W } from "../../../react-redux-C7I9-1M6.js";
|
|
6
|
+
import { ID_STAKE as i, STAKE_ID_MIN_DAYS as le, GEM_SYNTHETIC_TOKEN_SYMBOL as Be, EVER_CHAIN_NETWORK as C, GEMS_TOKEN_SYMBOL as z, ETHEREUM_NETWORK as N, ID_TOKEN_SYMBOL as $, GEMS_STAKE as R, STAKE_GEM_MAX_DAYS as Ge, STAKE_ID_ICON as Le, STAKE_GEM_ICON as Fe, STAKE_GEM_MAX_APY as Ke, STAKE_ID_MIN_APY as Pe, STAKE_ID_MID_DAYS as Ye, STAKE_ID_MID_APY as Oe, STAKE_ID_MAX_DAYS as We, STAKE_ID_MAX_APY as ze } from "../../../util/constants.js";
|
|
7
|
+
import "../../../constants-Styrbvke.js";
|
|
8
|
+
import { a as $e } from "../../../index-BQNs1mvn.js";
|
|
9
|
+
import { f as He } from "../../../wallet-BkdExH6h.js";
|
|
10
|
+
import { s as Xe, a as je, b as qe } from "../../../stake-Dgx86wzO.js";
|
|
11
|
+
import { fromHuman as Ue, numberFormat as x, toHuman as y } from "../../../util/conversions.js";
|
|
12
12
|
import "../../../index-DlQqWbXG.js";
|
|
13
|
-
import "../Shared/appButton.js";
|
|
14
|
-
import
|
|
15
|
-
import { decimalNumbersWithCommaOrDot as
|
|
13
|
+
import ie from "../Shared/appButton.js";
|
|
14
|
+
import Ve from "../../../hoc/withThemeProvider.js";
|
|
15
|
+
import { decimalNumbersWithCommaOrDot as Je } from "../../../util/regex.js";
|
|
16
16
|
import "../Shared/Auth/otpForm.js";
|
|
17
|
-
import "../../../context/snackBarContext.js";
|
|
18
|
-
import
|
|
17
|
+
import { useSnackBarContext as Qe } from "../../../context/snackBarContext.js";
|
|
18
|
+
import Ze from "../../../hooks/useEverestDispatch.js";
|
|
19
19
|
import "../../../index-CAoLi5Qq.js";
|
|
20
|
-
import { useSnackBar as ze } from "../../../hooks/useSnackBar.js";
|
|
21
20
|
import "../../../react-webcam-B3cXh1XT.js";
|
|
22
21
|
import "../../Shared/transition.js";
|
|
23
22
|
import "../../../tooltip-3UvETWtS.js";
|
|
@@ -25,144 +24,154 @@ import "../Shared/pin.js";
|
|
|
25
24
|
import "../../../moment-h96o7c8I.js";
|
|
26
25
|
import "../../../index.esm-BsMAMhYW.js";
|
|
27
26
|
import "../../../web3-u4qDZYpo.js";
|
|
27
|
+
import et from "../MoveToEthereumOrEverChain/index.js";
|
|
28
28
|
import "../../../index-ceeCtFuh.js";
|
|
29
29
|
import "../../../context/dialogContext.js";
|
|
30
|
-
import { s as
|
|
31
|
-
import { B as
|
|
32
|
-
import { G as
|
|
30
|
+
import { s as E } from "../../../styles.module-C1sNeKjL.js";
|
|
31
|
+
import { B as S } from "../../../Box-B0YSYLco.js";
|
|
32
|
+
import { G as u } from "../../../Grid-CFe3amXO.js";
|
|
33
33
|
import { T as c } from "../../../Typography-pAaje37G.js";
|
|
34
|
-
import { D as
|
|
35
|
-
import { C as
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
34
|
+
import { D as tt, a as at } from "../../../DialogContent-BMwlOnbW.js";
|
|
35
|
+
import { C as ot } from "../../../CircularProgress-xZA3lvba.js";
|
|
36
|
+
const st = ({
|
|
37
|
+
navigate: ce,
|
|
38
|
+
depositAddress: H,
|
|
39
|
+
gemTokenAddress: de,
|
|
40
|
+
idTokenAddress: me
|
|
41
|
+
}) => {
|
|
42
|
+
const D = Ze(), { showAlertMessage: m } = Qe(), B = W($e).everWalletAddress, X = W((e) => e.user.wallets);
|
|
43
|
+
X.loader;
|
|
44
|
+
const G = X.data, ke = W((e) => e.stake), {
|
|
45
|
+
loader: j,
|
|
46
|
+
data: L,
|
|
47
|
+
addLoader: ue,
|
|
48
|
+
error: F,
|
|
49
|
+
tx: q
|
|
50
|
+
} = ke, [a, U] = s(i), [V, fe] = s(!0), [J, he] = s(0), [pe, Se] = s(0), [Q, ge] = s(0), [_e, we] = s(0), [g, A] = s(null), [f, K] = s(""), [h, Z] = s(le), [P, xe] = s({
|
|
47
51
|
data: [],
|
|
48
52
|
totalStake: 0,
|
|
49
53
|
totalReward: 0
|
|
50
|
-
}), [
|
|
54
|
+
}), [Y, Ee] = s({
|
|
51
55
|
data: [],
|
|
52
56
|
totalStake: 0,
|
|
53
57
|
totalReward: 0
|
|
54
|
-
}), [
|
|
58
|
+
}), [Ae, b] = s(!1), [Te, ee] = s(""), [ve, te] = s(""), [De, ae] = s(
|
|
55
59
|
void 0
|
|
56
|
-
),
|
|
57
|
-
let I =
|
|
58
|
-
a === i && (I =
|
|
59
|
-
|
|
60
|
-
}, [
|
|
61
|
-
|
|
60
|
+
), be = a === i ? 18 : 6, Ie = Ue(f.toString(), be);
|
|
61
|
+
let I = Ke;
|
|
62
|
+
a === i && (I = Pe, h === Ye ? I = Oe : h === We && (I = ze)), w(() => {
|
|
63
|
+
F && (Ce(), m({ message: F }));
|
|
64
|
+
}, [F]), w(() => {
|
|
65
|
+
q && (b(!1), m({
|
|
62
66
|
message: "Token has been successfully staked.",
|
|
63
67
|
type: "success"
|
|
64
|
-
}),
|
|
65
|
-
}, [
|
|
66
|
-
let
|
|
67
|
-
a === i && (
|
|
68
|
-
}, [a]),
|
|
69
|
-
D(
|
|
70
|
-
}), []),
|
|
71
|
-
if (
|
|
72
|
-
const
|
|
73
|
-
(
|
|
68
|
+
}), ce("/dashboard"));
|
|
69
|
+
}, [q]), w(() => {
|
|
70
|
+
let e = Ge;
|
|
71
|
+
a === i && (e = le), Z(e), K("");
|
|
72
|
+
}, [a]), w(() => (D(Xe()), D(He()), () => {
|
|
73
|
+
D(je());
|
|
74
|
+
}), []), w(() => {
|
|
75
|
+
if (B && G.length > 0) {
|
|
76
|
+
const e = G.find(
|
|
77
|
+
(o) => o.address === B
|
|
74
78
|
);
|
|
75
|
-
if (
|
|
76
|
-
const
|
|
79
|
+
if (e) {
|
|
80
|
+
const o = e.tokens, l = o.length;
|
|
77
81
|
for (let d = 0; d < l; d++) {
|
|
78
|
-
const n =
|
|
79
|
-
|
|
80
|
-
const S = n.fmt_balance.replaceAll(",", "");
|
|
81
|
-
ne(parseFloat(u(S)));
|
|
82
|
-
}
|
|
83
|
-
if (n.symbol === De && n.network.toLowerCase() === be.toLowerCase()) {
|
|
84
|
-
const S = n.fmt_balance.replaceAll(",", "");
|
|
85
|
-
le(parseFloat(u(S)));
|
|
86
|
-
}
|
|
82
|
+
const n = o[d], M = n.fmt_balance.replaceAll(",", ""), p = parseFloat(x(M)), k = n.network.toLowerCase();
|
|
83
|
+
n.symbol === Be && k === C.toLowerCase() && ge(p), n.symbol === z && k === N.toLowerCase() && we(p), n.symbol === $ && (k === C.toLowerCase() ? he(p) : k === N.toLowerCase() && Se(p));
|
|
87
84
|
}
|
|
88
|
-
|
|
85
|
+
fe(!1);
|
|
89
86
|
}
|
|
90
87
|
}
|
|
91
|
-
}, [
|
|
92
|
-
const
|
|
93
|
-
if (
|
|
94
|
-
const
|
|
95
|
-
let d = 0, n = 0,
|
|
96
|
-
for (let
|
|
97
|
-
const
|
|
98
|
-
if (
|
|
99
|
-
const
|
|
100
|
-
|
|
101
|
-
tokensStake: parseFloat(
|
|
102
|
-
tokensReward: parseFloat(
|
|
103
|
-
days:
|
|
104
|
-
}), d += parseFloat(
|
|
88
|
+
}, [B, G]), w(() => {
|
|
89
|
+
const e = L.length;
|
|
90
|
+
if (e > 0) {
|
|
91
|
+
const o = [], l = [];
|
|
92
|
+
let d = 0, n = 0, M = 0, p = 0;
|
|
93
|
+
for (let k = 0; k < e; k++) {
|
|
94
|
+
const _ = L[k], re = _.days_left;
|
|
95
|
+
if (_.token === i) {
|
|
96
|
+
const T = y(_.tokens_staked, 18), v = y(_.reward_tokens, 18);
|
|
97
|
+
o.push({
|
|
98
|
+
tokensStake: parseFloat(x(T)),
|
|
99
|
+
tokensReward: parseFloat(x(v)),
|
|
100
|
+
days: re
|
|
101
|
+
}), d += parseFloat(T), n += parseFloat(v);
|
|
105
102
|
} else {
|
|
106
|
-
const
|
|
103
|
+
const T = y(_.tokens_staked, 6), v = y(_.reward_tokens, 18);
|
|
107
104
|
l.push({
|
|
108
|
-
tokensStake:
|
|
109
|
-
tokensReward:
|
|
110
|
-
days:
|
|
111
|
-
}),
|
|
105
|
+
tokensStake: x(T),
|
|
106
|
+
tokensReward: x(v),
|
|
107
|
+
days: re
|
|
108
|
+
}), M += parseFloat(T), p += parseFloat(v);
|
|
112
109
|
}
|
|
113
110
|
}
|
|
114
|
-
|
|
115
|
-
data:
|
|
111
|
+
xe({
|
|
112
|
+
data: o,
|
|
116
113
|
totalStake: d,
|
|
117
114
|
totalReward: n
|
|
118
|
-
}),
|
|
115
|
+
}), Ee({
|
|
119
116
|
data: l,
|
|
120
|
-
totalStake:
|
|
121
|
-
totalReward: parseFloat(
|
|
117
|
+
totalStake: M,
|
|
118
|
+
totalReward: parseFloat(x(p + ""))
|
|
122
119
|
});
|
|
123
120
|
}
|
|
124
|
-
}, [
|
|
125
|
-
const
|
|
121
|
+
}, [L]);
|
|
122
|
+
const Me = () => {
|
|
126
123
|
D(
|
|
127
|
-
|
|
128
|
-
amount:
|
|
124
|
+
qe({
|
|
125
|
+
amount: Ie,
|
|
129
126
|
type: a,
|
|
130
|
-
period:
|
|
127
|
+
period: h.toString()
|
|
131
128
|
})
|
|
132
129
|
);
|
|
133
|
-
},
|
|
130
|
+
}, Ce = () => {
|
|
134
131
|
b(!1);
|
|
135
|
-
const { title:
|
|
136
|
-
|
|
137
|
-
},
|
|
138
|
-
|
|
139
|
-
},
|
|
140
|
-
if (!
|
|
141
|
-
|
|
132
|
+
const { title: e, html: o, func: l } = oe();
|
|
133
|
+
ee(e), te(o), ae(() => l);
|
|
134
|
+
}, Ne = () => {
|
|
135
|
+
O("review");
|
|
136
|
+
}, O = (e) => {
|
|
137
|
+
if (!h) {
|
|
138
|
+
m({
|
|
142
139
|
message: "Please select the stake duration period"
|
|
143
|
-
})
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
if (!
|
|
147
|
-
|
|
140
|
+
});
|
|
141
|
+
return;
|
|
142
|
+
}
|
|
143
|
+
if (!f) {
|
|
144
|
+
m({ message: "Please provide the amount to stake" });
|
|
145
|
+
return;
|
|
146
|
+
}
|
|
147
|
+
if (!Je.test(f)) {
|
|
148
|
+
m({
|
|
148
149
|
message: "Please provide the valid amount"
|
|
149
|
-
})
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
150
|
+
});
|
|
151
|
+
return;
|
|
152
|
+
}
|
|
153
|
+
const o = parseFloat(f.replaceAll(",", "."));
|
|
154
|
+
if (o * 1 <= 0) {
|
|
155
|
+
m({
|
|
153
156
|
message: "Please provide the amount greater than 0"
|
|
154
|
-
})
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
if (a ===
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
157
|
+
});
|
|
158
|
+
return;
|
|
159
|
+
}
|
|
160
|
+
if (a === i && o * 1 > J * 1) {
|
|
161
|
+
m({ message: "Insufficient balance to stake" });
|
|
162
|
+
return;
|
|
163
|
+
}
|
|
164
|
+
if (a === R && o * 1 > Q * 1) {
|
|
165
|
+
m({ message: "Insufficient balance to stake" });
|
|
166
|
+
return;
|
|
167
|
+
}
|
|
168
|
+
let { title: l, html: d, func: n } = oe();
|
|
169
|
+
e === "review" && (l = "Please Review", d = `You are about to stake <strong>${f} ${a}</strong> Tokens for <strong>${h} days</strong> for ${a === R ? "up to" : ""} <strong>${I}% APY</strong>`, n = Me), ee(l), te(d), b(!0), ae(() => n);
|
|
170
|
+
}, oe = () => {
|
|
171
|
+
let e = "Are you sure?", o = `You will not have access to your ${a} Tokens during the staking period of <strong>${h} days</strong>`;
|
|
172
|
+
return { title: e, html: o, func: Ne };
|
|
173
|
+
}, se = ({ data: e }) => /* @__PURE__ */ r(
|
|
174
|
+
S,
|
|
166
175
|
{
|
|
167
176
|
mb: 2,
|
|
168
177
|
sx: {
|
|
@@ -170,8 +179,8 @@ const je = ({ router: v }) => {
|
|
|
170
179
|
boxShadow: "0px 2px 2px 0px rgba(0, 0, 0, 0.10);"
|
|
171
180
|
},
|
|
172
181
|
children: [
|
|
173
|
-
/* @__PURE__ */
|
|
174
|
-
|
|
182
|
+
/* @__PURE__ */ r(
|
|
183
|
+
S,
|
|
175
184
|
{
|
|
176
185
|
sx: {
|
|
177
186
|
background: "#F0F0F0",
|
|
@@ -179,106 +188,139 @@ const je = ({ router: v }) => {
|
|
|
179
188
|
display: "flex"
|
|
180
189
|
},
|
|
181
190
|
children: [
|
|
182
|
-
/* @__PURE__ */
|
|
191
|
+
/* @__PURE__ */ t(
|
|
183
192
|
"img",
|
|
184
193
|
{
|
|
185
|
-
src: a === i ?
|
|
194
|
+
src: a === i ? Le : Fe,
|
|
186
195
|
alt: "id",
|
|
187
196
|
width: 32
|
|
188
197
|
}
|
|
189
198
|
),
|
|
190
|
-
/* @__PURE__ */
|
|
191
|
-
|
|
199
|
+
/* @__PURE__ */ t(c, { sx: { ml: "10px" }, variant: "h6", component: "span", children: /* @__PURE__ */ r("strong", { children: [
|
|
200
|
+
e.tokensStake,
|
|
192
201
|
" ",
|
|
193
202
|
a
|
|
194
203
|
] }) })
|
|
195
204
|
]
|
|
196
205
|
}
|
|
197
206
|
),
|
|
198
|
-
/* @__PURE__ */
|
|
199
|
-
/* @__PURE__ */
|
|
200
|
-
/* @__PURE__ */
|
|
201
|
-
/* @__PURE__ */
|
|
202
|
-
/* @__PURE__ */
|
|
203
|
-
|
|
207
|
+
/* @__PURE__ */ t(S, { sx: { padding: "20px" }, children: /* @__PURE__ */ r(u, { spacing: 1, container: !0, children: [
|
|
208
|
+
/* @__PURE__ */ t(u, { size: 6, children: /* @__PURE__ */ t(c, { className: "fs16", children: /* @__PURE__ */ t("strong", { children: "Days Remaining" }) }) }),
|
|
209
|
+
/* @__PURE__ */ t(u, { size: 6, children: /* @__PURE__ */ t(c, { className: "text-right fs16 fw500", children: e.days }) }),
|
|
210
|
+
/* @__PURE__ */ t(u, { size: 6, children: /* @__PURE__ */ t(c, { className: "fs16", children: /* @__PURE__ */ t("strong", { children: "Rewards" }) }) }),
|
|
211
|
+
/* @__PURE__ */ t(u, { size: 6, children: /* @__PURE__ */ r(c, { className: "text-right fs16 fw500", children: [
|
|
212
|
+
e.tokensReward,
|
|
204
213
|
" ID"
|
|
205
214
|
] }) })
|
|
206
215
|
] }) })
|
|
207
216
|
]
|
|
208
217
|
}
|
|
209
218
|
);
|
|
210
|
-
return /* @__PURE__ */
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
219
|
+
return g ? /* @__PURE__ */ t(ne, { children: /* @__PURE__ */ t(
|
|
220
|
+
et,
|
|
221
|
+
{
|
|
222
|
+
token: g.token,
|
|
223
|
+
network: g.network,
|
|
224
|
+
initialBalance: g.balance.toString(),
|
|
225
|
+
depositAddress: g.depositAddress,
|
|
226
|
+
tokenAddress: g.tokenAddress,
|
|
227
|
+
onBack: () => A(null)
|
|
228
|
+
}
|
|
229
|
+
) }) : /* @__PURE__ */ r(ne, { children: [
|
|
230
|
+
/* @__PURE__ */ r(S, { className: E.container, children: [
|
|
231
|
+
/* @__PURE__ */ t(S, { className: E["sub-tabs"], children: /* @__PURE__ */ r(
|
|
232
|
+
u,
|
|
215
233
|
{
|
|
216
234
|
container: !0,
|
|
217
235
|
spacing: 1,
|
|
218
236
|
mb: 3,
|
|
219
237
|
sx: { width: "250px", marginLeft: "-250px" },
|
|
220
238
|
children: [
|
|
221
|
-
/* @__PURE__ */
|
|
239
|
+
/* @__PURE__ */ t(u, { className: E["sub-tabs-item"], size: 6, children: /* @__PURE__ */ t(
|
|
222
240
|
c,
|
|
223
241
|
{
|
|
224
242
|
fontSize: 25,
|
|
225
|
-
className: `font-bold ${a === i ?
|
|
243
|
+
className: `font-bold ${a === i ? E.active : ""}`,
|
|
226
244
|
variant: "h5",
|
|
227
|
-
onClick: () =>
|
|
245
|
+
onClick: () => U(i),
|
|
228
246
|
children: "ID"
|
|
229
247
|
}
|
|
230
248
|
) }),
|
|
231
|
-
/* @__PURE__ */
|
|
249
|
+
/* @__PURE__ */ t(u, { className: E["sub-tabs-item"], size: 6, children: /* @__PURE__ */ t(
|
|
232
250
|
c,
|
|
233
251
|
{
|
|
234
252
|
fontSize: 25,
|
|
235
|
-
className: `font-bold ${a ===
|
|
253
|
+
className: `font-bold ${a === R ? E.active : ""}`,
|
|
236
254
|
variant: "h5",
|
|
237
|
-
onClick: () =>
|
|
255
|
+
onClick: () => U(R),
|
|
238
256
|
children: "GEMS"
|
|
239
257
|
}
|
|
240
258
|
) })
|
|
241
259
|
]
|
|
242
260
|
}
|
|
243
261
|
) }),
|
|
244
|
-
a === i ? /* @__PURE__ */
|
|
245
|
-
|
|
246
|
-
{
|
|
247
|
-
history: v,
|
|
248
|
-
loader: Y,
|
|
249
|
-
stakeData: F.data,
|
|
250
|
-
totalStake: F.totalStake,
|
|
251
|
-
totalReward: F.totalReward,
|
|
252
|
-
StakeItem: Q,
|
|
253
|
-
stakeStart: B,
|
|
254
|
-
amount: p,
|
|
255
|
-
setAmount: C,
|
|
256
|
-
stakeDuration: k,
|
|
257
|
-
setStakeDuration: X,
|
|
258
|
-
balanceLoader: z,
|
|
259
|
-
balance: H
|
|
260
|
-
}
|
|
261
|
-
) : /* @__PURE__ */ e(
|
|
262
|
-
we,
|
|
262
|
+
a === i ? /* @__PURE__ */ t(
|
|
263
|
+
Re,
|
|
263
264
|
{
|
|
264
|
-
|
|
265
|
-
loader: Y,
|
|
265
|
+
loader: j,
|
|
266
266
|
stakeData: P.data,
|
|
267
267
|
totalStake: P.totalStake,
|
|
268
268
|
totalReward: P.totalReward,
|
|
269
|
-
StakeItem:
|
|
270
|
-
stakeStart:
|
|
271
|
-
amount:
|
|
272
|
-
setAmount:
|
|
273
|
-
|
|
274
|
-
|
|
269
|
+
StakeItem: se,
|
|
270
|
+
stakeStart: O,
|
|
271
|
+
amount: f,
|
|
272
|
+
setAmount: K,
|
|
273
|
+
stakeDuration: h,
|
|
274
|
+
setStakeDuration: Z,
|
|
275
|
+
balanceLoader: V,
|
|
276
|
+
balance: J,
|
|
277
|
+
ethereumBalance: pe,
|
|
278
|
+
onMoveToEthereum: (e) => A({
|
|
279
|
+
token: $,
|
|
280
|
+
balance: e,
|
|
281
|
+
network: N
|
|
282
|
+
}),
|
|
283
|
+
onMoveToEverChain: (e) => A({
|
|
284
|
+
token: $,
|
|
285
|
+
balance: e,
|
|
286
|
+
network: C,
|
|
287
|
+
depositAddress: H,
|
|
288
|
+
tokenAddress: me
|
|
289
|
+
})
|
|
290
|
+
}
|
|
291
|
+
) : /* @__PURE__ */ t(
|
|
292
|
+
ye,
|
|
293
|
+
{
|
|
294
|
+
loader: j,
|
|
295
|
+
stakeData: Y.data,
|
|
296
|
+
totalStake: Y.totalStake,
|
|
297
|
+
totalReward: Y.totalReward,
|
|
298
|
+
StakeItem: se,
|
|
299
|
+
stakeStart: O,
|
|
300
|
+
amount: f,
|
|
301
|
+
setAmount: K,
|
|
302
|
+
balanceLoader: V,
|
|
303
|
+
balance: Q,
|
|
304
|
+
ethereumBalance: _e,
|
|
305
|
+
onMoveToEthereum: (e) => A({
|
|
306
|
+
token: z,
|
|
307
|
+
balance: e,
|
|
308
|
+
network: N
|
|
309
|
+
}),
|
|
310
|
+
onMoveToEverChain: (e) => A({
|
|
311
|
+
token: z,
|
|
312
|
+
balance: e,
|
|
313
|
+
network: C,
|
|
314
|
+
depositAddress: H,
|
|
315
|
+
tokenAddress: de
|
|
316
|
+
})
|
|
275
317
|
}
|
|
276
318
|
)
|
|
277
319
|
] }),
|
|
278
|
-
/* @__PURE__ */
|
|
279
|
-
|
|
320
|
+
/* @__PURE__ */ t(
|
|
321
|
+
tt,
|
|
280
322
|
{
|
|
281
|
-
open:
|
|
323
|
+
open: Ae,
|
|
282
324
|
fullWidth: !0,
|
|
283
325
|
sx: {
|
|
284
326
|
"& .MuiDialog-container": {
|
|
@@ -287,20 +329,20 @@ const je = ({ router: v }) => {
|
|
|
287
329
|
}
|
|
288
330
|
}
|
|
289
331
|
},
|
|
290
|
-
children: /* @__PURE__ */
|
|
291
|
-
/* @__PURE__ */
|
|
292
|
-
/* @__PURE__ */
|
|
332
|
+
children: /* @__PURE__ */ r(at, { sx: { mt: 3 }, className: "stake-modal-content", children: [
|
|
333
|
+
/* @__PURE__ */ t(c, { variant: "h4", className: "text-center", children: /* @__PURE__ */ t("strong", { children: Te }) }),
|
|
334
|
+
/* @__PURE__ */ t(
|
|
293
335
|
c,
|
|
294
336
|
{
|
|
295
337
|
sx: { mt: 5 },
|
|
296
338
|
variant: "h6",
|
|
297
339
|
className: "text-center fw500",
|
|
298
|
-
dangerouslySetInnerHTML: { __html:
|
|
340
|
+
dangerouslySetInnerHTML: { __html: ve }
|
|
299
341
|
}
|
|
300
342
|
),
|
|
301
|
-
|
|
302
|
-
/* @__PURE__ */
|
|
303
|
-
/* @__PURE__ */
|
|
343
|
+
ue ? /* @__PURE__ */ r(S, { mt: 4, sx: { color: "#00B171", textAlign: "center" }, children: [
|
|
344
|
+
/* @__PURE__ */ t(ot, { size: 30 }),
|
|
345
|
+
/* @__PURE__ */ r(
|
|
304
346
|
c,
|
|
305
347
|
{
|
|
306
348
|
className: "secondary-text-color",
|
|
@@ -308,32 +350,21 @@ const je = ({ router: v }) => {
|
|
|
308
350
|
sx: { fontWeight: "bold" },
|
|
309
351
|
children: [
|
|
310
352
|
"Staking in Progress...",
|
|
311
|
-
/* @__PURE__ */
|
|
353
|
+
/* @__PURE__ */ t("br", {}),
|
|
312
354
|
"one moment please"
|
|
313
355
|
]
|
|
314
356
|
}
|
|
315
357
|
)
|
|
316
|
-
] }) : /* @__PURE__ */
|
|
317
|
-
/* @__PURE__ */
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
sx: { mt: 6 },
|
|
321
|
-
onClick: pe,
|
|
322
|
-
className: "wallet-btn",
|
|
323
|
-
variant: "contained",
|
|
324
|
-
fullWidth: !0,
|
|
325
|
-
children: /* @__PURE__ */ e("strong", { children: "Ok" })
|
|
326
|
-
}
|
|
327
|
-
),
|
|
328
|
-
/* @__PURE__ */ e(
|
|
329
|
-
te,
|
|
358
|
+
] }) : /* @__PURE__ */ r(S, { px: { xs: 6, md: 15 }, children: [
|
|
359
|
+
/* @__PURE__ */ t(ie, { sx: { mt: 6 }, onClick: De, fullWidth: !0, children: /* @__PURE__ */ t("strong", { children: "Ok" }) }),
|
|
360
|
+
/* @__PURE__ */ t(
|
|
361
|
+
ie,
|
|
330
362
|
{
|
|
331
|
-
|
|
363
|
+
variantType: "cancel",
|
|
332
364
|
onClick: () => b(!1),
|
|
333
365
|
sx: { mt: 2 },
|
|
334
|
-
variant: "contained",
|
|
335
366
|
fullWidth: !0,
|
|
336
|
-
children:
|
|
367
|
+
children: "Cancel"
|
|
337
368
|
}
|
|
338
369
|
)
|
|
339
370
|
] })
|
|
@@ -341,7 +372,7 @@ const je = ({ router: v }) => {
|
|
|
341
372
|
}
|
|
342
373
|
)
|
|
343
374
|
] });
|
|
344
|
-
},
|
|
375
|
+
}, Ot = Ve(st);
|
|
345
376
|
export {
|
|
346
|
-
|
|
377
|
+
Ot as default
|
|
347
378
|
};
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import "react/jsx-runtime";
|
|
2
2
|
import "react";
|
|
3
3
|
import "../../../react-redux-C7I9-1M6.js";
|
|
4
|
-
import "../../../PlayArrow-
|
|
4
|
+
import "../../../PlayArrow-BRz9FV4L.js";
|
|
5
5
|
import "../../../Info-BVeUSPyk.js";
|
|
6
6
|
import "../../../generic-token-B_ptO5yb.js";
|
|
7
7
|
import "../../../util/functions.js";
|
|
8
8
|
import "../Shared/TokenModal/index.js";
|
|
9
9
|
import "../../../util/conversions.js";
|
|
10
|
-
import "../../../constants-
|
|
10
|
+
import "../../../constants-Styrbvke.js";
|
|
11
11
|
import "../../../index-BQNs1mvn.js";
|
|
12
|
-
import "../../../cryptoAssets-
|
|
13
|
-
import "../../../order-
|
|
12
|
+
import "../../../cryptoAssets-CFtzXGbk.js";
|
|
13
|
+
import "../../../order-uVUTqaQ2.js";
|
|
14
14
|
import "../../../util/constants.js";
|
|
15
15
|
import "../../../tooltip-3UvETWtS.js";
|
|
16
16
|
import "../../../index-DlQqWbXG.js";
|
|
@@ -29,7 +29,7 @@ import "../../../web3-u4qDZYpo.js";
|
|
|
29
29
|
import "../../../styles.module-DMd29SPQ.js";
|
|
30
30
|
import "../Shared/Order/selectCustomIcon.js";
|
|
31
31
|
import "../../../index-ceeCtFuh.js";
|
|
32
|
-
import { S as T } from "../../../index-
|
|
32
|
+
import { S as T } from "../../../index-Da-BlrMH.js";
|
|
33
33
|
import "../../../context/dialogContext.js";
|
|
34
34
|
import "../../../Box-B0YSYLco.js";
|
|
35
35
|
import "../../../Grid-CFe3amXO.js";
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import "react/jsx-runtime";
|
|
2
2
|
import "react";
|
|
3
3
|
import "../../../hoc/withThemeProvider.js";
|
|
4
|
-
import { F as f, M as F, a as I, i as L } from "../../../index-
|
|
4
|
+
import { F as f, M as F, a as I, i as L } from "../../../index-Da-BlrMH.js";
|
|
5
5
|
import "../../../react-redux-C7I9-1M6.js";
|
|
6
|
-
import "../../../constants-
|
|
7
|
-
import "../../../wallet-
|
|
8
|
-
import "../../../order-
|
|
6
|
+
import "../../../constants-Styrbvke.js";
|
|
7
|
+
import "../../../wallet-BkdExH6h.js";
|
|
8
|
+
import "../../../order-uVUTqaQ2.js";
|
|
9
9
|
import "../../../util/constants.js";
|
|
10
10
|
import "../../../context/snackBarContext.js";
|
|
11
11
|
import "../Shared/Container/index.js";
|
|
12
12
|
import "../../Shared/MinimalKyc/index.js";
|
|
13
13
|
import "../Shared/Input/index.js";
|
|
14
14
|
import "../Shared/appButton.js";
|
|
15
|
-
import "../../../index-
|
|
15
|
+
import "../../../index-DAla2tRU.js";
|
|
16
16
|
import "../../../hooks/useEverestDispatch.js";
|
|
17
17
|
export {
|
|
18
18
|
f as FORM_SCREEN,
|
|
@@ -3,11 +3,11 @@ import { useState as x, useEffect as N } from "react";
|
|
|
3
3
|
import { u as C } from "../../../react-redux-C7I9-1M6.js";
|
|
4
4
|
import S from "../Shared/backBtn.js";
|
|
5
5
|
import E from "../Shared/addBank.js";
|
|
6
|
-
import { F as T, C as b } from "../../../index-
|
|
7
|
-
import "../../../constants-
|
|
6
|
+
import { F as T, C as b } from "../../../index-CKjKCXeQ.js";
|
|
7
|
+
import "../../../constants-Styrbvke.js";
|
|
8
8
|
import { u as R } from "../../../index-BQNs1mvn.js";
|
|
9
|
-
import { o as A } from "../../../order-
|
|
10
|
-
import { u as O } from "../../../bank-
|
|
9
|
+
import { o as A } from "../../../order-uVUTqaQ2.js";
|
|
10
|
+
import { u as O } from "../../../bank-C2LtDonX.js";
|
|
11
11
|
import y from "../Shared/connectPlaidBank.js";
|
|
12
12
|
import { s as o } from "../../../styles.module-DMd29SPQ.js";
|
|
13
13
|
import { RADIO_BUTTON_SELECTED as _, RADIO_BUTTON as I } from "../../../util/constants.js";
|