@dhedge/trading-widget 5.12.3 → 5.13.0
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/const.cjs +1 -1
- package/const.js +69 -69
- package/core-kit/const/trading.d.ts +1 -1
- package/gmx-Ccmxx2kU.cjs +1 -0
- package/{gmx-CIlAygig.js → gmx-Cz30wIeq.js} +91 -92
- package/index.cjs +1 -1
- package/index.js +549 -545
- package/package.json +1 -1
- package/{slippage-auto-simulation-CkoihDpY.cjs → slippage-auto-simulation-BNYQurYt.cjs} +1 -1
- package/{slippage-auto-simulation-BBO4ghQV.js → slippage-auto-simulation-D7NLxruB.js} +20 -20
- package/utils.cjs +1 -1
- package/utils.js +1 -1
- package/gmx-BcxW9SG1.cjs +0 -1
package/index.js
CHANGED
|
@@ -3,29 +3,29 @@ var ml = (e, t, n) => t in e ? ul(e, t, { enumerable: !0, configurable: !0, writ
|
|
|
3
3
|
var ze = (e, t, n) => ml(e, typeof t != "symbol" ? t + "" : t, n);
|
|
4
4
|
import { jsxs as w, Fragment as P, jsx as s } from "react/jsx-runtime";
|
|
5
5
|
import { Tab as ta, Disclosure as na, DisclosureButton as ra, Transition as oa, DisclosurePanel as aa, TabPanel as sa, Popover as wl, PopoverButton as hl, PopoverBackdrop as gl, PopoverPanel as vl, Field as ia, Label as la, Switch as fl, Checkbox as bl, TabGroup as ca, TabList as da, TabPanels as pa, Dialog as yl, DialogBackdrop as Tl, DialogPanel as Al } from "@headlessui/react";
|
|
6
|
-
import { QuestionMarkCircleIcon as
|
|
6
|
+
import { QuestionMarkCircleIcon as sr, ExclamationCircleIcon as It, CheckCircleIcon as ua, Cog6ToothIcon as Sl, LockClosedIcon as xl, ArrowTopRightOnSquareIcon as ma } from "@heroicons/react/24/outline";
|
|
7
7
|
import C from "classnames";
|
|
8
8
|
import { usePopperTooltip as Cl } from "react-popper-tooltip";
|
|
9
|
-
import { createContext as ce, useMemo as L, useContext as de, useReducer as wn, useCallback as f, useState as F, useEffect as _, forwardRef as
|
|
9
|
+
import { createContext as ce, useMemo as L, useContext as de, useReducer as wn, useCallback as f, useState as F, useEffect as _, forwardRef as El, useRef as we, Children as Il, isValidElement as Nl, Fragment as _l } from "react";
|
|
10
10
|
import { ChevronDownIcon as wa, ArrowDownIcon as Ll, ArrowPathIcon as Pl, CheckIcon as Ot } from "@heroicons/react/24/solid";
|
|
11
11
|
import { XMarkIcon as ha, ChevronLeftIcon as Ol } from "@heroicons/react/16/solid";
|
|
12
12
|
import { injected as Dl } from "wagmi/connectors";
|
|
13
|
-
import {
|
|
14
|
-
import { A as
|
|
15
|
-
import { useAccount as La, useConfig as rc, useSwitchChain as oc, useReadContract as Ne, useBalance as ac, useWalletClient as
|
|
16
|
-
import { useBlockNumber as AN, useConnect as SN, useDisconnect as xN, usePublicClient as CN, useReadContract as
|
|
13
|
+
import { a as I, p as W, G as kl, o as Dt, i as Rl, R as ao, S as $l, $ as Kt, s as so, k as Bl, q as Ml, a5 as Fl, a4 as je, m as Wl, t as ga, n as zl, j as Ul, w as va, ab as qe, aq as kt, ar as Re, as as Ve, at as nt, u as Gl, B as fa, _ as ye, au as Un, N as ba, I as Hl, an as ir, g as ya, aa as ot, a0 as Te, av as Vl, J as hn, ae as vr, aw as Ta, z as Aa, H as Sa, l as jl, F as ql, ag as Yl, af as Kl, D as Ql, ax as Xl, a1 as Be, b as tn, y as Oe, K as Zl, a9 as fr, r as xa, a6 as Jl, x as Ca, v as Ea, E as ec, ah as Ia, c as Na, a8 as tc, X as nc, ay as _a } from "./gmx-Cz30wIeq.js";
|
|
14
|
+
import { A as yI, az as TI, aA as AI, aB as SI, aC as xI, aD as CI, aE as EI, C as II, e as NI, aF as _I, aG as LI, f as PI, h as OI, T as DI, U as kI, aH as RI, aI as $I, a2 as BI, aJ as MI, a3 as FI, aK as WI, aL as zI, aM as UI, aN as GI, aO as HI, aP as VI, aQ as jI, aR as qI, aS as YI, aT as KI, aU as QI, aV as XI, aW as ZI, aX as JI, aY as eN, aZ as tN, a_ as nN, a$ as rN, b0 as oN, b1 as aN, b2 as sN, b3 as iN, b4 as lN, b5 as cN, b6 as dN, b7 as pN, b8 as uN, b9 as mN, ba as wN, bb as hN, bc as gN, bd as vN, be as fN, ai as bN, aj as yN } from "./gmx-Cz30wIeq.js";
|
|
15
|
+
import { useAccount as La, useConfig as rc, useSwitchChain as oc, useReadContract as Ne, useBalance as ac, useWalletClient as br, usePublicClient as gn, useWriteContract as sc, useEstimateFeesPerGas as ic, useBlockNumber as lc, useConnect as Pa, useReadContracts as pe, useWaitForTransactionReceipt as Rt, useSimulateContract as cc } from "wagmi";
|
|
16
|
+
import { useBlockNumber as AN, useConnect as SN, useDisconnect as xN, usePublicClient as CN, useReadContract as EN, useReadContracts as IN, useSendTransaction as NN, useWaitForTransactionReceipt as _N, useWalletClient as LN, useWriteContract as PN } from "wagmi";
|
|
17
17
|
import { erc20Abi as Ae, encodeFunctionData as dc, formatUnits as Se, formatEther as pc, isAddress as uc, encodeAbiParameters as mc, encodePacked as wc, keccak256 as hc } from "viem";
|
|
18
18
|
import { decodeErrorResult as DN, encodeFunctionData as kN, erc20Abi as RN, formatEther as $N, formatUnits as BN, hexToString as MN, trim as FN } from "viem";
|
|
19
19
|
import N, { BigNumber as ke } from "bignumber.js";
|
|
20
|
-
import { H as gc, o as vc, p as K, S as Y, T as Oa, F as
|
|
21
|
-
import { a0 as zN, a1 as UN, R as GN } from "./slippage-auto-simulation-
|
|
20
|
+
import { H as gc, o as vc, p as K, S as Y, T as Oa, F as yr, w as fc, U as Z, L as bc, K as He, y as io, V as re, q as rn, x as rt, l as Qt, W as yc, X as Nt, D as Tc, z as Tr, c as Ac, n as Ar, g as Gn, Q as Sc, i as xc, P as Cc, h as Ec, f as Ic, I as Da, k as Hn, e as lo, N as Nc, M as ka, C as Ra, s as $a, t as _c, m as Ba, G as Ma, d as Lc, Y as $e, Z as Pc, A as Fa, J as Wa, _ as Sr, $ as Oc, B as co, v as Dc, u as kc, E as Rc } from "./slippage-auto-simulation-D7NLxruB.js";
|
|
21
|
+
import { a0 as zN, a1 as UN, R as GN } from "./slippage-auto-simulation-D7NLxruB.js";
|
|
22
22
|
import { CustomError as $c } from "ts-custom-error";
|
|
23
|
-
import { useQuery as vn, useQueryClient as
|
|
23
|
+
import { useQuery as vn, useQueryClient as xr } from "@tanstack/react-query";
|
|
24
24
|
import { hyperEvm as za, base as Ua, polygon as Bc, optimism as Ga, arbitrum as fn, mainnet as Ha } from "wagmi/chains";
|
|
25
25
|
import { arbitrum as VN, base as jN, optimism as qN, polygon as YN } from "wagmi/chains";
|
|
26
26
|
import { format as Mc, formatDuration as Va, intervalToDuration as Fc } from "date-fns";
|
|
27
27
|
import { CircleStackIcon as ja, ChevronDownIcon as qa, CheckIcon as Ya } from "@heroicons/react/20/solid";
|
|
28
|
-
import { L as
|
|
28
|
+
import { L as Vn, C as Wc } from "./storage-CSc9iE5L.js";
|
|
29
29
|
const zc = ({
|
|
30
30
|
tooltipContent: e,
|
|
31
31
|
children: t,
|
|
@@ -54,7 +54,7 @@ const zc = ({
|
|
|
54
54
|
}
|
|
55
55
|
)
|
|
56
56
|
] });
|
|
57
|
-
},
|
|
57
|
+
}, Cr = ({ text: e, ...t }) => /* @__PURE__ */ s(
|
|
58
58
|
zc,
|
|
59
59
|
{
|
|
60
60
|
...t,
|
|
@@ -64,8 +64,8 @@ const zc = ({
|
|
|
64
64
|
text: e,
|
|
65
65
|
placement: t,
|
|
66
66
|
iconClassName: n = "dtw-text-[color:var(--panel-secondary-content-color)]",
|
|
67
|
-
Icon: r =
|
|
68
|
-
}) => /* @__PURE__ */ s(
|
|
67
|
+
Icon: r = sr
|
|
68
|
+
}) => /* @__PURE__ */ s(Cr, { text: e, placement: t, children: /* @__PURE__ */ s(
|
|
69
69
|
r,
|
|
70
70
|
{
|
|
71
71
|
className: C(
|
|
@@ -267,12 +267,12 @@ const zc = ({
|
|
|
267
267
|
WITHDRAW_STEPPER: "WITHDRAW_STEPPER",
|
|
268
268
|
HYPEREVM_WARNING: "HYPEREVM_WARNING"
|
|
269
269
|
}, Vc = {
|
|
270
|
-
[U.DEFAULT]:
|
|
271
|
-
[U.ERROR]:
|
|
270
|
+
[U.DEFAULT]: sr,
|
|
271
|
+
[U.ERROR]: It,
|
|
272
272
|
[U.SUCCESS]: ua,
|
|
273
|
-
[U.WARNING]:
|
|
274
|
-
[U.CUSTOM]:
|
|
275
|
-
},
|
|
273
|
+
[U.WARNING]: It,
|
|
274
|
+
[U.CUSTOM]: sr
|
|
275
|
+
}, jn = ({
|
|
276
276
|
tooltipText: e,
|
|
277
277
|
value: t,
|
|
278
278
|
label: n,
|
|
@@ -331,7 +331,7 @@ const zc = ({
|
|
|
331
331
|
r
|
|
332
332
|
]
|
|
333
333
|
}
|
|
334
|
-
),
|
|
334
|
+
), Er = ({
|
|
335
335
|
children: e,
|
|
336
336
|
staticItems: t,
|
|
337
337
|
collapseItems: n,
|
|
@@ -340,9 +340,9 @@ const zc = ({
|
|
|
340
340
|
}) => {
|
|
341
341
|
const a = S();
|
|
342
342
|
return /* @__PURE__ */ s("div", { className: "dtw-w-full dtw-flex dtw-flex-col dtw-gap-1", children: /* @__PURE__ */ s(na, { children: ({ open: i }) => /* @__PURE__ */ w(P, { children: [
|
|
343
|
-
t?.map((l) => /* @__PURE__ */ s(
|
|
343
|
+
t?.map((l) => /* @__PURE__ */ s(jn, { ...l }, l.label)),
|
|
344
344
|
/* @__PURE__ */ s(ra, { className: "dtw-p-0 dtw-flex dtw-w-full dtw-justify-between dtw-rounded-[var(--panel-radius-secondary,var(--panel-radius))] hover:dtw-bg-[var(--panel-meta-hover-bg,var(--panel-neutral-color))] focus:dtw-outline-none", children: /* @__PURE__ */ w(
|
|
345
|
-
|
|
345
|
+
jn,
|
|
346
346
|
{
|
|
347
347
|
tooltipText: a.fullReceiveDetails,
|
|
348
348
|
label: a.tradeDetails,
|
|
@@ -364,7 +364,7 @@ const zc = ({
|
|
|
364
364
|
}
|
|
365
365
|
) }),
|
|
366
366
|
/* @__PURE__ */ s(oa, { show: i, children: /* @__PURE__ */ w(aa, { className: "dtw-transition dtw-transform dtw-duration-100 dtw-ease-out data-[closed]:opacity-0 data-[closed]:-dtw-translate-y-2.5 dtw-static dtw-text-[length:var(--panel-label-font-size,var(--panel-font-size-xs))] dtw-leading-[var(--panel-label-line-height,var(--panel-line-height-xs))] dtw-text-[color:var(--panel-secondary-content-color)] dtw-font-[var(--panel-meta-font-weight,var(--panel-font-weight-light))] dtw-rounded-[var(--panel-radius-secondary,var(--panel-radius))] dtw-flex dtw-flex-col dtw-gap-1", children: [
|
|
367
|
-
n?.map((l) => /* @__PURE__ */ s(
|
|
367
|
+
n?.map((l) => /* @__PURE__ */ s(jn, { ...l }, l.label)),
|
|
368
368
|
e
|
|
369
369
|
] }) })
|
|
370
370
|
] }) }) });
|
|
@@ -451,7 +451,7 @@ const zc = ({
|
|
|
451
451
|
stateMutability: "nonpayable",
|
|
452
452
|
type: "function"
|
|
453
453
|
}
|
|
454
|
-
],
|
|
454
|
+
], XE = {
|
|
455
455
|
address: "0xb88339cb7199b77e23db6e890353e22632ba630f",
|
|
456
456
|
symbol: "USDC",
|
|
457
457
|
decimals: 6,
|
|
@@ -469,12 +469,12 @@ const zc = ({
|
|
|
469
469
|
function te() {
|
|
470
470
|
}
|
|
471
471
|
const po = {
|
|
472
|
-
address:
|
|
472
|
+
address: I,
|
|
473
473
|
symbol: "",
|
|
474
474
|
decimals: W,
|
|
475
475
|
value: ""
|
|
476
476
|
}, Xa = (e) => {
|
|
477
|
-
const t = e?.poolAddress ??
|
|
477
|
+
const t = e?.poolAddress ?? I, n = {
|
|
478
478
|
address: t,
|
|
479
479
|
symbol: e?.poolConfigMap?.[t]?.symbol ?? "",
|
|
480
480
|
decimals: W,
|
|
@@ -514,14 +514,14 @@ const po = {
|
|
|
514
514
|
},
|
|
515
515
|
withdrawAction: null,
|
|
516
516
|
transactions: e?.transactions ?? [],
|
|
517
|
-
poolFallbackData: { address:
|
|
517
|
+
poolFallbackData: { address: I, ...e?.poolFallbackData },
|
|
518
518
|
customDepositTokensPerChain: e?.customDepositTokensPerChain,
|
|
519
519
|
defaultChainId: e?.defaultChainId,
|
|
520
520
|
swapQuoteRefreshTriggered: null
|
|
521
521
|
};
|
|
522
522
|
}, Za = ce({
|
|
523
523
|
...Xa({
|
|
524
|
-
poolAddress:
|
|
524
|
+
poolAddress: I,
|
|
525
525
|
poolConfigMap: {}
|
|
526
526
|
})
|
|
527
527
|
}), Ja = ce({
|
|
@@ -698,7 +698,7 @@ const po = {
|
|
|
698
698
|
default:
|
|
699
699
|
return t;
|
|
700
700
|
}
|
|
701
|
-
},
|
|
701
|
+
}, ZE = ({
|
|
702
702
|
children: e,
|
|
703
703
|
initialState: t,
|
|
704
704
|
actions: {
|
|
@@ -720,66 +720,66 @@ const po = {
|
|
|
720
720
|
getReferrerAddress: T
|
|
721
721
|
}
|
|
722
722
|
}) => {
|
|
723
|
-
const [x,
|
|
723
|
+
const [x, E] = wn(
|
|
724
724
|
Kc(h),
|
|
725
725
|
Xa(t)
|
|
726
726
|
), R = f(
|
|
727
727
|
($) => {
|
|
728
|
-
|
|
728
|
+
E({ type: "SET_POOL_ADDRESS", payload: $ }), n?.($);
|
|
729
729
|
},
|
|
730
730
|
[n]
|
|
731
731
|
), V = f(
|
|
732
732
|
($) => {
|
|
733
|
-
|
|
733
|
+
E({ type: "UPDATE_SEND_TOKEN_INPUT", payload: $ }), r?.($);
|
|
734
734
|
},
|
|
735
735
|
[r]
|
|
736
736
|
), J = f(
|
|
737
737
|
($) => {
|
|
738
|
-
|
|
738
|
+
E({ type: "UPDATE_RECEIVE_TOKEN_INPUT", payload: $ }), o?.($);
|
|
739
739
|
},
|
|
740
740
|
[o]
|
|
741
741
|
), oe = f(
|
|
742
742
|
($) => {
|
|
743
|
-
|
|
743
|
+
E({ type: "UPDATE_TRADING_SETTINGS", payload: $ }), a?.($);
|
|
744
744
|
},
|
|
745
745
|
[a]
|
|
746
746
|
), ee = f(
|
|
747
747
|
($) => {
|
|
748
|
-
|
|
748
|
+
E({ type: "SET_TRADING_TYPE", payload: $ }), i?.($);
|
|
749
749
|
},
|
|
750
750
|
[i]
|
|
751
751
|
), We = f(
|
|
752
752
|
($) => {
|
|
753
|
-
|
|
753
|
+
E({ type: "UPDATE_TRADING_MODAL", payload: $ }), l?.($);
|
|
754
754
|
},
|
|
755
755
|
[l]
|
|
756
756
|
), et = f(
|
|
757
757
|
($) => {
|
|
758
|
-
|
|
758
|
+
E({ type: "UPDATE_WITHDRAW_ACTION", payload: $ });
|
|
759
759
|
},
|
|
760
760
|
[]
|
|
761
761
|
), fe = f(
|
|
762
762
|
($) => {
|
|
763
|
-
|
|
763
|
+
E({ type: "UPDATE_TRADING_TRANSACTIONS", payload: $ }), c?.($);
|
|
764
764
|
},
|
|
765
765
|
[c]
|
|
766
766
|
), tt = f(($) => {
|
|
767
|
-
|
|
767
|
+
E({ type: "UPDATE_POOL_FALLBACK_DATA", payload: $ });
|
|
768
768
|
}, []), Yt = f(
|
|
769
769
|
($) => {
|
|
770
|
-
|
|
770
|
+
E({ type: "UPDATE_CUSTOM_DEPOSIT_TOKENS_PER_CHAIN", payload: $ });
|
|
771
771
|
},
|
|
772
772
|
[]
|
|
773
773
|
), no = f(
|
|
774
774
|
($) => {
|
|
775
|
-
|
|
775
|
+
E({ type: "UPDATE_POOL_CONFIG", payload: $ });
|
|
776
776
|
},
|
|
777
777
|
[]
|
|
778
778
|
), ro = f(($) => {
|
|
779
|
-
|
|
779
|
+
E({ type: "ADD_POOL_CONFIG", payload: $ });
|
|
780
780
|
}, []), oo = f(
|
|
781
781
|
($) => {
|
|
782
|
-
|
|
782
|
+
E({ type: "SET_SWAP_QUOTE_REFRESH_TRIGGERED", payload: $ });
|
|
783
783
|
},
|
|
784
784
|
[]
|
|
785
785
|
), pl = L(
|
|
@@ -842,7 +842,7 @@ const po = {
|
|
|
842
842
|
}, $t = () => {
|
|
843
843
|
const { poolConfigMap: e } = ne();
|
|
844
844
|
return L(() => Object.values(e), [e]);
|
|
845
|
-
},
|
|
845
|
+
}, JE = (e) => {
|
|
846
846
|
const t = $t();
|
|
847
847
|
return L(
|
|
848
848
|
() => t.some((n) => n.address === e),
|
|
@@ -881,7 +881,7 @@ const po = {
|
|
|
881
881
|
t,
|
|
882
882
|
n
|
|
883
883
|
]);
|
|
884
|
-
},
|
|
884
|
+
}, eI = () => z().setPoolAddress, tI = () => z().updateSendTokenInput, nI = () => z().updateReceiveTokenInput, rI = () => z().updateTradingSettings, oI = () => z().setTradingType, aI = () => z().updateTradingModal, Xc = () => z().updatePoolFallbackData, Zc = () => z().onTransactionError, Jc = () => z().onTradingSettleError, ed = () => z().onTransactionSuccess, Ir = () => z().onTransactionEstimationError, td = () => z().onTokenSelector, it = () => z().onLog, nd = () => z().onSimulateTransaction, Nr = () => {
|
|
885
885
|
const e = z().getSwapQuotes, { effectiveSelectedAggregators: t } = bn();
|
|
886
886
|
return f(
|
|
887
887
|
({
|
|
@@ -898,7 +898,7 @@ const po = {
|
|
|
898
898
|
}),
|
|
899
899
|
[e, t]
|
|
900
900
|
);
|
|
901
|
-
},
|
|
901
|
+
}, sI = () => z().updatePoolConfig, iI = () => z().addPoolConfig, lI = () => z().updateCustomDepositTokensPerChain, _r = () => z().setSwapQuoteRefreshTriggered, rd = () => z().getReferrerAddress, es = () => ne().input, O = () => [
|
|
902
902
|
es().sendToken,
|
|
903
903
|
z().updateSendTokenInput
|
|
904
904
|
], M = () => [
|
|
@@ -916,15 +916,15 @@ const po = {
|
|
|
916
916
|
], Ce = () => [ne().type, z().setTradingType], Ye = () => ne().type === "deposit", ue = () => [
|
|
917
917
|
ne().transactions,
|
|
918
918
|
z().updateTransactions
|
|
919
|
-
], ad = () => ne().defaultChainId,
|
|
920
|
-
const { chain: e } = La(), { chains: t } = rc(), { switchChain: n, switchChainAsync: r } = oc(), o = ad(), a = e?.id, i =
|
|
919
|
+
], ad = () => ne().defaultChainId, qn = (e, t) => t.some(({ id: n }) => n === e), Ke = () => {
|
|
920
|
+
const { chain: e } = La(), { chains: t } = rc(), { switchChain: n, switchChainAsync: r } = oc(), o = ad(), a = e?.id, i = qn(a, t), l = o && qn(o, t) ? o : t[0].id;
|
|
921
921
|
return {
|
|
922
922
|
chain: e,
|
|
923
923
|
isSupported: i,
|
|
924
924
|
switchNetwork: n,
|
|
925
925
|
switchNetworkAsync: r,
|
|
926
926
|
chainId: i ? a : void 0,
|
|
927
|
-
supportedChainId:
|
|
927
|
+
supportedChainId: qn(a, t) ? a : l,
|
|
928
928
|
chains: t
|
|
929
929
|
};
|
|
930
930
|
}, Bt = ({
|
|
@@ -943,7 +943,7 @@ const po = {
|
|
|
943
943
|
enabled: !o,
|
|
944
944
|
refetchInterval: Dt
|
|
945
945
|
}
|
|
946
|
-
}),
|
|
946
|
+
}), cI = () => {
|
|
947
947
|
const { account: e } = k(), [t, n] = F(!1);
|
|
948
948
|
return _(() => {
|
|
949
949
|
n(!!e);
|
|
@@ -963,7 +963,7 @@ var id = sd;
|
|
|
963
963
|
function ld(e, t) {
|
|
964
964
|
return e === t || e !== e && t !== t;
|
|
965
965
|
}
|
|
966
|
-
var
|
|
966
|
+
var Lr = ld, cd = Lr;
|
|
967
967
|
function dd(e, t) {
|
|
968
968
|
for (var n = e.length; n--; )
|
|
969
969
|
if (cd(e[n][0], t))
|
|
@@ -992,7 +992,7 @@ function Sd(e, t) {
|
|
|
992
992
|
var n = this.__data__, r = Ad(n, e);
|
|
993
993
|
return r < 0 ? (++this.size, n.push([e, t])) : n[r][1] = t, this;
|
|
994
994
|
}
|
|
995
|
-
var xd = Sd, Cd = id,
|
|
995
|
+
var xd = Sd, Cd = id, Ed = hd, Id = fd, Nd = Td, _d = xd;
|
|
996
996
|
function lt(e) {
|
|
997
997
|
var t = -1, n = e == null ? 0 : e.length;
|
|
998
998
|
for (this.clear(); ++t < n; ) {
|
|
@@ -1001,8 +1001,8 @@ function lt(e) {
|
|
|
1001
1001
|
}
|
|
1002
1002
|
}
|
|
1003
1003
|
lt.prototype.clear = Cd;
|
|
1004
|
-
lt.prototype.delete =
|
|
1005
|
-
lt.prototype.get =
|
|
1004
|
+
lt.prototype.delete = Ed;
|
|
1005
|
+
lt.prototype.get = Id;
|
|
1006
1006
|
lt.prototype.has = Nd;
|
|
1007
1007
|
lt.prototype.set = _d;
|
|
1008
1008
|
var Sn = lt, Ld = Sn;
|
|
@@ -1053,8 +1053,8 @@ function pp(e) {
|
|
|
1053
1053
|
var t = ap(e);
|
|
1054
1054
|
return t == lp || t == cp || t == ip || t == dp;
|
|
1055
1055
|
}
|
|
1056
|
-
var os = pp, up = _e, mp = up["__core-js_shared__"], wp = mp,
|
|
1057
|
-
var e = /[^.]+$/.exec(
|
|
1056
|
+
var os = pp, up = _e, mp = up["__core-js_shared__"], wp = mp, Yn = wp, ho = function() {
|
|
1057
|
+
var e = /[^.]+$/.exec(Yn && Yn.keys && Yn.keys.IE_PROTO || "");
|
|
1058
1058
|
return e ? "Symbol(src)_1." + e : "";
|
|
1059
1059
|
}();
|
|
1060
1060
|
function hp(e) {
|
|
@@ -1074,7 +1074,7 @@ function bp(e) {
|
|
|
1074
1074
|
}
|
|
1075
1075
|
return "";
|
|
1076
1076
|
}
|
|
1077
|
-
var as = bp, yp = os, Tp = gp, Ap = Mt, Sp = as, xp = /[\\^$.*+?()[\]{}|]/g, Cp = /^\[object .+?Constructor\]$/,
|
|
1077
|
+
var as = bp, yp = os, Tp = gp, Ap = Mt, Sp = as, xp = /[\\^$.*+?()[\]{}|]/g, Cp = /^\[object .+?Constructor\]$/, Ep = Function.prototype, Ip = Object.prototype, Np = Ep.toString, _p = Ip.hasOwnProperty, Lp = RegExp(
|
|
1078
1078
|
"^" + Np.call(_p).replace(xp, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
|
|
1079
1079
|
);
|
|
1080
1080
|
function Pp(e) {
|
|
@@ -1092,7 +1092,7 @@ function Bp(e, t) {
|
|
|
1092
1092
|
var n = $p(e, t);
|
|
1093
1093
|
return Rp(n) ? n : void 0;
|
|
1094
1094
|
}
|
|
1095
|
-
var dt = Bp, Mp = dt, Fp = _e, Wp = Mp(Fp, "Map"),
|
|
1095
|
+
var dt = Bp, Mp = dt, Fp = _e, Wp = Mp(Fp, "Map"), Pr = Wp, zp = dt, Up = zp(Object, "create"), Cn = Up, go = Cn;
|
|
1096
1096
|
function Gp() {
|
|
1097
1097
|
this.__data__ = go ? go(null) : {}, this.size = 0;
|
|
1098
1098
|
}
|
|
@@ -1133,7 +1133,7 @@ pt.prototype.delete = cu;
|
|
|
1133
1133
|
pt.prototype.get = du;
|
|
1134
1134
|
pt.prototype.has = pu;
|
|
1135
1135
|
pt.prototype.set = uu;
|
|
1136
|
-
var mu = pt, vo = mu, wu = Sn, hu =
|
|
1136
|
+
var mu = pt, vo = mu, wu = Sn, hu = Pr;
|
|
1137
1137
|
function gu() {
|
|
1138
1138
|
this.size = 0, this.__data__ = {
|
|
1139
1139
|
hash: new vo(),
|
|
@@ -1151,25 +1151,25 @@ function Tu(e, t) {
|
|
|
1151
1151
|
var n = e.__data__;
|
|
1152
1152
|
return yu(t) ? n[typeof t == "string" ? "string" : "hash"] : n.map;
|
|
1153
1153
|
}
|
|
1154
|
-
var
|
|
1154
|
+
var En = Tu, Au = En;
|
|
1155
1155
|
function Su(e) {
|
|
1156
1156
|
var t = Au(this, e).delete(e);
|
|
1157
1157
|
return this.size -= t ? 1 : 0, t;
|
|
1158
1158
|
}
|
|
1159
|
-
var xu = Su, Cu =
|
|
1160
|
-
function
|
|
1159
|
+
var xu = Su, Cu = En;
|
|
1160
|
+
function Eu(e) {
|
|
1161
1161
|
return Cu(this, e).get(e);
|
|
1162
1162
|
}
|
|
1163
|
-
var
|
|
1163
|
+
var Iu = Eu, Nu = En;
|
|
1164
1164
|
function _u(e) {
|
|
1165
1165
|
return Nu(this, e).has(e);
|
|
1166
1166
|
}
|
|
1167
|
-
var Lu = _u, Pu =
|
|
1167
|
+
var Lu = _u, Pu = En;
|
|
1168
1168
|
function Ou(e, t) {
|
|
1169
1169
|
var n = Pu(this, e), r = n.size;
|
|
1170
1170
|
return n.set(e, t), this.size += n.size == r ? 0 : 1, this;
|
|
1171
1171
|
}
|
|
1172
|
-
var Du = Ou, ku = vu, Ru = xu, $u =
|
|
1172
|
+
var Du = Ou, ku = vu, Ru = xu, $u = Iu, Bu = Lu, Mu = Du;
|
|
1173
1173
|
function ut(e) {
|
|
1174
1174
|
var t = -1, n = e == null ? 0 : e.length;
|
|
1175
1175
|
for (this.clear(); ++t < n; ) {
|
|
@@ -1182,7 +1182,7 @@ ut.prototype.delete = Ru;
|
|
|
1182
1182
|
ut.prototype.get = $u;
|
|
1183
1183
|
ut.prototype.has = Bu;
|
|
1184
1184
|
ut.prototype.set = Mu;
|
|
1185
|
-
var
|
|
1185
|
+
var Or = ut, Fu = Sn, Wu = Pr, zu = Or, Uu = 200;
|
|
1186
1186
|
function Gu(e, t) {
|
|
1187
1187
|
var n = this.__data__;
|
|
1188
1188
|
if (n instanceof Fu) {
|
|
@@ -1211,7 +1211,7 @@ var Ju = Zu;
|
|
|
1211
1211
|
function em(e) {
|
|
1212
1212
|
return this.__data__.has(e);
|
|
1213
1213
|
}
|
|
1214
|
-
var tm = em, nm =
|
|
1214
|
+
var tm = em, nm = Or, rm = Ju, om = tm;
|
|
1215
1215
|
function sn(e) {
|
|
1216
1216
|
var t = -1, n = e == null ? 0 : e.length;
|
|
1217
1217
|
for (this.__data__ = new nm(); ++t < n; )
|
|
@@ -1278,7 +1278,7 @@ function bm(e) {
|
|
|
1278
1278
|
n[++t] = r;
|
|
1279
1279
|
}), n;
|
|
1280
1280
|
}
|
|
1281
|
-
var
|
|
1281
|
+
var Dr = bm, fo = xn, bo = gm, ym = Lr, Tm = cs, Am = fm, Sm = Dr, xm = 1, Cm = 2, Em = "[object Boolean]", Im = "[object Date]", Nm = "[object Error]", _m = "[object Map]", Lm = "[object Number]", Pm = "[object RegExp]", Om = "[object Set]", Dm = "[object String]", km = "[object Symbol]", Rm = "[object ArrayBuffer]", $m = "[object DataView]", yo = fo ? fo.prototype : void 0, Kn = yo ? yo.valueOf : void 0;
|
|
1282
1282
|
function Bm(e, t, n, r, o, a, i) {
|
|
1283
1283
|
switch (n) {
|
|
1284
1284
|
case $m:
|
|
@@ -1287,8 +1287,8 @@ function Bm(e, t, n, r, o, a, i) {
|
|
|
1287
1287
|
e = e.buffer, t = t.buffer;
|
|
1288
1288
|
case Rm:
|
|
1289
1289
|
return !(e.byteLength != t.byteLength || !a(new bo(e), new bo(t)));
|
|
1290
|
-
case Im:
|
|
1291
1290
|
case Em:
|
|
1291
|
+
case Im:
|
|
1292
1292
|
case Lm:
|
|
1293
1293
|
return ym(+e, +t);
|
|
1294
1294
|
case Nm:
|
|
@@ -1309,8 +1309,8 @@ function Bm(e, t, n, r, o, a, i) {
|
|
|
1309
1309
|
var p = Tm(l(e), l(t), r, o, a, i);
|
|
1310
1310
|
return i.delete(e), p;
|
|
1311
1311
|
case km:
|
|
1312
|
-
if (
|
|
1313
|
-
return
|
|
1312
|
+
if (Kn)
|
|
1313
|
+
return Kn.call(e) == Kn.call(t);
|
|
1314
1314
|
}
|
|
1315
1315
|
return !1;
|
|
1316
1316
|
}
|
|
@@ -1374,13 +1374,13 @@ function fw(e, t) {
|
|
|
1374
1374
|
var n = typeof e;
|
|
1375
1375
|
return t = t ?? gw, !!t && (n == "number" || n != "symbol" && vw.test(e)) && e > -1 && e % 1 == 0 && e < t;
|
|
1376
1376
|
}
|
|
1377
|
-
var
|
|
1377
|
+
var kr = fw, bw = 9007199254740991;
|
|
1378
1378
|
function yw(e) {
|
|
1379
1379
|
return typeof e == "number" && e > -1 && e % 1 == 0 && e <= bw;
|
|
1380
1380
|
}
|
|
1381
|
-
var
|
|
1381
|
+
var Rr = yw, Tw = ct, Aw = Rr, Sw = wt, xw = "[object Arguments]", Cw = "[object Array]", Ew = "[object Boolean]", Iw = "[object Date]", Nw = "[object Error]", _w = "[object Function]", Lw = "[object Map]", Pw = "[object Number]", Ow = "[object Object]", Dw = "[object RegExp]", kw = "[object Set]", Rw = "[object String]", $w = "[object WeakMap]", Bw = "[object ArrayBuffer]", Mw = "[object DataView]", Fw = "[object Float32Array]", Ww = "[object Float64Array]", zw = "[object Int8Array]", Uw = "[object Int16Array]", Gw = "[object Int32Array]", Hw = "[object Uint8Array]", Vw = "[object Uint8ClampedArray]", jw = "[object Uint16Array]", qw = "[object Uint32Array]", q = {};
|
|
1382
1382
|
q[Fw] = q[Ww] = q[zw] = q[Uw] = q[Gw] = q[Hw] = q[Vw] = q[jw] = q[qw] = !0;
|
|
1383
|
-
q[xw] = q[Cw] = q[Bw] = q[
|
|
1383
|
+
q[xw] = q[Cw] = q[Bw] = q[Ew] = q[Mw] = q[Iw] = q[Nw] = q[_w] = q[Lw] = q[Pw] = q[Ow] = q[Dw] = q[kw] = q[Rw] = q[$w] = !1;
|
|
1384
1384
|
function Yw(e) {
|
|
1385
1385
|
return Sw(e) && Aw(e.length) && !!q[Tw(e)];
|
|
1386
1386
|
}
|
|
@@ -1402,7 +1402,7 @@ cn.exports;
|
|
|
1402
1402
|
}();
|
|
1403
1403
|
e.exports = l;
|
|
1404
1404
|
})(cn, cn.exports);
|
|
1405
|
-
var Zw = cn.exports, Jw = Kw, eh = Xw, So = Zw, xo = So && So.isTypedArray, th = xo ? eh(xo) : Jw, ms = th, nh = rw, rh = ps, oh = Fe, ah = us, sh =
|
|
1405
|
+
var Zw = cn.exports, Jw = Kw, eh = Xw, So = Zw, xo = So && So.isTypedArray, th = xo ? eh(xo) : Jw, ms = th, nh = rw, rh = ps, oh = Fe, ah = us, sh = kr, ih = ms, lh = Object.prototype, ch = lh.hasOwnProperty;
|
|
1406
1406
|
function dh(e, t) {
|
|
1407
1407
|
var n = oh(e), r = !n && rh(e), o = !n && !r && ah(e), a = !n && !r && !o && ih(e), i = n || r || o || a, l = i ? nh(e.length, String) : [], c = l.length;
|
|
1408
1408
|
for (var d in e)
|
|
@@ -1433,15 +1433,15 @@ function xh(e) {
|
|
|
1433
1433
|
Sh.call(e, n) && n != "constructor" && t.push(n);
|
|
1434
1434
|
return t;
|
|
1435
1435
|
}
|
|
1436
|
-
var Ch = xh,
|
|
1436
|
+
var Ch = xh, Eh = os, Ih = Rr;
|
|
1437
1437
|
function Nh(e) {
|
|
1438
|
-
return e != null &&
|
|
1438
|
+
return e != null && Ih(e.length) && !Eh(e);
|
|
1439
1439
|
}
|
|
1440
1440
|
var ws = Nh, _h = ph, Lh = Ch, Ph = ws;
|
|
1441
1441
|
function Oh(e) {
|
|
1442
1442
|
return Ph(e) ? _h(e) : Lh(e);
|
|
1443
1443
|
}
|
|
1444
|
-
var
|
|
1444
|
+
var $r = Oh, Dh = Vm, kh = tw, Rh = $r;
|
|
1445
1445
|
function $h(e) {
|
|
1446
1446
|
return Dh(e, Rh, kh);
|
|
1447
1447
|
}
|
|
@@ -1464,8 +1464,8 @@ function zh(e, t, n, r, o, a) {
|
|
|
1464
1464
|
m = l[u];
|
|
1465
1465
|
var T = e[m], x = t[m];
|
|
1466
1466
|
if (r)
|
|
1467
|
-
var
|
|
1468
|
-
if (!(
|
|
1467
|
+
var E = i ? r(x, T, m, t, e, a) : r(T, x, m, e, t, a);
|
|
1468
|
+
if (!(E === void 0 ? T === x || o(T, x, n, r, a) : E)) {
|
|
1469
1469
|
g = !1;
|
|
1470
1470
|
break;
|
|
1471
1471
|
}
|
|
@@ -1477,17 +1477,17 @@ function zh(e, t, n, r, o, a) {
|
|
|
1477
1477
|
}
|
|
1478
1478
|
return a.delete(e), a.delete(t), g;
|
|
1479
1479
|
}
|
|
1480
|
-
var Uh = zh, Gh = dt, Hh = _e, Vh = Gh(Hh, "DataView"), jh = Vh, qh = dt, Yh = _e, Kh = qh(Yh, "Promise"), Qh = Kh, Xh = dt, Zh = _e, Jh = Xh(Zh, "Set"), hs = Jh, eg = dt, tg = _e, ng = eg(tg, "WeakMap"), rg = ng,
|
|
1481
|
-
(
|
|
1480
|
+
var Uh = zh, Gh = dt, Hh = _e, Vh = Gh(Hh, "DataView"), jh = Vh, qh = dt, Yh = _e, Kh = qh(Yh, "Promise"), Qh = Kh, Xh = dt, Zh = _e, Jh = Xh(Zh, "Set"), hs = Jh, eg = dt, tg = _e, ng = eg(tg, "WeakMap"), rg = ng, lr = jh, cr = Pr, dr = Qh, pr = hs, ur = rg, gs = ct, ht = as, Eo = "[object Map]", og = "[object Object]", Io = "[object Promise]", No = "[object Set]", _o = "[object WeakMap]", Lo = "[object DataView]", ag = ht(lr), sg = ht(cr), ig = ht(dr), lg = ht(pr), cg = ht(ur), Ue = gs;
|
|
1481
|
+
(lr && Ue(new lr(new ArrayBuffer(1))) != Lo || cr && Ue(new cr()) != Eo || dr && Ue(dr.resolve()) != Io || pr && Ue(new pr()) != No || ur && Ue(new ur()) != _o) && (Ue = function(e) {
|
|
1482
1482
|
var t = gs(e), n = t == og ? e.constructor : void 0, r = n ? ht(n) : "";
|
|
1483
1483
|
if (r)
|
|
1484
1484
|
switch (r) {
|
|
1485
1485
|
case ag:
|
|
1486
1486
|
return Lo;
|
|
1487
1487
|
case sg:
|
|
1488
|
-
return Io;
|
|
1489
|
-
case ig:
|
|
1490
1488
|
return Eo;
|
|
1489
|
+
case ig:
|
|
1490
|
+
return Io;
|
|
1491
1491
|
case lg:
|
|
1492
1492
|
return No;
|
|
1493
1493
|
case cg:
|
|
@@ -1495,7 +1495,7 @@ var Uh = zh, Gh = dt, Hh = _e, Vh = Gh(Hh, "DataView"), jh = Vh, qh = dt, Yh = _
|
|
|
1495
1495
|
}
|
|
1496
1496
|
return t;
|
|
1497
1497
|
});
|
|
1498
|
-
var dg = Ue,
|
|
1498
|
+
var dg = Ue, Qn = ss, pg = cs, ug = Mm, mg = Uh, Po = dg, Oo = Fe, Do = us, wg = ms, hg = 1, ko = "[object Arguments]", Ro = "[object Array]", Zt = "[object Object]", gg = Object.prototype, $o = gg.hasOwnProperty;
|
|
1499
1499
|
function vg(e, t, n, r, o, a) {
|
|
1500
1500
|
var i = Oo(e), l = Oo(t), c = i ? Ro : Po(e), d = l ? Ro : Po(t);
|
|
1501
1501
|
c = c == ko ? Zt : c, d = d == ko ? Zt : d;
|
|
@@ -1506,15 +1506,15 @@ function vg(e, t, n, r, o, a) {
|
|
|
1506
1506
|
i = !0, p = !1;
|
|
1507
1507
|
}
|
|
1508
1508
|
if (m && !p)
|
|
1509
|
-
return a || (a = new
|
|
1509
|
+
return a || (a = new Qn()), i || wg(e) ? pg(e, t, n, r, o, a) : ug(e, t, c, n, r, o, a);
|
|
1510
1510
|
if (!(n & hg)) {
|
|
1511
1511
|
var h = p && $o.call(e, "__wrapped__"), v = u && $o.call(t, "__wrapped__");
|
|
1512
1512
|
if (h || v) {
|
|
1513
1513
|
var g = h ? e.value() : e, b = v ? t.value() : t;
|
|
1514
|
-
return a || (a = new
|
|
1514
|
+
return a || (a = new Qn()), o(g, b, n, r, a);
|
|
1515
1515
|
}
|
|
1516
1516
|
}
|
|
1517
|
-
return m ? (a || (a = new
|
|
1517
|
+
return m ? (a || (a = new Qn()), mg(e, t, n, r, o, a)) : !1;
|
|
1518
1518
|
}
|
|
1519
1519
|
var fg = vg, bg = fg, Bo = wt;
|
|
1520
1520
|
function vs(e, t, n, r, o) {
|
|
@@ -1546,11 +1546,11 @@ function xg(e, t, n, r) {
|
|
|
1546
1546
|
}
|
|
1547
1547
|
return !0;
|
|
1548
1548
|
}
|
|
1549
|
-
var Cg = xg,
|
|
1550
|
-
function
|
|
1551
|
-
return e === e && !
|
|
1549
|
+
var Cg = xg, Eg = Mt;
|
|
1550
|
+
function Ig(e) {
|
|
1551
|
+
return e === e && !Eg(e);
|
|
1552
1552
|
}
|
|
1553
|
-
var bs =
|
|
1553
|
+
var bs = Ig, Ng = bs, _g = $r;
|
|
1554
1554
|
function Lg(e) {
|
|
1555
1555
|
for (var t = _g(e), n = t.length; n--; ) {
|
|
1556
1556
|
var r = t[n], o = e[r];
|
|
@@ -1575,15 +1575,15 @@ var Bg = $g, Mg = ct, Fg = wt, Wg = "[object Symbol]";
|
|
|
1575
1575
|
function zg(e) {
|
|
1576
1576
|
return typeof e == "symbol" || Fg(e) && Mg(e) == Wg;
|
|
1577
1577
|
}
|
|
1578
|
-
var
|
|
1578
|
+
var In = zg, Ug = Fe, Gg = In, Hg = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, Vg = /^\w*$/;
|
|
1579
1579
|
function jg(e, t) {
|
|
1580
1580
|
if (Ug(e))
|
|
1581
1581
|
return !1;
|
|
1582
1582
|
var n = typeof e;
|
|
1583
1583
|
return n == "number" || n == "symbol" || n == "boolean" || e == null || Gg(e) ? !0 : Vg.test(e) || !Hg.test(e) || t != null && e in Object(t);
|
|
1584
1584
|
}
|
|
1585
|
-
var
|
|
1586
|
-
function
|
|
1585
|
+
var Br = jg, Ts = Or, qg = "Expected a function";
|
|
1586
|
+
function Mr(e, t) {
|
|
1587
1587
|
if (typeof e != "function" || t != null && typeof t != "function")
|
|
1588
1588
|
throw new TypeError(qg);
|
|
1589
1589
|
var n = function() {
|
|
@@ -1593,10 +1593,10 @@ function Br(e, t) {
|
|
|
1593
1593
|
var i = e.apply(this, r);
|
|
1594
1594
|
return n.cache = a.set(o, i) || a, i;
|
|
1595
1595
|
};
|
|
1596
|
-
return n.cache = new (
|
|
1596
|
+
return n.cache = new (Mr.Cache || Ts)(), n;
|
|
1597
1597
|
}
|
|
1598
|
-
|
|
1599
|
-
var Yg =
|
|
1598
|
+
Mr.Cache = Ts;
|
|
1599
|
+
var Yg = Mr, Kg = Yg, Qg = 500;
|
|
1600
1600
|
function Xg(e) {
|
|
1601
1601
|
var t = Kg(e, function(r) {
|
|
1602
1602
|
return n.size === Qg && n.clear(), r;
|
|
@@ -1614,7 +1614,7 @@ function ov(e, t) {
|
|
|
1614
1614
|
o[n] = t(e[n], n, e);
|
|
1615
1615
|
return o;
|
|
1616
1616
|
}
|
|
1617
|
-
var av = ov, Mo = xn, sv = av, iv = Fe, lv =
|
|
1617
|
+
var av = ov, Mo = xn, sv = av, iv = Fe, lv = In, Fo = Mo ? Mo.prototype : void 0, Wo = Fo ? Fo.toString : void 0;
|
|
1618
1618
|
function As(e) {
|
|
1619
1619
|
if (typeof e == "string")
|
|
1620
1620
|
return e;
|
|
@@ -1629,11 +1629,11 @@ var cv = As, dv = cv;
|
|
|
1629
1629
|
function pv(e) {
|
|
1630
1630
|
return e == null ? "" : dv(e);
|
|
1631
1631
|
}
|
|
1632
|
-
var uv = pv, mv = Fe, wv =
|
|
1632
|
+
var uv = pv, mv = Fe, wv = Br, hv = rv, gv = uv;
|
|
1633
1633
|
function vv(e, t) {
|
|
1634
1634
|
return mv(e) ? e : wv(e, t) ? [e] : hv(gv(e));
|
|
1635
1635
|
}
|
|
1636
|
-
var Ss = vv, fv =
|
|
1636
|
+
var Ss = vv, fv = In;
|
|
1637
1637
|
function bv(e) {
|
|
1638
1638
|
if (typeof e == "string" || fv(e))
|
|
1639
1639
|
return e;
|
|
@@ -1653,10 +1653,10 @@ function xv(e, t, n) {
|
|
|
1653
1653
|
return r === void 0 ? n : r;
|
|
1654
1654
|
}
|
|
1655
1655
|
var Cv = xv;
|
|
1656
|
-
function
|
|
1656
|
+
function Ev(e, t) {
|
|
1657
1657
|
return e != null && t in Object(e);
|
|
1658
1658
|
}
|
|
1659
|
-
var
|
|
1659
|
+
var Iv = Ev, Nv = Ss, _v = ps, Lv = Fe, Pv = kr, Ov = Rr, Dv = Nn;
|
|
1660
1660
|
function kv(e, t, n) {
|
|
1661
1661
|
t = Nv(t, e);
|
|
1662
1662
|
for (var r = -1, o = t.length, a = !1; ++r < o; ) {
|
|
@@ -1667,11 +1667,11 @@ function kv(e, t, n) {
|
|
|
1667
1667
|
}
|
|
1668
1668
|
return a || ++r != o ? a : (o = e == null ? 0 : e.length, !!o && Ov(o) && Pv(i, o) && (Lv(e) || _v(e)));
|
|
1669
1669
|
}
|
|
1670
|
-
var Rv = kv, $v =
|
|
1670
|
+
var Rv = kv, $v = Iv, Bv = Rv;
|
|
1671
1671
|
function Mv(e, t) {
|
|
1672
1672
|
return e != null && Bv(e, t, $v);
|
|
1673
1673
|
}
|
|
1674
|
-
var Fv = Mv, Wv = fs, zv = Cv, Uv = Fv, Gv =
|
|
1674
|
+
var Fv = Mv, Wv = fs, zv = Cv, Uv = Fv, Gv = Br, Hv = bs, Vv = ys, jv = Nn, qv = 1, Yv = 2;
|
|
1675
1675
|
function Kv(e, t) {
|
|
1676
1676
|
return Gv(e) && Hv(t) ? Vv(jv(e), t) : function(n) {
|
|
1677
1677
|
var r = zv(n, e);
|
|
@@ -1694,7 +1694,7 @@ function nf(e) {
|
|
|
1694
1694
|
return tf(t, e);
|
|
1695
1695
|
};
|
|
1696
1696
|
}
|
|
1697
|
-
var rf = nf, of = ef, af = rf, sf =
|
|
1697
|
+
var rf = nf, of = ef, af = rf, sf = Br, lf = Nn;
|
|
1698
1698
|
function cf(e) {
|
|
1699
1699
|
return sf(e) ? of(lf(e)) : af(e);
|
|
1700
1700
|
}
|
|
@@ -1713,23 +1713,23 @@ function vf(e) {
|
|
|
1713
1713
|
return t;
|
|
1714
1714
|
};
|
|
1715
1715
|
}
|
|
1716
|
-
var ff = vf, bf = ff, yf = bf(), Tf = yf, Af = Tf, Sf =
|
|
1716
|
+
var ff = vf, bf = ff, yf = bf(), Tf = yf, Af = Tf, Sf = $r;
|
|
1717
1717
|
function xf(e, t) {
|
|
1718
1718
|
return e && Af(e, t, Sf);
|
|
1719
1719
|
}
|
|
1720
|
-
var Cf = xf,
|
|
1721
|
-
function
|
|
1722
|
-
return
|
|
1720
|
+
var Cf = xf, Ef = Cf;
|
|
1721
|
+
function If(e, t, n, r) {
|
|
1722
|
+
return Ef(e, function(o, a, i) {
|
|
1723
1723
|
t(r, n(o), a, i);
|
|
1724
1724
|
}), r;
|
|
1725
1725
|
}
|
|
1726
|
-
var Nf =
|
|
1726
|
+
var Nf = If, _f = Nf;
|
|
1727
1727
|
function Lf(e, t) {
|
|
1728
1728
|
return function(n, r) {
|
|
1729
1729
|
return _f(n, e, t(r), {});
|
|
1730
1730
|
};
|
|
1731
1731
|
}
|
|
1732
|
-
var Pf = Lf, Of = Cs, Df = Pf,
|
|
1732
|
+
var Pf = Lf, Of = Cs, Df = Pf, Es = Object.prototype, kf = Es.hasOwnProperty, Rf = Es.toString, $f = Df(function(e, t, n) {
|
|
1733
1733
|
t != null && typeof t.toString != "function" && (t = Rf.call(t)), kf.call(e, t) ? e[t].push(n) : e[t] = [n];
|
|
1734
1734
|
}, Of), Bf = $f;
|
|
1735
1735
|
const Mf = /* @__PURE__ */ Tn(Bf), At = "Canceled by user", Ff = {
|
|
@@ -1772,28 +1772,28 @@ class Ft extends $c {
|
|
|
1772
1772
|
}
|
|
1773
1773
|
}
|
|
1774
1774
|
const Gf = async () => {
|
|
1775
|
-
},
|
|
1775
|
+
}, Xn = (e) => {
|
|
1776
1776
|
const t = e[e.length - 1], n = typeof t == "object" && t !== null && ("value" in t || "gas" in t), r = n ? t : {}, o = n ? e.slice(0, -1) : e;
|
|
1777
1777
|
return { transactionOverrides: r, argumentsWithoutOverrides: o };
|
|
1778
|
-
},
|
|
1778
|
+
}, Ee = ({
|
|
1779
1779
|
functionName: e,
|
|
1780
1780
|
dynamicContractAddress: t,
|
|
1781
1781
|
contractId: n,
|
|
1782
1782
|
onSettled: r
|
|
1783
1783
|
}) => {
|
|
1784
|
-
const { account: o } = k(), { chainId: a, supportedChainId: i } = Ke(), l =
|
|
1784
|
+
const { account: o } = k(), { chainId: a, supportedChainId: i } = Ke(), l = br({ chainId: a }), c = gn({ chainId: a }), d = vc(n), p = t ?? K(n, a ?? i), u = nd(), [{ isForceSendEnabled: m, forceSendGas: h }] = X(), { writeContract: v } = sc({
|
|
1785
1785
|
mutation: {
|
|
1786
1786
|
onSettled: r
|
|
1787
1787
|
}
|
|
1788
1788
|
}), g = f(
|
|
1789
1789
|
async (...x) => {
|
|
1790
1790
|
try {
|
|
1791
|
-
const { argumentsWithoutOverrides:
|
|
1791
|
+
const { argumentsWithoutOverrides: E, transactionOverrides: R } = Xn(x), V = await c?.estimateContractGas({
|
|
1792
1792
|
address: p,
|
|
1793
1793
|
abi: d,
|
|
1794
1794
|
functionName: e,
|
|
1795
|
-
args:
|
|
1796
|
-
account: o ??
|
|
1795
|
+
args: E,
|
|
1796
|
+
account: o ?? I,
|
|
1797
1797
|
gas: R.gas,
|
|
1798
1798
|
value: R.value
|
|
1799
1799
|
});
|
|
@@ -1805,9 +1805,9 @@ const Gf = async () => {
|
|
|
1805
1805
|
return console.debug(
|
|
1806
1806
|
`[core-ui-kit]: estimated gas limit: ${Number(V)}`
|
|
1807
1807
|
), { error: "", value: ee };
|
|
1808
|
-
} catch (
|
|
1809
|
-
return console.error(`Gas estimate error on ${e}`,
|
|
1810
|
-
error:
|
|
1808
|
+
} catch (E) {
|
|
1809
|
+
return console.error(`Gas estimate error on ${e}`, E), {
|
|
1810
|
+
error: E?.message ?? E?.shortMessage ?? E.error?.data?.message ?? E.data?.message ?? ao,
|
|
1811
1811
|
value: BigInt(0)
|
|
1812
1812
|
};
|
|
1813
1813
|
}
|
|
@@ -1827,10 +1827,10 @@ const Gf = async () => {
|
|
|
1827
1827
|
return { data: null, error: so };
|
|
1828
1828
|
if (!c)
|
|
1829
1829
|
return { data: null, error: "Client is not defined" };
|
|
1830
|
-
const { argumentsWithoutOverrides:
|
|
1830
|
+
const { argumentsWithoutOverrides: E, transactionOverrides: R } = Xn(x), V = dc({
|
|
1831
1831
|
abi: d,
|
|
1832
1832
|
functionName: e,
|
|
1833
|
-
args:
|
|
1833
|
+
args: E
|
|
1834
1834
|
});
|
|
1835
1835
|
if (o && V) {
|
|
1836
1836
|
const J = await u({
|
|
@@ -1844,8 +1844,8 @@ const Gf = async () => {
|
|
|
1844
1844
|
return { data: J, error: J?.simulation.error_message };
|
|
1845
1845
|
}
|
|
1846
1846
|
return { data: null, error: so };
|
|
1847
|
-
} catch (
|
|
1848
|
-
return console.debug("Failed to simulate:",
|
|
1847
|
+
} catch (E) {
|
|
1848
|
+
return console.debug("Failed to simulate:", E), { data: null, error: Uf(E) };
|
|
1849
1849
|
}
|
|
1850
1850
|
},
|
|
1851
1851
|
[
|
|
@@ -1860,14 +1860,14 @@ const Gf = async () => {
|
|
|
1860
1860
|
]
|
|
1861
1861
|
), T = f(
|
|
1862
1862
|
async (...x) => {
|
|
1863
|
-
const { argumentsWithoutOverrides:
|
|
1863
|
+
const { argumentsWithoutOverrides: E, transactionOverrides: R } = Xn(x);
|
|
1864
1864
|
if (R.gas)
|
|
1865
1865
|
return v({
|
|
1866
1866
|
address: p,
|
|
1867
1867
|
abi: d,
|
|
1868
1868
|
functionName: e,
|
|
1869
1869
|
chainId: a,
|
|
1870
|
-
args:
|
|
1870
|
+
args: E,
|
|
1871
1871
|
...R
|
|
1872
1872
|
});
|
|
1873
1873
|
const { value: V, error: J } = await g(...x);
|
|
@@ -1883,7 +1883,7 @@ const Gf = async () => {
|
|
|
1883
1883
|
abi: d,
|
|
1884
1884
|
functionName: e,
|
|
1885
1885
|
chainId: a,
|
|
1886
|
-
args:
|
|
1886
|
+
args: E,
|
|
1887
1887
|
...R,
|
|
1888
1888
|
gas: ee
|
|
1889
1889
|
});
|
|
@@ -1909,7 +1909,7 @@ const Gf = async () => {
|
|
|
1909
1909
|
functionName: e,
|
|
1910
1910
|
account: o,
|
|
1911
1911
|
chainId: a,
|
|
1912
|
-
args:
|
|
1912
|
+
args: E,
|
|
1913
1913
|
...R,
|
|
1914
1914
|
gas: BigInt(Kt[a ?? i] ?? 0)
|
|
1915
1915
|
})
|
|
@@ -1920,7 +1920,7 @@ const Gf = async () => {
|
|
|
1920
1920
|
abi: d,
|
|
1921
1921
|
functionName: e,
|
|
1922
1922
|
chainId: a,
|
|
1923
|
-
args:
|
|
1923
|
+
args: E,
|
|
1924
1924
|
...R,
|
|
1925
1925
|
gas: V
|
|
1926
1926
|
});
|
|
@@ -1950,13 +1950,13 @@ const Gf = async () => {
|
|
|
1950
1950
|
...e?.query,
|
|
1951
1951
|
staleTime: 3e4
|
|
1952
1952
|
}
|
|
1953
|
-
}),
|
|
1953
|
+
}), Fr = (e) => {
|
|
1954
1954
|
_(() => {
|
|
1955
1955
|
e && e.forEach(({ error: t, status: n }) => {
|
|
1956
1956
|
n === "failure" && console.warn(t?.message);
|
|
1957
1957
|
});
|
|
1958
1958
|
}, [e]);
|
|
1959
|
-
},
|
|
1959
|
+
}, Is = ({
|
|
1960
1960
|
error: e,
|
|
1961
1961
|
status: t
|
|
1962
1962
|
}) => {
|
|
@@ -1974,7 +1974,7 @@ const Gf = async () => {
|
|
|
1974
1974
|
abi: n,
|
|
1975
1975
|
functionName: e,
|
|
1976
1976
|
args: r
|
|
1977
|
-
}))?.result,
|
|
1977
|
+
}))?.result, dI = ({
|
|
1978
1978
|
disabled: e,
|
|
1979
1979
|
functionName: t,
|
|
1980
1980
|
address: n,
|
|
@@ -1999,11 +1999,11 @@ const Gf = async () => {
|
|
|
1999
1999
|
enabled: !e && !!a && !Y(n) && !!t,
|
|
2000
2000
|
refetchInterval: i
|
|
2001
2001
|
});
|
|
2002
|
-
},
|
|
2002
|
+
}, mr = ({
|
|
2003
2003
|
queryKey: e,
|
|
2004
2004
|
watch: t = !0
|
|
2005
2005
|
}) => {
|
|
2006
|
-
const n =
|
|
2006
|
+
const n = xr(), { data: r } = lc({
|
|
2007
2007
|
query: {
|
|
2008
2008
|
refetchInterval: je
|
|
2009
2009
|
}
|
|
@@ -2011,7 +2011,7 @@ const Gf = async () => {
|
|
|
2011
2011
|
_(() => {
|
|
2012
2012
|
t && n.refetchQueries({ queryKey: e, stale: !0 });
|
|
2013
2013
|
}, [t, r]);
|
|
2014
|
-
},
|
|
2014
|
+
}, Wr = "limitOrders", _s = "getAllLimitOrderIds", zr = 0, Ls = "100", Vf = 1, jf = 5, qf = 2, Yf = [
|
|
2015
2015
|
"balanceOf",
|
|
2016
2016
|
"getFundSummary",
|
|
2017
2017
|
"getFundComposition",
|
|
@@ -2023,14 +2023,14 @@ const Gf = async () => {
|
|
|
2023
2023
|
"tokenPrice",
|
|
2024
2024
|
"limitOrders",
|
|
2025
2025
|
"calculateAvailableManagerFee",
|
|
2026
|
-
|
|
2026
|
+
Wr,
|
|
2027
2027
|
_s
|
|
2028
2028
|
], Kf = ["allowance"], zo = (e, t) => e[0] === "readContract" ? t.includes(
|
|
2029
2029
|
e?.[1]?.functionName ?? ""
|
|
2030
2030
|
) : e[0] === "readContracts" ? !!e[1]?.contracts?.some(
|
|
2031
2031
|
({ functionName: r }) => t.includes(r ?? "")
|
|
2032
2032
|
) : !1, Wt = () => {
|
|
2033
|
-
const e =
|
|
2033
|
+
const e = xr(), t = f(() => {
|
|
2034
2034
|
e.invalidateQueries({
|
|
2035
2035
|
predicate: ({ queryKey: r }) => zo(r, Kf)
|
|
2036
2036
|
});
|
|
@@ -2053,7 +2053,7 @@ function Xf(e) {
|
|
|
2053
2053
|
const n = e.toLowerCase();
|
|
2054
2054
|
return n.includes("bear") ? "torosbear" : n.includes("bull") ? "torosbull" : n;
|
|
2055
2055
|
}
|
|
2056
|
-
const
|
|
2056
|
+
const Ur = (e) => e ? `https://raw.githubusercontent.com/dhedge/crypto-icons/main/icons/${Xf(
|
|
2057
2057
|
e
|
|
2058
2058
|
)}.png` : "", Ps = {
|
|
2059
2059
|
isGeoBlocked: !1,
|
|
@@ -2096,7 +2096,7 @@ const zr = (e) => e ? `https://raw.githubusercontent.com/dhedge/crypto-icons/mai
|
|
|
2096
2096
|
iconPath: ""
|
|
2097
2097
|
}
|
|
2098
2098
|
},
|
|
2099
|
-
getFallbackIconPath:
|
|
2099
|
+
getFallbackIconPath: Ur,
|
|
2100
2100
|
minLimitOrderValue: 0,
|
|
2101
2101
|
limitOrderThemeConfig: {}
|
|
2102
2102
|
}, Zf = () => {
|
|
@@ -2142,10 +2142,10 @@ const zr = (e) => e ? `https://raw.githubusercontent.com/dhedge/crypto-icons/mai
|
|
|
2142
2142
|
if (!e)
|
|
2143
2143
|
throw new Error("ConfigContext is used out of Provider");
|
|
2144
2144
|
return e;
|
|
2145
|
-
}, j = () => Ds().params,
|
|
2145
|
+
}, j = () => Ds().params, Gr = () => Ds().actions, Hr = () => {
|
|
2146
2146
|
const { defaultWithdrawSlippage: e } = j(), { chainId: t } = y();
|
|
2147
2147
|
return Oa(e) ? e : e[t] ?? va;
|
|
2148
|
-
},
|
|
2148
|
+
}, Vr = () => {
|
|
2149
2149
|
const { defaultSwapTransactionSlippage: e } = j(), { chainId: t } = y();
|
|
2150
2150
|
return Oa(e) ? e : e[t] ?? ga;
|
|
2151
2151
|
}, tb = ({
|
|
@@ -2356,10 +2356,10 @@ const zr = (e) => e ? `https://raw.githubusercontent.com/dhedge/crypto-icons/mai
|
|
|
2356
2356
|
const { ActionButton: n = H } = D();
|
|
2357
2357
|
return /* @__PURE__ */ w("div", { children: [
|
|
2358
2358
|
/* @__PURE__ */ w("div", { className: "md:dtw-hidden dtw-mb-4 dtw-flex dtw-items-center dtw-justify-center dtw-space-x-1 dtw-text-[var(--panel-warning-content-color)]", children: [
|
|
2359
|
-
/* @__PURE__ */ s(
|
|
2359
|
+
/* @__PURE__ */ s(It, { className: "dtw-h-5 dtw-w-5" }),
|
|
2360
2360
|
/* @__PURE__ */ s("div", { className: "dtw-py-1 dtw-text-xs", children: t })
|
|
2361
2361
|
] }),
|
|
2362
|
-
/* @__PURE__ */ s(
|
|
2362
|
+
/* @__PURE__ */ s(Cr, { text: t, children: /* @__PURE__ */ s(n, { disabled: !0, children: /* @__PURE__ */ w("div", { className: "dtw-flex dtw-items-center dtw-justify-center dtw-gap-2", children: [
|
|
2363
2363
|
/* @__PURE__ */ s(xl, { className: "dtw-h-5" }),
|
|
2364
2364
|
/* @__PURE__ */ s("span", { children: e })
|
|
2365
2365
|
] }) }) })
|
|
@@ -2480,7 +2480,7 @@ const zr = (e) => e ? `https://raw.githubusercontent.com/dhedge/crypto-icons/mai
|
|
|
2480
2480
|
address: t,
|
|
2481
2481
|
watch: n = !1
|
|
2482
2482
|
}) => {
|
|
2483
|
-
const { account: r } = k(), o = y(), a =
|
|
2483
|
+
const { account: r } = k(), o = y(), a = yr(e, o.chainId), { data: i } = Hf({
|
|
2484
2484
|
chainId: o.chainId,
|
|
2485
2485
|
query: {
|
|
2486
2486
|
enabled: a
|
|
@@ -2498,7 +2498,7 @@ const zr = (e) => e ? `https://raw.githubusercontent.com/dhedge/crypto-icons/mai
|
|
|
2498
2498
|
abi: Ae,
|
|
2499
2499
|
functionName: "balanceOf",
|
|
2500
2500
|
chainId: o.chainId,
|
|
2501
|
-
args: [r ??
|
|
2501
|
+
args: [r ?? I]
|
|
2502
2502
|
},
|
|
2503
2503
|
{
|
|
2504
2504
|
address: t,
|
|
@@ -2511,10 +2511,10 @@ const zr = (e) => e ? `https://raw.githubusercontent.com/dhedge/crypto-icons/mai
|
|
|
2511
2511
|
enabled: !a && !!r
|
|
2512
2512
|
}
|
|
2513
2513
|
});
|
|
2514
|
-
return
|
|
2514
|
+
return mr({
|
|
2515
2515
|
watch: n && a,
|
|
2516
2516
|
queryKey: c
|
|
2517
|
-
}),
|
|
2517
|
+
}), mr({
|
|
2518
2518
|
watch: n && !a,
|
|
2519
2519
|
queryKey: p
|
|
2520
2520
|
}), a ? fc({
|
|
@@ -2542,7 +2542,7 @@ const zr = (e) => e ? `https://raw.githubusercontent.com/dhedge/crypto-icons/mai
|
|
|
2542
2542
|
], pb = (e) => ({
|
|
2543
2543
|
isUserDhedgePool: e[0].result
|
|
2544
2544
|
}), Pn = () => {
|
|
2545
|
-
const { account: e =
|
|
2545
|
+
const { account: e = I } = k(), { chainId: t, supportedChainId: n } = Ke(), r = t ?? n, { data: o } = pe({
|
|
2546
2546
|
contracts: db({ address: e, chainId: r }),
|
|
2547
2547
|
query: {
|
|
2548
2548
|
enabled: !Y(e),
|
|
@@ -2552,7 +2552,7 @@ const zr = (e) => e ? `https://raw.githubusercontent.com/dhedge/crypto-icons/mai
|
|
|
2552
2552
|
return !!o?.isUserDhedgePool;
|
|
2553
2553
|
}, ub = ({ address: e, chainId: t }) => [
|
|
2554
2554
|
{
|
|
2555
|
-
address: e ??
|
|
2555
|
+
address: e ?? I,
|
|
2556
2556
|
abi: Re,
|
|
2557
2557
|
functionName: "poolManagerLogic",
|
|
2558
2558
|
chainId: t
|
|
@@ -2620,7 +2620,7 @@ const zr = (e) => e ? `https://raw.githubusercontent.com/dhedge/crypto-icons/mai
|
|
|
2620
2620
|
address: e,
|
|
2621
2621
|
abi: nt,
|
|
2622
2622
|
functionName: "isMemberAllowed",
|
|
2623
|
-
args: [n ??
|
|
2623
|
+
args: [n ?? I],
|
|
2624
2624
|
chainId: t
|
|
2625
2625
|
},
|
|
2626
2626
|
{
|
|
@@ -2639,9 +2639,9 @@ const zr = (e) => e ? `https://raw.githubusercontent.com/dhedge/crypto-icons/mai
|
|
|
2639
2639
|
address: e,
|
|
2640
2640
|
chainId: t
|
|
2641
2641
|
}) => {
|
|
2642
|
-
const n = Fs({ address: e, chainId: t }), { account: r =
|
|
2642
|
+
const n = Fs({ address: e, chainId: t }), { account: r = I } = k(), o = pe({
|
|
2643
2643
|
contracts: wb({
|
|
2644
|
-
address: n ??
|
|
2644
|
+
address: n ?? I,
|
|
2645
2645
|
chainId: t,
|
|
2646
2646
|
account: r
|
|
2647
2647
|
}),
|
|
@@ -2651,7 +2651,7 @@ const zr = (e) => e ? `https://raw.githubusercontent.com/dhedge/crypto-icons/mai
|
|
|
2651
2651
|
select: hb
|
|
2652
2652
|
}
|
|
2653
2653
|
});
|
|
2654
|
-
return
|
|
2654
|
+
return Is({ error: o.error, status: o.status }), o;
|
|
2655
2655
|
}, gb = ({
|
|
2656
2656
|
chainId: e,
|
|
2657
2657
|
address: t
|
|
@@ -2678,7 +2678,7 @@ const zr = (e) => e ? `https://raw.githubusercontent.com/dhedge/crypto-icons/mai
|
|
|
2678
2678
|
const n = Fs({ address: e, chainId: t });
|
|
2679
2679
|
return pe({
|
|
2680
2680
|
contracts: gb({
|
|
2681
|
-
address: n ??
|
|
2681
|
+
address: n ?? I,
|
|
2682
2682
|
chainId: t
|
|
2683
2683
|
}),
|
|
2684
2684
|
query: {
|
|
@@ -2695,24 +2695,24 @@ function fb(e, t, n) {
|
|
|
2695
2695
|
a[r] = e[r + t];
|
|
2696
2696
|
return a;
|
|
2697
2697
|
}
|
|
2698
|
-
var bb = fb, yb =
|
|
2698
|
+
var bb = fb, yb = Lr, Tb = ws, Ab = kr, Sb = Mt;
|
|
2699
2699
|
function xb(e, t, n) {
|
|
2700
2700
|
if (!Sb(n))
|
|
2701
2701
|
return !1;
|
|
2702
2702
|
var r = typeof t;
|
|
2703
2703
|
return (r == "number" ? Tb(n) && Ab(t, n.length) : r == "string" && t in n) ? yb(n[t], e) : !1;
|
|
2704
2704
|
}
|
|
2705
|
-
var Cb = xb,
|
|
2706
|
-
function
|
|
2707
|
-
for (var t = e.length; t-- &&
|
|
2705
|
+
var Cb = xb, Eb = /\s/;
|
|
2706
|
+
function Ib(e) {
|
|
2707
|
+
for (var t = e.length; t-- && Eb.test(e.charAt(t)); )
|
|
2708
2708
|
;
|
|
2709
2709
|
return t;
|
|
2710
2710
|
}
|
|
2711
|
-
var Nb =
|
|
2711
|
+
var Nb = Ib, _b = Nb, Lb = /^\s+/;
|
|
2712
2712
|
function Pb(e) {
|
|
2713
2713
|
return e && e.slice(0, _b(e) + 1).replace(Lb, "");
|
|
2714
2714
|
}
|
|
2715
|
-
var Ob = Pb, Db = Ob, Uo = Mt, kb =
|
|
2715
|
+
var Ob = Pb, Db = Ob, Uo = Mt, kb = In, Go = NaN, Rb = /^[-+]0x[0-9a-f]+$/i, $b = /^0b[01]+$/i, Bb = /^0o[0-7]+$/i, Mb = parseInt;
|
|
2716
2716
|
function Fb(e) {
|
|
2717
2717
|
if (typeof e == "number")
|
|
2718
2718
|
return e;
|
|
@@ -2774,9 +2774,9 @@ const Ws = /* @__PURE__ */ Tn(ey), zs = ({
|
|
|
2774
2774
|
args: []
|
|
2775
2775
|
}
|
|
2776
2776
|
], ty = (e) => e.flatMap(zs), ny = zs({
|
|
2777
|
-
account:
|
|
2777
|
+
account: I,
|
|
2778
2778
|
chainId: Ga.id,
|
|
2779
|
-
address:
|
|
2779
|
+
address: I
|
|
2780
2780
|
}).length, ry = ({
|
|
2781
2781
|
account: e
|
|
2782
2782
|
}) => {
|
|
@@ -2786,7 +2786,7 @@ const Ws = /* @__PURE__ */ Tn(ey), zs = ({
|
|
|
2786
2786
|
query: {
|
|
2787
2787
|
select: (r) => Ws(r, ny).reduce(
|
|
2788
2788
|
(o, [a, i], l) => {
|
|
2789
|
-
const c = n?.[l]?.address ??
|
|
2789
|
+
const c = n?.[l]?.address ?? I;
|
|
2790
2790
|
return {
|
|
2791
2791
|
...o,
|
|
2792
2792
|
[c]: {
|
|
@@ -2848,7 +2848,7 @@ const Ws = /* @__PURE__ */ Tn(ey), zs = ({
|
|
|
2848
2848
|
address: e,
|
|
2849
2849
|
chainId: t
|
|
2850
2850
|
}) => {
|
|
2851
|
-
const { account: n } = k(), { data: { managerAddress: r } = { managerAddress:
|
|
2851
|
+
const { account: n } = k(), { data: { managerAddress: r } = { managerAddress: I } } = me({ address: e, chainId: t }), { data: { isMemberAllowed: o = !1 } = {} } = Dn({
|
|
2852
2852
|
address: e,
|
|
2853
2853
|
chainId: t
|
|
2854
2854
|
});
|
|
@@ -2896,7 +2896,7 @@ const Ws = /* @__PURE__ */ Tn(ey), zs = ({
|
|
|
2896
2896
|
staleTime: 1 / 0
|
|
2897
2897
|
}
|
|
2898
2898
|
});
|
|
2899
|
-
return
|
|
2899
|
+
return Fr(d), L(() => {
|
|
2900
2900
|
if (!o?.length)
|
|
2901
2901
|
return [];
|
|
2902
2902
|
const p = Ws(d, 2);
|
|
@@ -2996,7 +2996,7 @@ const Ws = /* @__PURE__ */ Tn(ey), zs = ({
|
|
|
2996
2996
|
return n(
|
|
2997
2997
|
BigInt(o?.tokenPrice ?? r?.tokenPrice ?? "0")
|
|
2998
2998
|
);
|
|
2999
|
-
},
|
|
2999
|
+
}, jr = ({ address: e, chainId: t }) => {
|
|
3000
3000
|
const [n] = st(), r = Z(n.address, e) ? n : null, {
|
|
3001
3001
|
data: {
|
|
3002
3002
|
performanceFee: o,
|
|
@@ -3047,7 +3047,7 @@ const Ws = /* @__PURE__ */ Tn(ey), zs = ({
|
|
|
3047
3047
|
address: e,
|
|
3048
3048
|
chainId: t
|
|
3049
3049
|
});
|
|
3050
|
-
|
|
3050
|
+
mr({ queryKey: n });
|
|
3051
3051
|
}, Jt = Ua.id, uy = (e) => {
|
|
3052
3052
|
const t = K(
|
|
3053
3053
|
"flatcoinPointsModule",
|
|
@@ -3057,21 +3057,21 @@ const Ws = /* @__PURE__ */ Tn(ey), zs = ({
|
|
|
3057
3057
|
{
|
|
3058
3058
|
address: t,
|
|
3059
3059
|
chainId: Jt,
|
|
3060
|
-
abi:
|
|
3060
|
+
abi: Un,
|
|
3061
3061
|
functionName: "lockedBalance",
|
|
3062
3062
|
args: [e]
|
|
3063
3063
|
},
|
|
3064
3064
|
{
|
|
3065
3065
|
address: t,
|
|
3066
3066
|
chainId: Jt,
|
|
3067
|
-
abi:
|
|
3067
|
+
abi: Un,
|
|
3068
3068
|
functionName: "getUnlockTax",
|
|
3069
3069
|
args: [e]
|
|
3070
3070
|
},
|
|
3071
3071
|
{
|
|
3072
3072
|
address: t,
|
|
3073
3073
|
chainId: Jt,
|
|
3074
|
-
abi:
|
|
3074
|
+
abi: Un,
|
|
3075
3075
|
functionName: "unlockTime",
|
|
3076
3076
|
args: [e]
|
|
3077
3077
|
}
|
|
@@ -3126,7 +3126,7 @@ const Ws = /* @__PURE__ */ Tn(ey), zs = ({
|
|
|
3126
3126
|
if (e <= t)
|
|
3127
3127
|
return n;
|
|
3128
3128
|
return Hl;
|
|
3129
|
-
},
|
|
3129
|
+
}, Zn = (e) => Number(e?.toString() ?? "0") * 1e3, vy = ({
|
|
3130
3130
|
address: e,
|
|
3131
3131
|
chainId: t
|
|
3132
3132
|
}) => {
|
|
@@ -3136,12 +3136,12 @@ const Ws = /* @__PURE__ */ Tn(ey), zs = ({
|
|
|
3136
3136
|
abi: Re,
|
|
3137
3137
|
functionName: "getExitRemainingCooldown",
|
|
3138
3138
|
chainId: t,
|
|
3139
|
-
args: [n ??
|
|
3139
|
+
args: [n ?? I],
|
|
3140
3140
|
query: {
|
|
3141
3141
|
enabled: !!n,
|
|
3142
|
-
select:
|
|
3143
|
-
refetchInterval: (r) => gy(
|
|
3144
|
-
refetchOnWindowFocus: (r) =>
|
|
3142
|
+
select: Zn,
|
|
3143
|
+
refetchInterval: (r) => gy(Zn(r.state?.data)),
|
|
3144
|
+
refetchOnWindowFocus: (r) => Zn(r.state?.data) > 0
|
|
3145
3145
|
}
|
|
3146
3146
|
});
|
|
3147
3147
|
};
|
|
@@ -3162,7 +3162,7 @@ function fy(e, t, n) {
|
|
|
3162
3162
|
}
|
|
3163
3163
|
const Hs = (e, t) => yc(e) ? {
|
|
3164
3164
|
rawBalance: e?.toString() ?? "",
|
|
3165
|
-
...fy(Se(e,
|
|
3165
|
+
...fy(Se(e, ir), t?.toString())
|
|
3166
3166
|
} : {
|
|
3167
3167
|
rawBalance: "",
|
|
3168
3168
|
balanceInUsd: "",
|
|
@@ -3170,7 +3170,7 @@ const Hs = (e, t) => yc(e) ? {
|
|
|
3170
3170
|
}, by = ({
|
|
3171
3171
|
account: e
|
|
3172
3172
|
} = {}) => {
|
|
3173
|
-
const { account: t } = k(), n = e ?? t ??
|
|
3173
|
+
const { account: t } = k(), n = e ?? t ?? I, { data: r } = ry({
|
|
3174
3174
|
account: n
|
|
3175
3175
|
});
|
|
3176
3176
|
return L(() => Y(n) ? {} : Object.entries(r ?? {}).reduce(
|
|
@@ -3249,7 +3249,7 @@ const Hs = (e, t) => yc(e) ? {
|
|
|
3249
3249
|
remainingSupplyCapNumber: d,
|
|
3250
3250
|
remainingSupplyCapInUsd: p
|
|
3251
3251
|
};
|
|
3252
|
-
},
|
|
3252
|
+
}, pI = ({
|
|
3253
3253
|
address: e,
|
|
3254
3254
|
chainId: t
|
|
3255
3255
|
}) => {
|
|
@@ -3260,15 +3260,15 @@ const Hs = (e, t) => yc(e) ? {
|
|
|
3260
3260
|
(i) => Z(e, i.address) && i.chainId === t
|
|
3261
3261
|
), a = !!(o?.maintenance || o?.maintenanceDeposits);
|
|
3262
3262
|
return n || a;
|
|
3263
|
-
},
|
|
3263
|
+
}, uI = (e) => me(e), mI = () => {
|
|
3264
3264
|
const {
|
|
3265
3265
|
address: e,
|
|
3266
3266
|
symbol: t,
|
|
3267
3267
|
chainId: n
|
|
3268
|
-
} = y(), { account: r =
|
|
3268
|
+
} = y(), { account: r = I } = k(), o = ge({ symbol: t, address: e }), { data: { totalSupplyD18: a } = {} } = me({
|
|
3269
3269
|
address: e,
|
|
3270
3270
|
chainId: n
|
|
3271
|
-
}), l = Tc(e) && !Z(r,
|
|
3271
|
+
}), l = Tc(e) && !Z(r, I), {
|
|
3272
3272
|
data: { lockedVaultPointsBalance: c, unlockTaxInPercents: d, unlockTime: p } = {},
|
|
3273
3273
|
isLoading: u
|
|
3274
3274
|
} = my({
|
|
@@ -3293,7 +3293,7 @@ const Hs = (e, t) => yc(e) ? {
|
|
|
3293
3293
|
p,
|
|
3294
3294
|
u
|
|
3295
3295
|
]);
|
|
3296
|
-
},
|
|
3296
|
+
}, qr = () => {
|
|
3297
3297
|
const { depositQuoteDiffErrorThreshold: e } = j(), [t, n] = F(!1), [{ slippage: r, minSlippage: o }] = X(), a = r === "auto" ? o ?? 0 : r, l = !Ln() && a > e && !t, c = f(() => {
|
|
3298
3298
|
n(!0);
|
|
3299
3299
|
}, []);
|
|
@@ -3302,19 +3302,19 @@ const Hs = (e, t) => yc(e) ? {
|
|
|
3302
3302
|
const { depositQuoteDiffErrorThreshold: t, depositQuoteDiffWarningThreshold: n } = j(), r = Math.abs(e);
|
|
3303
3303
|
return r > t ? U.ERROR : r > n ? U.WARNING : U.DEFAULT;
|
|
3304
3304
|
};
|
|
3305
|
-
var xy = ct, Cy = wt,
|
|
3306
|
-
function
|
|
3307
|
-
return typeof e == "number" || Cy(e) && xy(e) ==
|
|
3305
|
+
var xy = ct, Cy = wt, Ey = "[object Number]";
|
|
3306
|
+
function Iy(e) {
|
|
3307
|
+
return typeof e == "number" || Cy(e) && xy(e) == Ey;
|
|
3308
3308
|
}
|
|
3309
|
-
var Ny =
|
|
3309
|
+
var Ny = Iy;
|
|
3310
3310
|
const _y = /* @__PURE__ */ Tn(Ny), Vs = ({
|
|
3311
3311
|
tradingType: e,
|
|
3312
3312
|
slippage: t,
|
|
3313
3313
|
minSlippage: n
|
|
3314
3314
|
}) => {
|
|
3315
|
-
const r =
|
|
3315
|
+
const r = Hr();
|
|
3316
3316
|
return t !== "auto" ? t.toString() : _y(n) ? n.toString() : e === "deposit" ? ya.toString() : r.toString();
|
|
3317
|
-
}, Ly = async (e, t =
|
|
3317
|
+
}, Ly = async (e, t = Ur) => {
|
|
3318
3318
|
try {
|
|
3319
3319
|
return (await import(`@dhedge/crypto-assets/icons/${e.toLowerCase()}.png`))?.default?.src ?? t(e);
|
|
3320
3320
|
} catch {
|
|
@@ -3423,7 +3423,7 @@ const _y = /* @__PURE__ */ Tn(Ny), Vs = ({
|
|
|
3423
3423
|
}));
|
|
3424
3424
|
}, [t, n, e]);
|
|
3425
3425
|
return { displayLimitSellOverlay: n, openLimitSellOverlay: r };
|
|
3426
|
-
},
|
|
3426
|
+
}, Yr = "0x000000000022D473030F116dDEE9F6B43aC78BA3", $y = 100, By = 28, My = 1, Fy = 500, Zs = 2, Wy = 1, zy = 5, Uy = 2, Js = {
|
|
3427
3427
|
[fn.id]: "0x40F2978D87348250F085ACEbd680B387842a69eF"
|
|
3428
3428
|
}, Gy = {
|
|
3429
3429
|
PermitWitnessTransferFrom: [
|
|
@@ -3475,7 +3475,7 @@ const _y = /* @__PURE__ */ Tn(Ny), Vs = ({
|
|
|
3475
3475
|
status: t,
|
|
3476
3476
|
statusLabel: n[t]
|
|
3477
3477
|
};
|
|
3478
|
-
},
|
|
3478
|
+
}, Kr = (e) => {
|
|
3479
3479
|
const t = S(), { status: n } = ei();
|
|
3480
3480
|
if (!(!e || n === "Success"))
|
|
3481
3481
|
return n === "Mining" ? t.miningTx : t.sendingOrderToWallet;
|
|
@@ -3521,7 +3521,7 @@ const _y = /* @__PURE__ */ Tn(Ny), Vs = ({
|
|
|
3521
3521
|
diameter: 72
|
|
3522
3522
|
};
|
|
3523
3523
|
}
|
|
3524
|
-
},
|
|
3524
|
+
}, Ie = ({
|
|
3525
3525
|
symbols: e,
|
|
3526
3526
|
size: t = "m",
|
|
3527
3527
|
className: n = ""
|
|
@@ -3583,7 +3583,7 @@ const _y = /* @__PURE__ */ Tn(Ny), Vs = ({
|
|
|
3583
3583
|
),
|
|
3584
3584
|
children: [
|
|
3585
3585
|
o ?? /* @__PURE__ */ s(
|
|
3586
|
-
|
|
3586
|
+
Ie,
|
|
3587
3587
|
{
|
|
3588
3588
|
size: n,
|
|
3589
3589
|
symbols: t,
|
|
@@ -3612,7 +3612,7 @@ const _y = /* @__PURE__ */ Tn(Ny), Vs = ({
|
|
|
3612
3612
|
),
|
|
3613
3613
|
children: t
|
|
3614
3614
|
}
|
|
3615
|
-
),
|
|
3615
|
+
), Jn = (e, t = !1) => {
|
|
3616
3616
|
if (!e) return "";
|
|
3617
3617
|
let n = "";
|
|
3618
3618
|
t && e.startsWith("-") && (n = "-", e = e.slice(1));
|
|
@@ -3620,7 +3620,7 @@ const _y = /* @__PURE__ */ Tn(Ny), Vs = ({
|
|
|
3620
3620
|
if (!a) return o ? `${n}0.${o}` : n;
|
|
3621
3621
|
const i = new Intl.NumberFormat().format(Number(a));
|
|
3622
3622
|
return o !== void 0 ? `${n}${i}.${o.replace(/[^\d]/g, "")}` : `${n}${i}`;
|
|
3623
|
-
},
|
|
3623
|
+
}, er = (e) => e.replace(/,/g, ""), Ky = El(
|
|
3624
3624
|
({
|
|
3625
3625
|
value: e,
|
|
3626
3626
|
onChange: t,
|
|
@@ -3631,15 +3631,15 @@ const _y = /* @__PURE__ */ Tn(Ny), Vs = ({
|
|
|
3631
3631
|
const i = (c) => {
|
|
3632
3632
|
const p = c.target.value.replace(r ? /[^0-9.-]/g : /[^0-9.]/g, "").replace(/^(-?\d*\.\d*).*$/, "$1").replace(/^(-?\.)(.*)/, "$1$2");
|
|
3633
3633
|
if (n)
|
|
3634
|
-
t?.(p,
|
|
3634
|
+
t?.(p, er(p));
|
|
3635
3635
|
else {
|
|
3636
|
-
const u =
|
|
3637
|
-
t?.(u,
|
|
3636
|
+
const u = Jn(p, r);
|
|
3637
|
+
t?.(u, er(u));
|
|
3638
3638
|
}
|
|
3639
3639
|
}, l = () => {
|
|
3640
3640
|
if (!n) return;
|
|
3641
|
-
const c =
|
|
3642
|
-
t?.(c,
|
|
3641
|
+
const c = Jn(e, r);
|
|
3642
|
+
t?.(c, er(c));
|
|
3643
3643
|
};
|
|
3644
3644
|
return /* @__PURE__ */ s(
|
|
3645
3645
|
"input",
|
|
@@ -3648,7 +3648,7 @@ const _y = /* @__PURE__ */ Tn(Ny), Vs = ({
|
|
|
3648
3648
|
ref: a,
|
|
3649
3649
|
type: "text",
|
|
3650
3650
|
inputMode: "decimal",
|
|
3651
|
-
value:
|
|
3651
|
+
value: Jn(e, r),
|
|
3652
3652
|
onChange: i,
|
|
3653
3653
|
onBlur: l
|
|
3654
3654
|
}
|
|
@@ -3763,14 +3763,20 @@ const Jy = () => {
|
|
|
3763
3763
|
query: { enabled: !!i }
|
|
3764
3764
|
});
|
|
3765
3765
|
_(() => {
|
|
3766
|
-
if (m)
|
|
3767
|
-
|
|
3768
|
-
|
|
3769
|
-
|
|
3770
|
-
|
|
3766
|
+
if (!m) return;
|
|
3767
|
+
const v = () => {
|
|
3768
|
+
const b = m.transactionHash;
|
|
3769
|
+
if (b) {
|
|
3770
|
+
const T = Rn(b, "transaction", d);
|
|
3771
|
+
n({ link: T, status: "Success", action: l }), t({ type: "remove", status: "success", txHash: b }), o?.(m, l, T);
|
|
3771
3772
|
}
|
|
3772
3773
|
c ? u() : p();
|
|
3773
|
-
}
|
|
3774
|
+
}, g = d ? vr[d] ?? 0 : 0;
|
|
3775
|
+
if (g > 0) {
|
|
3776
|
+
const b = setTimeout(v, g);
|
|
3777
|
+
return () => clearTimeout(b);
|
|
3778
|
+
} else
|
|
3779
|
+
v();
|
|
3774
3780
|
}, [
|
|
3775
3781
|
m,
|
|
3776
3782
|
c,
|
|
@@ -3855,7 +3861,7 @@ const Jy = () => {
|
|
|
3855
3861
|
refetchInterval: n
|
|
3856
3862
|
}
|
|
3857
3863
|
});
|
|
3858
|
-
return
|
|
3864
|
+
return Fr(a), a?.[0]?.result;
|
|
3859
3865
|
}, le = ({
|
|
3860
3866
|
address: e,
|
|
3861
3867
|
chainId: t,
|
|
@@ -3904,12 +3910,12 @@ const nT = () => {
|
|
|
3904
3910
|
}, Xe = () => {
|
|
3905
3911
|
const e = !Ye(), [{ symbol: t }] = M(), [{ isMultiAssetWithdrawalEnabled: n }] = X();
|
|
3906
3912
|
return e && n && t === Te.symbol;
|
|
3907
|
-
},
|
|
3913
|
+
}, $n = ({
|
|
3908
3914
|
onErrorCallback: e
|
|
3909
3915
|
} = {}) => {
|
|
3910
3916
|
const { account: t } = k(), { chainId: n } = y(), r = Xe(), [o] = O(), a = new N(o.value || "0").shiftedBy(o.decimals).toFixed(0, N.ROUND_UP), i = K("easySwapperV2", n), { canSpend: l, isFetching: c } = ii({
|
|
3911
3917
|
tokenAddress: o.address,
|
|
3912
|
-
ownerAddress: t ??
|
|
3918
|
+
ownerAddress: t ?? I,
|
|
3913
3919
|
spenderAddress: i,
|
|
3914
3920
|
rawAmountToSpend: a,
|
|
3915
3921
|
chainId: n,
|
|
@@ -3925,7 +3931,7 @@ const nT = () => {
|
|
|
3925
3931
|
address: e,
|
|
3926
3932
|
chainId: t
|
|
3927
3933
|
}) => {
|
|
3928
|
-
const n = gn({ chainId: t }), { data: { aaveAssetGuardAddress: r =
|
|
3934
|
+
const n = gn({ chainId: t }), { data: { aaveAssetGuardAddress: r = I } = {} } = On({
|
|
3929
3935
|
address: e,
|
|
3930
3936
|
chainId: t
|
|
3931
3937
|
});
|
|
@@ -3940,7 +3946,7 @@ const nT = () => {
|
|
|
3940
3946
|
args: [
|
|
3941
3947
|
e,
|
|
3942
3948
|
o,
|
|
3943
|
-
|
|
3949
|
+
Tr(a)
|
|
3944
3950
|
],
|
|
3945
3951
|
publicClient: n
|
|
3946
3952
|
}),
|
|
@@ -3977,7 +3983,7 @@ const nT = () => {
|
|
|
3977
3983
|
signal: n,
|
|
3978
3984
|
buildKey: Ac
|
|
3979
3985
|
}), sT = (e, t) => {
|
|
3980
|
-
const n =
|
|
3986
|
+
const n = Nr(), { effectiveSelectedAggregators: r } = bn();
|
|
3981
3987
|
return vn({
|
|
3982
3988
|
queryKey: ["getSwapsQuotes", e, r],
|
|
3983
3989
|
queryFn: async ({ signal: o, queryKey: [, a] }) => await ri({
|
|
@@ -3991,7 +3997,7 @@ const nT = () => {
|
|
|
3991
3997
|
}, iT = new AbortController(), lT = iT.signal, cT = ({
|
|
3992
3998
|
chainId: e
|
|
3993
3999
|
}) => {
|
|
3994
|
-
const { account: t =
|
|
4000
|
+
const { account: t = I } = k(), n = Nr();
|
|
3995
4001
|
return f(
|
|
3996
4002
|
async ({
|
|
3997
4003
|
swapParams: r,
|
|
@@ -4000,7 +4006,7 @@ const nT = () => {
|
|
|
4000
4006
|
const a = (r?.srcData ?? []).map(({ asset: i, amount: l }) => ({
|
|
4001
4007
|
chainId: e,
|
|
4002
4008
|
sourceAddress: i,
|
|
4003
|
-
destinationAddress: r?.dstData.asset ??
|
|
4009
|
+
destinationAddress: r?.dstData.asset ?? I,
|
|
4004
4010
|
walletAddress: t,
|
|
4005
4011
|
amount: l.toString(),
|
|
4006
4012
|
slippage: o.toString()
|
|
@@ -4032,15 +4038,15 @@ const nT = () => {
|
|
|
4032
4038
|
estimate: d,
|
|
4033
4039
|
transactionArgs: p
|
|
4034
4040
|
}) => {
|
|
4035
|
-
const u =
|
|
4041
|
+
const u = Tr(l), m = c ? Ar({ maxSlippage: l }) : [];
|
|
4036
4042
|
if (!r?.some(
|
|
4037
4043
|
(x) => Z(x, n)
|
|
4038
4044
|
))
|
|
4039
|
-
return
|
|
4045
|
+
return Gn(
|
|
4040
4046
|
r,
|
|
4041
4047
|
u
|
|
4042
4048
|
);
|
|
4043
|
-
const v = (x) =>
|
|
4049
|
+
const v = (x) => Ec(
|
|
4044
4050
|
r,
|
|
4045
4051
|
n,
|
|
4046
4052
|
{
|
|
@@ -4056,7 +4062,7 @@ const nT = () => {
|
|
|
4056
4062
|
v,
|
|
4057
4063
|
d,
|
|
4058
4064
|
p
|
|
4059
|
-
) ??
|
|
4065
|
+
) ?? Gn(r, u);
|
|
4060
4066
|
const g = await v(l), b = xc(
|
|
4061
4067
|
g
|
|
4062
4068
|
);
|
|
@@ -4066,7 +4072,7 @@ const nT = () => {
|
|
|
4066
4072
|
u,
|
|
4067
4073
|
d,
|
|
4068
4074
|
p
|
|
4069
|
-
) ??
|
|
4075
|
+
) ?? Gn(r, u);
|
|
4070
4076
|
},
|
|
4071
4077
|
[
|
|
4072
4078
|
n,
|
|
@@ -4076,11 +4082,11 @@ const nT = () => {
|
|
|
4076
4082
|
]
|
|
4077
4083
|
);
|
|
4078
4084
|
}, vt = () => {
|
|
4079
|
-
const e =
|
|
4085
|
+
const e = Hr(), [{ slippage: t }] = X();
|
|
4080
4086
|
return t === "auto" ? e : t;
|
|
4081
4087
|
};
|
|
4082
4088
|
function jo(e, t, n) {
|
|
4083
|
-
const [r, o] = F(n), a =
|
|
4089
|
+
const [r, o] = F(n), a = Ic ? e === "sessionStorage" ? sessionStorage : localStorage : null, i = f(
|
|
4084
4090
|
(l) => {
|
|
4085
4091
|
try {
|
|
4086
4092
|
o(l), a?.setItem(t, JSON.stringify(l));
|
|
@@ -4139,7 +4145,7 @@ const oi = (e, t) => {
|
|
|
4139
4145
|
e ?? 0
|
|
4140
4146
|
);
|
|
4141
4147
|
return L(() => {
|
|
4142
|
-
const l =
|
|
4148
|
+
const l = Tr(o), c = Da(i), d = (a ?? []).map((p) => ({
|
|
4143
4149
|
supportedAsset: p,
|
|
4144
4150
|
withdrawData: "",
|
|
4145
4151
|
slippageTolerance: l
|
|
@@ -4206,7 +4212,7 @@ const oi = (e, t) => {
|
|
|
4206
4212
|
}
|
|
4207
4213
|
});
|
|
4208
4214
|
}, hT = (e) => typeof e[0] == "string" && typeof e[1] == "bigint" && Array.isArray(e[2]), gT = () => {
|
|
4209
|
-
const e = y(), t = Ln(), { canSpend: n } =
|
|
4215
|
+
const e = y(), t = Ln(), { canSpend: n } = $n(), r = uT({
|
|
4210
4216
|
debounceTime: Sa
|
|
4211
4217
|
}), o = hT(r) && r[1] !== BigInt(0) && !t && n, { data: a } = cc({
|
|
4212
4218
|
abi: Ve,
|
|
@@ -4236,7 +4242,7 @@ const oi = (e, t) => {
|
|
|
4236
4242
|
}, vT = ({
|
|
4237
4243
|
onErrorCallback: e
|
|
4238
4244
|
} = {}) => {
|
|
4239
|
-
const t = y(), n = Xe(), { isUnrollAndClaimTransaction: r } = Qr(), o = pT(), a = ue()[1], i = n ? "multi_withdraw" : r ? "single_withdraw_and_claim" : "single_withdraw", l = gt({ action: i, onErrorCallback: e }), c = n ? jl : r ? ql : Aa, { send: d, estimate: p } =
|
|
4245
|
+
const t = y(), n = Xe(), { isUnrollAndClaimTransaction: r } = Qr(), o = pT(), a = ue()[1], i = n ? "multi_withdraw" : r ? "single_withdraw_and_claim" : "single_withdraw", l = gt({ action: i, onErrorCallback: e }), c = n ? jl : r ? ql : Aa, { send: d, estimate: p } = Ee({
|
|
4240
4246
|
contractId: n ? "poolLogic" : "easySwapperV2",
|
|
4241
4247
|
dynamicContractAddress: n ? t.address : void 0,
|
|
4242
4248
|
functionName: c,
|
|
@@ -4271,7 +4277,7 @@ const oi = (e, t) => {
|
|
|
4271
4277
|
symbol: i.symbol,
|
|
4272
4278
|
address: i.address
|
|
4273
4279
|
}), g = c === "deposit", b = eT(), T = g ? "deposit" : m ? "multi_withdraw" : h ? "single_withdraw_and_claim" : "single_withdraw", x = async () => {
|
|
4274
|
-
const
|
|
4280
|
+
const E = a.chainId;
|
|
4275
4281
|
d({
|
|
4276
4282
|
isOpen: !0,
|
|
4277
4283
|
status: "Wallet",
|
|
@@ -4298,7 +4304,7 @@ const oi = (e, t) => {
|
|
|
4298
4304
|
}), u?.(
|
|
4299
4305
|
R,
|
|
4300
4306
|
a.address,
|
|
4301
|
-
|
|
4307
|
+
E,
|
|
4302
4308
|
o
|
|
4303
4309
|
)), d({
|
|
4304
4310
|
isOpen: !1,
|
|
@@ -4329,9 +4335,9 @@ const oi = (e, t) => {
|
|
|
4329
4335
|
};
|
|
4330
4336
|
const o = e * t / 100 / n;
|
|
4331
4337
|
return {
|
|
4332
|
-
yearlyEarnings:
|
|
4333
|
-
dailyEarnings:
|
|
4334
|
-
monthlyEarnings:
|
|
4338
|
+
yearlyEarnings: Hn({ value: o, currency: r }),
|
|
4339
|
+
dailyEarnings: Hn({ value: o / 365, currency: r }),
|
|
4340
|
+
monthlyEarnings: Hn({ value: o / 12, currency: r })
|
|
4335
4341
|
};
|
|
4336
4342
|
}, TT = ({
|
|
4337
4343
|
currency: e,
|
|
@@ -4341,7 +4347,7 @@ const oi = (e, t) => {
|
|
|
4341
4347
|
disabled: o
|
|
4342
4348
|
}) => {
|
|
4343
4349
|
const a = e === "ETH" ? Yl[n]?.address : e === "BTC" ? Kl[n]?.address : void 0, i = le({
|
|
4344
|
-
address: a ??
|
|
4350
|
+
address: a ?? I,
|
|
4345
4351
|
chainId: n,
|
|
4346
4352
|
disabled: o || !r || !a
|
|
4347
4353
|
}), l = a ? Number(i) : fT;
|
|
@@ -4376,7 +4382,7 @@ const oi = (e, t) => {
|
|
|
4376
4382
|
showEarnings: !1
|
|
4377
4383
|
};
|
|
4378
4384
|
}, ST = (e) => e.chainId ? e.sourceAddress ? e.destinationAddress ? !e.amount || e.amount === "0" || e.amount === "NaN" ? { isValid: !1, error: "Missing required parameter: amount or amount must be greater than 0" } : e.slippage ? { isValid: !0 } : { isValid: !1, error: "Missing required parameter: slippage" } : { isValid: !1, error: "Missing required parameter: destinationAddress" } : { isValid: !1, error: "Missing required parameter: sourceAddress" } : { isValid: !1, error: "Missing required parameter: chainId" }, xT = (e, t) => {
|
|
4379
|
-
const { effectiveSelectedAggregators: n } = bn(), r =
|
|
4385
|
+
const { effectiveSelectedAggregators: n } = bn(), r = Nr(), { isValid: o } = ST({
|
|
4380
4386
|
chainId: String(e.chainId),
|
|
4381
4387
|
sourceAddress: e.sourceAddress,
|
|
4382
4388
|
destinationAddress: e.destinationAddress,
|
|
@@ -4395,7 +4401,7 @@ const oi = (e, t) => {
|
|
|
4395
4401
|
...t,
|
|
4396
4402
|
enabled: o && (t?.enabled ?? !0)
|
|
4397
4403
|
});
|
|
4398
|
-
},
|
|
4404
|
+
}, Bn = (e = {}) => {
|
|
4399
4405
|
const t = e?.extendedDebounceTime ?? !1, [n] = O(), r = oi(
|
|
4400
4406
|
n.value,
|
|
4401
4407
|
t ? Sa : Ql
|
|
@@ -4414,17 +4420,17 @@ const oi = (e, t) => {
|
|
|
4414
4420
|
chainId: t,
|
|
4415
4421
|
args: [e],
|
|
4416
4422
|
query: { enabled: !Y(e) }
|
|
4417
|
-
}),
|
|
4423
|
+
}), ET = (e, t) => Z(e, Xl.address) && t === Ha.id, IT = ({
|
|
4418
4424
|
tokenAddress: e,
|
|
4419
4425
|
spenderAddress: t
|
|
4420
4426
|
}) => {
|
|
4421
|
-
const { chainId: n } = y(), { account: r =
|
|
4427
|
+
const { chainId: n } = y(), { account: r = I } = k(), o = ET(e, n), { data: a } = Bt({
|
|
4422
4428
|
tokenAddress: e,
|
|
4423
4429
|
ownerAddress: r,
|
|
4424
4430
|
spenderAddress: t,
|
|
4425
4431
|
chainId: n,
|
|
4426
4432
|
skip: !o
|
|
4427
|
-
}), { invalidateAllowanceQueries: i } = Wt(), l =
|
|
4433
|
+
}), { invalidateAllowanceQueries: i } = Wt(), l = br({ chainId: n }), c = gn({ chainId: n });
|
|
4428
4434
|
return { resetAllowance: f(async () => {
|
|
4429
4435
|
if (!o || !a || a === BigInt(0) || !l.data || !c)
|
|
4430
4436
|
return;
|
|
@@ -4452,10 +4458,10 @@ const oi = (e, t) => {
|
|
|
4452
4458
|
spenderAddress: n,
|
|
4453
4459
|
onErrorCallback: r
|
|
4454
4460
|
}) => {
|
|
4455
|
-
const o = y(), [{ isInfiniteAllowance: a }] = X(), i = ue()[1], l = Q()[1], { resetAllowance: c } =
|
|
4461
|
+
const o = y(), [{ isInfiniteAllowance: a }] = X(), i = ue()[1], l = Q()[1], { resetAllowance: c } = IT({
|
|
4456
4462
|
tokenAddress: e.address,
|
|
4457
4463
|
spenderAddress: n
|
|
4458
|
-
}), d = gt({ action: en, onErrorCallback: r }), { send: p } =
|
|
4464
|
+
}), d = gt({ action: en, onErrorCallback: r }), { send: p } = Ee({
|
|
4459
4465
|
contractId: "erc20",
|
|
4460
4466
|
dynamicContractAddress: e.address,
|
|
4461
4467
|
functionName: en,
|
|
@@ -4602,7 +4608,7 @@ const oi = (e, t) => {
|
|
|
4602
4608
|
),
|
|
4603
4609
|
/* @__PURE__ */ s(ci, {})
|
|
4604
4610
|
] });
|
|
4605
|
-
}, PT = "ref",
|
|
4611
|
+
}, PT = "ref", wI = ({
|
|
4606
4612
|
vaultAddress: e,
|
|
4607
4613
|
userAddress: t,
|
|
4608
4614
|
query: n,
|
|
@@ -4611,15 +4617,15 @@ const oi = (e, t) => {
|
|
|
4611
4617
|
}) => {
|
|
4612
4618
|
const [a, i] = jo(
|
|
4613
4619
|
"localStorage",
|
|
4614
|
-
|
|
4620
|
+
Vn.REFERRER,
|
|
4615
4621
|
""
|
|
4616
4622
|
), [l, c] = jo(
|
|
4617
4623
|
"localStorage",
|
|
4618
|
-
|
|
4624
|
+
Vn.REF_POOL,
|
|
4619
4625
|
""
|
|
4620
4626
|
), d = n[PT];
|
|
4621
4627
|
_(() => {
|
|
4622
|
-
!d || typeof d != "string" || Y(e) || localStorage.getItem(
|
|
4628
|
+
!d || typeof d != "string" || Y(e) || localStorage.getItem(Vn.REFERRER) || (i(d), c(e), r?.());
|
|
4623
4629
|
}, [e, d, c, i, r]), _(() => {
|
|
4624
4630
|
if (!t || !a || l.toLowerCase() !== e.toLowerCase())
|
|
4625
4631
|
return;
|
|
@@ -4678,7 +4684,7 @@ const oi = (e, t) => {
|
|
|
4678
4684
|
const a = r.filter(
|
|
4679
4685
|
({ isDeposit: c }) => c
|
|
4680
4686
|
);
|
|
4681
|
-
if (
|
|
4687
|
+
if (yr(e.symbol, t)) {
|
|
4682
4688
|
const c = a.find(
|
|
4683
4689
|
({ tokenName: d }) => tn[t]?.wrappedNativeTokenName === d
|
|
4684
4690
|
);
|
|
@@ -4710,11 +4716,11 @@ const oi = (e, t) => {
|
|
|
4710
4716
|
}, Ht = () => {
|
|
4711
4717
|
const [e] = O(), { vaultDepositTokenAddress: t } = ft();
|
|
4712
4718
|
return !Z(e.address, t);
|
|
4713
|
-
},
|
|
4714
|
-
const e =
|
|
4719
|
+
}, Mn = () => {
|
|
4720
|
+
const e = Vr(), [{ slippage: t }] = X(), n = Ht();
|
|
4715
4721
|
return t === "auto" ? n ? e : ya : t;
|
|
4716
4722
|
}, Vt = () => {
|
|
4717
|
-
const { account: e =
|
|
4723
|
+
const { account: e = I } = k(), { chainId: t } = y(), [n] = O(), { debouncedSendTokenValue: r } = Bn(), { vaultDepositTokenAddress: o } = ft(), a = Ht(), i = Mn();
|
|
4718
4724
|
return xT(
|
|
4719
4725
|
{
|
|
4720
4726
|
sourceAddress: n.address,
|
|
@@ -4726,14 +4732,14 @@ const oi = (e, t) => {
|
|
|
4726
4732
|
},
|
|
4727
4733
|
{
|
|
4728
4734
|
enabled: a && !!r,
|
|
4729
|
-
refetchInterval:
|
|
4735
|
+
refetchInterval: fr
|
|
4730
4736
|
}
|
|
4731
4737
|
);
|
|
4732
4738
|
}, di = () => {
|
|
4733
4739
|
const { defaultNoSwapMinDepositAmountGap: e } = j(), { address: t, chainId: n } = y(), [r] = O(), [o] = M(), { data: { entryFee: a } = {} } = me({ address: t, chainId: n }), i = rt(
|
|
4734
4740
|
Number(a ?? "0"),
|
|
4735
4741
|
ye
|
|
4736
|
-
), [{ slippage: l }] = X(), c = l === "auto", d =
|
|
4742
|
+
), [{ slippage: l }] = X(), c = l === "auto", d = Mn(), p = Ht(), u = +le({
|
|
4737
4743
|
address: r.address,
|
|
4738
4744
|
chainId: n
|
|
4739
4745
|
}), m = +ve({ address: t, chainId: n });
|
|
@@ -4764,13 +4770,13 @@ const oi = (e, t) => {
|
|
|
4764
4770
|
}), c = Number(n || "0") * o;
|
|
4765
4771
|
return i && l !== 0 ? new N(c / l).shiftedBy(i).times(1 - xa / 100).toFixed(0) : "0";
|
|
4766
4772
|
}, pi = () => {
|
|
4767
|
-
const [e] = O(), { debouncedSendTokenValue: t } =
|
|
4773
|
+
const [e] = O(), { debouncedSendTokenValue: t } = Bn(), n = Ht(), r = RT({
|
|
4768
4774
|
isDepositWithSwapTransaction: n,
|
|
4769
4775
|
sendTokenAddress: e.address,
|
|
4770
4776
|
sendTokenValue: t
|
|
4771
4777
|
});
|
|
4772
4778
|
return n ? r : new N(t || "0").shiftedBy(e.decimals).toFixed(0);
|
|
4773
|
-
}, $T = "0x",
|
|
4779
|
+
}, $T = "0x", wr = (e, t, n = [], r) => {
|
|
4774
4780
|
const {
|
|
4775
4781
|
vaultAddress: o,
|
|
4776
4782
|
vaultDepositTokenAddress: a,
|
|
@@ -4836,13 +4842,13 @@ const oi = (e, t) => {
|
|
|
4836
4842
|
routerKey: b?.routerKey,
|
|
4837
4843
|
swapDestinationAmount: u,
|
|
4838
4844
|
swapSlippage: g
|
|
4839
|
-
}), x =
|
|
4845
|
+
}), x = wr(
|
|
4840
4846
|
l,
|
|
4841
4847
|
e,
|
|
4842
4848
|
T,
|
|
4843
4849
|
c
|
|
4844
|
-
), { error:
|
|
4845
|
-
if (!
|
|
4850
|
+
), { error: E } = await n(...x);
|
|
4851
|
+
if (!E)
|
|
4846
4852
|
return console.debug(
|
|
4847
4853
|
`[Deposit] Auto slippage simulation succeeded: slippage=${g}%, router=${b?.routerKey}`
|
|
4848
4854
|
), console.debug(
|
|
@@ -4867,7 +4873,7 @@ const oi = (e, t) => {
|
|
|
4867
4873
|
swapDestinationAmount: u,
|
|
4868
4874
|
swapSlippage: r
|
|
4869
4875
|
});
|
|
4870
|
-
v =
|
|
4876
|
+
v = wr(
|
|
4871
4877
|
l,
|
|
4872
4878
|
e,
|
|
4873
4879
|
b,
|
|
@@ -4882,7 +4888,7 @@ const oi = (e, t) => {
|
|
|
4882
4888
|
depositMethod: e,
|
|
4883
4889
|
vaultDepositTokenAddress: t
|
|
4884
4890
|
}) => {
|
|
4885
|
-
const { address: n } = y(), [r] = O(), [{ slippage: o }] = X(), a = r.value || "0", i = new N(a).shiftedBy(r.decimals).toFixed(0), l = pi(), { data: c } = Vt(), d = di(), p =
|
|
4891
|
+
const { address: n } = y(), [r] = O(), [{ slippage: o }] = X(), a = r.value || "0", i = new N(a).shiftedBy(r.decimals).toFixed(0), l = pi(), { data: c } = Vt(), d = di(), p = Mn(), { referralData: u } = DT(), m = o === "auto", h = m ? Ar({ maxSlippage: p }) : void 0;
|
|
4886
4892
|
return f(
|
|
4887
4893
|
async (v) => {
|
|
4888
4894
|
const g = {
|
|
@@ -4903,7 +4909,7 @@ const oi = (e, t) => {
|
|
|
4903
4909
|
sendTokenAddress: r.address,
|
|
4904
4910
|
depositMethod: e,
|
|
4905
4911
|
referralData: u
|
|
4906
|
-
}) :
|
|
4912
|
+
}) : wr(
|
|
4907
4913
|
e,
|
|
4908
4914
|
g,
|
|
4909
4915
|
void 0,
|
|
@@ -4953,7 +4959,7 @@ const oi = (e, t) => {
|
|
|
4953
4959
|
action: zT,
|
|
4954
4960
|
onErrorCallback: e,
|
|
4955
4961
|
onSuccessCallback: e
|
|
4956
|
-
}), { send: a, estimate: i } =
|
|
4962
|
+
}), { send: a, estimate: i } = Ee({
|
|
4957
4963
|
contractId: "easySwapperV2",
|
|
4958
4964
|
functionName: t,
|
|
4959
4965
|
onSettled: o
|
|
@@ -4964,13 +4970,13 @@ const oi = (e, t) => {
|
|
|
4964
4970
|
return a(...l);
|
|
4965
4971
|
}, [r, a, n, i]);
|
|
4966
4972
|
}, GT = () => {
|
|
4967
|
-
const { account: e =
|
|
4973
|
+
const { account: e = I } = k(), { chainId: t } = y(), [n] = O(), r = K("easySwapperV2", t), o = new N(n.value || "0").shiftedBy(n.decimals).toFixed(0, N.ROUND_UP), { canSpend: a } = ii({
|
|
4968
4974
|
tokenAddress: n.address,
|
|
4969
4975
|
ownerAddress: e,
|
|
4970
4976
|
spenderAddress: r,
|
|
4971
4977
|
rawAmountToSpend: o,
|
|
4972
4978
|
chainId: t,
|
|
4973
|
-
skip:
|
|
4979
|
+
skip: yr(n.symbol, t) || o === "0"
|
|
4974
4980
|
});
|
|
4975
4981
|
return { approve: si({
|
|
4976
4982
|
token: n,
|
|
@@ -4994,11 +5000,7 @@ const oi = (e, t) => {
|
|
|
4994
5000
|
});
|
|
4995
5001
|
return _(() => {
|
|
4996
5002
|
(async () => {
|
|
4997
|
-
|
|
4998
|
-
n.current = !0, t("depositing");
|
|
4999
|
-
const T = vr[c];
|
|
5000
|
-
await new Promise((x) => setTimeout(x, T)), await a();
|
|
5001
|
-
}
|
|
5003
|
+
h && e === "waiting-confirmation" && !n.current && (n.current = !0, t("depositing"), await a());
|
|
5002
5004
|
})();
|
|
5003
5005
|
}, [h, c, e, a]), _(() => {
|
|
5004
5006
|
e === "waiting-confirmation" && d === "approve" && p === "None" && (t("idle"), n.current = !1);
|
|
@@ -5031,9 +5033,9 @@ const oi = (e, t) => {
|
|
|
5031
5033
|
refetchInterval: je
|
|
5032
5034
|
}
|
|
5033
5035
|
});
|
|
5034
|
-
return
|
|
5036
|
+
return Is(l), l;
|
|
5035
5037
|
}, jT = () => {
|
|
5036
|
-
const { address: e, chainId: t } = y(), n = Ye(), [r] = O(), [o, a] = M(), [, i] = X(), { isDebouncing: l, debouncedSendTokenValue: c } =
|
|
5038
|
+
const { address: e, chainId: t } = y(), n = Ye(), [r] = O(), [o, a] = M(), [, i] = X(), { isDebouncing: l, debouncedSendTokenValue: c } = Bn(), { isFetching: d } = Vt(), { data: p, isFetching: u } = VT({
|
|
5037
5039
|
address: e,
|
|
5038
5040
|
chainId: t
|
|
5039
5041
|
}), m = d || u || l;
|
|
@@ -5081,9 +5083,9 @@ const oi = (e, t) => {
|
|
|
5081
5083
|
l
|
|
5082
5084
|
]);
|
|
5083
5085
|
}, qT = () => {
|
|
5084
|
-
const e = Ye(), [t] = M(), [, n] = X(), { isDebouncing: r } =
|
|
5086
|
+
const e = Ye(), [t] = M(), [, n] = X(), { isDebouncing: r } = Bn({
|
|
5085
5087
|
extendedDebounceTime: !0
|
|
5086
|
-
}), o =
|
|
5088
|
+
}), o = Mn(), a = ui({ includesEntryFee: !0 });
|
|
5087
5089
|
_(() => {
|
|
5088
5090
|
if (!e || t.isLoading || r)
|
|
5089
5091
|
return;
|
|
@@ -5134,9 +5136,9 @@ function lA(e, t, n) {
|
|
|
5134
5136
|
var cA = lA;
|
|
5135
5137
|
function dA() {
|
|
5136
5138
|
}
|
|
5137
|
-
var pA = dA,
|
|
5138
|
-
return new
|
|
5139
|
-
} : uA, gA = hA, vA = is, fA = iA, bA = cA, yA = ls, TA = gA, AA =
|
|
5139
|
+
var pA = dA, tr = hs, uA = pA, mA = Dr, wA = 1 / 0, hA = tr && 1 / mA(new tr([, -0]))[1] == wA ? function(e) {
|
|
5140
|
+
return new tr(e);
|
|
5141
|
+
} : uA, gA = hA, vA = is, fA = iA, bA = cA, yA = ls, TA = gA, AA = Dr, SA = 200;
|
|
5140
5142
|
function xA(e, t, n) {
|
|
5141
5143
|
var r = -1, o = fA, a = e.length, i = !0, l = [], c = l;
|
|
5142
5144
|
if (n)
|
|
@@ -5160,9 +5162,9 @@ function xA(e, t, n) {
|
|
|
5160
5162
|
}
|
|
5161
5163
|
return l;
|
|
5162
5164
|
}
|
|
5163
|
-
var CA = xA,
|
|
5165
|
+
var CA = xA, EA = Cs, IA = CA;
|
|
5164
5166
|
function NA(e, t) {
|
|
5165
|
-
return e && e.length ?
|
|
5167
|
+
return e && e.length ? IA(e, EA(t)) : [];
|
|
5166
5168
|
}
|
|
5167
5169
|
var _A = NA;
|
|
5168
5170
|
const LA = /* @__PURE__ */ Tn(_A), jt = ({
|
|
@@ -5198,22 +5200,22 @@ const LA = /* @__PURE__ */ Tn(_A), jt = ({
|
|
|
5198
5200
|
address: h,
|
|
5199
5201
|
abi: Ae,
|
|
5200
5202
|
functionName: "balanceOf",
|
|
5201
|
-
args: [o ??
|
|
5203
|
+
args: [o ?? I],
|
|
5202
5204
|
chainId: n
|
|
5203
5205
|
})),
|
|
5204
5206
|
query: {
|
|
5205
5207
|
enabled: u
|
|
5206
5208
|
}
|
|
5207
5209
|
});
|
|
5208
|
-
return
|
|
5210
|
+
return Fr(m), L(() => {
|
|
5209
5211
|
if (!p)
|
|
5210
5212
|
return [];
|
|
5211
5213
|
const h = [];
|
|
5212
5214
|
for (let b = 0; b < d.length; b++)
|
|
5213
5215
|
h[b] = {
|
|
5214
5216
|
value: "",
|
|
5215
|
-
address: d[b]?.address ??
|
|
5216
|
-
symbol: d[b]?.symbol ?? d[b]?.address ??
|
|
5217
|
+
address: d[b]?.address ?? I,
|
|
5218
|
+
symbol: d[b]?.symbol ?? d[b]?.address ?? I,
|
|
5217
5219
|
balance: m?.[b]?.result ? Nt(
|
|
5218
5220
|
(m?.[b]?.result).toString() ?? "0",
|
|
5219
5221
|
d[b]?.decimals ?? W
|
|
@@ -5234,7 +5236,7 @@ const LA = /* @__PURE__ */ Tn(_A), jt = ({
|
|
|
5234
5236
|
...i || l || e ? [] : [
|
|
5235
5237
|
{
|
|
5236
5238
|
value: "",
|
|
5237
|
-
address: tn[n]?.address ??
|
|
5239
|
+
address: tn[n]?.address ?? I,
|
|
5238
5240
|
symbol: tn[n]?.nativeTokenSymbol ?? "",
|
|
5239
5241
|
decimals: tn[n]?.decimals ?? W
|
|
5240
5242
|
}
|
|
@@ -5292,7 +5294,7 @@ const LA = /* @__PURE__ */ Tn(_A), jt = ({
|
|
|
5292
5294
|
return e;
|
|
5293
5295
|
}
|
|
5294
5296
|
}, kA = "1", RA = () => {
|
|
5295
|
-
const { account: e =
|
|
5297
|
+
const { account: e = I } = k(), { address: t, chainId: n } = y(), [r] = M(), o = ve({ address: t, chainId: n }), { minDepositUSD: a } = Us(t, n), { data: i } = yy({
|
|
5296
5298
|
address: t,
|
|
5297
5299
|
chainId: n,
|
|
5298
5300
|
account: e
|
|
@@ -5307,7 +5309,7 @@ const LA = /* @__PURE__ */ Tn(_A), jt = ({
|
|
|
5307
5309
|
const [{ action: t, status: n }] = Q();
|
|
5308
5310
|
return t === e && (n === "Wallet" || n === "Mining");
|
|
5309
5311
|
}, $A = (e) => {
|
|
5310
|
-
const t = ae(), { onAcceptTermsOfUse: n } =
|
|
5312
|
+
const t = ae(), { onAcceptTermsOfUse: n } = Gr(), { termsOfUseAccepted: r } = j(), { swapQuoteRefreshTriggered: o } = ne(), a = _r(), i = we(!1), l = o === "deposit", {
|
|
5311
5313
|
disabled: c,
|
|
5312
5314
|
label: d,
|
|
5313
5315
|
handleTrade: p
|
|
@@ -5357,13 +5359,13 @@ const LA = /* @__PURE__ */ Tn(_A), jt = ({
|
|
|
5357
5359
|
payload: {
|
|
5358
5360
|
type: B.TERMS_OF_USE,
|
|
5359
5361
|
isOpen: !0,
|
|
5360
|
-
onConfirm: async (
|
|
5362
|
+
onConfirm: async (E) => {
|
|
5361
5363
|
try {
|
|
5362
|
-
|
|
5364
|
+
E(!0), await n() && T();
|
|
5363
5365
|
} catch {
|
|
5364
5366
|
console.error("Failed to verify terms of use acceptance");
|
|
5365
5367
|
} finally {
|
|
5366
|
-
|
|
5368
|
+
E(!1);
|
|
5367
5369
|
}
|
|
5368
5370
|
}
|
|
5369
5371
|
}
|
|
@@ -5405,7 +5407,7 @@ const LA = /* @__PURE__ */ Tn(_A), jt = ({
|
|
|
5405
5407
|
} = y(), [i] = O(), l = Ln(), c = le({
|
|
5406
5408
|
address: i.address,
|
|
5407
5409
|
chainId: n
|
|
5408
|
-
}), { isVaultDepositLocked: d, isAccountWhitelisted: p } = OA(), { requiresHighSlippageConfirm: u, confirmHighSlippage: m, slippageToBeUsed: h } =
|
|
5410
|
+
}), { isVaultDepositLocked: d, isAccountWhitelisted: p } = OA(), { requiresHighSlippageConfirm: u, confirmHighSlippage: m, slippageToBeUsed: h } = qr(), { requiresMinDeposit: v, requiredMinDepositAmount: g } = RA(), T = Number(i.value || "0") * Number(c), x = a !== void 0 && T > a;
|
|
5409
5411
|
return {
|
|
5410
5412
|
requiresMinDeposit: v,
|
|
5411
5413
|
requiresWhitelist: d && !p,
|
|
@@ -5518,7 +5520,7 @@ const LA = /* @__PURE__ */ Tn(_A), jt = ({
|
|
|
5518
5520
|
vaultTokensAmount: r,
|
|
5519
5521
|
address: t,
|
|
5520
5522
|
chainId: n
|
|
5521
|
-
}), a = e ? o.length :
|
|
5523
|
+
}), a = e ? o.length : Ea, i = o.find(
|
|
5522
5524
|
({ tokenAddress: p }) => ba.some(
|
|
5523
5525
|
(u) => Z(p, u)
|
|
5524
5526
|
)
|
|
@@ -5531,14 +5533,14 @@ const LA = /* @__PURE__ */ Tn(_A), jt = ({
|
|
|
5531
5533
|
hiddenAssets: d,
|
|
5532
5534
|
showUnitWithdrawalTip: l,
|
|
5533
5535
|
unitSymbol: i?.tokenName,
|
|
5534
|
-
unitAddress: i?.tokenAddress ??
|
|
5536
|
+
unitAddress: i?.tokenAddress ?? I
|
|
5535
5537
|
};
|
|
5536
5538
|
}, VA = ({ symbol: e }) => {
|
|
5537
5539
|
const t = S();
|
|
5538
5540
|
return /* @__PURE__ */ w("div", { className: "dtw-flex dtw-gap-1 dtw-items-center dtw-text-xs dtw-text-[color:var(--panel-secondary-content-color)]", children: [
|
|
5539
5541
|
t.as,
|
|
5540
5542
|
" ",
|
|
5541
|
-
/* @__PURE__ */ s(
|
|
5543
|
+
/* @__PURE__ */ s(Ie, { symbols: [e], size: "xs" }),
|
|
5542
5544
|
" ",
|
|
5543
5545
|
e
|
|
5544
5546
|
] });
|
|
@@ -5730,7 +5732,7 @@ const QA = (e) => {
|
|
|
5730
5732
|
if (!a) return;
|
|
5731
5733
|
const b = g.target.selectionStart ?? 0, T = g.target.value, x = KA(T);
|
|
5732
5734
|
if (x !== "" && !/^\d*\.?\d*$/.test(x)) return;
|
|
5733
|
-
const
|
|
5735
|
+
const E = (T.slice(0, b).match(/,/g) || []).length, R = b - E;
|
|
5734
5736
|
a(x), requestAnimationFrame(() => {
|
|
5735
5737
|
if (!d.current) return;
|
|
5736
5738
|
const V = Yo(x);
|
|
@@ -5877,7 +5879,7 @@ const QA = (e) => {
|
|
|
5877
5879
|
const { formattedBalance: e, symbol: t } = JA();
|
|
5878
5880
|
return /* @__PURE__ */ s($s, { balance: e, symbol: t });
|
|
5879
5881
|
}, eS = () => {
|
|
5880
|
-
const e =
|
|
5882
|
+
const e = Vr(), t = Hr(), n = !Ye(), { isCompleteWithdrawStep: r, isFetching: o } = bt(), [a] = M(), [, i] = X(), l = bi();
|
|
5881
5883
|
_(() => {
|
|
5882
5884
|
if (!(!n || a.isLoading || o)) {
|
|
5883
5885
|
if (r) {
|
|
@@ -5900,7 +5902,7 @@ const QA = (e) => {
|
|
|
5900
5902
|
o
|
|
5901
5903
|
]);
|
|
5902
5904
|
}, tS = () => {
|
|
5903
|
-
const { account: e =
|
|
5905
|
+
const { account: e = I } = k(), { chainId: t } = y();
|
|
5904
5906
|
return Ne({
|
|
5905
5907
|
address: K("easySwapperV2", t),
|
|
5906
5908
|
abi: Ve,
|
|
@@ -5923,7 +5925,7 @@ const QA = (e) => {
|
|
|
5923
5925
|
const n = y(), { data: r = [] } = ie(), { data: o = {} } = Ze(), [a] = M(), { minExpectedReceiveAmount: i } = Jr(), l = vt(), [{ slippage: c }] = X(), d = c === "auto", p = ue()[1], u = e ? "claim" : "swap", m = gt({
|
|
5924
5926
|
action: u,
|
|
5925
5927
|
onErrorCallback: t
|
|
5926
|
-
}), h = yi(), { send: v, estimate: g } =
|
|
5928
|
+
}), h = yi(), { send: v, estimate: g } = Ee({
|
|
5927
5929
|
contractId: "easySwapperV2",
|
|
5928
5930
|
functionName: ec,
|
|
5929
5931
|
onSettled: m
|
|
@@ -5931,14 +5933,14 @@ const QA = (e) => {
|
|
|
5931
5933
|
if (e || !h)
|
|
5932
5934
|
return [];
|
|
5933
5935
|
const T = Object.values(o)[0]?.map(
|
|
5934
|
-
({ routerKey:
|
|
5936
|
+
({ routerKey: E }) => E
|
|
5935
5937
|
);
|
|
5936
5938
|
if (!T?.length)
|
|
5937
5939
|
return console.warn("[Complete Withdraw] No available routers found for swap"), [];
|
|
5938
|
-
const x = d ?
|
|
5940
|
+
const x = d ? Ar({
|
|
5939
5941
|
maxSlippage: l
|
|
5940
5942
|
}) : [l];
|
|
5941
|
-
for (const
|
|
5943
|
+
for (const E of x)
|
|
5942
5944
|
for (const R of T) {
|
|
5943
5945
|
const V = Object.entries(o).reduce(
|
|
5944
5946
|
(ee, [We, et]) => {
|
|
@@ -5952,14 +5954,14 @@ const QA = (e) => {
|
|
|
5952
5954
|
assets: r,
|
|
5953
5955
|
swapData: V,
|
|
5954
5956
|
receiveAssetAddress: a.address,
|
|
5955
|
-
slippage:
|
|
5957
|
+
slippage: E
|
|
5956
5958
|
}), { error: oe } = await g(
|
|
5957
5959
|
J,
|
|
5958
5960
|
i
|
|
5959
5961
|
);
|
|
5960
5962
|
if (!oe)
|
|
5961
5963
|
return console.debug(
|
|
5962
|
-
`[Complete Withdraw] Estimation succeeded: slippage=${
|
|
5964
|
+
`[Complete Withdraw] Estimation succeeded: slippage=${E}%, router=${R}`
|
|
5963
5965
|
), console.debug("[Complete Withdraw] Transaction arguments:", [
|
|
5964
5966
|
J,
|
|
5965
5967
|
i
|
|
@@ -5998,7 +6000,7 @@ const QA = (e) => {
|
|
|
5998
6000
|
const { data: e = [] } = ie();
|
|
5999
6001
|
return e.reduce((t, { balance: n, price: r }) => t + n * r, 0);
|
|
6000
6002
|
}, ie = () => {
|
|
6001
|
-
const { account: e =
|
|
6003
|
+
const { account: e = I } = k(), { chainId: t } = y(), { data: n = [] } = CT({
|
|
6002
6004
|
account: e,
|
|
6003
6005
|
chainId: t
|
|
6004
6006
|
});
|
|
@@ -6007,7 +6009,7 @@ const QA = (e) => {
|
|
|
6007
6009
|
const { data: e = [], isFetching: t } = ie();
|
|
6008
6010
|
return { isCompleteWithdrawStep: e?.length > 0, isFetching: t };
|
|
6009
6011
|
}, Ze = () => {
|
|
6010
|
-
const e =
|
|
6012
|
+
const e = Vr(), { chainId: t } = y(), { account: n = I } = k(), [{ slippage: r }] = X(), [o] = M(), { data: a = [] } = ie(), i = yi(), l = L(
|
|
6011
6013
|
() => a.filter(({ address: c }) => !Z(c, o.address)).map(({ address: c, rawBalance: d }) => ({
|
|
6012
6014
|
chainId: t,
|
|
6013
6015
|
sourceAddress: c,
|
|
@@ -6027,7 +6029,7 @@ const QA = (e) => {
|
|
|
6027
6029
|
);
|
|
6028
6030
|
return sT(l, {
|
|
6029
6031
|
enabled: i,
|
|
6030
|
-
refetchInterval:
|
|
6032
|
+
refetchInterval: fr
|
|
6031
6033
|
});
|
|
6032
6034
|
}, rS = () => {
|
|
6033
6035
|
const [e, t] = M(), { data: n = [] } = ie(), {
|
|
@@ -6068,10 +6070,10 @@ const QA = (e) => {
|
|
|
6068
6070
|
}) => {
|
|
6069
6071
|
const r = S(), o = ae(), { account: a } = k(), i = y(), [l] = M(), c = Q()[1], d = ue()[1], p = Ir(), { data: u } = ie(), { isFetching: m } = Ze(), h = f(async () => {
|
|
6070
6072
|
const v = i.chainId, g = (u ?? []).map(
|
|
6071
|
-
({ address: T, decimals: x, symbol:
|
|
6073
|
+
({ address: T, decimals: x, symbol: E, balance: R }) => ({
|
|
6072
6074
|
address: T,
|
|
6073
6075
|
decimals: x,
|
|
6074
|
-
symbol:
|
|
6076
|
+
symbol: E,
|
|
6075
6077
|
value: R.toString()
|
|
6076
6078
|
})
|
|
6077
6079
|
), b = t ? null : g.filter(
|
|
@@ -6153,7 +6155,7 @@ const QA = (e) => {
|
|
|
6153
6155
|
type: B.ERROR_NOTIFICATION,
|
|
6154
6156
|
isOpen: !0,
|
|
6155
6157
|
meta: {
|
|
6156
|
-
error:
|
|
6158
|
+
error: Ia
|
|
6157
6159
|
}
|
|
6158
6160
|
}
|
|
6159
6161
|
}));
|
|
@@ -6327,7 +6329,7 @@ const QA = (e) => {
|
|
|
6327
6329
|
)
|
|
6328
6330
|
] }) : null;
|
|
6329
6331
|
}, dS = () => {
|
|
6330
|
-
const e = S(), [{ slippage: t, minSlippage: n, isMaxSlippageLoading: r }] = X(), o = t === "auto", a = di(), [i] = M(), { address: l, chainId: c } = y(), { entryFee: d } =
|
|
6332
|
+
const e = S(), [{ slippage: t, minSlippage: n, isMaxSlippageLoading: r }] = X(), o = t === "auto", a = di(), [i] = M(), { address: l, chainId: c } = y(), { entryFee: d } = jr({ address: l, chainId: c }), { minDepositUSD: p } = Us(l, c), u = DA(), m = Ht(), h = p ? re({ value: p, minimumFractionDigits: 0 }) : "", v = Ut(
|
|
6331
6333
|
o ? n ?? 0 : t
|
|
6332
6334
|
), g = Vs({
|
|
6333
6335
|
tradingType: "deposit",
|
|
@@ -6453,7 +6455,7 @@ const QA = (e) => {
|
|
|
6453
6455
|
d
|
|
6454
6456
|
]);
|
|
6455
6457
|
return /* @__PURE__ */ s(
|
|
6456
|
-
|
|
6458
|
+
Er,
|
|
6457
6459
|
{
|
|
6458
6460
|
collapseItems: u,
|
|
6459
6461
|
themeType: a
|
|
@@ -6471,7 +6473,7 @@ const QA = (e) => {
|
|
|
6471
6473
|
}, mS = () => {
|
|
6472
6474
|
jT(), qT();
|
|
6473
6475
|
}, wS = () => {
|
|
6474
|
-
const { ActionButton: e = H } = D(), t = S(), { status: n } = Pa(), { onConnect: r } =
|
|
6476
|
+
const { ActionButton: e = H } = D(), t = S(), { status: n } = Pa(), { onConnect: r } = Gr();
|
|
6475
6477
|
return /* @__PURE__ */ s(
|
|
6476
6478
|
e,
|
|
6477
6479
|
{
|
|
@@ -6507,12 +6509,12 @@ const QA = (e) => {
|
|
|
6507
6509
|
if (!r) return;
|
|
6508
6510
|
const i = setTimeout(() => {
|
|
6509
6511
|
o(!1);
|
|
6510
|
-
},
|
|
6512
|
+
}, fr);
|
|
6511
6513
|
return () => clearTimeout(i);
|
|
6512
6514
|
}, [r]), { disabled: n || r, tooltipText: t, handleClick: a };
|
|
6513
6515
|
}, xi = (e) => {
|
|
6514
6516
|
const { disabled: t, tooltipText: n, handleClick: r } = gS(e);
|
|
6515
|
-
return /* @__PURE__ */ s(
|
|
6517
|
+
return /* @__PURE__ */ s(Cr, { text: n, children: /* @__PURE__ */ s(
|
|
6516
6518
|
an,
|
|
6517
6519
|
{
|
|
6518
6520
|
Icon: Pl,
|
|
@@ -6567,8 +6569,8 @@ const QA = (e) => {
|
|
|
6567
6569
|
}) => {
|
|
6568
6570
|
const { ActionButton: n = H } = D(), { openLimitBuyOverlay: r, displayLimitBuyOverlay: o } = Vy();
|
|
6569
6571
|
return o ? /* @__PURE__ */ s(n, { ...t, onClick: r, children: e }) : null;
|
|
6570
|
-
},
|
|
6571
|
-
const { ActionButton: n = H } = D(), { onOpenNotificationsSettings: r } =
|
|
6572
|
+
}, Ei = ({ children: e, ...t }) => {
|
|
6573
|
+
const { ActionButton: n = H } = D(), { onOpenNotificationsSettings: r } = Gr();
|
|
6572
6574
|
return r ? /* @__PURE__ */ s(n, { ...t, onClick: r, children: e }) : null;
|
|
6573
6575
|
}, SS = () => {
|
|
6574
6576
|
const { address: e, symbol: t } = y();
|
|
@@ -6578,7 +6580,7 @@ const QA = (e) => {
|
|
|
6578
6580
|
address: e,
|
|
6579
6581
|
symbol: t,
|
|
6580
6582
|
decimals: W,
|
|
6581
|
-
image:
|
|
6583
|
+
image: Ur(t)
|
|
6582
6584
|
});
|
|
6583
6585
|
}, [e, t])
|
|
6584
6586
|
};
|
|
@@ -6594,7 +6596,9 @@ const QA = (e) => {
|
|
|
6594
6596
|
}
|
|
6595
6597
|
);
|
|
6596
6598
|
}, CS = () => {
|
|
6597
|
-
const e = S(), t = ae()
|
|
6599
|
+
const e = S(), t = ae();
|
|
6600
|
+
$n();
|
|
6601
|
+
const { symbol: n } = y(), [r] = O(), [o] = M(), a = yn()[1], { isCompleteWithdrawStep: i } = bt(), { swapQuoteRefreshTriggered: l } = ne(), c = _r(), { isFetching: d, isError: p } = Ze(), u = we(!1), m = f(() => {
|
|
6598
6602
|
a({
|
|
6599
6603
|
sendToken: {
|
|
6600
6604
|
symbol: n,
|
|
@@ -6643,10 +6647,10 @@ const QA = (e) => {
|
|
|
6643
6647
|
disabled: l === "withdraw" && d,
|
|
6644
6648
|
label: i ? e.swapAction : e.sellNow
|
|
6645
6649
|
};
|
|
6646
|
-
},
|
|
6650
|
+
}, Ii = () => {
|
|
6647
6651
|
const { ActionButton: e = H } = D(), { handleClick: t, label: n, disabled: r } = CS();
|
|
6648
6652
|
return /* @__PURE__ */ s(e, { onClick: t, disabled: r, children: n });
|
|
6649
|
-
},
|
|
6653
|
+
}, ES = () => {
|
|
6650
6654
|
mS();
|
|
6651
6655
|
const e = S(), { isGeoBlocked: t, isSanctioned: n } = j(), { GeoBlockAlert: r, SanctionedAlert: o, CustomDepositMeta: a } = D(), i = t || n, l = [
|
|
6652
6656
|
{
|
|
@@ -6670,10 +6674,10 @@ const QA = (e) => {
|
|
|
6670
6674
|
] }) }) }) }),
|
|
6671
6675
|
a && /* @__PURE__ */ s(a, {})
|
|
6672
6676
|
] });
|
|
6673
|
-
},
|
|
6677
|
+
}, IS = () => /* @__PURE__ */ s(G.Panel, { children: /* @__PURE__ */ s(ES, {}) }), NS = (e) => Object.keys(B).some((t) => t === e), _S = ({ children: e }) => {
|
|
6674
6678
|
const t = Qs();
|
|
6675
6679
|
let n = null;
|
|
6676
|
-
return
|
|
6680
|
+
return Il.forEach(e, (r) => {
|
|
6677
6681
|
if (Nl(r)) {
|
|
6678
6682
|
const o = r.props.type;
|
|
6679
6683
|
NS(o) && t[o] && t[o].isOpen && (n = r);
|
|
@@ -6685,7 +6689,7 @@ const QA = (e) => {
|
|
|
6685
6689
|
});
|
|
6686
6690
|
return /* @__PURE__ */ w(G.Overlay, { className: "dtw-justify-between dtw-gap-y-1 dtw-overflow-y-auto theme-scrollbar", children: [
|
|
6687
6691
|
/* @__PURE__ */ w("div", { className: "dtw-flex dtw-gap-1 dtw-items-center dtw-text-warning", children: [
|
|
6688
|
-
/* @__PURE__ */ s(
|
|
6692
|
+
/* @__PURE__ */ s(It, { className: "dtw-h-5 dtw-w-5" }),
|
|
6689
6693
|
/* @__PURE__ */ s("p", { children: t.termsOfUse })
|
|
6690
6694
|
] }),
|
|
6691
6695
|
/* @__PURE__ */ w("div", { className: "dtw-flex dtw-flex-col dtw-gap-2", children: [
|
|
@@ -6718,7 +6722,7 @@ const QA = (e) => {
|
|
|
6718
6722
|
const t = S(), { ActionButton: n = H } = D(), { handleReject: r, handleConfirm: o } = se({ type: e });
|
|
6719
6723
|
return /* @__PURE__ */ w(G.Overlay, { className: "dtw-justify-between dtw-gap-y-1", children: [
|
|
6720
6724
|
/* @__PURE__ */ w("div", { className: "dtw-flex dtw-gap-1 dtw-items-center dtw-text-warning", children: [
|
|
6721
|
-
/* @__PURE__ */ s(
|
|
6725
|
+
/* @__PURE__ */ s(It, { className: "dtw-h-5 dtw-w-5" }),
|
|
6722
6726
|
/* @__PURE__ */ s("p", { children: t.highSlippage })
|
|
6723
6727
|
] }),
|
|
6724
6728
|
/* @__PURE__ */ s("p", { className: "dtw-text-sm", children: t.responsibleHighSlippage }),
|
|
@@ -6973,10 +6977,10 @@ const QA = (e) => {
|
|
|
6973
6977
|
] }),
|
|
6974
6978
|
e
|
|
6975
6979
|
] });
|
|
6976
|
-
},
|
|
6980
|
+
}, hr = (e, t) => e.address in t ? {
|
|
6977
6981
|
balanceInUsd: t[e.address]?.balanceInUsd ?? re({ value: 0 }),
|
|
6978
6982
|
balanceInUsdNumber: t[e.address]?.balanceInUsdNumber ?? 0
|
|
6979
|
-
} : { balanceInUsd: re({ value: 0 }), balanceInUsdNumber: 0 }, zS = (e) => (t, n) =>
|
|
6983
|
+
} : { balanceInUsd: re({ value: 0 }), balanceInUsdNumber: 0 }, zS = (e) => (t, n) => hr(n, e).balanceInUsdNumber - hr(t, e).balanceInUsdNumber, US = ({
|
|
6980
6984
|
searchQuery: e,
|
|
6981
6985
|
type: t
|
|
6982
6986
|
}) => {
|
|
@@ -7002,7 +7006,7 @@ const QA = (e) => {
|
|
|
7002
7006
|
(h) => h.chainId === m && !h.deprecated
|
|
7003
7007
|
).map((h) => ({
|
|
7004
7008
|
...h,
|
|
7005
|
-
...
|
|
7009
|
+
...hr(h, n),
|
|
7006
7010
|
isActive: o.address === h.address
|
|
7007
7011
|
})).filter(
|
|
7008
7012
|
({ symbol: h }) => e ? h.toLowerCase().includes(e) : !0
|
|
@@ -7132,7 +7136,7 @@ const QA = (e) => {
|
|
|
7132
7136
|
] }),
|
|
7133
7137
|
!!p && o && /* @__PURE__ */ s(p, {}),
|
|
7134
7138
|
/* @__PURE__ */ w("div", { className: "dtw-flex dtw-flex-col dtw-gap-2 dtw-w-full", children: [
|
|
7135
|
-
u ? /* @__PURE__ */ s(Ci, { children: t.openLimitOrderAfterBuySwitchLabel }) : o ? null : /* @__PURE__ */ s(
|
|
7139
|
+
u ? /* @__PURE__ */ s(Ci, { children: t.openLimitOrderAfterBuySwitchLabel }) : o ? null : /* @__PURE__ */ s(Ei, { children: t.openNotificationsSettingsLabel }),
|
|
7136
7140
|
/* @__PURE__ */ s(d, { highlighted: !1, onClick: r, children: t.done })
|
|
7137
7141
|
] })
|
|
7138
7142
|
] });
|
|
@@ -7172,7 +7176,7 @@ const QA = (e) => {
|
|
|
7172
7176
|
)
|
|
7173
7177
|
] }),
|
|
7174
7178
|
/* @__PURE__ */ w("div", { className: "dtw-flex dtw-flex-col dtw-gap-2 dtw-w-full", children: [
|
|
7175
|
-
/* @__PURE__ */ s(
|
|
7179
|
+
/* @__PURE__ */ s(Ei, { children: t.openNotificationsSettingsLabel }),
|
|
7176
7180
|
/* @__PURE__ */ s(n, { highlighted: !1, onClick: e, children: t.done })
|
|
7177
7181
|
] })
|
|
7178
7182
|
] });
|
|
@@ -7211,7 +7215,7 @@ const QA = (e) => {
|
|
|
7211
7215
|
const t = S(), [n] = e ?? [];
|
|
7212
7216
|
return n ? /* @__PURE__ */ w("div", { className: "dtw-flex dtw-items-center dtw-gap-1 dtw-flex-wrap dtw-overflow-hidden", children: [
|
|
7213
7217
|
/* @__PURE__ */ s("span", { children: t.approveSpending }),
|
|
7214
|
-
/* @__PURE__ */ s(
|
|
7218
|
+
/* @__PURE__ */ s(Ie, { size: "sm", symbols: [n.symbol] }),
|
|
7215
7219
|
/* @__PURE__ */ s("span", { children: n.symbol })
|
|
7216
7220
|
] }) : null;
|
|
7217
7221
|
}, ZS = ({ receiveTokens: e }) => {
|
|
@@ -7220,7 +7224,7 @@ const QA = (e) => {
|
|
|
7220
7224
|
t.swapAndClaimTo,
|
|
7221
7225
|
" ",
|
|
7222
7226
|
/* @__PURE__ */ w("div", { className: "dtw-flex dtw-items-center dtw-gap-1", children: [
|
|
7223
|
-
/* @__PURE__ */ s(
|
|
7227
|
+
/* @__PURE__ */ s(Ie, { size: "sm", symbols: [n.symbol] }),
|
|
7224
7228
|
" ",
|
|
7225
7229
|
n.symbol
|
|
7226
7230
|
] })
|
|
@@ -7230,14 +7234,14 @@ const QA = (e) => {
|
|
|
7230
7234
|
return o ? /* @__PURE__ */ w("div", { className: "dtw-flex dtw-flex-wrap dtw-items-center dtw-gap-x-1", children: [
|
|
7231
7235
|
n === "deposit" ? r.pay : n === "multi_withdraw" ? r.sell : r.unrollAction,
|
|
7232
7236
|
/* @__PURE__ */ w("div", { className: "dtw-flex dtw-items-center dtw-gap-1", children: [
|
|
7233
|
-
/* @__PURE__ */ s(
|
|
7237
|
+
/* @__PURE__ */ s(Ie, { size: "sm", symbols: [o.symbol] }),
|
|
7234
7238
|
" ",
|
|
7235
7239
|
o.symbol
|
|
7236
7240
|
] }),
|
|
7237
7241
|
" ",
|
|
7238
7242
|
"to receive",
|
|
7239
7243
|
/* @__PURE__ */ s("div", { className: "dtw-flex dtw-items-center dtw-gap-1", children: a ? /* @__PURE__ */ w(P, { children: [
|
|
7240
|
-
/* @__PURE__ */ s(
|
|
7244
|
+
/* @__PURE__ */ s(Ie, { size: "sm", symbols: [a.symbol] }),
|
|
7241
7245
|
" ",
|
|
7242
7246
|
a.symbol
|
|
7243
7247
|
] }) : /* @__PURE__ */ s(P, { children: n === "multi_withdraw" ? r.multiAssetFractions : r.swappableAssets }) })
|
|
@@ -7437,7 +7441,7 @@ const QA = (e) => {
|
|
|
7437
7441
|
isFetched: n,
|
|
7438
7442
|
onClose: r
|
|
7439
7443
|
}) => {
|
|
7440
|
-
const o =
|
|
7444
|
+
const o = _r(), { invalidateTradingQueries: a } = Wt();
|
|
7441
7445
|
return { handleClick: () => {
|
|
7442
7446
|
o(e), a(), t(), r?.();
|
|
7443
7447
|
}, disabled: !n };
|
|
@@ -7488,7 +7492,7 @@ const QA = (e) => {
|
|
|
7488
7492
|
}, cx = Ve.filter(
|
|
7489
7493
|
({ type: e }) => e === "error"
|
|
7490
7494
|
).map(({ name: e }) => e), dx = ({ type: e }) => {
|
|
7491
|
-
const { handleReject: t, meta: n } = se({ type: e }), { isCompleteWithdrawStep: r } = bt(), o = Ye(), a = r && !o, i = n?.error ?? "", l = i === Ca || i ===
|
|
7495
|
+
const { handleReject: t, meta: n } = se({ type: e }), { isCompleteWithdrawStep: r } = bt(), o = Ye(), a = r && !o, i = n?.error ?? "", l = i === Ca || i === Ia || i.includes(tc), c = Wa({
|
|
7492
7496
|
errorMessage: n?.error,
|
|
7493
7497
|
abiErrors: cx
|
|
7494
7498
|
});
|
|
@@ -7766,10 +7770,10 @@ const QA = (e) => {
|
|
|
7766
7770
|
] })
|
|
7767
7771
|
}
|
|
7768
7772
|
);
|
|
7769
|
-
}, xx = 7,
|
|
7773
|
+
}, xx = 7, gr = 4, Qo = (e) => {
|
|
7770
7774
|
if (!e)
|
|
7771
7775
|
return "";
|
|
7772
|
-
const [t = "", n] = e.replace(/,/g, "").split("."), r = n && n.length >
|
|
7776
|
+
const [t = "", n] = e.replace(/,/g, "").split("."), r = n && n.length > gr ? n.slice(0, gr) : n, o = t.replace(/\B(?=(\d{3})+(?!\d))/g, ",");
|
|
7773
7777
|
return r !== void 0 ? `${o}.${r}` : o;
|
|
7774
7778
|
}, Cx = ({
|
|
7775
7779
|
inputValue: e = "",
|
|
@@ -7786,7 +7790,7 @@ const QA = (e) => {
|
|
|
7786
7790
|
},
|
|
7787
7791
|
onInputChange: (c) => {
|
|
7788
7792
|
const d = c.target.value.replace(/[^\d.]/g, "").replace(/(\..*)\./g, "$1"), [p = "", u = ""] = d.split(".");
|
|
7789
|
-
t && p.length <= xx && u.length <=
|
|
7793
|
+
t && p.length <= xx && u.length <= gr && /^\d*(\.\d*)?$/.test(d) && (o(Qo(d)), t(d));
|
|
7790
7794
|
}
|
|
7791
7795
|
};
|
|
7792
7796
|
}, mn = (e) => {
|
|
@@ -7817,7 +7821,7 @@ const QA = (e) => {
|
|
|
7817
7821
|
] })
|
|
7818
7822
|
}
|
|
7819
7823
|
);
|
|
7820
|
-
},
|
|
7824
|
+
}, Et = ({
|
|
7821
7825
|
title: e,
|
|
7822
7826
|
subtitle: t,
|
|
7823
7827
|
defaultEnabled: n,
|
|
@@ -7842,7 +7846,7 @@ const QA = (e) => {
|
|
|
7842
7846
|
lowerLimitPrice: "",
|
|
7843
7847
|
sellPercentage: "",
|
|
7844
7848
|
termsAccepted: !1
|
|
7845
|
-
},
|
|
7849
|
+
}, Ex = (e, t) => {
|
|
7846
7850
|
switch (t.type) {
|
|
7847
7851
|
case "SET_UPPER_LIMIT_PRICE":
|
|
7848
7852
|
return {
|
|
@@ -7898,13 +7902,13 @@ const Fi = (e) => ({
|
|
|
7898
7902
|
minAmountInUsd: e.minAmountInUsd
|
|
7899
7903
|
}), Wi = ce(
|
|
7900
7904
|
Fi({
|
|
7901
|
-
vaultAddress:
|
|
7905
|
+
vaultAddress: I,
|
|
7902
7906
|
vaultChainId: 0,
|
|
7903
7907
|
pricingAsset: {
|
|
7904
|
-
address:
|
|
7908
|
+
address: I,
|
|
7905
7909
|
symbol: ""
|
|
7906
7910
|
},
|
|
7907
|
-
minAmountInUsd:
|
|
7911
|
+
minAmountInUsd: zr,
|
|
7908
7912
|
form: {
|
|
7909
7913
|
lowerLimitPrice: "",
|
|
7910
7914
|
upperLimitPrice: ""
|
|
@@ -7921,7 +7925,7 @@ const Fi = (e) => ({
|
|
|
7921
7925
|
onLog: De
|
|
7922
7926
|
}), Ui = ({ children: e, initialState: t, actions: n }) => {
|
|
7923
7927
|
const [r, o] = wn(
|
|
7924
|
-
|
|
7928
|
+
Ex,
|
|
7925
7929
|
Fi(t)
|
|
7926
7930
|
), a = f((h) => {
|
|
7927
7931
|
o({ type: "SET_UPPER_LIMIT_PRICE", payload: h });
|
|
@@ -7969,7 +7973,7 @@ const Fi = (e) => ({
|
|
|
7969
7973
|
]
|
|
7970
7974
|
);
|
|
7971
7975
|
return /* @__PURE__ */ s(zi.Provider, { value: m, children: /* @__PURE__ */ s(Wi.Provider, { value: r, children: e }) });
|
|
7972
|
-
}, he = () => de(Wi), yt = () => de(zi),
|
|
7976
|
+
}, he = () => de(Wi), yt = () => de(zi), Fn = () => {
|
|
7973
7977
|
const { account: e } = k(), {
|
|
7974
7978
|
vaultAddress: t,
|
|
7975
7979
|
vaultChainId: n,
|
|
@@ -7997,7 +8001,7 @@ const Fi = (e) => ({
|
|
|
7997
8001
|
symbol: o.symbol
|
|
7998
8002
|
};
|
|
7999
8003
|
}, [o, r]);
|
|
8000
|
-
},
|
|
8004
|
+
}, Ix = ({
|
|
8001
8005
|
userAddress: e,
|
|
8002
8006
|
vaultAddress: t
|
|
8003
8007
|
}) => {
|
|
@@ -8009,10 +8013,10 @@ const Fi = (e) => ({
|
|
|
8009
8013
|
}, Nx = ({
|
|
8010
8014
|
price: e,
|
|
8011
8015
|
markPrice: t
|
|
8012
|
-
}) => new N(e).gt(t) ? `+${
|
|
8016
|
+
}) => new N(e).gt(t) ? `+${Sr((+e / +t - 1) * 100, 2)}` : "", _x = ({
|
|
8013
8017
|
price: e,
|
|
8014
8018
|
markPrice: t
|
|
8015
|
-
}) => new N(e).lt(t) ? `-${
|
|
8019
|
+
}) => new N(e).lt(t) ? `-${Sr((1 - +e / +t) * 100, 2)}` : "", Lx = ({
|
|
8016
8020
|
error: e,
|
|
8017
8021
|
translationMap: t
|
|
8018
8022
|
}) => e ? e.title === nc ? {
|
|
@@ -8027,7 +8031,7 @@ const Fi = (e) => ({
|
|
|
8027
8031
|
address: o.address,
|
|
8028
8032
|
chainId: a,
|
|
8029
8033
|
refetchInterval: je
|
|
8030
|
-
}), p = Number(d) < Vf ? jf : qf, { formatted: u, symbol: m } =
|
|
8034
|
+
}), p = Number(d) < Vf ? jf : qf, { formatted: u, symbol: m } = Fn(), h = Nx({
|
|
8031
8035
|
price: t,
|
|
8032
8036
|
markPrice: d
|
|
8033
8037
|
}), v = _x({
|
|
@@ -8089,7 +8093,7 @@ const Fi = (e) => ({
|
|
|
8089
8093
|
}
|
|
8090
8094
|
),
|
|
8091
8095
|
/* @__PURE__ */ s(
|
|
8092
|
-
|
|
8096
|
+
Et,
|
|
8093
8097
|
{
|
|
8094
8098
|
title: e.upperLimitLabel,
|
|
8095
8099
|
subtitle: e.upperLimitSubtitle,
|
|
@@ -8108,7 +8112,7 @@ const Fi = (e) => ({
|
|
|
8108
8112
|
}
|
|
8109
8113
|
),
|
|
8110
8114
|
/* @__PURE__ */ s(
|
|
8111
|
-
|
|
8115
|
+
Et,
|
|
8112
8116
|
{
|
|
8113
8117
|
title: e.lowerLimitLabel,
|
|
8114
8118
|
subtitle: e.lowerLimitSubtitle,
|
|
@@ -8127,7 +8131,7 @@ const Fi = (e) => ({
|
|
|
8127
8131
|
}
|
|
8128
8132
|
),
|
|
8129
8133
|
/* @__PURE__ */ s(
|
|
8130
|
-
|
|
8134
|
+
Et,
|
|
8131
8135
|
{
|
|
8132
8136
|
title: e.partialSellLabel,
|
|
8133
8137
|
subtitle: e.partialSellSubtitle,
|
|
@@ -8150,7 +8154,7 @@ const Fi = (e) => ({
|
|
|
8150
8154
|
)
|
|
8151
8155
|
] }) });
|
|
8152
8156
|
}, Dx = () => {
|
|
8153
|
-
const { account: e =
|
|
8157
|
+
const { account: e = I } = k(), { vaultAddress: t, vaultChainId: n } = he(), r = K("limitOrder", n), o = Fn(), { data: a } = Bt({
|
|
8154
8158
|
tokenAddress: t,
|
|
8155
8159
|
ownerAddress: e,
|
|
8156
8160
|
spenderAddress: r,
|
|
@@ -8159,7 +8163,7 @@ const Fi = (e) => ({
|
|
|
8159
8163
|
});
|
|
8160
8164
|
return a ? new N(o.raw).lte(a.toString()) : !1;
|
|
8161
8165
|
}, kx = () => {
|
|
8162
|
-
const { vaultAddress: e, vaultChainId: t } = he(), { setPendingTransaction: n } = yt(), [r, o] = F(!1), a = K("limitOrder", t), { send: i } =
|
|
8166
|
+
const { vaultAddress: e, vaultChainId: t } = he(), { setPendingTransaction: n } = yt(), [r, o] = F(!1), a = K("limitOrder", t), { send: i } = Ee({
|
|
8163
8167
|
contractId: "erc20",
|
|
8164
8168
|
dynamicContractAddress: e,
|
|
8165
8169
|
functionName: "approve",
|
|
@@ -8263,7 +8267,7 @@ const Fi = (e) => ({
|
|
|
8263
8267
|
user: r,
|
|
8264
8268
|
vault: o,
|
|
8265
8269
|
pricingAsset: a
|
|
8266
|
-
},
|
|
8270
|
+
}, Wn = ({
|
|
8267
8271
|
chainId: e,
|
|
8268
8272
|
userAddress: t,
|
|
8269
8273
|
vaultAddress: n
|
|
@@ -8273,8 +8277,8 @@ const Fi = (e) => ({
|
|
|
8273
8277
|
address: r,
|
|
8274
8278
|
abi: _a,
|
|
8275
8279
|
chainId: e,
|
|
8276
|
-
functionName:
|
|
8277
|
-
args: [
|
|
8280
|
+
functionName: Wr,
|
|
8281
|
+
args: [Ix({ userAddress: t, vaultAddress: n })],
|
|
8278
8282
|
query: {
|
|
8279
8283
|
enabled: !Y(r) && !Y(t) && !Y(n),
|
|
8280
8284
|
select: Rx
|
|
@@ -8283,16 +8287,16 @@ const Fi = (e) => ({
|
|
|
8283
8287
|
}, $x = _a.filter(
|
|
8284
8288
|
({ type: e }) => e === "error"
|
|
8285
8289
|
).map(({ name: e }) => e), Bx = "create", Vi = () => {
|
|
8286
|
-
const { account: e =
|
|
8290
|
+
const { account: e = I } = k(), {
|
|
8287
8291
|
vaultAddress: t,
|
|
8288
8292
|
vaultChainId: n,
|
|
8289
8293
|
form: { lowerLimitPrice: r, upperLimitPrice: o },
|
|
8290
8294
|
pricingAsset: a
|
|
8291
|
-
} = he(), i =
|
|
8295
|
+
} = he(), i = Fn(), { data: l } = Wn({
|
|
8292
8296
|
userAddress: e,
|
|
8293
8297
|
vaultAddress: t,
|
|
8294
8298
|
chainId: n
|
|
8295
|
-
}), [c, d] = F(null), p = Hi(Bx), u = !!l, { send: m } =
|
|
8299
|
+
}), [c, d] = F(null), p = Hi(Bx), u = !!l, { send: m } = Ee({
|
|
8296
8300
|
onSettled: p,
|
|
8297
8301
|
contractId: "limitOrder",
|
|
8298
8302
|
functionName: u ? "modifyLimitOrder" : "createLimitOrder"
|
|
@@ -8328,7 +8332,7 @@ const Fi = (e) => ({
|
|
|
8328
8332
|
error: v ?? null
|
|
8329
8333
|
};
|
|
8330
8334
|
}, Mx = () => {
|
|
8331
|
-
const e = Le(), { vaultAddress: t, vaultChainId: n, minAmountInUsd: r } = he(), o =
|
|
8335
|
+
const e = Le(), { vaultAddress: t, vaultChainId: n, minAmountInUsd: r } = he(), o = Fn(), a = ve({
|
|
8332
8336
|
address: t,
|
|
8333
8337
|
chainId: n
|
|
8334
8338
|
}), { createLimitOrder: i, isModifyTransaction: l, error: c } = Vi(), p = new ke(o.formatted).multipliedBy(
|
|
@@ -8389,11 +8393,11 @@ const Fi = (e) => ({
|
|
|
8389
8393
|
)
|
|
8390
8394
|
] });
|
|
8391
8395
|
}, Wx = "remove", zx = () => {
|
|
8392
|
-
const { account: e =
|
|
8396
|
+
const { account: e = I } = k(), { vaultAddress: t, vaultChainId: n, pendingTransaction: r } = he(), { data: o } = Wn({
|
|
8393
8397
|
userAddress: e,
|
|
8394
8398
|
vaultAddress: t,
|
|
8395
8399
|
chainId: n
|
|
8396
|
-
}), a = Hi(Wx), { send: i } =
|
|
8400
|
+
}), a = Hi(Wx), { send: i } = Ee({
|
|
8397
8401
|
onSettled: a,
|
|
8398
8402
|
contractId: "limitOrder",
|
|
8399
8403
|
functionName: "deleteLimitOrder"
|
|
@@ -8414,7 +8418,7 @@ const Fi = (e) => ({
|
|
|
8414
8418
|
}, Xo = (e) => {
|
|
8415
8419
|
const t = e?.trim();
|
|
8416
8420
|
return t ? !isNaN(Number(t)) : !1;
|
|
8417
|
-
},
|
|
8421
|
+
}, nr = (e) => {
|
|
8418
8422
|
const t = e?.trim();
|
|
8419
8423
|
return t ? !isNaN(Number(t)) && Number(t) > 0 : !1;
|
|
8420
8424
|
}, Gx = () => {
|
|
@@ -8498,18 +8502,18 @@ const Fi = (e) => ({
|
|
|
8498
8502
|
vaultAddress: e,
|
|
8499
8503
|
vaultChainId: t
|
|
8500
8504
|
}) => {
|
|
8501
|
-
const { account: n =
|
|
8505
|
+
const { account: n = I } = k(), { isFetched: r, data: o } = Wn({
|
|
8502
8506
|
vaultAddress: e,
|
|
8503
8507
|
chainId: t,
|
|
8504
8508
|
userAddress: n
|
|
8505
8509
|
}), a = o && o.takeProfitPriceD18 !== Be ? o.takeProfitPrice : "", i = o && o.stopLossPriceD18 !== BigInt(0) ? o.stopLossPrice : "";
|
|
8506
8510
|
return { isFetched: r, upperLimitPrice: a, lowerLimitPrice: i };
|
|
8507
8511
|
}, jx = [
|
|
8508
|
-
|
|
8512
|
+
Wr,
|
|
8509
8513
|
_s,
|
|
8510
8514
|
"allowance"
|
|
8511
8515
|
], qx = () => {
|
|
8512
|
-
const e =
|
|
8516
|
+
const e = xr();
|
|
8513
8517
|
return f(() => {
|
|
8514
8518
|
e.invalidateQueries({
|
|
8515
8519
|
predicate: ({ queryKey: t }) => {
|
|
@@ -8580,7 +8584,7 @@ const Fi = (e) => ({
|
|
|
8580
8584
|
AMBER: {
|
|
8581
8585
|
400: "#AFA58D"
|
|
8582
8586
|
}
|
|
8583
|
-
},
|
|
8587
|
+
}, zn = ({
|
|
8584
8588
|
children: e,
|
|
8585
8589
|
config: t
|
|
8586
8590
|
}) => /* @__PURE__ */ s(
|
|
@@ -8737,12 +8741,12 @@ const Fi = (e) => ({
|
|
|
8737
8741
|
},
|
|
8738
8742
|
children: e
|
|
8739
8743
|
}
|
|
8740
|
-
), Yx = ({ themeConfig: e }) => (Yi(), /* @__PURE__ */ s(
|
|
8744
|
+
), Yx = ({ themeConfig: e }) => (Yi(), /* @__PURE__ */ s(zn, { config: e, children: /* @__PURE__ */ s(ji, { hideDeleteButton: !0 }) })), Kx = ({
|
|
8741
8745
|
vaultChainId: e,
|
|
8742
8746
|
vaultAddress: t,
|
|
8743
8747
|
pricingAsset: n,
|
|
8744
8748
|
translation: r,
|
|
8745
|
-
minAmountInUsd: o =
|
|
8749
|
+
minAmountInUsd: o = zr,
|
|
8746
8750
|
actions: a,
|
|
8747
8751
|
themeConfig: i
|
|
8748
8752
|
}) => {
|
|
@@ -8906,7 +8910,7 @@ const Qi = (e) => {
|
|
|
8906
8910
|
pricingAsset: e.pricingAsset,
|
|
8907
8911
|
depositTokens: e.depositTokens,
|
|
8908
8912
|
inputToken: t ?? {
|
|
8909
|
-
address:
|
|
8913
|
+
address: I,
|
|
8910
8914
|
symbol: "",
|
|
8911
8915
|
decimals: W
|
|
8912
8916
|
},
|
|
@@ -8915,11 +8919,11 @@ const Qi = (e) => {
|
|
|
8915
8919
|
};
|
|
8916
8920
|
}, Xi = ce(
|
|
8917
8921
|
Qi({
|
|
8918
|
-
vaultAddress:
|
|
8922
|
+
vaultAddress: I,
|
|
8919
8923
|
vaultChainId: 0,
|
|
8920
|
-
limitBuyManagerAddress:
|
|
8924
|
+
limitBuyManagerAddress: I,
|
|
8921
8925
|
pricingAsset: {
|
|
8922
|
-
address:
|
|
8926
|
+
address: I,
|
|
8923
8927
|
symbol: ""
|
|
8924
8928
|
},
|
|
8925
8929
|
depositTokens: []
|
|
@@ -9117,7 +9121,7 @@ const Qi = (e) => {
|
|
|
9117
9121
|
onClick: () => n(o),
|
|
9118
9122
|
children: [
|
|
9119
9123
|
/* @__PURE__ */ s(
|
|
9120
|
-
|
|
9124
|
+
Ie,
|
|
9121
9125
|
{
|
|
9122
9126
|
symbols: [o.symbol],
|
|
9123
9127
|
size: "lg",
|
|
@@ -9174,7 +9178,7 @@ const Qi = (e) => {
|
|
|
9174
9178
|
onClick: () => t(!0),
|
|
9175
9179
|
children: [
|
|
9176
9180
|
/* @__PURE__ */ s(
|
|
9177
|
-
|
|
9181
|
+
Ie,
|
|
9178
9182
|
{
|
|
9179
9183
|
symbols: [o.symbol],
|
|
9180
9184
|
size: "xs",
|
|
@@ -9277,7 +9281,7 @@ const Qi = (e) => {
|
|
|
9277
9281
|
}
|
|
9278
9282
|
),
|
|
9279
9283
|
/* @__PURE__ */ s(
|
|
9280
|
-
|
|
9284
|
+
Et,
|
|
9281
9285
|
{
|
|
9282
9286
|
title: d,
|
|
9283
9287
|
subtitle: p,
|
|
@@ -9295,7 +9299,7 @@ const Qi = (e) => {
|
|
|
9295
9299
|
}
|
|
9296
9300
|
),
|
|
9297
9301
|
/* @__PURE__ */ s(
|
|
9298
|
-
|
|
9302
|
+
Et,
|
|
9299
9303
|
{
|
|
9300
9304
|
title: u,
|
|
9301
9305
|
subtitle: m,
|
|
@@ -9316,20 +9320,20 @@ const Qi = (e) => {
|
|
|
9316
9320
|
/* @__PURE__ */ s(sC, {})
|
|
9317
9321
|
] }) });
|
|
9318
9322
|
}, lC = () => {
|
|
9319
|
-
const { account: e =
|
|
9323
|
+
const { account: e = I } = k(), {
|
|
9320
9324
|
inputToken: t,
|
|
9321
9325
|
vaultChainId: n,
|
|
9322
9326
|
form: { inputAmount: r }
|
|
9323
9327
|
} = Pe(), { data: o } = Bt({
|
|
9324
9328
|
tokenAddress: t.address,
|
|
9325
9329
|
ownerAddress: e,
|
|
9326
|
-
spenderAddress:
|
|
9330
|
+
spenderAddress: Yr,
|
|
9327
9331
|
chainId: n,
|
|
9328
9332
|
skip: Y(t.address)
|
|
9329
9333
|
}), a = r ? He(r, t.decimals) : "0";
|
|
9330
9334
|
return o ? new N(a).lte(o.toString()) : !1;
|
|
9331
9335
|
}, cC = () => {
|
|
9332
|
-
const { inputToken: e } = Pe(), [t, n] = F(!1), [r, o] = F(), { send: a } =
|
|
9336
|
+
const { inputToken: e } = Pe(), [t, n] = F(!1), [r, o] = F(), { send: a } = Ee({
|
|
9333
9337
|
contractId: "erc20",
|
|
9334
9338
|
dynamicContractAddress: e.address,
|
|
9335
9339
|
functionName: "approve",
|
|
@@ -9339,7 +9343,7 @@ const Qi = (e) => {
|
|
|
9339
9343
|
});
|
|
9340
9344
|
return {
|
|
9341
9345
|
approvePermit2: async () => {
|
|
9342
|
-
Y(e.address) || (n(!0), await a(
|
|
9346
|
+
Y(e.address) || (n(!0), await a(Yr, Be));
|
|
9343
9347
|
},
|
|
9344
9348
|
isApproving: t,
|
|
9345
9349
|
txHash: r
|
|
@@ -9350,7 +9354,7 @@ const Qi = (e) => {
|
|
|
9350
9354
|
"0x" + Array.from(e).map((t) => t.toString(16).padStart(2, "0")).join("")
|
|
9351
9355
|
);
|
|
9352
9356
|
}, pC = (e) => Math.floor(Date.now() / 1e3 + Number(e) * 24 * 60 * 60), uC = () => {
|
|
9353
|
-
const { data: e } =
|
|
9357
|
+
const { data: e } = br(), { account: t } = k(), n = Pe(), { onSubmitOrder: r, onOrderCreated: o, onOrderError: a, setIsSubmitting: i } = qt();
|
|
9354
9358
|
return { signAndSubmit: f(async () => {
|
|
9355
9359
|
if (!e || !t) return;
|
|
9356
9360
|
const {
|
|
@@ -9366,7 +9370,7 @@ const Qi = (e) => {
|
|
|
9366
9370
|
slippageBps: b,
|
|
9367
9371
|
deadlineDays: T
|
|
9368
9372
|
}
|
|
9369
|
-
} = n, x = BigInt(He(g, m.decimals)),
|
|
9373
|
+
} = n, x = BigInt(He(g, m.decimals)), E = !!v, V = BigInt(!!h ? He(h, ir) : 0), J = E ? BigInt(He(v, ir)) : Be, oe = dC(), ee = pC(T), We = {
|
|
9370
9374
|
owner: t,
|
|
9371
9375
|
targetVault: c,
|
|
9372
9376
|
pricingAsset: u.address,
|
|
@@ -9388,7 +9392,7 @@ const Qi = (e) => {
|
|
|
9388
9392
|
const fe = {
|
|
9389
9393
|
name: "Permit2",
|
|
9390
9394
|
chainId: d,
|
|
9391
|
-
verifyingContract:
|
|
9395
|
+
verifyingContract: Yr
|
|
9392
9396
|
}, tt = await e.signTypedData({
|
|
9393
9397
|
account: t,
|
|
9394
9398
|
domain: fe,
|
|
@@ -9474,7 +9478,7 @@ const Qi = (e) => {
|
|
|
9474
9478
|
}, mC = () => {
|
|
9475
9479
|
const e = Je(), {
|
|
9476
9480
|
form: { upperLimitPrice: t, lowerLimitPrice: n, inputAmount: r, slippageBps: o }
|
|
9477
|
-
} = Pe(), { approveAndSign: a, isLoading: i, flowState: l, needsApproval: c } = ol(), d =
|
|
9481
|
+
} = Pe(), { approveAndSign: a, isLoading: i, flowState: l, needsApproval: c } = ol(), d = nr(t) || nr(n), p = nr(r), u = Number(o), m = !isNaN(u) && u >= My && u <= Fy;
|
|
9478
9482
|
return {
|
|
9479
9483
|
handleClick: a,
|
|
9480
9484
|
disabled: !d || !p || !m,
|
|
@@ -9569,7 +9573,7 @@ const Qi = (e) => {
|
|
|
9569
9573
|
] });
|
|
9570
9574
|
}, vC = ({
|
|
9571
9575
|
themeConfig: e
|
|
9572
|
-
}) => /* @__PURE__ */ s(
|
|
9576
|
+
}) => /* @__PURE__ */ s(zn, { config: e, children: /* @__PURE__ */ s(al, {}) }), fC = ({
|
|
9573
9577
|
vaultChainId: e,
|
|
9574
9578
|
vaultAddress: t,
|
|
9575
9579
|
limitBuyManagerAddress: n,
|
|
@@ -9680,7 +9684,7 @@ const Qi = (e) => {
|
|
|
9680
9684
|
const [e] = O();
|
|
9681
9685
|
return new N(e.value || "0").shiftedBy(e.decimals);
|
|
9682
9686
|
}, AC = () => {
|
|
9683
|
-
const { account: e =
|
|
9687
|
+
const { account: e = I } = k(), { address: t, chainId: n } = y(), r = K("limitOrder", n), o = sl(), { data: a } = Bt({
|
|
9684
9688
|
tokenAddress: t,
|
|
9685
9689
|
ownerAddress: e,
|
|
9686
9690
|
spenderAddress: r,
|
|
@@ -9689,7 +9693,7 @@ const Qi = (e) => {
|
|
|
9689
9693
|
});
|
|
9690
9694
|
return a ? o.lte(a.toString()) : !1;
|
|
9691
9695
|
}, Jo = "approve", SC = () => {
|
|
9692
|
-
const { address: e, chainId: t, symbol: n } = y(), [r, o] = F(!1), a = K("limitOrder", t), i = ue()[1], l = gt({ action: Jo }), { send: c } =
|
|
9696
|
+
const { address: e, chainId: t, symbol: n } = y(), [r, o] = F(!1), a = K("limitOrder", t), i = ue()[1], l = gt({ action: Jo }), { send: c } = Ee({
|
|
9693
9697
|
contractId: "erc20",
|
|
9694
9698
|
dynamicContractAddress: e,
|
|
9695
9699
|
functionName: "approve",
|
|
@@ -9720,8 +9724,8 @@ const Qi = (e) => {
|
|
|
9720
9724
|
}) => {
|
|
9721
9725
|
const t = S(), { ActionButton: n = H } = D(), { isApproved: r, approveLimitOrder: o, isApprovePending: a } = xC();
|
|
9722
9726
|
return r ? e : /* @__PURE__ */ s(n, { onClick: o, loading: a, children: t.approve });
|
|
9723
|
-
}, ea = "limit_order_withdraw",
|
|
9724
|
-
const { account: t =
|
|
9727
|
+
}, ea = "limit_order_withdraw", EC = (e) => {
|
|
9728
|
+
const { account: t = I } = k(), {
|
|
9725
9729
|
address: n,
|
|
9726
9730
|
chainId: r,
|
|
9727
9731
|
pricingAsset: o,
|
|
@@ -9731,11 +9735,11 @@ const Qi = (e) => {
|
|
|
9731
9735
|
l(...h), e();
|
|
9732
9736
|
},
|
|
9733
9737
|
[l, e]
|
|
9734
|
-
), d = sl(), { data: p } =
|
|
9738
|
+
), d = sl(), { data: p } = Wn({
|
|
9735
9739
|
userAddress: t,
|
|
9736
9740
|
vaultAddress: n,
|
|
9737
9741
|
chainId: r
|
|
9738
|
-
}), u = !!p, { send: m } =
|
|
9742
|
+
}), u = !!p, { send: m } = Ee({
|
|
9739
9743
|
onSettled: c,
|
|
9740
9744
|
contractId: "limitOrder",
|
|
9741
9745
|
functionName: u ? "modifyLimitOrder" : "createLimitOrder"
|
|
@@ -9766,7 +9770,7 @@ const Qi = (e) => {
|
|
|
9766
9770
|
o?.address,
|
|
9767
9771
|
m
|
|
9768
9772
|
]);
|
|
9769
|
-
},
|
|
9773
|
+
}, IC = ({
|
|
9770
9774
|
limitOrderHandler: e,
|
|
9771
9775
|
action: t
|
|
9772
9776
|
}) => {
|
|
@@ -9819,7 +9823,7 @@ const Qi = (e) => {
|
|
|
9819
9823
|
payload: { type: B.LIMIT_ORDER_WITHDRAW, isOpen: !1 }
|
|
9820
9824
|
}),
|
|
9821
9825
|
[e]
|
|
9822
|
-
), r =
|
|
9826
|
+
), r = EC(n), { handleLimitOrderWithdraw: o, label: a } = IC({
|
|
9823
9827
|
limitOrderHandler: r,
|
|
9824
9828
|
action: NC
|
|
9825
9829
|
});
|
|
@@ -9885,7 +9889,7 @@ const Qi = (e) => {
|
|
|
9885
9889
|
isActive: e,
|
|
9886
9890
|
onError: t
|
|
9887
9891
|
}) => {
|
|
9888
|
-
const n = S(), r =
|
|
9892
|
+
const n = S(), r = Kr(e), { canSpend: o, approve: a, isCanSpendFetching: i } = $n({
|
|
9889
9893
|
onErrorCallback: t
|
|
9890
9894
|
}), l = we(!1);
|
|
9891
9895
|
return _(() => {
|
|
@@ -9995,7 +9999,7 @@ const Qi = (e) => {
|
|
|
9995
9999
|
isUnrollAndClaimTransaction: i,
|
|
9996
10000
|
isFetching: l,
|
|
9997
10001
|
isFetched: c
|
|
9998
|
-
} = Qr(), { canSpend: d } =
|
|
10002
|
+
} = Qr(), { canSpend: d } = $n({
|
|
9999
10003
|
onErrorCallback: t
|
|
10000
10004
|
}), p = MC(d);
|
|
10001
10005
|
BC(t, r, o);
|
|
@@ -10017,7 +10021,7 @@ const Qi = (e) => {
|
|
|
10017
10021
|
isActive: e,
|
|
10018
10022
|
onError: t
|
|
10019
10023
|
}) => {
|
|
10020
|
-
const n = S(), r =
|
|
10024
|
+
const n = S(), r = Kr(e), o = vi({
|
|
10021
10025
|
onErrorCallback: t
|
|
10022
10026
|
}), { handleTrade: a } = fi({
|
|
10023
10027
|
withdraw: o,
|
|
@@ -10054,7 +10058,7 @@ const Qi = (e) => {
|
|
|
10054
10058
|
isPending: r,
|
|
10055
10059
|
onError: o
|
|
10056
10060
|
}) => {
|
|
10057
|
-
const a =
|
|
10061
|
+
const a = Kr(e), { withdraw: i } = vT({
|
|
10058
10062
|
onErrorCallback: o
|
|
10059
10063
|
}), { handleTrade: l } = Xr({
|
|
10060
10064
|
trade: i,
|
|
@@ -10171,7 +10175,7 @@ const Qi = (e) => {
|
|
|
10171
10175
|
),
|
|
10172
10176
|
/* @__PURE__ */ w("div", { className: "dtw-flex dtw-flex-col dtw-items-center dtw-gap-2", children: [
|
|
10173
10177
|
/* @__PURE__ */ s(
|
|
10174
|
-
|
|
10178
|
+
Ie,
|
|
10175
10179
|
{
|
|
10176
10180
|
symbols: [p?.sendToken?.symbol ?? ""],
|
|
10177
10181
|
size: "2xl"
|
|
@@ -10241,7 +10245,7 @@ const Qi = (e) => {
|
|
|
10241
10245
|
}, qC = ({ assets: e = [] }) => {
|
|
10242
10246
|
const { stablePrecision: t } = j(), { firstPart: n, secondPart: r } = ka(
|
|
10243
10247
|
e,
|
|
10244
|
-
|
|
10248
|
+
Ea
|
|
10245
10249
|
), o = f(
|
|
10246
10250
|
({ symbol: a, address: i, rawBalance: l, decimals: c, valueInUsd: d }) => /* @__PURE__ */ w("tr", { children: [
|
|
10247
10251
|
/* @__PURE__ */ w("td", { children: [
|
|
@@ -10270,7 +10274,7 @@ const Qi = (e) => {
|
|
|
10270
10274
|
r.length > 0 && /* @__PURE__ */ s(mi, { children: /* @__PURE__ */ s(un, { children: r.map(o) }) })
|
|
10271
10275
|
] });
|
|
10272
10276
|
}, YC = () => {
|
|
10273
|
-
const { chainId: e } = y(), { stablePrecision: t } = j(), { data: n = [] } = ie(), r = nS(), { data: o =
|
|
10277
|
+
const { chainId: e } = y(), { stablePrecision: t } = j(), { data: n = [] } = ie(), r = nS(), { data: o = I } = tS();
|
|
10274
10278
|
return {
|
|
10275
10279
|
assets: n,
|
|
10276
10280
|
usdAmount: re({
|
|
@@ -10300,7 +10304,7 @@ const Qi = (e) => {
|
|
|
10300
10304
|
/* @__PURE__ */ s("div", { className: "dtw-flex dtw-flex-col dtw-gap-[var(--panel-input-group-gap,var(--panel-gap))] dtw-rounded-[var(--panel-input-radius,var(--panel-radius))] dtw-border dtw-bg-[var(--panel-input-bg,var(--panel-neutral-color))] dtw-py-[var(--panel-input-py)] dtw-px-[var(--panel-input-px)] dtw-shadow-md dtw-border-[var(--panel-input-border-color)]", children: /* @__PURE__ */ s(qC, { assets: t }) })
|
|
10301
10305
|
] });
|
|
10302
10306
|
}, QC = () => {
|
|
10303
|
-
const e = ae(), { requiresHighSlippageConfirm: t, confirmHighSlippage: n, slippageToBeUsed: r } =
|
|
10307
|
+
const e = ae(), { requiresHighSlippageConfirm: t, confirmHighSlippage: n, slippageToBeUsed: r } = qr();
|
|
10304
10308
|
return {
|
|
10305
10309
|
requiresHighSlippageConfirm: t,
|
|
10306
10310
|
slippageToBeUsed: r,
|
|
@@ -10351,7 +10355,7 @@ const Qi = (e) => {
|
|
|
10351
10355
|
type: n
|
|
10352
10356
|
}
|
|
10353
10357
|
);
|
|
10354
|
-
},
|
|
10358
|
+
}, eE = () => {
|
|
10355
10359
|
const e = S(), { stablePrecision: t } = j(), [n] = M(), r = vt(), { minExpectedReceiveAmount: o } = Jr(), a = Ut(r), i = a === U.DEFAULT ? e.withdrawSlippageWarning : e.highSlippageWarning;
|
|
10356
10360
|
return {
|
|
10357
10361
|
themeType: a,
|
|
@@ -10365,8 +10369,8 @@ const Qi = (e) => {
|
|
|
10365
10369
|
decimals: t
|
|
10366
10370
|
})} ${n.symbol}`
|
|
10367
10371
|
};
|
|
10368
|
-
},
|
|
10369
|
-
const e = S(), { slippageTooltipText: t, slippagePlaceholder: n, minReceive: r } =
|
|
10372
|
+
}, tE = () => {
|
|
10373
|
+
const e = S(), { slippageTooltipText: t, slippagePlaceholder: n, minReceive: r } = eE(), o = L(() => [
|
|
10370
10374
|
{
|
|
10371
10375
|
tooltipText: e.exchangeRate,
|
|
10372
10376
|
label: e.rate,
|
|
@@ -10395,21 +10399,21 @@ const Qi = (e) => {
|
|
|
10395
10399
|
e.exchangeRate,
|
|
10396
10400
|
e.rate
|
|
10397
10401
|
]);
|
|
10398
|
-
return /* @__PURE__ */ s(
|
|
10399
|
-
},
|
|
10402
|
+
return /* @__PURE__ */ s(Er, { collapseItems: o });
|
|
10403
|
+
}, nE = ({ children: e }) => /* @__PURE__ */ w(G.Meta, { children: [
|
|
10400
10404
|
/* @__PURE__ */ s("div", { className: "dtw-bg-[var(--panel-meta-action-panel-bg)]", children: e }),
|
|
10401
|
-
/* @__PURE__ */ s(
|
|
10402
|
-
] }),
|
|
10405
|
+
/* @__PURE__ */ s(tE, {})
|
|
10406
|
+
] }), rE = () => (rS(), /* @__PURE__ */ w(P, { children: [
|
|
10403
10407
|
/* @__PURE__ */ w(G.InputGroup, { children: [
|
|
10404
10408
|
/* @__PURE__ */ s(KC, {}),
|
|
10405
10409
|
/* @__PURE__ */ s(JC, {})
|
|
10406
10410
|
] }),
|
|
10407
|
-
/* @__PURE__ */ s(
|
|
10408
|
-
/* @__PURE__ */ s(XC, { children: /* @__PURE__ */ s(
|
|
10411
|
+
/* @__PURE__ */ s(nE, { children: /* @__PURE__ */ s(to, { children: /* @__PURE__ */ w("div", { className: "tw-flex tw-flex-col tw-gap-2", children: [
|
|
10412
|
+
/* @__PURE__ */ s(XC, { children: /* @__PURE__ */ s(Ii, {}) }),
|
|
10409
10413
|
/* @__PURE__ */ s(Oi, { highlighted: !1 })
|
|
10410
10414
|
] }) }) })
|
|
10411
|
-
] })),
|
|
10412
|
-
const { chainId: e, address: t } = y(), { exitFeeNumber: n } =
|
|
10415
|
+
] })), oE = () => {
|
|
10416
|
+
const { chainId: e, address: t } = y(), { exitFeeNumber: n } = jr({
|
|
10413
10417
|
address: t,
|
|
10414
10418
|
chainId: e
|
|
10415
10419
|
}), [r] = O(), [o, a] = M(), i = ve({ address: t, chainId: e }), l = le({
|
|
@@ -10437,7 +10441,7 @@ const Qi = (e) => {
|
|
|
10437
10441
|
i,
|
|
10438
10442
|
a
|
|
10439
10443
|
]);
|
|
10440
|
-
},
|
|
10444
|
+
}, aE = () => {
|
|
10441
10445
|
const e = S(), t = ae(), n = () => t({
|
|
10442
10446
|
type: "MERGE_OVERLAY",
|
|
10443
10447
|
payload: { type: B.LIMIT_ORDER_WITHDRAW, isOpen: !0 }
|
|
@@ -10446,10 +10450,10 @@ const Qi = (e) => {
|
|
|
10446
10450
|
label: e.withdrawAction,
|
|
10447
10451
|
openLimitOrderWithdrawOverlay: n
|
|
10448
10452
|
};
|
|
10449
|
-
},
|
|
10450
|
-
const { ActionButton: e = H } = D(), { label: t, openLimitOrderWithdrawOverlay: n } =
|
|
10453
|
+
}, sE = () => {
|
|
10454
|
+
const { ActionButton: e = H } = D(), { label: t, openLimitOrderWithdrawOverlay: n } = aE();
|
|
10451
10455
|
return /* @__PURE__ */ s(e, { onClick: n, children: t });
|
|
10452
|
-
},
|
|
10456
|
+
}, rr = [
|
|
10453
10457
|
{
|
|
10454
10458
|
isLeveragedAsset: Ra,
|
|
10455
10459
|
getWithdrawAssetByLeverageAddress: $a,
|
|
@@ -10463,40 +10467,40 @@ const Qi = (e) => {
|
|
|
10463
10467
|
getWithdrawAssetByVaultAddress: Dc,
|
|
10464
10468
|
isLentAndBorrowedAsset: co
|
|
10465
10469
|
}
|
|
10466
|
-
],
|
|
10470
|
+
], or = {
|
|
10467
10471
|
requiresLeveragedCollateralLiquidity: !1,
|
|
10468
10472
|
leveragedCollateralValueFormatted: "$0"
|
|
10469
|
-
},
|
|
10473
|
+
}, ar = (e) => N(e.amount).shiftedBy(-e.precision).times(e.rate).shiftedBy(-W).toNumber(), il = () => {
|
|
10470
10474
|
const e = y(), t = zt(e), [n] = O(), r = ve(e), o = t.find(
|
|
10471
|
-
({ tokenAddress: u, amount: m }) =>
|
|
10475
|
+
({ tokenAddress: u, amount: m }) => rr.some(
|
|
10472
10476
|
(h) => h.isLeveragedAsset(u) && m !== "0"
|
|
10473
10477
|
)
|
|
10474
10478
|
);
|
|
10475
10479
|
if (!o)
|
|
10476
|
-
return
|
|
10477
|
-
const a =
|
|
10480
|
+
return or;
|
|
10481
|
+
const a = rr.find(
|
|
10478
10482
|
(u) => u.isLeveragedAsset(o.tokenAddress)
|
|
10479
10483
|
);
|
|
10480
10484
|
if (!a)
|
|
10481
|
-
return
|
|
10485
|
+
return or;
|
|
10482
10486
|
const i = a.getWithdrawAssetByVaultAddress(e.address)?.address ?? a.getWithdrawAssetByLeverageAddress(
|
|
10483
10487
|
o.tokenAddress
|
|
10484
10488
|
).address, l = t.find(
|
|
10485
10489
|
({ tokenAddress: u }) => Z(i, u)
|
|
10486
10490
|
);
|
|
10487
10491
|
if (!l)
|
|
10488
|
-
return
|
|
10489
|
-
const c = Number(n.value || "0") * Number(r), d =
|
|
10492
|
+
return or;
|
|
10493
|
+
const c = Number(n.value || "0") * Number(r), d = ar(l);
|
|
10490
10494
|
if (t.find(
|
|
10491
|
-
({ tokenAddress: u, amount: m }) =>
|
|
10495
|
+
({ tokenAddress: u, amount: m }) => rr.some(
|
|
10492
10496
|
(h) => h.isLentAndBorrowedAsset({
|
|
10493
10497
|
address: u,
|
|
10494
10498
|
chainId: e.chainId
|
|
10495
10499
|
}) && m !== "0"
|
|
10496
10500
|
)
|
|
10497
10501
|
)) {
|
|
10498
|
-
const u =
|
|
10499
|
-
(T, x) => T +
|
|
10502
|
+
const u = ar(o), m = t.reduce(
|
|
10503
|
+
(T, x) => T + ar(x),
|
|
10500
10504
|
0
|
|
10501
10505
|
), h = d / m, v = u / m, b = h / (h + v) * m;
|
|
10502
10506
|
return {
|
|
@@ -10515,13 +10519,13 @@ const Qi = (e) => {
|
|
|
10515
10519
|
}, ll = () => {
|
|
10516
10520
|
const { chainId: e, pricingAsset: t, onDemandWithdrawalEnabled: n } = y(), { requiresLeveragedCollateralLiquidity: r } = il(), o = Pn();
|
|
10517
10521
|
return r && !!t && !!n && (e === fn.id || !o);
|
|
10518
|
-
},
|
|
10522
|
+
}, iE = () => {
|
|
10519
10523
|
const { address: e, chainId: t, maintenance: n, maintenanceWithdrawals: r, symbol: o } = y(), [a] = O(), i = ae(), l = ll(), c = Ln(), { data: d = 0 } = vy({
|
|
10520
10524
|
address: e,
|
|
10521
10525
|
chainId: t
|
|
10522
10526
|
}), p = d > 0, u = Va(
|
|
10523
10527
|
Fc({ start: 0, end: d })
|
|
10524
|
-
), { requiresHighSlippageConfirm: m, confirmHighSlippage: h, slippageToBeUsed: v } =
|
|
10528
|
+
), { requiresHighSlippageConfirm: m, confirmHighSlippage: h, slippageToBeUsed: v } = qr(), g = () => {
|
|
10525
10529
|
i({
|
|
10526
10530
|
type: "MERGE_OVERLAY",
|
|
10527
10531
|
payload: {
|
|
@@ -10544,7 +10548,7 @@ const Qi = (e) => {
|
|
|
10544
10548
|
isLimitOrderWithdraw: l,
|
|
10545
10549
|
insufficientBalance: c
|
|
10546
10550
|
};
|
|
10547
|
-
},
|
|
10551
|
+
}, lE = ({
|
|
10548
10552
|
children: e
|
|
10549
10553
|
}) => {
|
|
10550
10554
|
const { ActionButton: t = H } = D(), n = S(), {
|
|
@@ -10559,7 +10563,7 @@ const Qi = (e) => {
|
|
|
10559
10563
|
poolSymbol: u,
|
|
10560
10564
|
isLimitOrderWithdraw: m,
|
|
10561
10565
|
insufficientBalance: h
|
|
10562
|
-
} =
|
|
10566
|
+
} = iE();
|
|
10563
10567
|
return r ? /* @__PURE__ */ s(t, { disabled: !0, children: n.sellNow }) : p ? /* @__PURE__ */ s(
|
|
10564
10568
|
dn,
|
|
10565
10569
|
{
|
|
@@ -10575,11 +10579,11 @@ const Qi = (e) => {
|
|
|
10575
10579
|
promptText: n.withdrawCooldown.replace("{tokenSymbol}", i).replace("{cooldownEndTime}", c),
|
|
10576
10580
|
children: n.sellNow
|
|
10577
10581
|
}
|
|
10578
|
-
) : h ? /* @__PURE__ */ s(t, { disabled: !0, children: n.insufficientBalance }) : m ? /* @__PURE__ */ s(
|
|
10582
|
+
) : h ? /* @__PURE__ */ s(t, { disabled: !0, children: n.insufficientBalance }) : m ? /* @__PURE__ */ s(sE, {}) : a ? /* @__PURE__ */ s(t, { onClick: d, children: n.confirmMaxSlippage.replace(
|
|
10579
10583
|
"{slippagePercentage}",
|
|
10580
10584
|
`${Math.abs(l)}`
|
|
10581
10585
|
) }) : e;
|
|
10582
|
-
},
|
|
10586
|
+
}, cE = () => {
|
|
10583
10587
|
const { address: e, chainId: t } = y(), [n, r] = O(), o = ge({
|
|
10584
10588
|
symbol: n.symbol,
|
|
10585
10589
|
address: n.address
|
|
@@ -10590,7 +10594,7 @@ const Qi = (e) => {
|
|
|
10590
10594
|
balance: o,
|
|
10591
10595
|
price: a
|
|
10592
10596
|
};
|
|
10593
|
-
},
|
|
10597
|
+
}, dE = () => {
|
|
10594
10598
|
const { chainId: e } = y(), [t, n] = M(), r = le({ address: t.address, chainId: e });
|
|
10595
10599
|
return {
|
|
10596
10600
|
...t,
|
|
@@ -10598,8 +10602,8 @@ const Qi = (e) => {
|
|
|
10598
10602
|
price: r,
|
|
10599
10603
|
displayCalculatedValue: t.symbol !== Te.symbol
|
|
10600
10604
|
};
|
|
10601
|
-
},
|
|
10602
|
-
const e =
|
|
10605
|
+
}, pE = () => {
|
|
10606
|
+
const e = cE(), t = dE();
|
|
10603
10607
|
return {
|
|
10604
10608
|
sendToken: e,
|
|
10605
10609
|
onInputChange: (r) => {
|
|
@@ -10607,8 +10611,8 @@ const Qi = (e) => {
|
|
|
10607
10611
|
},
|
|
10608
10612
|
receiveToken: t
|
|
10609
10613
|
};
|
|
10610
|
-
},
|
|
10611
|
-
const { sendToken: e, onInputChange: t, receiveToken: n } =
|
|
10614
|
+
}, uE = () => {
|
|
10615
|
+
const { sendToken: e, onInputChange: t, receiveToken: n } = pE();
|
|
10612
10616
|
return /* @__PURE__ */ w(P, { children: [
|
|
10613
10617
|
/* @__PURE__ */ s(
|
|
10614
10618
|
Lt,
|
|
@@ -10640,8 +10644,8 @@ const Qi = (e) => {
|
|
|
10640
10644
|
}
|
|
10641
10645
|
)
|
|
10642
10646
|
] });
|
|
10643
|
-
},
|
|
10644
|
-
const e = S(), { address: t, chainId: n } = y(), [{ isMaxSlippageLoading: r }] = X(), { exitFeeNumber: o } =
|
|
10647
|
+
}, mE = () => {
|
|
10648
|
+
const e = S(), { address: t, chainId: n } = y(), [{ isMaxSlippageLoading: r }] = X(), { exitFeeNumber: o } = jr({
|
|
10645
10649
|
address: t,
|
|
10646
10650
|
chainId: n
|
|
10647
10651
|
}), a = vt(), i = Xe();
|
|
@@ -10649,11 +10653,11 @@ const Qi = (e) => {
|
|
|
10649
10653
|
slippageTooltipText: Ut(a) === U.DEFAULT ? e.withdrawSlippageWarning : e.highSlippageWarning,
|
|
10650
10654
|
isMaxSlippageLoading: r,
|
|
10651
10655
|
slippagePlaceholder: `${a}%`,
|
|
10652
|
-
exitFee:
|
|
10656
|
+
exitFee: Sr(o, 2),
|
|
10653
10657
|
minReceivedText: e.estimatedMultiAssetFractions,
|
|
10654
10658
|
showMinReceivedText: i
|
|
10655
10659
|
};
|
|
10656
|
-
},
|
|
10660
|
+
}, wE = () => {
|
|
10657
10661
|
const e = S(), {
|
|
10658
10662
|
slippageTooltipText: t,
|
|
10659
10663
|
slippagePlaceholder: n,
|
|
@@ -10661,7 +10665,7 @@ const Qi = (e) => {
|
|
|
10661
10665
|
exitFee: o,
|
|
10662
10666
|
minReceivedText: a,
|
|
10663
10667
|
showMinReceivedText: i
|
|
10664
|
-
} =
|
|
10668
|
+
} = mE(), l = L(() => {
|
|
10665
10669
|
const c = [
|
|
10666
10670
|
{
|
|
10667
10671
|
tooltipText: e.exchangeRate,
|
|
@@ -10710,8 +10714,8 @@ const Qi = (e) => {
|
|
|
10710
10714
|
i,
|
|
10711
10715
|
a
|
|
10712
10716
|
]);
|
|
10713
|
-
return /* @__PURE__ */ s(
|
|
10714
|
-
},
|
|
10717
|
+
return /* @__PURE__ */ s(Er, { collapseItems: l });
|
|
10718
|
+
}, hE = ({ children: e }) => {
|
|
10715
10719
|
const { WithdrawMetaInfo: t, AvailableLiquidityAlert: n, OnDemandWithdrawAlert: r } = D(), {
|
|
10716
10720
|
requiresLeveragedCollateralLiquidity: o,
|
|
10717
10721
|
leveragedCollateralValueFormatted: a
|
|
@@ -10724,44 +10728,44 @@ const Qi = (e) => {
|
|
|
10724
10728
|
}
|
|
10725
10729
|
) }) : null }),
|
|
10726
10730
|
/* @__PURE__ */ s("div", { className: "dtw-bg-[var(--panel-meta-action-panel-bg)]", children: e }),
|
|
10727
|
-
/* @__PURE__ */ s(
|
|
10731
|
+
/* @__PURE__ */ s(wE, {}),
|
|
10728
10732
|
t && /* @__PURE__ */ s(t, {})
|
|
10729
10733
|
] });
|
|
10730
|
-
},
|
|
10734
|
+
}, gE = () => {
|
|
10731
10735
|
const e = S();
|
|
10732
|
-
return
|
|
10733
|
-
/* @__PURE__ */ s(G.InputGroup, { children: /* @__PURE__ */ s(
|
|
10734
|
-
/* @__PURE__ */ s(
|
|
10735
|
-
/* @__PURE__ */ s(
|
|
10736
|
+
return oE(), /* @__PURE__ */ w(P, { children: [
|
|
10737
|
+
/* @__PURE__ */ s(G.InputGroup, { children: /* @__PURE__ */ s(uE, {}) }),
|
|
10738
|
+
/* @__PURE__ */ s(hE, { children: /* @__PURE__ */ s(to, { children: /* @__PURE__ */ w("div", { className: "dtw-flex dtw-flex-col dtw-gap-2 dtw-w-full", children: [
|
|
10739
|
+
/* @__PURE__ */ s(lE, { children: /* @__PURE__ */ s(Ii, {}) }),
|
|
10736
10740
|
/* @__PURE__ */ s(Ci, { highlighted: !1, children: e.stopOrder })
|
|
10737
10741
|
] }) }) })
|
|
10738
10742
|
] });
|
|
10739
|
-
},
|
|
10743
|
+
}, vE = () => {
|
|
10740
10744
|
eS();
|
|
10741
10745
|
const { isCompleteWithdrawStep: e } = bt();
|
|
10742
10746
|
return {
|
|
10743
10747
|
isCompleteWithdrawStep: e
|
|
10744
10748
|
};
|
|
10745
|
-
},
|
|
10746
|
-
const { isCompleteWithdrawStep: e } =
|
|
10747
|
-
return e ? /* @__PURE__ */ s(
|
|
10748
|
-
},
|
|
10749
|
+
}, fE = () => {
|
|
10750
|
+
const { isCompleteWithdrawStep: e } = vE();
|
|
10751
|
+
return e ? /* @__PURE__ */ s(rE, {}) : /* @__PURE__ */ s(gE, {});
|
|
10752
|
+
}, bE = () => /* @__PURE__ */ s(G.Panel, { children: /* @__PURE__ */ s(fE, {}) }), yE = ({ tradingType: e }) => /* @__PURE__ */ w(ca, { selectedIndex: at.indexOf(e), children: [
|
|
10749
10753
|
/* @__PURE__ */ s(da, { className: "dtw-flex", children: at.map((t) => /* @__PURE__ */ s(ta, { className: "dtw-hidden" }, t)) }),
|
|
10750
10754
|
/* @__PURE__ */ w(pa, { children: [
|
|
10751
10755
|
/* @__PURE__ */ s(G.Settings, { children: /* @__PURE__ */ s(LT, {}) }),
|
|
10752
10756
|
/* @__PURE__ */ s(G.Settings, { children: /* @__PURE__ */ s(jC, {}) })
|
|
10753
10757
|
] })
|
|
10754
|
-
] }),
|
|
10758
|
+
] }), TE = ({ children: e }) => /* @__PURE__ */ w(da, { className: "dtw-flex dtw-px-[var(--panel-tab-group-px)] dtw-justify-between dtw-items-center", children: [
|
|
10755
10759
|
/* @__PURE__ */ s("div", { className: "dtw-bg-[var(--panel-tab-list-bg)] dtw-rounded-[var(--panel-tab-list-radius)] dtw-px-[var(--panel-tab-list-px)] dtw-py-[var(--panel-tab-list-py)]", children: at.map((t) => /* @__PURE__ */ s(Hc, { tradingType: t }, t)) }),
|
|
10756
10760
|
e
|
|
10757
|
-
] }),
|
|
10761
|
+
] }), AE = at.reduce(
|
|
10758
10762
|
(e, t, n) => (e[n] = t, e),
|
|
10759
10763
|
{}
|
|
10760
|
-
),
|
|
10764
|
+
), SE = () => {
|
|
10761
10765
|
const [e] = Ce(), t = y(), { standalone: n } = j();
|
|
10762
10766
|
aS();
|
|
10763
10767
|
const r = Ti(), o = (a) => {
|
|
10764
|
-
const i =
|
|
10768
|
+
const i = AE[a];
|
|
10765
10769
|
i && r(i);
|
|
10766
10770
|
};
|
|
10767
10771
|
return _(() => {
|
|
@@ -10772,8 +10776,8 @@ const Qi = (e) => {
|
|
|
10772
10776
|
type: e,
|
|
10773
10777
|
onTabChange: o
|
|
10774
10778
|
};
|
|
10775
|
-
},
|
|
10776
|
-
const { type: e, onTabChange: t } =
|
|
10779
|
+
}, xE = () => {
|
|
10780
|
+
const { type: e, onTabChange: t } = SE();
|
|
10777
10781
|
return /* @__PURE__ */ w("div", { className: "trading-widget dtw-relative dtw-pt-3 dtw-bg-[var(--panel-background-color)] dtw-text-[color:var(--panel-content-color)] dtw-rounded-[var(--widget-radius)] md:dtw-rounded-[var(--widget-radius-md)] dtw-overflow-hidden dtw-h-full", children: [
|
|
10778
10782
|
/* @__PURE__ */ w(
|
|
10779
10783
|
ca,
|
|
@@ -10782,13 +10786,13 @@ const Qi = (e) => {
|
|
|
10782
10786
|
onChange: t,
|
|
10783
10787
|
className: "dtw-flex dtw-flex-col dtw-h-full",
|
|
10784
10788
|
children: [
|
|
10785
|
-
/* @__PURE__ */ s(
|
|
10789
|
+
/* @__PURE__ */ s(TE, { children: /* @__PURE__ */ w("div", { className: "dtw-flex dtw-gap-2 dtw-items-center dtw-justify-end", children: [
|
|
10786
10790
|
/* @__PURE__ */ s(TS, {}),
|
|
10787
|
-
/* @__PURE__ */ s(
|
|
10791
|
+
/* @__PURE__ */ s(yE, { tradingType: e })
|
|
10788
10792
|
] }) }),
|
|
10789
10793
|
/* @__PURE__ */ w(pa, { className: "dtw-flex-1 dtw-overflow-y-auto", children: [
|
|
10790
|
-
/* @__PURE__ */ s(
|
|
10791
|
-
/* @__PURE__ */ s(
|
|
10794
|
+
/* @__PURE__ */ s(IS, {}),
|
|
10795
|
+
/* @__PURE__ */ s(bE, {})
|
|
10792
10796
|
] })
|
|
10793
10797
|
]
|
|
10794
10798
|
}
|
|
@@ -10807,7 +10811,7 @@ const Qi = (e) => {
|
|
|
10807
10811
|
/* @__PURE__ */ s(gx, { type: B.ERROR_NOTIFICATION })
|
|
10808
10812
|
] })
|
|
10809
10813
|
] });
|
|
10810
|
-
},
|
|
10814
|
+
}, CE = ({
|
|
10811
10815
|
children: e,
|
|
10812
10816
|
config: t,
|
|
10813
10817
|
className: n
|
|
@@ -11060,14 +11064,14 @@ const Qi = (e) => {
|
|
|
11060
11064
|
},
|
|
11061
11065
|
children: e
|
|
11062
11066
|
}
|
|
11063
|
-
),
|
|
11067
|
+
), EE = ({
|
|
11064
11068
|
children: e,
|
|
11065
11069
|
config: t,
|
|
11066
11070
|
theme: n,
|
|
11067
11071
|
components: r,
|
|
11068
11072
|
translation: o,
|
|
11069
11073
|
className: a
|
|
11070
|
-
}) => /* @__PURE__ */ s(Uc, { config: o, children: /* @__PURE__ */ s(
|
|
11074
|
+
}) => /* @__PURE__ */ s(Uc, { config: o, children: /* @__PURE__ */ s(CE, { config: n, className: a, children: /* @__PURE__ */ s(eb, { config: t, children: /* @__PURE__ */ s(lb, { config: r, children: /* @__PURE__ */ s(ky, { children: e }) }) }) }) }), hI = (e) => /* @__PURE__ */ s(EE, { ...e, children: /* @__PURE__ */ s(xE, {}) }), cl = ({
|
|
11071
11075
|
title: e,
|
|
11072
11076
|
children: t,
|
|
11073
11077
|
className: n,
|
|
@@ -11132,7 +11136,7 @@ const Qi = (e) => {
|
|
|
11132
11136
|
] }) })
|
|
11133
11137
|
}
|
|
11134
11138
|
);
|
|
11135
|
-
},
|
|
11139
|
+
}, IE = () => {
|
|
11136
11140
|
const e = it(), { isModalOpen: t, pendingTransaction: n } = he(), { setIsModalOpen: r } = yt(), o = f(() => {
|
|
11137
11141
|
r(!0), e?.(qe.OPEN_LIMIT_SELL_VIEW, {
|
|
11138
11142
|
[ot.SOURCE.NAME]: "modal"
|
|
@@ -11144,11 +11148,11 @@ const Qi = (e) => {
|
|
|
11144
11148
|
onClose: a,
|
|
11145
11149
|
isTransactionPending: !!n
|
|
11146
11150
|
};
|
|
11147
|
-
},
|
|
11148
|
-
const { onOpen: n, isModalOpen: r, onClose: o, isTransactionPending: a } =
|
|
11151
|
+
}, NE = ({ children: e, themeConfig: t }) => {
|
|
11152
|
+
const { onOpen: n, isModalOpen: r, onClose: o, isTransactionPending: a } = IE(), i = Le();
|
|
11149
11153
|
Yi();
|
|
11150
11154
|
const l = f(
|
|
11151
|
-
({ children: c }) => /* @__PURE__ */ s(
|
|
11155
|
+
({ children: c }) => /* @__PURE__ */ s(zn, { config: t, children: c }),
|
|
11152
11156
|
[t]
|
|
11153
11157
|
);
|
|
11154
11158
|
return /* @__PURE__ */ w(P, { children: [
|
|
@@ -11171,13 +11175,13 @@ const Qi = (e) => {
|
|
|
11171
11175
|
}
|
|
11172
11176
|
)
|
|
11173
11177
|
] });
|
|
11174
|
-
},
|
|
11178
|
+
}, gI = ({
|
|
11175
11179
|
children: e,
|
|
11176
11180
|
vaultChainId: t,
|
|
11177
11181
|
vaultAddress: n,
|
|
11178
11182
|
pricingAsset: r,
|
|
11179
11183
|
translation: o,
|
|
11180
|
-
minAmountInUsd: a =
|
|
11184
|
+
minAmountInUsd: a = zr,
|
|
11181
11185
|
actions: i,
|
|
11182
11186
|
themeConfig: l,
|
|
11183
11187
|
isModalOpen: c
|
|
@@ -11204,10 +11208,10 @@ const Qi = (e) => {
|
|
|
11204
11208
|
u
|
|
11205
11209
|
]
|
|
11206
11210
|
);
|
|
11207
|
-
return d ? /* @__PURE__ */ s($i, { config: o, children: /* @__PURE__ */ s(Ui, { initialState: m, actions: i, children: /* @__PURE__ */ s(
|
|
11208
|
-
},
|
|
11211
|
+
return d ? /* @__PURE__ */ s($i, { config: o, children: /* @__PURE__ */ s(Ui, { initialState: m, actions: i, children: /* @__PURE__ */ s(NE, { themeConfig: l, children: e }) }) }) : null;
|
|
11212
|
+
}, _E = ({ children: e, themeConfig: t, isOpen: n, onOpen: r, onClose: o }) => {
|
|
11209
11213
|
const a = Je(), i = f(
|
|
11210
|
-
({ children: l }) => /* @__PURE__ */ s(
|
|
11214
|
+
({ children: l }) => /* @__PURE__ */ s(zn, { config: t, children: l }),
|
|
11211
11215
|
[t]
|
|
11212
11216
|
);
|
|
11213
11217
|
return /* @__PURE__ */ w(P, { children: [
|
|
@@ -11230,7 +11234,7 @@ const Qi = (e) => {
|
|
|
11230
11234
|
}
|
|
11231
11235
|
)
|
|
11232
11236
|
] });
|
|
11233
|
-
},
|
|
11237
|
+
}, vI = ({
|
|
11234
11238
|
children: e,
|
|
11235
11239
|
vaultChainId: t,
|
|
11236
11240
|
vaultAddress: n,
|
|
@@ -11270,7 +11274,7 @@ const Qi = (e) => {
|
|
|
11270
11274
|
initialState: h,
|
|
11271
11275
|
actions: v,
|
|
11272
11276
|
children: /* @__PURE__ */ s(
|
|
11273
|
-
|
|
11277
|
+
_E,
|
|
11274
11278
|
{
|
|
11275
11279
|
isOpen: c,
|
|
11276
11280
|
onOpen: u,
|
|
@@ -11283,25 +11287,25 @@ const Qi = (e) => {
|
|
|
11283
11287
|
) });
|
|
11284
11288
|
};
|
|
11285
11289
|
export {
|
|
11286
|
-
|
|
11287
|
-
|
|
11288
|
-
|
|
11290
|
+
yI as ALCHEMY_RPC_URL_MAP,
|
|
11291
|
+
TI as AaveLendingPoolAbi,
|
|
11292
|
+
I as AddressZero,
|
|
11289
11293
|
fa as BRIDGED_TOKENS_SYMBOLS,
|
|
11290
|
-
|
|
11291
|
-
|
|
11292
|
-
|
|
11293
|
-
|
|
11294
|
-
|
|
11295
|
-
|
|
11294
|
+
AI as BRIDGED_USDC_ARBITRUM,
|
|
11295
|
+
SI as BRIDGED_USDC_OPTIMISM,
|
|
11296
|
+
xI as BRIDGED_USDC_POLYGON,
|
|
11297
|
+
CI as CBBTC_BASE,
|
|
11298
|
+
EI as CBETH_BASE,
|
|
11299
|
+
II as CHAIN_MAP,
|
|
11296
11300
|
tn as CHAIN_NATIVE_TOKENS,
|
|
11297
11301
|
Na as COMPLETE_WITHDRAW_ACTIONS,
|
|
11298
|
-
|
|
11302
|
+
NI as CURRENCY_SYMBOL_MAP,
|
|
11299
11303
|
eb as ConfigProvider,
|
|
11300
|
-
|
|
11301
|
-
|
|
11302
|
-
|
|
11304
|
+
_I as DAI_OPTIMISM,
|
|
11305
|
+
LI as DAI_POLYGON,
|
|
11306
|
+
PI as DEFAULT_DEPOSIT_METHOD,
|
|
11303
11307
|
ya as DEFAULT_DEPOSIT_SLIPPAGE,
|
|
11304
|
-
|
|
11308
|
+
OI as DEFAULT_DEPOSIT_SLIPPAGE_SCALE,
|
|
11305
11309
|
Rl as DEFAULT_ERROR_MESSAGE,
|
|
11306
11310
|
Ul as DEFAULT_LOCK_TIME,
|
|
11307
11311
|
Bl as DEFAULT_MAX_GAS_LIMIT,
|
|
@@ -11318,49 +11322,49 @@ export {
|
|
|
11318
11322
|
ao as GAS_ESTIMATION_ERROR,
|
|
11319
11323
|
$l as GAS_LIMIT_BUFFER_COEFF,
|
|
11320
11324
|
_s as GET_ALL_LIMIT_SELL_ORDER_IDS_FUNCTION_NAME,
|
|
11321
|
-
|
|
11322
|
-
|
|
11325
|
+
DI as GMX_MARKET_ASSETS,
|
|
11326
|
+
kI as GMX_MARKET_ASSETS_MAP,
|
|
11323
11327
|
Js as LIMIT_BUY_MANAGER_ADDRESS_MAP,
|
|
11324
11328
|
Zs as LIMIT_BUY_SLIPPAGE_PERCENT_DECIMALS,
|
|
11325
|
-
|
|
11326
|
-
|
|
11327
|
-
$
|
|
11328
|
-
|
|
11329
|
+
Wr as LIMIT_SELL_ORDER_READ_FUNCTION_NAME,
|
|
11330
|
+
RI as LINK_ARBITRUM,
|
|
11331
|
+
$I as LINK_OPTIMISM,
|
|
11332
|
+
vI as LimitBuyOrderModal,
|
|
11329
11333
|
fC as LimitBuyOverlay,
|
|
11330
11334
|
_a as LimitOrderAbi,
|
|
11331
|
-
|
|
11335
|
+
gI as LimitSellOrderModal,
|
|
11332
11336
|
ye as MANAGER_FEE_DENOMINATOR,
|
|
11333
11337
|
Kt as MAX_GAS_LIMIT_MAP,
|
|
11334
11338
|
Te as MULTI_ASSET_TOKEN,
|
|
11335
11339
|
Be as MaxUint256,
|
|
11336
|
-
|
|
11337
|
-
|
|
11338
|
-
|
|
11339
|
-
|
|
11340
|
+
BI as NATIVE_TOKEN_DEPOSIT_GAS_LIMIT,
|
|
11341
|
+
MI as PAXG_POLYGON,
|
|
11342
|
+
Yr as PERMIT2_ADDRESS,
|
|
11343
|
+
FI as PYTH_API_LINK,
|
|
11340
11344
|
kt as PoolFactoryAbi,
|
|
11341
11345
|
Re as PoolLogicAbi,
|
|
11342
11346
|
nt as PoolManagerLogicAbi,
|
|
11343
|
-
|
|
11344
|
-
|
|
11345
|
-
|
|
11347
|
+
WI as RETH_BASE,
|
|
11348
|
+
zI as RewardDistributionAbi,
|
|
11349
|
+
UI as SETH_OPTIMISM,
|
|
11346
11350
|
je as SHORTEN_POLLING_INTERVAL,
|
|
11347
11351
|
Fl as SIMULATION_TIMEOUT_ERROR,
|
|
11348
|
-
|
|
11349
|
-
|
|
11350
|
-
|
|
11351
|
-
|
|
11352
|
-
|
|
11352
|
+
GI as SUSD_OPTIMISM,
|
|
11353
|
+
HI as TBTC_ARBITRUM,
|
|
11354
|
+
VI as TBTC_BASE,
|
|
11355
|
+
jI as TBTC_OPTIMISM,
|
|
11356
|
+
qI as TBTC_POLYGON,
|
|
11353
11357
|
ot as TRADING_LOG_EVENT_PARAM,
|
|
11354
11358
|
qe as TRADING_PANEL_LOG_EVENT,
|
|
11355
|
-
|
|
11356
|
-
|
|
11357
|
-
|
|
11358
|
-
|
|
11359
|
-
|
|
11360
|
-
|
|
11361
|
-
|
|
11362
|
-
|
|
11363
|
-
|
|
11359
|
+
ZE as TradingPanelProvider,
|
|
11360
|
+
hI as TradingWidget,
|
|
11361
|
+
YI as USDCBC_BASE,
|
|
11362
|
+
KI as USDC_ARBITRUM,
|
|
11363
|
+
QI as USDC_BASE,
|
|
11364
|
+
XE as USDC_HYPEREVM,
|
|
11365
|
+
XI as USDC_MAINNET,
|
|
11366
|
+
ZI as USDC_OPTIMISM,
|
|
11367
|
+
JI as USDC_POLYGON,
|
|
11364
11368
|
eN as USDT_ARBITRUM,
|
|
11365
11369
|
Xl as USDT_MAINNET,
|
|
11366
11370
|
tN as USDT_OPTIMISM,
|
|
@@ -11385,25 +11389,25 @@ export {
|
|
|
11385
11389
|
fN as XAUT_MAINNET,
|
|
11386
11390
|
VN as arbitrum,
|
|
11387
11391
|
jN as base,
|
|
11388
|
-
|
|
11392
|
+
Ic as clientSide,
|
|
11389
11393
|
zN as commify,
|
|
11390
11394
|
bN as contractsAbisMap,
|
|
11391
11395
|
yN as contractsAddressesMap,
|
|
11392
11396
|
DN as decodeErrorResult,
|
|
11393
11397
|
kN as encodeFunctionData,
|
|
11394
11398
|
RN as erc20Abi,
|
|
11395
|
-
|
|
11399
|
+
Hn as formatByCurrency,
|
|
11396
11400
|
$N as formatEther,
|
|
11397
11401
|
$e as formatNumberToLimitedDecimals,
|
|
11398
11402
|
Qt as formatNumeratorToPercentage,
|
|
11399
|
-
|
|
11403
|
+
Sr as formatPercentage,
|
|
11400
11404
|
re as formatToUsd,
|
|
11401
11405
|
BN as formatUnits,
|
|
11402
11406
|
vc as getContractAbiById,
|
|
11403
11407
|
K as getContractAddressById,
|
|
11404
11408
|
rn as getConventionalTokenPriceDecimals,
|
|
11405
11409
|
Uf as getErrorMessage,
|
|
11406
|
-
|
|
11410
|
+
Ix as getLimitSellOrderId,
|
|
11407
11411
|
fc as getNativeTokenInvestableBalance,
|
|
11408
11412
|
rt as getPercent,
|
|
11409
11413
|
io as getPoolFraction,
|
|
@@ -11412,7 +11416,7 @@ export {
|
|
|
11412
11416
|
Z as isEqualAddress,
|
|
11413
11417
|
Wf as isErrorWithMessage,
|
|
11414
11418
|
Tc as isFmpAirdropVaultAddress,
|
|
11415
|
-
|
|
11419
|
+
yr as isNativeToken,
|
|
11416
11420
|
Y as isZeroAddress,
|
|
11417
11421
|
Nt as normalizeNumber,
|
|
11418
11422
|
qN as optimism,
|
|
@@ -11424,7 +11428,7 @@ export {
|
|
|
11424
11428
|
Nc as transformAddressForAnalytics,
|
|
11425
11429
|
FN as trim,
|
|
11426
11430
|
k as useAccount,
|
|
11427
|
-
|
|
11431
|
+
iI as useAddPoolConfig,
|
|
11428
11432
|
le as useAssetPrice,
|
|
11429
11433
|
Ay as useAvailableManagerFee,
|
|
11430
11434
|
ts as useBalance,
|
|
@@ -11434,10 +11438,10 @@ export {
|
|
|
11434
11438
|
Ze as useCompleteWithdrawSwapQuotes,
|
|
11435
11439
|
ie as useCompleteWithdrawTrackedAssets,
|
|
11436
11440
|
SN as useConnect,
|
|
11437
|
-
|
|
11441
|
+
Ee as useContractFunction,
|
|
11438
11442
|
iy as useContractPoolComposition,
|
|
11439
|
-
|
|
11440
|
-
|
|
11443
|
+
Is as useContractReadErrorLogging,
|
|
11444
|
+
Fr as useContractReadsErrorLogging,
|
|
11441
11445
|
od as useCustomDepositTokensPerChain,
|
|
11442
11446
|
oi as useDebounce,
|
|
11443
11447
|
DA as useDepositLockTime,
|
|
@@ -11446,23 +11450,23 @@ export {
|
|
|
11446
11450
|
CT as useEasySwapperTrackedAssets,
|
|
11447
11451
|
bn as useEffectiveAggregators,
|
|
11448
11452
|
nT as useExchangeRate,
|
|
11449
|
-
|
|
11453
|
+
mI as useFlatmoneyPointsUserBalances,
|
|
11450
11454
|
Hf as useGasPrice,
|
|
11451
11455
|
rd as useGetReferrerAddress,
|
|
11452
11456
|
Gs as useHasSingleAssetWithdrawBlockers,
|
|
11453
11457
|
qx as useInvalidateLimitSellOrderQuery,
|
|
11454
|
-
|
|
11458
|
+
mr as useInvalidateOnBlock,
|
|
11455
11459
|
py as useInvalidatePoolContractData,
|
|
11456
11460
|
Wt as useInvalidateTradingQueries,
|
|
11457
11461
|
bt as useIsCompleteWithdrawStep,
|
|
11458
|
-
|
|
11462
|
+
pI as useIsDepositBlocked,
|
|
11459
11463
|
Ye as useIsDepositTradingPanelType,
|
|
11460
11464
|
Pn as useIsDhedgeVaultConnected,
|
|
11461
11465
|
Ln as useIsInsufficientBalance,
|
|
11462
|
-
|
|
11466
|
+
JE as useIsPoolAddress,
|
|
11463
11467
|
eT as useIsTradingEnabled,
|
|
11464
|
-
|
|
11465
|
-
|
|
11468
|
+
cI as useIsWalletConnected,
|
|
11469
|
+
wI as useLegacyReferralProgram,
|
|
11466
11470
|
Fs as useManagerLogicAddress,
|
|
11467
11471
|
Ke as useNetwork,
|
|
11468
11472
|
nd as useOnSimulateTransaction,
|
|
@@ -11474,7 +11478,7 @@ export {
|
|
|
11474
11478
|
zt as usePoolComposition,
|
|
11475
11479
|
dy as usePoolCompositionWithFraction,
|
|
11476
11480
|
me as usePoolDynamic,
|
|
11477
|
-
|
|
11481
|
+
jr as usePoolFees,
|
|
11478
11482
|
kn as usePoolManagerDynamic,
|
|
11479
11483
|
Us as usePoolManagerLogicData,
|
|
11480
11484
|
Dn as usePoolManagerStatic,
|
|
@@ -11483,15 +11487,15 @@ export {
|
|
|
11483
11487
|
TT as useProjectedEarningsCore,
|
|
11484
11488
|
CN as usePublicClient,
|
|
11485
11489
|
ni as useRawAssetPrice,
|
|
11486
|
-
|
|
11487
|
-
|
|
11490
|
+
EN as useReadContract,
|
|
11491
|
+
IN as useReadContracts,
|
|
11488
11492
|
M as useReceiveTokenInput,
|
|
11489
11493
|
DT as useReferralAddress,
|
|
11490
11494
|
O as useSendTokenInput,
|
|
11491
11495
|
NN as useSendTransaction,
|
|
11492
|
-
|
|
11493
|
-
|
|
11494
|
-
|
|
11496
|
+
eI as useSetPoolAddress,
|
|
11497
|
+
oI as useSetTradingType,
|
|
11498
|
+
dI as useStaticCallQuery,
|
|
11495
11499
|
Bt as useTokenAllowance,
|
|
11496
11500
|
z as useTradingPanelActions,
|
|
11497
11501
|
it as useTradingPanelLogger,
|
|
@@ -11506,19 +11510,19 @@ export {
|
|
|
11506
11510
|
Ce as useTradingPanelType,
|
|
11507
11511
|
Jy as useTradingResultHandling,
|
|
11508
11512
|
gt as useTradingSettleHandler,
|
|
11509
|
-
|
|
11510
|
-
|
|
11513
|
+
lI as useUpdateCustomDepositTokensPerChain,
|
|
11514
|
+
sI as useUpdatePoolConfig,
|
|
11511
11515
|
Xc as useUpdatePoolFallbackData,
|
|
11512
|
-
|
|
11513
|
-
|
|
11514
|
-
|
|
11515
|
-
|
|
11516
|
+
nI as useUpdateReceiveTokenInput,
|
|
11517
|
+
tI as useUpdateSendTokenInput,
|
|
11518
|
+
aI as useUpdateTradingModal,
|
|
11519
|
+
rI as useUpdateTradingSettings,
|
|
11516
11520
|
ry as useUserBalancesDynamic,
|
|
11517
|
-
|
|
11521
|
+
Wn as useUserLimitSellOrder,
|
|
11518
11522
|
ge as useUserTokenBalance,
|
|
11519
11523
|
yy as useUserVaultBalance,
|
|
11520
11524
|
by as useUserVaultsBalances,
|
|
11521
|
-
|
|
11525
|
+
uI as useVaultContractData,
|
|
11522
11526
|
jt as useVaultDepositTokens,
|
|
11523
11527
|
Sy as useVaultSupplyCap,
|
|
11524
11528
|
my as useVaultVestedPoints,
|