@dhedge/trading-widget 3.3.11 → 3.3.12
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/{index-e9bbe1e0.js → index-01e95aa2.js} +11 -11
- package/{index-d83bbc9c.cjs → index-613fb998.cjs} +1 -1
- package/index.cjs +1 -1
- package/index.js +1 -1
- package/package.json +1 -1
- package/{pyth-adapter-1defd6fa.cjs → pyth-adapter-071c3498.cjs} +1 -1
- package/{pyth-adapter-40d4717a.js → pyth-adapter-8ac95c6a.js} +1 -1
- package/style.css +1 -1
|
@@ -37243,7 +37243,7 @@ const aL = {
|
|
|
37243
37243
|
const { chainId: p, vaultAddress: v, account: g } = f;
|
|
37244
37244
|
if (!g || !t)
|
|
37245
37245
|
return aL;
|
|
37246
|
-
const w = (await import("./pyth-adapter-
|
|
37246
|
+
const w = (await import("./pyth-adapter-8ac95c6a.js")).PythAdapter, x = Vb({
|
|
37247
37247
|
abi: hg("synthetixV3Core"),
|
|
37248
37248
|
functionName: "getPositionDebt",
|
|
37249
37249
|
args: UW[v.toLowerCase()] ?? []
|
|
@@ -38653,7 +38653,7 @@ const SY = /* @__PURE__ */ Tg(xY), QC = () => {
|
|
|
38653
38653
|
n.highSlippageListTitle,
|
|
38654
38654
|
":"
|
|
38655
38655
|
] }),
|
|
38656
|
-
/* @__PURE__ */ R.jsxs("ul", { className: "dtw-list-inside dtw-list-disc dtw-flex dtw-flex-col dtw-gap-y-1 dtw-text-sm dtw-text-[color:var(--panel-secondary-content-color)] dtw-max-h-28 dtw-overflow-y-
|
|
38656
|
+
/* @__PURE__ */ R.jsxs("ul", { className: "dtw-list-inside dtw-list-disc dtw-flex dtw-flex-col dtw-gap-y-1 dtw-text-sm dtw-text-[color:var(--panel-secondary-content-color)] dtw-max-h-28 dtw-overflow-y-auto", children: [
|
|
38657
38657
|
/* @__PURE__ */ R.jsx("li", { children: n.termOfUseDepositAssetSlippage }),
|
|
38658
38658
|
/* @__PURE__ */ R.jsx("li", { children: n.termOfUseDepositBugs }),
|
|
38659
38659
|
/* @__PURE__ */ R.jsx("li", { children: n.termOfUseDepositDowntime }),
|
|
@@ -38692,7 +38692,7 @@ const SY = /* @__PURE__ */ Tg(xY), QC = () => {
|
|
|
38692
38692
|
] }),
|
|
38693
38693
|
l ? /* @__PURE__ */ R.jsx("p", { className: "dtw-text-sm", children: "By proceeding with this trade, you acknowledge and accept the possibility of losing a part of your rewards (FMP)." }) : null,
|
|
38694
38694
|
/* @__PURE__ */ R.jsx("p", { className: "dtw-text-sm dtw-self-start", children: "Please consider the following before confirming:" }),
|
|
38695
|
-
/* @__PURE__ */ R.jsxs("ul", { className: "dtw-self-start dtw-list-inside dtw-list-disc dtw-flex dtw-flex-col dtw-gap-y-1 dtw-text-sm dtw-text-[color:var(--panel-secondary-content-color)] dtw-max-h-28 dtw-overflow-y-
|
|
38695
|
+
/* @__PURE__ */ R.jsxs("ul", { className: "dtw-self-start dtw-list-inside dtw-list-disc dtw-flex dtw-flex-col dtw-gap-y-1 dtw-text-sm dtw-text-[color:var(--panel-secondary-content-color)] dtw-max-h-28 dtw-overflow-y-auto", children: [
|
|
38696
38696
|
u && /* @__PURE__ */ R.jsxs(R.Fragment, { children: [
|
|
38697
38697
|
/* @__PURE__ */ R.jsxs("li", { className: "dtw-text-warning", children: [
|
|
38698
38698
|
"If you withdraw now, you will incur a penalty of ",
|
|
@@ -39239,22 +39239,22 @@ const VY = /* @__PURE__ */ ge.forwardRef(WY), pL = VY, Wb = ({ children: t }) =>
|
|
|
39239
39239
|
}
|
|
39240
39240
|
);
|
|
39241
39241
|
}, aq = ({ type: t }) => {
|
|
39242
|
-
const n = It(), [{ status: a, link: l, action: u }
|
|
39242
|
+
const n = It(), [{ status: a, link: l, action: u }] = Ll(), f = a == "Success", { handleReject: p } = Kp({ type: t }), v = u === "single_withdraw" && f, g = $e(
|
|
39243
39243
|
() => ({
|
|
39244
39244
|
Wallet: n.sendingOrderToWallet,
|
|
39245
39245
|
None: n.settingUpTx,
|
|
39246
39246
|
Mining: n.miningTx
|
|
39247
39247
|
}),
|
|
39248
39248
|
[n]
|
|
39249
|
-
),
|
|
39250
|
-
|
|
39249
|
+
), w = () => {
|
|
39250
|
+
p();
|
|
39251
39251
|
};
|
|
39252
39252
|
return {
|
|
39253
|
-
title:
|
|
39254
|
-
isSuccessTx:
|
|
39253
|
+
title: g[a] ?? a,
|
|
39254
|
+
isSuccessTx: f,
|
|
39255
39255
|
link: l,
|
|
39256
|
-
onClose:
|
|
39257
|
-
showNextStepTip:
|
|
39256
|
+
onClose: w,
|
|
39257
|
+
showNextStepTip: v
|
|
39258
39258
|
};
|
|
39259
39259
|
}, iq = ({ sendTokens: t }) => {
|
|
39260
39260
|
const n = It(), [a] = t ?? [];
|
|
@@ -39311,7 +39311,7 @@ const VY = /* @__PURE__ */ ge.forwardRef(WY), pL = VY, Wb = ({ children: t }) =>
|
|
|
39311
39311
|
/* @__PURE__ */ R.jsx("span", { className: "dtw-font-semibold dtw-drop-shadow-md", children: a }),
|
|
39312
39312
|
u ? /* @__PURE__ */ R.jsx(NE, { className: "dtw-h-6 dtw-w-6 dtw-text-success" }) : /* @__PURE__ */ R.jsx(p, { className: "dtw-h-5 dtw-w-5 " })
|
|
39313
39313
|
] }),
|
|
39314
|
-
/* @__PURE__ */ R.jsx("div", { className: "dtw-font-light dtw-text-sm dtw-max-h-16 dtw-overflow-y-
|
|
39314
|
+
/* @__PURE__ */ R.jsx("div", { className: "dtw-font-light dtw-text-sm dtw-max-h-16 dtw-overflow-y-auto dtw-break-all", children: /* @__PURE__ */ R.jsx(uq, {}) }),
|
|
39315
39315
|
n && /* @__PURE__ */ R.jsx(
|
|
39316
39316
|
LM,
|
|
39317
39317
|
{
|