@dhedge/trading-widget 6.0.1 → 6.0.3
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 +64 -63
- package/core-kit/const/trading.d.ts +1 -0
- package/{gmx-Cu3Ax-nZ.js → gmx-C9vHHvqC.js} +125 -124
- package/{gmx-DwT1ybQ5.cjs → gmx-DVJxXc_8.cjs} +1 -1
- package/index.cjs +1 -1
- package/index.js +255 -255
- package/ondo-BnkOJgHw.cjs +1 -0
- package/{ondo-v5VUY6Q9.js → ondo-Cl97ID2o.js} +193 -188
- package/package.json +1 -1
- package/utils.cjs +1 -1
- package/utils.js +1 -1
- package/ondo-RW9qMjVL.cjs +0 -1
package/index.js
CHANGED
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
var Ml = Object.defineProperty;
|
|
2
2
|
var Fl = (e, t, n) => t in e ? Ml(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
|
|
3
3
|
var Fe = (e, t, n) => Fl(e, typeof t != "symbol" ? t + "" : t, n);
|
|
4
|
-
import { jsxs as w, Fragment as
|
|
4
|
+
import { jsxs as w, Fragment as L, jsx as s } from "react/jsx-runtime";
|
|
5
5
|
import { Tab as Ta, Disclosure as Aa, DisclosureButton as Sa, Transition as xa, DisclosurePanel as Ca, TabPanel as Ea, Popover as Wl, PopoverButton as Ul, PopoverBackdrop as zl, PopoverPanel as Gl, Field as Ia, Label as Na, Switch as Hl, Checkbox as Vl, TabGroup as _a, TabList as Pa, TabPanels as Oa, Dialog as jl, DialogBackdrop as ql, DialogPanel as Kl } from "@headlessui/react";
|
|
6
|
-
import { QuestionMarkCircleIcon as br, ExclamationCircleIcon as Ut, CheckCircleIcon as
|
|
6
|
+
import { QuestionMarkCircleIcon as br, ExclamationCircleIcon as Ut, CheckCircleIcon as La, Cog6ToothIcon as Yl, LockClosedIcon as Ql, ArrowTopRightOnSquareIcon as ka } from "@heroicons/react/24/outline";
|
|
7
7
|
import C from "classnames";
|
|
8
8
|
import { usePopperTooltip as Xl } from "react-popper-tooltip";
|
|
9
9
|
import { createContext as ue, useMemo as P, useContext as me, useReducer as En, useCallback as f, useState as W, useEffect as N, forwardRef as Zl, useRef as de, Children as Jl, isValidElement as ec, Fragment as tc } from "react";
|
|
10
10
|
import { ChevronDownIcon as Da, ArrowDownIcon as nc, ArrowPathIcon as rc, CheckIcon as qt } from "@heroicons/react/24/solid";
|
|
11
11
|
import { XMarkIcon as Ra, ChevronLeftIcon as oc } from "@heroicons/react/16/solid";
|
|
12
|
-
import { g as In, M as ac, q as sc, r as X, Z as V, _ as $a, K as _r, z as ic, $ as Q, S as lc, R as Qe, B as To, a0 as ne, s as pt, A as ct, n as ln, a1 as cc, a2 as zt, H as dc, C as Pr, d as pc, a3 as uc, i as mc, p as Or, E as wc, h as er, X as hc, k as gc, W as vc, j as fc, P as Ba, m as tr, f as Ao, N as bc, U as yc, a4 as Ma, T as Fa, G as Wa, u as Ua, v as Tc, o as za, L as Ga, e as Ac, a5 as Ge, a6 as Sc, D as Ha, Q as Va, a7 as
|
|
13
|
-
import { a9 as EN, aa as IN, Y as NN } from "./ondo-
|
|
12
|
+
import { g as In, M as ac, q as sc, r as X, Z as V, _ as $a, K as _r, z as ic, $ as Q, S as lc, R as Qe, B as To, a0 as ne, s as pt, A as ct, n as ln, a1 as cc, a2 as zt, H as dc, C as Pr, d as pc, a3 as uc, i as mc, p as Or, E as wc, h as er, X as hc, k as gc, W as vc, j as fc, P as Ba, m as tr, f as Ao, N as bc, U as yc, a4 as Ma, T as Fa, G as Wa, u as Ua, v as Tc, o as za, L as Ga, e as Ac, a5 as Ge, a6 as Sc, D as Ha, Q as Va, a7 as Lr, a8 as xc, F as So, x as Cc, w as Ec, I as Ic, y as Nc, J as _c, l as Pc } from "./ondo-Cl97ID2o.js";
|
|
13
|
+
import { a9 as EN, aa as IN, Y as NN } from "./ondo-Cl97ID2o.js";
|
|
14
14
|
import { CustomError as ja } from "ts-custom-error";
|
|
15
|
-
import { i as Oc, a as I,
|
|
16
|
-
import { A as PN,
|
|
15
|
+
import { i as Oc, a as I, q as F, H as Lc, p as Nn, S as xo, T as kc, a0 as cn, t as Co, k as Dc, r as Rc, a7 as $c, a6 as De, m as Bc, u as qa, n as Mc, j as Fc, x as Ka, ad as Je, ay as Xe, az as He, aA as Ze, aB as dt, v as Wc, B as Ya, $ as Ee, aC as nr, O as Qa, J as Uc, ap as gn, g as Xa, ac as ut, a1 as Ae, aD as zc, K as Gt, ag as kr, aE as Za, F as Ja, I as es, l as Gc, G as Hc, ai as Vc, ah as jc, D as qc, aF as Kc, a2 as _e, b as wn, z as We, L as Yc, ab as Dr, s as ts, a8 as Qc, y as ns, at as Dt, as as Rt, w as rs, E as Xc, aj as os, c as as, aa as Zc, Y as Jc, aG as ss, a4 as ed, aH as td } from "./gmx-C9vHHvqC.js";
|
|
16
|
+
import { A as PN, aI as ON, aJ as LN, aK as kN, aL as DN, aM as RN, aN as $N, C as BN, e as MN, aO as FN, aP as WN, f as UN, h as zN, U as GN, V as HN, aQ as VN, aR as jN, a3 as qN, aS as KN, a5 as YN, aT as QN, aU as XN, aV as ZN, aW as JN, aX as e_, aY as t_, aZ as n_, a_ as r_, a$ as o_, ax as a_, aw as s_, av as i_, au as l_, b0 as c_, b1 as d_, b2 as p_, b3 as u_, b4 as m_, b5 as w_, b6 as h_, b7 as g_, b8 as v_, b9 as f_, ba as b_, bb as y_, bc as T_, bd as A_, be as S_, bf as x_, bg as C_, bh as E_, bi as I_, ak as N_, al as __ } from "./gmx-C9vHHvqC.js";
|
|
17
17
|
import { injected as nd } from "wagmi/connectors";
|
|
18
18
|
import { useAccount as is, useConfig as rd, useSwitchChain as od, useReadContract as Pe, useBalance as ad, useWalletClient as Rr, usePublicClient as Kt, useWriteContract as sd, useEstimateFeesPerGas as id, useBlockNumber as ld, useConnect as ls, useReadContracts as le, useWaitForTransactionReceipt as mt, useSimulateContract as cd } from "wagmi";
|
|
19
|
-
import { useBlockNumber as O_, useConnect as
|
|
19
|
+
import { useBlockNumber as O_, useConnect as L_, useDisconnect as k_, usePublicClient as D_, useReadContract as R_, useReadContracts as $_, useSendTransaction as B_, useWaitForTransactionReceipt as M_, useWalletClient as F_, useWriteContract as W_ } from "wagmi";
|
|
20
20
|
import { erc20Abi as Ie, encodeFunctionData as dd, formatUnits as he, formatEther as pd, isAddress as ud, encodeAbiParameters as md, encodePacked as wd, keccak256 as hd } from "viem";
|
|
21
21
|
import { decodeErrorResult as z_, encodeFunctionData as G_, erc20Abi as H_, formatEther as V_, formatUnits as j_, hexToString as q_, trim as K_ } from "viem";
|
|
22
22
|
import _, { BigNumber as ze } from "bignumber.js";
|
|
@@ -41,7 +41,7 @@ const Sd = ({
|
|
|
41
41
|
placement: n,
|
|
42
42
|
trigger: r
|
|
43
43
|
});
|
|
44
|
-
return /* @__PURE__ */ w(
|
|
44
|
+
return /* @__PURE__ */ w(L, { children: [
|
|
45
45
|
/* @__PURE__ */ s("span", { ref: c, children: t }),
|
|
46
46
|
d && /* @__PURE__ */ s(
|
|
47
47
|
"span",
|
|
@@ -245,7 +245,7 @@ const Sd = ({
|
|
|
245
245
|
"!dtw-text-[color:var(--panel-tab-content-color,var(--panel-neutral-content-color))] hover:dtw-text-[color:var(--panel-tab-hover-content-color,var(--panel-content-hover-color))]": !r
|
|
246
246
|
}
|
|
247
247
|
),
|
|
248
|
-
children: ({ selected: r }) => /* @__PURE__ */ w(
|
|
248
|
+
children: ({ selected: r }) => /* @__PURE__ */ w(L, { children: [
|
|
249
249
|
/* @__PURE__ */ s("span", { children: n }),
|
|
250
250
|
r ? /* @__PURE__ */ s("div", { className: "dtw-flex dtw-items-center dtw-justify-center dtw-absolute dtw-bottom-0 dtw-left-0 dtw-right-0 dtw-h-full dtw-rounded-[var(--panel-radius-secondary)] dtw-bg-[var(--panel-tab-bg,var(--panel-neutral-color))] dtw-shadow-md dtw-pointer-events-none", children: /* @__PURE__ */ s("span", { children: n }) }) : null
|
|
251
251
|
] })
|
|
@@ -272,7 +272,7 @@ const Sd = ({
|
|
|
272
272
|
}, Id = {
|
|
273
273
|
[H.DEFAULT]: br,
|
|
274
274
|
[H.ERROR]: Ut,
|
|
275
|
-
[H.SUCCESS]:
|
|
275
|
+
[H.SUCCESS]: La,
|
|
276
276
|
[H.WARNING]: Ut,
|
|
277
277
|
[H.CUSTOM]: br
|
|
278
278
|
}, or = ({
|
|
@@ -342,7 +342,7 @@ const Sd = ({
|
|
|
342
342
|
buttonItemChildren: o
|
|
343
343
|
}) => {
|
|
344
344
|
const a = S();
|
|
345
|
-
return /* @__PURE__ */ s("div", { className: "dtw-w-full dtw-flex dtw-flex-col dtw-gap-1", children: /* @__PURE__ */ s(Aa, { children: ({ open: i }) => /* @__PURE__ */ w(
|
|
345
|
+
return /* @__PURE__ */ s("div", { className: "dtw-w-full dtw-flex dtw-flex-col dtw-gap-1", children: /* @__PURE__ */ s(Aa, { children: ({ open: i }) => /* @__PURE__ */ w(L, { children: [
|
|
346
346
|
t?.map((l) => /* @__PURE__ */ s(or, { ...l }, l.label)),
|
|
347
347
|
/* @__PURE__ */ s(Sa, { 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(
|
|
348
348
|
or,
|
|
@@ -416,15 +416,15 @@ const Sd = ({
|
|
|
416
416
|
}
|
|
417
417
|
)
|
|
418
418
|
}
|
|
419
|
-
), Eo = "ondo", Pd = "https://content-firebaseappcheck.googleapis.com/v1", Od = 6e4,
|
|
419
|
+
), Eo = "ondo", Pd = "https://content-firebaseappcheck.googleapis.com/v1", Od = 6e4, Ld = 5e3;
|
|
420
420
|
let ge, Io, it, $t, Bt;
|
|
421
|
-
const
|
|
421
|
+
const kd = (e) => {
|
|
422
422
|
const t = e ? JSON.stringify(e) : void 0;
|
|
423
423
|
t !== Io && (Io = t, ge = e, it = void 0, $t = void 0, Bt = void 0);
|
|
424
424
|
}, Dd = () => ge, vs = (e, t) => Promise.race([
|
|
425
425
|
e,
|
|
426
426
|
new Promise(
|
|
427
|
-
(n, r) => setTimeout(() => r(new Error(t)),
|
|
427
|
+
(n, r) => setTimeout(() => r(new Error(t)), Ld)
|
|
428
428
|
)
|
|
429
429
|
]), fs = async () => {
|
|
430
430
|
if (it) return it;
|
|
@@ -921,12 +921,12 @@ const No = {
|
|
|
921
921
|
E({ type: "SET_TRADING_TYPE", payload: B }), i?.(B);
|
|
922
922
|
},
|
|
923
923
|
[i]
|
|
924
|
-
),
|
|
924
|
+
), xe = f(
|
|
925
925
|
(B) => {
|
|
926
926
|
E({ type: "UPDATE_TRADING_MODAL", payload: B }), l?.(B);
|
|
927
927
|
},
|
|
928
928
|
[l]
|
|
929
|
-
),
|
|
929
|
+
), Le = f(
|
|
930
930
|
(B) => {
|
|
931
931
|
E({ type: "UPDATE_WITHDRAW_ACTION", payload: B });
|
|
932
932
|
},
|
|
@@ -962,8 +962,8 @@ const No = {
|
|
|
962
962
|
updateTradingSettings: re,
|
|
963
963
|
updateSendTokenInput: O,
|
|
964
964
|
updateReceiveTokenInput: K,
|
|
965
|
-
updateTradingModal:
|
|
966
|
-
updateWithdrawAction:
|
|
965
|
+
updateTradingModal: xe,
|
|
966
|
+
updateWithdrawAction: Le,
|
|
967
967
|
updateTransactions: Te,
|
|
968
968
|
updatePoolFallbackData: qe,
|
|
969
969
|
updateCustomDepositTokensPerChain: oe,
|
|
@@ -986,8 +986,8 @@ const No = {
|
|
|
986
986
|
re,
|
|
987
987
|
O,
|
|
988
988
|
K,
|
|
989
|
-
|
|
990
|
-
|
|
989
|
+
xe,
|
|
990
|
+
Le,
|
|
991
991
|
Te,
|
|
992
992
|
qe,
|
|
993
993
|
oe,
|
|
@@ -1011,7 +1011,7 @@ const No = {
|
|
|
1011
1011
|
z().setPoolAddress
|
|
1012
1012
|
], y = () => {
|
|
1013
1013
|
const { poolAddress: e, poolConfigMap: t } = ae();
|
|
1014
|
-
return t[e] ??
|
|
1014
|
+
return t[e] ?? Lc;
|
|
1015
1015
|
}, Yt = () => {
|
|
1016
1016
|
const { poolConfigMap: e } = ae();
|
|
1017
1017
|
return P(() => Object.values(e), [e]);
|
|
@@ -1027,7 +1027,7 @@ const No = {
|
|
|
1027
1027
|
e.address === t ? e : { address: t },
|
|
1028
1028
|
n
|
|
1029
1029
|
];
|
|
1030
|
-
},
|
|
1030
|
+
}, Ln = () => {
|
|
1031
1031
|
const {
|
|
1032
1032
|
settings: {
|
|
1033
1033
|
availableAggregators: e,
|
|
@@ -1055,7 +1055,7 @@ const No = {
|
|
|
1055
1055
|
n
|
|
1056
1056
|
]);
|
|
1057
1057
|
}, sN = () => z().setPoolAddress, iN = () => z().updateSendTokenInput, lN = () => z().updateReceiveTokenInput, cN = () => z().updateTradingSettings, dN = () => z().setTradingType, pN = () => z().updateTradingModal, Hd = () => z().updatePoolFallbackData, Vd = () => z().onTransactionError, jd = () => z().onTradingSettleError, qd = () => z().onTransactionSuccess, Ur = () => z().onTransactionEstimationError, Kd = () => z().onTokenSelector, vt = () => z().onLog, Yd = () => z().onSimulateTransaction, zr = () => {
|
|
1058
|
-
const e = z().getSwapQuotes, { effectiveSelectedAggregators: t } =
|
|
1058
|
+
const e = z().getSwapQuotes, { effectiveSelectedAggregators: t } = Ln();
|
|
1059
1059
|
return f(
|
|
1060
1060
|
({
|
|
1061
1061
|
signal: n,
|
|
@@ -1071,7 +1071,7 @@ const No = {
|
|
|
1071
1071
|
}),
|
|
1072
1072
|
[e, t]
|
|
1073
1073
|
);
|
|
1074
|
-
}, uN = () => z().updatePoolConfig, mN = () => z().addPoolConfig, wN = () => z().updateCustomDepositTokensPerChain, Gr = () => z().setSwapQuoteRefreshTriggered, Qd = () => z().getReferrerAddress, Es = () => ae().input,
|
|
1074
|
+
}, uN = () => z().updatePoolConfig, mN = () => z().addPoolConfig, wN = () => z().updateCustomDepositTokensPerChain, Gr = () => z().setSwapQuoteRefreshTriggered, Qd = () => z().getReferrerAddress, Es = () => ae().input, k = () => [
|
|
1075
1075
|
Es().sendToken,
|
|
1076
1076
|
z().updateSendTokenInput
|
|
1077
1077
|
], M = () => [
|
|
@@ -1083,7 +1083,7 @@ const No = {
|
|
|
1083
1083
|
], Xd = () => [
|
|
1084
1084
|
ae().customDepositTokensPerChain,
|
|
1085
1085
|
z().updateCustomDepositTokensPerChain
|
|
1086
|
-
], Z = () => [ae().modal, z().updateTradingModal],
|
|
1086
|
+
], Z = () => [ae().modal, z().updateTradingModal], kn = () => [
|
|
1087
1087
|
ae().withdrawAction,
|
|
1088
1088
|
z().updateWithdrawAction
|
|
1089
1089
|
], Oe = () => [ae().type, z().setTradingType], et = () => ae().type === "deposit", se = () => [
|
|
@@ -1195,16 +1195,16 @@ var _p = Np;
|
|
|
1195
1195
|
function Pp(e) {
|
|
1196
1196
|
return this.__data__.has(e);
|
|
1197
1197
|
}
|
|
1198
|
-
var Op = Pp,
|
|
1198
|
+
var Op = Pp, Lp = typeof dn == "object" && dn && dn.Object === Object && dn, Ns = Lp, kp = Ns, Dp = typeof self == "object" && self && self.Object === Object && self, Rp = kp || Dp || Function("return this")(), $e = Rp, $p = $e, Bp = $p.Symbol, Bn = Bp, _o = Bn, _s = Object.prototype, Mp = _s.hasOwnProperty, Fp = _s.toString, Lt = _o ? _o.toStringTag : void 0;
|
|
1199
1199
|
function Wp(e) {
|
|
1200
|
-
var t = Mp.call(e,
|
|
1200
|
+
var t = Mp.call(e, Lt), n = e[Lt];
|
|
1201
1201
|
try {
|
|
1202
|
-
e[
|
|
1202
|
+
e[Lt] = void 0;
|
|
1203
1203
|
var r = !0;
|
|
1204
1204
|
} catch {
|
|
1205
1205
|
}
|
|
1206
1206
|
var o = Fp.call(e);
|
|
1207
|
-
return r && (t ? e[
|
|
1207
|
+
return r && (t ? e[Lt] = n : delete e[Lt]), o;
|
|
1208
1208
|
}
|
|
1209
1209
|
var Up = Wp, zp = Object.prototype, Gp = zp.toString;
|
|
1210
1210
|
function Hp(e) {
|
|
@@ -1226,12 +1226,12 @@ function ou(e) {
|
|
|
1226
1226
|
var t = Zp(e);
|
|
1227
1227
|
return t == tu || t == nu || t == eu || t == ru;
|
|
1228
1228
|
}
|
|
1229
|
-
var Ps = ou, au = $e, su = au["__core-js_shared__"], iu = su, sr = iu,
|
|
1229
|
+
var Ps = ou, au = $e, su = au["__core-js_shared__"], iu = su, sr = iu, Lo = function() {
|
|
1230
1230
|
var e = /[^.]+$/.exec(sr && sr.keys && sr.keys.IE_PROTO || "");
|
|
1231
1231
|
return e ? "Symbol(src)_1." + e : "";
|
|
1232
1232
|
}();
|
|
1233
1233
|
function lu(e) {
|
|
1234
|
-
return !!
|
|
1234
|
+
return !!Lo && Lo in e;
|
|
1235
1235
|
}
|
|
1236
1236
|
var cu = lu, du = Function.prototype, pu = du.toString;
|
|
1237
1237
|
function uu(e) {
|
|
@@ -1265,9 +1265,9 @@ function Pu(e, t) {
|
|
|
1265
1265
|
var n = _u(e, t);
|
|
1266
1266
|
return Nu(n) ? n : void 0;
|
|
1267
1267
|
}
|
|
1268
|
-
var yt = Pu, Ou = yt,
|
|
1268
|
+
var yt = Pu, Ou = yt, Lu = $e, ku = Ou(Lu, "Map"), Vr = ku, Du = yt, Ru = Du(Object, "create"), Mn = Ru, ko = Mn;
|
|
1269
1269
|
function $u() {
|
|
1270
|
-
this.__data__ =
|
|
1270
|
+
this.__data__ = ko ? ko(null) : {}, this.size = 0;
|
|
1271
1271
|
}
|
|
1272
1272
|
var Bu = $u;
|
|
1273
1273
|
function Mu(e) {
|
|
@@ -1355,12 +1355,12 @@ At.prototype.delete = Nm;
|
|
|
1355
1355
|
At.prototype.get = _m;
|
|
1356
1356
|
At.prototype.has = Pm;
|
|
1357
1357
|
At.prototype.set = Om;
|
|
1358
|
-
var jr = At,
|
|
1358
|
+
var jr = At, Lm = $n, km = Vr, Dm = jr, Rm = 200;
|
|
1359
1359
|
function $m(e, t) {
|
|
1360
1360
|
var n = this.__data__;
|
|
1361
|
-
if (n instanceof
|
|
1361
|
+
if (n instanceof Lm) {
|
|
1362
1362
|
var r = n.__data__;
|
|
1363
|
-
if (!
|
|
1363
|
+
if (!km || r.length < Rm - 1)
|
|
1364
1364
|
return r.push([e, t]), this.size = ++n.size, this;
|
|
1365
1365
|
n = this.__data__ = new Dm(r);
|
|
1366
1366
|
}
|
|
@@ -1376,7 +1376,7 @@ St.prototype.delete = Wm;
|
|
|
1376
1376
|
St.prototype.get = Um;
|
|
1377
1377
|
St.prototype.has = zm;
|
|
1378
1378
|
St.prototype.set = Gm;
|
|
1379
|
-
var
|
|
1379
|
+
var Ls = St, Hm = "__lodash_hash_undefined__";
|
|
1380
1380
|
function Vm(e) {
|
|
1381
1381
|
return this.__data__.set(e, Hm), this;
|
|
1382
1382
|
}
|
|
@@ -1392,7 +1392,7 @@ function bn(e) {
|
|
|
1392
1392
|
}
|
|
1393
1393
|
bn.prototype.add = bn.prototype.push = Qm;
|
|
1394
1394
|
bn.prototype.has = Xm;
|
|
1395
|
-
var
|
|
1395
|
+
var ks = bn;
|
|
1396
1396
|
function Zm(e, t) {
|
|
1397
1397
|
for (var n = -1, r = e == null ? 0 : e.length; ++n < r; )
|
|
1398
1398
|
if (t(e[n], n, e))
|
|
@@ -1403,7 +1403,7 @@ var Jm = Zm;
|
|
|
1403
1403
|
function ew(e, t) {
|
|
1404
1404
|
return e.has(t);
|
|
1405
1405
|
}
|
|
1406
|
-
var Ds = ew, tw =
|
|
1406
|
+
var Ds = ew, tw = ks, nw = Jm, rw = Ds, ow = 1, aw = 2;
|
|
1407
1407
|
function sw(e, t, n, r, o, a) {
|
|
1408
1408
|
var i = n & ow, l = e.length, c = t.length;
|
|
1409
1409
|
if (l != c && !(i && c > l))
|
|
@@ -1488,12 +1488,12 @@ function Pw(e, t, n, r, o, a, i) {
|
|
|
1488
1488
|
return !1;
|
|
1489
1489
|
}
|
|
1490
1490
|
var Ow = Pw;
|
|
1491
|
-
function
|
|
1491
|
+
function Lw(e, t) {
|
|
1492
1492
|
for (var n = -1, r = t.length, o = e.length; ++n < r; )
|
|
1493
1493
|
e[o + n] = t[n];
|
|
1494
1494
|
return e;
|
|
1495
1495
|
}
|
|
1496
|
-
var
|
|
1496
|
+
var kw = Lw, Dw = Array.isArray, Ve = Dw, Rw = kw, $w = Ve;
|
|
1497
1497
|
function Bw(e, t, n) {
|
|
1498
1498
|
var r = t(e);
|
|
1499
1499
|
return $w(e) ? r : Rw(r, n(e));
|
|
@@ -1551,8 +1551,8 @@ var Kr = ph, uh = 9007199254740991;
|
|
|
1551
1551
|
function mh(e) {
|
|
1552
1552
|
return typeof e == "number" && e > -1 && e % 1 == 0 && e <= uh;
|
|
1553
1553
|
}
|
|
1554
|
-
var Yr = mh, wh = bt, hh = Yr, gh = xt, vh = "[object Arguments]", fh = "[object Array]", bh = "[object Boolean]", yh = "[object Date]", Th = "[object Error]", Ah = "[object Function]", Sh = "[object Map]", xh = "[object Number]", Ch = "[object Object]", Eh = "[object RegExp]", Ih = "[object Set]", Nh = "[object String]", _h = "[object WeakMap]", Ph = "[object ArrayBuffer]", Oh = "[object DataView]",
|
|
1555
|
-
Y[
|
|
1554
|
+
var Yr = mh, wh = bt, hh = Yr, gh = xt, vh = "[object Arguments]", fh = "[object Array]", bh = "[object Boolean]", yh = "[object Date]", Th = "[object Error]", Ah = "[object Function]", Sh = "[object Map]", xh = "[object Number]", Ch = "[object Object]", Eh = "[object RegExp]", Ih = "[object Set]", Nh = "[object String]", _h = "[object WeakMap]", Ph = "[object ArrayBuffer]", Oh = "[object DataView]", Lh = "[object Float32Array]", kh = "[object Float64Array]", Dh = "[object Int8Array]", Rh = "[object Int16Array]", $h = "[object Int32Array]", Bh = "[object Uint8Array]", Mh = "[object Uint8ClampedArray]", Fh = "[object Uint16Array]", Wh = "[object Uint32Array]", Y = {};
|
|
1555
|
+
Y[Lh] = Y[kh] = Y[Dh] = Y[Rh] = Y[$h] = Y[Bh] = Y[Mh] = Y[Fh] = Y[Wh] = !0;
|
|
1556
1556
|
Y[vh] = Y[fh] = Y[Ph] = Y[bh] = Y[Oh] = Y[yh] = Y[Th] = Y[Ah] = Y[Sh] = Y[xh] = Y[Ch] = Y[Eh] = Y[Ih] = Y[Nh] = Y[_h] = !1;
|
|
1557
1557
|
function Uh(e) {
|
|
1558
1558
|
return gh(e) && hh(e.length) && !!Y[wh(e)];
|
|
@@ -1618,14 +1618,14 @@ var Qr = Cg, Eg = Mw, Ig = Kw, Ng = Qr;
|
|
|
1618
1618
|
function _g(e) {
|
|
1619
1619
|
return Eg(e, Ng, Ig);
|
|
1620
1620
|
}
|
|
1621
|
-
var Pg = _g, zo = Pg, Og = 1,
|
|
1621
|
+
var Pg = _g, zo = Pg, Og = 1, Lg = Object.prototype, kg = Lg.hasOwnProperty;
|
|
1622
1622
|
function Dg(e, t, n, r, o, a) {
|
|
1623
1623
|
var i = n & Og, l = zo(e), c = l.length, d = zo(t), p = d.length;
|
|
1624
1624
|
if (c != p && !i)
|
|
1625
1625
|
return !1;
|
|
1626
1626
|
for (var u = c; u--; ) {
|
|
1627
1627
|
var m = l[u];
|
|
1628
|
-
if (!(i ? m in t :
|
|
1628
|
+
if (!(i ? m in t : kg.call(t, m)))
|
|
1629
1629
|
return !1;
|
|
1630
1630
|
}
|
|
1631
1631
|
var h = a.get(e), v = a.get(t);
|
|
@@ -1668,7 +1668,7 @@ var Rg = Dg, $g = yt, Bg = $e, Mg = $g(Bg, "DataView"), Fg = Mg, Wg = yt, Ug = $
|
|
|
1668
1668
|
}
|
|
1669
1669
|
return t;
|
|
1670
1670
|
});
|
|
1671
|
-
var rv = Ke, lr =
|
|
1671
|
+
var rv = Ke, lr = Ls, ov = Rs, av = Ow, sv = Rg, Ko = rv, Yo = Ve, Qo = Ms, iv = Fs, lv = 1, Xo = "[object Arguments]", Zo = "[object Array]", pn = "[object Object]", cv = Object.prototype, Jo = cv.hasOwnProperty;
|
|
1672
1672
|
function dv(e, t, n, r, o, a) {
|
|
1673
1673
|
var i = Yo(e), l = Yo(t), c = i ? Zo : Ko(e), d = l ? Zo : Ko(t);
|
|
1674
1674
|
c = c == Xo ? pn : c, d = d == Xo ? pn : d;
|
|
@@ -1693,7 +1693,7 @@ var pv = dv, uv = pv, ea = xt;
|
|
|
1693
1693
|
function Gs(e, t, n, r, o) {
|
|
1694
1694
|
return e === t ? !0 : e == null || t == null || !ea(e) && !ea(t) ? e !== e && t !== t : uv(e, t, n, r, Gs, o);
|
|
1695
1695
|
}
|
|
1696
|
-
var Hs = Gs, mv =
|
|
1696
|
+
var Hs = Gs, mv = Ls, wv = Hs, hv = 1, gv = 2;
|
|
1697
1697
|
function vv(e, t, n, r) {
|
|
1698
1698
|
var o = n.length, a = o, i = !r;
|
|
1699
1699
|
if (e == null)
|
|
@@ -1744,9 +1744,9 @@ function _v(e) {
|
|
|
1744
1744
|
return n === e || Ev(n, e, t);
|
|
1745
1745
|
};
|
|
1746
1746
|
}
|
|
1747
|
-
var Pv = _v, Ov = bt,
|
|
1747
|
+
var Pv = _v, Ov = bt, Lv = xt, kv = "[object Symbol]";
|
|
1748
1748
|
function Dv(e) {
|
|
1749
|
-
return typeof e == "symbol" ||
|
|
1749
|
+
return typeof e == "symbol" || Lv(e) && Ov(e) == kv;
|
|
1750
1750
|
}
|
|
1751
1751
|
var Wn = Dv, Rv = Ve, $v = Wn, Bv = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, Mv = /^\w*$/;
|
|
1752
1752
|
function Fv(e, t) {
|
|
@@ -1841,10 +1841,10 @@ function Nf(e, t, n) {
|
|
|
1841
1841
|
return a || ++r != o ? a : (o = e == null ? 0 : e.length, !!o && Ef(o) && Cf(i, o) && (xf(e) || Sf(e)));
|
|
1842
1842
|
}
|
|
1843
1843
|
var _f = Nf, Pf = Tf, Of = _f;
|
|
1844
|
-
function
|
|
1844
|
+
function Lf(e, t) {
|
|
1845
1845
|
return e != null && Of(e, t, Pf);
|
|
1846
1846
|
}
|
|
1847
|
-
var
|
|
1847
|
+
var kf = Lf, Df = Hs, Rf = bf, $f = kf, Bf = Xr, Mf = Vs, Ff = js, Wf = Un, Uf = 1, zf = 2;
|
|
1848
1848
|
function Gf(e, t) {
|
|
1849
1849
|
return Bf(e) && Mf(t) ? Ff(Wf(e), t) : function(n) {
|
|
1850
1850
|
var r = Rf(n, e);
|
|
@@ -1905,18 +1905,18 @@ function Sb(e, t) {
|
|
|
1905
1905
|
var xb = Sb, Cb = Xs, Eb = xb, Zs = Object.prototype, Ib = Zs.hasOwnProperty, Nb = Zs.toString, _b = Eb(function(e, t, n) {
|
|
1906
1906
|
t != null && typeof t.toString != "function" && (t = Nb.call(t)), Ib.call(e, t) ? e[t].push(n) : e[t] = [n];
|
|
1907
1907
|
}, Cb), Pb = _b;
|
|
1908
|
-
const Ob = /* @__PURE__ */ Dn(Pb),
|
|
1908
|
+
const Ob = /* @__PURE__ */ Dn(Pb), kt = "Canceled by user", Lb = {
|
|
1909
1909
|
"exceeds the configured cap": "Please try using a different RPC for your wallet.",
|
|
1910
|
-
"denied transaction":
|
|
1911
|
-
"user rejected the transaction":
|
|
1912
|
-
"user rejected transaction":
|
|
1913
|
-
"user rejected the request":
|
|
1914
|
-
"user canceled":
|
|
1910
|
+
"denied transaction": kt,
|
|
1911
|
+
"user rejected the transaction": kt,
|
|
1912
|
+
"user rejected transaction": kt,
|
|
1913
|
+
"user rejected the request": kt,
|
|
1914
|
+
"user canceled": kt,
|
|
1915
1915
|
"not enough available balance": "Attempting to withdraw a balance that exceeds the liquidity currently accessible."
|
|
1916
1916
|
};
|
|
1917
|
-
Ob(
|
|
1918
|
-
const
|
|
1919
|
-
if (
|
|
1917
|
+
Ob(Lb);
|
|
1918
|
+
const kb = (e) => typeof e == "object" && e !== null && "message" in e && typeof e.message == "string", Db = (e) => {
|
|
1919
|
+
if (kb(e))
|
|
1920
1920
|
return e;
|
|
1921
1921
|
try {
|
|
1922
1922
|
return new Error(JSON.stringify(e));
|
|
@@ -1952,7 +1952,7 @@ const Lb = (e) => typeof e == "object" && e !== null && "message" in e && typeof
|
|
|
1952
1952
|
if (!O || !a || O === BigInt(0))
|
|
1953
1953
|
return { error: xo, value: BigInt(0) };
|
|
1954
1954
|
const K = Math.round(
|
|
1955
|
-
Number(O) *
|
|
1955
|
+
Number(O) * kc
|
|
1956
1956
|
), re = cn[a] ?? K, J = BigInt(Math.min(re, K));
|
|
1957
1957
|
return console.debug(
|
|
1958
1958
|
`[core-ui-kit]: estimated gas limit: ${Number(O)}`
|
|
@@ -2291,7 +2291,7 @@ const ro = (e) => e ? `https://raw.githubusercontent.com/dhedge/crypto-icons/mai
|
|
|
2291
2291
|
[t, n]
|
|
2292
2292
|
);
|
|
2293
2293
|
return N(() => {
|
|
2294
|
-
|
|
2294
|
+
kd(r.ondo), r.ondo && $d();
|
|
2295
2295
|
}, [r.ondo]), /* @__PURE__ */ s(ri.Provider, { value: r, children: e });
|
|
2296
2296
|
}, oo = () => {
|
|
2297
2297
|
const e = me(ri);
|
|
@@ -2538,7 +2538,7 @@ const ro = (e) => e ? `https://raw.githubusercontent.com/dhedge/crypto-icons/mai
|
|
|
2538
2538
|
rel: "noreferrer",
|
|
2539
2539
|
children: [
|
|
2540
2540
|
n,
|
|
2541
|
-
o && /* @__PURE__ */ s(
|
|
2541
|
+
o && /* @__PURE__ */ s(ka, { className: r })
|
|
2542
2542
|
]
|
|
2543
2543
|
}
|
|
2544
2544
|
), zn = ({
|
|
@@ -2631,7 +2631,7 @@ const ro = (e) => e ? `https://raw.githubusercontent.com/dhedge/crypto-icons/mai
|
|
|
2631
2631
|
),
|
|
2632
2632
|
style: e
|
|
2633
2633
|
}
|
|
2634
|
-
), ci = (e) => /* @__PURE__ */ s("img", { ...e }),
|
|
2634
|
+
), ci = (e) => /* @__PURE__ */ s("img", { ...e }), Se = ({
|
|
2635
2635
|
symbol: e,
|
|
2636
2636
|
address: t,
|
|
2637
2637
|
watch: n = !1
|
|
@@ -2685,7 +2685,7 @@ const ro = (e) => e ? `https://raw.githubusercontent.com/dhedge/crypto-icons/mai
|
|
|
2685
2685
|
d?.[1]?.result ?? F
|
|
2686
2686
|
);
|
|
2687
2687
|
}, Gn = () => {
|
|
2688
|
-
const [{ value: e, symbol: t, address: n }] =
|
|
2688
|
+
const [{ value: e, symbol: t, address: n }] = k(), r = Se({ symbol: t, address: n });
|
|
2689
2689
|
return new _(e || 0).gt(r ?? 0);
|
|
2690
2690
|
}, ry = ({ address: e, chainId: t }) => [
|
|
2691
2691
|
{
|
|
@@ -2869,7 +2869,7 @@ function xy(e) {
|
|
|
2869
2869
|
return e && e.slice(0, Ay(e) + 1).replace(Sy, "");
|
|
2870
2870
|
}
|
|
2871
2871
|
var Cy = xy, Ey = Cy, aa = Xt, Iy = Wn, sa = NaN, Ny = /^[-+]0x[0-9a-f]+$/i, _y = /^0b[01]+$/i, Py = /^0o[0-7]+$/i, Oy = parseInt;
|
|
2872
|
-
function
|
|
2872
|
+
function Ly(e) {
|
|
2873
2873
|
if (typeof e == "number")
|
|
2874
2874
|
return e;
|
|
2875
2875
|
if (Iy(e))
|
|
@@ -2884,7 +2884,7 @@ function ky(e) {
|
|
|
2884
2884
|
var n = _y.test(e);
|
|
2885
2885
|
return n || Py.test(e) ? Oy(e.slice(2), n ? 2 : 8) : Ny.test(e) ? sa : +e;
|
|
2886
2886
|
}
|
|
2887
|
-
var
|
|
2887
|
+
var ky = Ly, Dy = ky, ia = 1 / 0, Ry = 17976931348623157e292;
|
|
2888
2888
|
function $y(e) {
|
|
2889
2889
|
if (!e)
|
|
2890
2890
|
return e === 0 ? e : 0;
|
|
@@ -3165,29 +3165,29 @@ const pi = /* @__PURE__ */ Dn(qy), ui = ({
|
|
|
3165
3165
|
return {
|
|
3166
3166
|
performanceFee: ln(
|
|
3167
3167
|
p,
|
|
3168
|
-
|
|
3168
|
+
Ee
|
|
3169
3169
|
),
|
|
3170
3170
|
performanceFeeNumber: ct(
|
|
3171
3171
|
+p,
|
|
3172
|
-
|
|
3172
|
+
Ee
|
|
3173
3173
|
),
|
|
3174
3174
|
streamingFee: ln(
|
|
3175
3175
|
u,
|
|
3176
|
-
|
|
3176
|
+
Ee,
|
|
3177
3177
|
2
|
|
3178
3178
|
),
|
|
3179
3179
|
streamingFeeNumber: ct(
|
|
3180
3180
|
+u,
|
|
3181
|
-
|
|
3181
|
+
Ee
|
|
3182
3182
|
),
|
|
3183
3183
|
entryFee: ln(
|
|
3184
3184
|
c,
|
|
3185
|
-
|
|
3185
|
+
Ee,
|
|
3186
3186
|
2
|
|
3187
3187
|
),
|
|
3188
|
-
entryFeeNumber: ct(+c,
|
|
3189
|
-
exitFee: ln(d,
|
|
3190
|
-
exitFeeNumber: ct(+d,
|
|
3188
|
+
entryFeeNumber: ct(+c, Ee),
|
|
3189
|
+
exitFee: ln(d, Ee, 2),
|
|
3190
|
+
exitFeeNumber: ct(+d, Ee)
|
|
3191
3191
|
};
|
|
3192
3192
|
}, [
|
|
3193
3193
|
o,
|
|
@@ -3451,7 +3451,7 @@ const hi = (e, t) => cc(e) ? {
|
|
|
3451
3451
|
address: e,
|
|
3452
3452
|
symbol: t,
|
|
3453
3453
|
chainId: n
|
|
3454
|
-
} = y(), { account: r = I } = R(), o =
|
|
3454
|
+
} = y(), { account: r = I } = R(), o = Se({ symbol: t, address: e }), { data: { totalSupplyD18: a } = {} } = we({
|
|
3455
3455
|
address: e,
|
|
3456
3456
|
chainId: n
|
|
3457
3457
|
}), l = dc(e) && !Q(r, I), {
|
|
@@ -3518,7 +3518,7 @@ const ST = /* @__PURE__ */ Dn(AT), gi = ({
|
|
|
3518
3518
|
})();
|
|
3519
3519
|
}, [e, o, t]), n;
|
|
3520
3520
|
}, vi = () => {
|
|
3521
|
-
const { pricingAsset: e, symbol: t, chainId: n, address: r } = y(), { minLimitOrderValue: o } = q(), a =
|
|
3521
|
+
const { pricingAsset: e, symbol: t, chainId: n, address: r } = y(), { minLimitOrderValue: o } = q(), a = Se({ symbol: t, address: r }), i = fe({ address: r, chainId: n });
|
|
3522
3522
|
return Number(a) * Number(i) >= o && !!e;
|
|
3523
3523
|
}, ET = (e, t) => {
|
|
3524
3524
|
switch (t.type) {
|
|
@@ -3633,7 +3633,7 @@ const ST = /* @__PURE__ */ Dn(AT), gi = ({
|
|
|
3633
3633
|
}));
|
|
3634
3634
|
}, [t, n, e]);
|
|
3635
3635
|
return { displayLimitSellOverlay: n, openLimitSellOverlay: r };
|
|
3636
|
-
}, po = "0x000000000022D473030F116dDEE9F6B43aC78BA3", PT = 100, OT = 28,
|
|
3636
|
+
}, po = "0x000000000022D473030F116dDEE9F6B43aC78BA3", PT = 100, OT = 28, LT = 1, kT = 500, Si = 2, DT = 1, RT = 5, $T = 2, xi = {
|
|
3637
3637
|
[Pn.id]: "0x40F2978D87348250F085ACEbd680B387842a69eF"
|
|
3638
3638
|
}, BT = {
|
|
3639
3639
|
PermitWitnessTransferFrom: [
|
|
@@ -3731,7 +3731,7 @@ const ST = /* @__PURE__ */ Dn(AT), gi = ({
|
|
|
3731
3731
|
diameter: 72
|
|
3732
3732
|
};
|
|
3733
3733
|
}
|
|
3734
|
-
},
|
|
3734
|
+
}, ke = ({
|
|
3735
3735
|
symbols: e,
|
|
3736
3736
|
size: t = "m",
|
|
3737
3737
|
className: n = ""
|
|
@@ -3785,7 +3785,7 @@ const ST = /* @__PURE__ */ Dn(AT), gi = ({
|
|
|
3785
3785
|
customTitle: a,
|
|
3786
3786
|
className: i
|
|
3787
3787
|
}) => {
|
|
3788
|
-
const l = S(), c = a || (e ===
|
|
3788
|
+
const l = S(), c = a || (e === Ae.symbol ? l.allAssets : e);
|
|
3789
3789
|
return /* @__PURE__ */ w(
|
|
3790
3790
|
"div",
|
|
3791
3791
|
{
|
|
@@ -3795,7 +3795,7 @@ const ST = /* @__PURE__ */ Dn(AT), gi = ({
|
|
|
3795
3795
|
),
|
|
3796
3796
|
children: [
|
|
3797
3797
|
o ?? /* @__PURE__ */ s(
|
|
3798
|
-
|
|
3798
|
+
ke,
|
|
3799
3799
|
{
|
|
3800
3800
|
size: n,
|
|
3801
3801
|
symbols: t,
|
|
@@ -3992,7 +3992,7 @@ const qT = ({
|
|
|
3992
3992
|
l !== "update_ondo_prices" && (n({ link: x, status: "Success", action: l }), o?.(m, l, x)), t({ type: "remove", status: "success", txHash: T });
|
|
3993
3993
|
}
|
|
3994
3994
|
c ? u() : p();
|
|
3995
|
-
}, b = d ?
|
|
3995
|
+
}, b = d ? kr[d] ?? 0 : 0;
|
|
3996
3996
|
if (b > 0) {
|
|
3997
3997
|
const T = setTimeout(g, b);
|
|
3998
3998
|
return () => clearTimeout(T);
|
|
@@ -4039,7 +4039,7 @@ const qT = ({
|
|
|
4039
4039
|
onErrorCallback: t,
|
|
4040
4040
|
onSuccessCallback: n
|
|
4041
4041
|
}) => {
|
|
4042
|
-
const [, r] = Z(), [, o] = se(), [, a] =
|
|
4042
|
+
const [, r] = Z(), [, o] = se(), [, a] = k(), i = jd();
|
|
4043
4043
|
return f(
|
|
4044
4044
|
(l, c, d) => {
|
|
4045
4045
|
if (c) {
|
|
@@ -4104,7 +4104,7 @@ const qT = ({
|
|
|
4104
4104
|
});
|
|
4105
4105
|
return he(o ?? BigInt(0), F);
|
|
4106
4106
|
}, YT = () => {
|
|
4107
|
-
const [e] =
|
|
4107
|
+
const [e] = k(), [t] = M(), n = Se({
|
|
4108
4108
|
address: e.address,
|
|
4109
4109
|
symbol: e.symbol
|
|
4110
4110
|
}), r = new _(e.value), o = new _(
|
|
@@ -4114,7 +4114,7 @@ const qT = ({
|
|
|
4114
4114
|
};
|
|
4115
4115
|
function QT(e, t, n, r) {
|
|
4116
4116
|
try {
|
|
4117
|
-
if (t ===
|
|
4117
|
+
if (t === Ae.symbol)
|
|
4118
4118
|
return "";
|
|
4119
4119
|
const o = Number(n), a = Number(r);
|
|
4120
4120
|
return o === 0 || a === 0 || !isFinite(o) || !isFinite(a) ? "" : `1 ${e} = ${(a / o).toFixed(
|
|
@@ -4125,7 +4125,7 @@ function QT(e, t, n, r) {
|
|
|
4125
4125
|
}
|
|
4126
4126
|
}
|
|
4127
4127
|
const XT = () => {
|
|
4128
|
-
const [e] =
|
|
4128
|
+
const [e] = k(), [t] = M();
|
|
4129
4129
|
return {
|
|
4130
4130
|
value: QT(
|
|
4131
4131
|
e.symbol,
|
|
@@ -4137,11 +4137,11 @@ const XT = () => {
|
|
|
4137
4137
|
};
|
|
4138
4138
|
}, rt = () => {
|
|
4139
4139
|
const e = !et(), [{ symbol: t }] = M(), [{ isMultiAssetWithdrawalEnabled: n }] = ee();
|
|
4140
|
-
return e && n && t ===
|
|
4140
|
+
return e && n && t === Ae.symbol;
|
|
4141
4141
|
}, Yn = ({
|
|
4142
4142
|
onErrorCallback: e
|
|
4143
4143
|
} = {}) => {
|
|
4144
|
-
const { account: t } = R(), { chainId: n } = y(), r = rt(), [o] =
|
|
4144
|
+
const { account: t } = R(), { chainId: n } = y(), r = rt(), [o] = k(), a = new _(o.value || "0").shiftedBy(o.decimals).toFixed(0, _.ROUND_UP), i = X("easySwapperV2", n), { canSpend: l, isFetching: c } = Li({
|
|
4145
4145
|
tokenAddress: o.address,
|
|
4146
4146
|
ownerAddress: t ?? I,
|
|
4147
4147
|
spenderAddress: i,
|
|
@@ -4211,7 +4211,7 @@ const XT = () => {
|
|
|
4211
4211
|
signal: n,
|
|
4212
4212
|
buildKey: pc
|
|
4213
4213
|
}), tA = (e, t) => {
|
|
4214
|
-
const n = zr(), { effectiveSelectedAggregators: r } =
|
|
4214
|
+
const n = zr(), { effectiveSelectedAggregators: r } = Ln();
|
|
4215
4215
|
return _n({
|
|
4216
4216
|
queryKey: ["getSwapsQuotes", e, r],
|
|
4217
4217
|
queryFn: async ({ signal: o, queryKey: [, a] }) => await Ni({
|
|
@@ -4425,7 +4425,7 @@ const _i = (e, t) => {
|
|
|
4425
4425
|
};
|
|
4426
4426
|
}, [e, t]), n;
|
|
4427
4427
|
}, iA = () => {
|
|
4428
|
-
const e = y(), [t] =
|
|
4428
|
+
const e = y(), [t] = k(), n = rt(), r = ot(), [{ slippage: o }] = ee(), a = o === "auto", i = sA(e);
|
|
4429
4429
|
return f(
|
|
4430
4430
|
async (l) => {
|
|
4431
4431
|
const c = Ba(t.value), d = n ? [c] : [e.address, c], p = await i({
|
|
@@ -4449,7 +4449,7 @@ const _i = (e, t) => {
|
|
|
4449
4449
|
}, lA = ({
|
|
4450
4450
|
debounceTime: e
|
|
4451
4451
|
} = {}) => {
|
|
4452
|
-
const t = y(), n = rt(), [r] =
|
|
4452
|
+
const t = y(), n = rt(), [r] = k(), o = ot(), { data: { getSupportedAssets: a } = {} } = qn(t), i = _i(
|
|
4453
4453
|
r.value || "0",
|
|
4454
4454
|
e ?? 0
|
|
4455
4455
|
);
|
|
@@ -4582,7 +4582,7 @@ const _i = (e, t) => {
|
|
|
4582
4582
|
trade: e,
|
|
4583
4583
|
onErrorCallback: t
|
|
4584
4584
|
}) => {
|
|
4585
|
-
const n = S(), { showError: r, closeError: o } = It(), { account: a } = R(), i = y(), [l] =
|
|
4585
|
+
const n = S(), { showError: r, closeError: o } = It(), { account: a } = R(), i = y(), [l] = k(), [c] = M(), [d] = Oe(), p = Z()[1], u = se()[1], m = Ur(), h = rt(), { isUnrollAndClaimTransaction: v } = mo(), g = Se({
|
|
4586
4586
|
symbol: l.symbol,
|
|
4587
4587
|
address: l.address
|
|
4588
4588
|
}), b = d === "deposit", T = YT(), x = b ? "deposit" : h ? "multi_withdraw" : v ? "single_withdraw_and_claim" : "single_withdraw", E = async () => {
|
|
@@ -4661,7 +4661,7 @@ const _i = (e, t) => {
|
|
|
4661
4661
|
[t, r, l, e, a]
|
|
4662
4662
|
);
|
|
4663
4663
|
}, fA = () => {
|
|
4664
|
-
const e = Oe()[0] === "deposit", { chainId: t } = y(), [n] = gt(), [r] =
|
|
4664
|
+
const e = Oe()[0] === "deposit", { chainId: t } = y(), [n] = gt(), [r] = k(), o = pe({
|
|
4665
4665
|
address: r.address,
|
|
4666
4666
|
chainId: t,
|
|
4667
4667
|
disabled: !e || !n.apy
|
|
@@ -4682,7 +4682,7 @@ const _i = (e, t) => {
|
|
|
4682
4682
|
showEarnings: !1
|
|
4683
4683
|
};
|
|
4684
4684
|
}, bA = (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" }, yA = (e, t) => {
|
|
4685
|
-
const { effectiveSelectedAggregators: n } =
|
|
4685
|
+
const { effectiveSelectedAggregators: n } = Ln(), r = zr(), { isValid: o } = bA({
|
|
4686
4686
|
chainId: String(e.chainId),
|
|
4687
4687
|
sourceAddress: e.sourceAddress,
|
|
4688
4688
|
destinationAddress: e.destinationAddress,
|
|
@@ -4702,7 +4702,7 @@ const _i = (e, t) => {
|
|
|
4702
4702
|
enabled: o && (t?.enabled ?? !0)
|
|
4703
4703
|
});
|
|
4704
4704
|
}, Qn = (e = {}) => {
|
|
4705
|
-
const t = e?.extendedDebounceTime ?? !1, [n] =
|
|
4705
|
+
const t = e?.extendedDebounceTime ?? !1, [n] = k(), r = _i(
|
|
4706
4706
|
n.value,
|
|
4707
4707
|
t ? es : qc
|
|
4708
4708
|
);
|
|
@@ -4803,7 +4803,7 @@ const _i = (e, t) => {
|
|
|
4803
4803
|
i,
|
|
4804
4804
|
l
|
|
4805
4805
|
]);
|
|
4806
|
-
},
|
|
4806
|
+
}, Li = ({
|
|
4807
4807
|
rawAmountToSpend: e,
|
|
4808
4808
|
tokenAddress: t,
|
|
4809
4809
|
ownerAddress: n,
|
|
@@ -4837,7 +4837,7 @@ const _i = (e, t) => {
|
|
|
4837
4837
|
() => [e, r],
|
|
4838
4838
|
[e, r]
|
|
4839
4839
|
);
|
|
4840
|
-
},
|
|
4840
|
+
}, ki = () => {
|
|
4841
4841
|
const e = S(), [t, n] = xA();
|
|
4842
4842
|
return /* @__PURE__ */ s(
|
|
4843
4843
|
zn,
|
|
@@ -4848,7 +4848,7 @@ const _i = (e, t) => {
|
|
|
4848
4848
|
}
|
|
4849
4849
|
);
|
|
4850
4850
|
}, CA = () => {
|
|
4851
|
-
const [{ selectedAggregators: e }, t] = ee(), { effectiveAvailableAggregators: n, effectiveSelectedAggregators: r } =
|
|
4851
|
+
const [{ selectedAggregators: e }, t] = ee(), { effectiveAvailableAggregators: n, effectiveSelectedAggregators: r } = Ln(), o = f(
|
|
4852
4852
|
(a) => {
|
|
4853
4853
|
const i = e.includes(a) ? e.filter((l) => l !== a) : [...e, a];
|
|
4854
4854
|
t({ selectedAggregators: i });
|
|
@@ -4889,7 +4889,7 @@ const _i = (e, t) => {
|
|
|
4889
4889
|
);
|
|
4890
4890
|
}, EA = () => {
|
|
4891
4891
|
const e = S();
|
|
4892
|
-
return /* @__PURE__ */ w(
|
|
4892
|
+
return /* @__PURE__ */ w(L, { children: [
|
|
4893
4893
|
/* @__PURE__ */ s(
|
|
4894
4894
|
Ht,
|
|
4895
4895
|
{
|
|
@@ -4903,7 +4903,7 @@ const _i = (e, t) => {
|
|
|
4903
4903
|
{
|
|
4904
4904
|
label: e.tokenAllowance,
|
|
4905
4905
|
tooltipText: e.toggleTokenApprovalAmount,
|
|
4906
|
-
children: /* @__PURE__ */ s(
|
|
4906
|
+
children: /* @__PURE__ */ s(ki, {})
|
|
4907
4907
|
}
|
|
4908
4908
|
),
|
|
4909
4909
|
/* @__PURE__ */ s(Di, {})
|
|
@@ -4976,7 +4976,7 @@ const _i = (e, t) => {
|
|
|
4976
4976
|
(o) => Q(o.address, r)
|
|
4977
4977
|
)
|
|
4978
4978
|
)?.tokenAddress ?? e[0]?.tokenAddress : null, Nt = () => {
|
|
4979
|
-
const [e] =
|
|
4979
|
+
const [e] = k(), { chainId: t, address: n } = y(), r = Et({
|
|
4980
4980
|
address: n,
|
|
4981
4981
|
chainId: t
|
|
4982
4982
|
}), o = PA();
|
|
@@ -5014,13 +5014,13 @@ const _i = (e, t) => {
|
|
|
5014
5014
|
e.symbol
|
|
5015
5015
|
]);
|
|
5016
5016
|
}, nn = () => {
|
|
5017
|
-
const [e] =
|
|
5017
|
+
const [e] = k(), { vaultDepositTokenAddress: t } = Nt();
|
|
5018
5018
|
return !Q(e.address, t);
|
|
5019
5019
|
}, Xn = () => {
|
|
5020
5020
|
const e = io(), [{ slippage: t }] = ee(), n = nn();
|
|
5021
5021
|
return t === "auto" ? n ? e : Xa : t;
|
|
5022
5022
|
}, rn = () => {
|
|
5023
|
-
const { account: e = I } = R(), { chainId: t } = y(), [n] =
|
|
5023
|
+
const { account: e = I } = R(), { chainId: t } = y(), [n] = k(), { debouncedSendTokenValue: r } = Qn(), { vaultDepositTokenAddress: o } = Nt(), a = nn(), i = Xn();
|
|
5024
5024
|
return yA(
|
|
5025
5025
|
{
|
|
5026
5026
|
sourceAddress: n.address,
|
|
@@ -5036,9 +5036,9 @@ const _i = (e, t) => {
|
|
|
5036
5036
|
}
|
|
5037
5037
|
);
|
|
5038
5038
|
}, Ri = () => {
|
|
5039
|
-
const { defaultNoSwapMinDepositAmountGap: e } = q(), { address: t, chainId: n } = y(), [r] =
|
|
5039
|
+
const { defaultNoSwapMinDepositAmountGap: e } = q(), { address: t, chainId: n } = y(), [r] = k(), [o] = M(), { data: { entryFee: a } = {} } = we({ address: t, chainId: n }), i = ct(
|
|
5040
5040
|
Number(a ?? "0"),
|
|
5041
|
-
|
|
5041
|
+
Ee
|
|
5042
5042
|
), [{ slippage: l }] = ee(), c = l === "auto", d = Xn(), p = nn(), u = +pe({
|
|
5043
5043
|
address: r.address,
|
|
5044
5044
|
chainId: n
|
|
@@ -5070,20 +5070,20 @@ const _i = (e, t) => {
|
|
|
5070
5070
|
}), c = Number(n || "0") * o;
|
|
5071
5071
|
return i && l !== 0 ? new _(c / l).shiftedBy(i).times(1 - ts / 100).toFixed(0) : "0";
|
|
5072
5072
|
}, $i = () => {
|
|
5073
|
-
const [e] =
|
|
5073
|
+
const [e] = k(), { debouncedSendTokenValue: t } = Qn(), n = nn(), r = OA({
|
|
5074
5074
|
isDepositWithSwapTransaction: n,
|
|
5075
5075
|
sendTokenAddress: e.address,
|
|
5076
5076
|
sendTokenValue: t
|
|
5077
5077
|
});
|
|
5078
5078
|
return n ? r : new _(t || "0").shiftedBy(e.decimals).toFixed(0);
|
|
5079
|
-
},
|
|
5079
|
+
}, LA = "0x", Er = (e, t, n = [], r) => {
|
|
5080
5080
|
const {
|
|
5081
5081
|
vaultAddress: o,
|
|
5082
5082
|
vaultDepositTokenAddress: a,
|
|
5083
5083
|
vaultDepositTokenAmount: i,
|
|
5084
5084
|
minVaultTokensReceivedAmount: l,
|
|
5085
5085
|
sendTokenAmount: c
|
|
5086
|
-
} = t, d = r ??
|
|
5086
|
+
} = t, d = r ?? LA;
|
|
5087
5087
|
switch (e) {
|
|
5088
5088
|
case "nativeDeposit":
|
|
5089
5089
|
case "nativeDepositWithCustomCooldown":
|
|
@@ -5109,7 +5109,7 @@ const _i = (e, t) => {
|
|
|
5109
5109
|
case "zapDepositWithCustomCooldown":
|
|
5110
5110
|
return [...n, d];
|
|
5111
5111
|
}
|
|
5112
|
-
},
|
|
5112
|
+
}, kA = async ({
|
|
5113
5113
|
baseArgs: e,
|
|
5114
5114
|
swapQuotes: t,
|
|
5115
5115
|
estimate: n,
|
|
@@ -5188,7 +5188,7 @@ const _i = (e, t) => {
|
|
|
5188
5188
|
depositMethod: e,
|
|
5189
5189
|
vaultDepositTokenAddress: t
|
|
5190
5190
|
}) => {
|
|
5191
|
-
const { address: n } = y(), [r] =
|
|
5191
|
+
const { address: n } = y(), [r] = k(), [{ slippage: o }] = ee(), a = r.value || "0", i = new _(a).shiftedBy(r.decimals).toFixed(0), l = $i(), { data: c } = rn(), d = Ri(), p = Xn(), { referralData: u } = _A(), m = o === "auto", h = m ? Or({ maxSlippage: p }) : void 0;
|
|
5192
5192
|
return f(
|
|
5193
5193
|
async (v) => {
|
|
5194
5194
|
const g = {
|
|
@@ -5199,7 +5199,7 @@ const _i = (e, t) => {
|
|
|
5199
5199
|
sendTokenAmount: i
|
|
5200
5200
|
}, b = DA(e);
|
|
5201
5201
|
try {
|
|
5202
|
-
return b ? await
|
|
5202
|
+
return b ? await kA({
|
|
5203
5203
|
baseArgs: g,
|
|
5204
5204
|
swapQuotes: c,
|
|
5205
5205
|
estimate: v,
|
|
@@ -5274,7 +5274,7 @@ const _i = (e, t) => {
|
|
|
5274
5274
|
onSettled: t,
|
|
5275
5275
|
onErrorCallback: n
|
|
5276
5276
|
}) => {
|
|
5277
|
-
const { chainId: r, symbol: o } = y(), [a] =
|
|
5277
|
+
const { chainId: r, symbol: o } = y(), [a] = k(), [i] = M(), l = se()[1], c = Z()[1], d = je({
|
|
5278
5278
|
action: mr,
|
|
5279
5279
|
onErrorCallback: n,
|
|
5280
5280
|
onSuccessCallback: t
|
|
@@ -5315,7 +5315,7 @@ const _i = (e, t) => {
|
|
|
5315
5315
|
c
|
|
5316
5316
|
]);
|
|
5317
5317
|
}, WA = () => {
|
|
5318
|
-
const { account: e = I } = R(), { chainId: t } = y(), [n] =
|
|
5318
|
+
const { account: e = I } = R(), { chainId: t } = y(), [n] = k(), r = X("easySwapperV2", t), o = new _(n.value || "0").shiftedBy(n.decimals).toFixed(0, _.ROUND_UP), { canSpend: a } = Li({
|
|
5319
5319
|
tokenAddress: n.address,
|
|
5320
5320
|
ownerAddress: e,
|
|
5321
5321
|
spenderAddress: r,
|
|
@@ -5351,13 +5351,13 @@ const _i = (e, t) => {
|
|
|
5351
5351
|
(oe) => oe.action === "approve"
|
|
5352
5352
|
)?.txHash, J = v.find(
|
|
5353
5353
|
(oe) => oe.action === "update_ondo_prices"
|
|
5354
|
-
)?.txHash, { data:
|
|
5354
|
+
)?.txHash, { data: xe } = mt({
|
|
5355
5355
|
hash: re,
|
|
5356
5356
|
pollingInterval: Gt,
|
|
5357
5357
|
query: {
|
|
5358
5358
|
enabled: !!re && e === "waiting-approve-confirmation"
|
|
5359
5359
|
}
|
|
5360
|
-
}), { data:
|
|
5360
|
+
}), { data: Le } = mt({
|
|
5361
5361
|
hash: J,
|
|
5362
5362
|
pollingInterval: Gt,
|
|
5363
5363
|
query: {
|
|
@@ -5366,7 +5366,7 @@ const _i = (e, t) => {
|
|
|
5366
5366
|
});
|
|
5367
5367
|
return N(() => {
|
|
5368
5368
|
(async () => {
|
|
5369
|
-
if (!(!
|
|
5369
|
+
if (!(!xe || e !== "waiting-approve-confirmation")) {
|
|
5370
5370
|
if (O && !r.current) {
|
|
5371
5371
|
r.current = !0, t("updating-prices");
|
|
5372
5372
|
try {
|
|
@@ -5380,7 +5380,7 @@ const _i = (e, t) => {
|
|
|
5380
5380
|
}
|
|
5381
5381
|
})();
|
|
5382
5382
|
}, [
|
|
5383
|
-
|
|
5383
|
+
xe,
|
|
5384
5384
|
u,
|
|
5385
5385
|
e,
|
|
5386
5386
|
l,
|
|
@@ -5390,9 +5390,9 @@ const _i = (e, t) => {
|
|
|
5390
5390
|
K
|
|
5391
5391
|
]), N(() => {
|
|
5392
5392
|
(async () => {
|
|
5393
|
-
|
|
5393
|
+
Le && e === "waiting-prices-confirmation" && !n.current && (n.current = !0, t("depositing"), await l());
|
|
5394
5394
|
})();
|
|
5395
|
-
}, [
|
|
5395
|
+
}, [Le, u, e, l]), N(() => {
|
|
5396
5396
|
e === "waiting-approve-confirmation" && m === "approve" && h === "None" && o();
|
|
5397
5397
|
}, [e, m, h, o]), N(() => {
|
|
5398
5398
|
e === "waiting-prices-confirmation" && m === "update_ondo_prices" && h === "None" && o();
|
|
@@ -5432,7 +5432,7 @@ const _i = (e, t) => {
|
|
|
5432
5432
|
address: e,
|
|
5433
5433
|
chainId: t
|
|
5434
5434
|
}) => {
|
|
5435
|
-
const [n] =
|
|
5435
|
+
const [n] = k(), r = et(), { vaultDepositTokenAddress: o } = Nt(), a = $i(), i = !!(a && +a > 0), l = Pe({
|
|
5436
5436
|
address: X("easySwapperV2", t),
|
|
5437
5437
|
abi: Ze,
|
|
5438
5438
|
functionName: "depositQuote",
|
|
@@ -5445,7 +5445,7 @@ const _i = (e, t) => {
|
|
|
5445
5445
|
});
|
|
5446
5446
|
return Js(l), l;
|
|
5447
5447
|
}, GA = () => {
|
|
5448
|
-
const { address: e, chainId: t } = y(), n = et(), [r] =
|
|
5448
|
+
const { address: e, chainId: t } = y(), n = et(), [r] = k(), [o, a] = M(), [, i] = ee(), { isDebouncing: l, debouncedSendTokenValue: c } = Qn(), { isFetching: d } = rn(), { data: p, isFetching: u } = zA({
|
|
5449
5449
|
address: e,
|
|
5450
5450
|
chainId: t
|
|
5451
5451
|
}), m = d || u || l;
|
|
@@ -5472,10 +5472,10 @@ const _i = (e, t) => {
|
|
|
5472
5472
|
const { address: t, chainId: n } = y(), { data: r } = we({
|
|
5473
5473
|
address: t,
|
|
5474
5474
|
chainId: n
|
|
5475
|
-
}), [o] =
|
|
5475
|
+
}), [o] = k(), [a] = M(), i = pe({
|
|
5476
5476
|
address: o.address,
|
|
5477
5477
|
chainId: n
|
|
5478
|
-
}), l = fe({ address: t, chainId: n }), c = e.includesEntryFee ? ct(Number(r?.entryFee ?? "0"),
|
|
5478
|
+
}), l = fe({ address: t, chainId: n }), c = e.includesEntryFee ? ct(Number(r?.entryFee ?? "0"), Ee) : 0;
|
|
5479
5479
|
return P(() => {
|
|
5480
5480
|
const d = Number(o.value || "0"), p = new _(d).times(i ?? "0").times(1 - c / 100), u = Number(a.value || "0"), m = new _(u).times(
|
|
5481
5481
|
l ?? "0"
|
|
@@ -5548,7 +5548,7 @@ function iS() {
|
|
|
5548
5548
|
}
|
|
5549
5549
|
var lS = iS, wr = Us, cS = lS, dS = qr, pS = 1 / 0, uS = wr && 1 / dS(new wr([, -0]))[1] == pS ? function(e) {
|
|
5550
5550
|
return new wr(e);
|
|
5551
|
-
} : cS, mS = uS, wS =
|
|
5551
|
+
} : cS, mS = uS, wS = ks, hS = oS, gS = sS, vS = Ds, fS = mS, bS = qr, yS = 200;
|
|
5552
5552
|
function TS(e, t, n) {
|
|
5553
5553
|
var r = -1, o = hS, a = e.length, i = !0, l = [], c = l;
|
|
5554
5554
|
if (n)
|
|
@@ -5663,7 +5663,7 @@ const IS = /* @__PURE__ */ Dn(ES), on = ({
|
|
|
5663
5663
|
r.defaultDepositTokenSymbol
|
|
5664
5664
|
]);
|
|
5665
5665
|
}, NS = () => {
|
|
5666
|
-
const e = y(), [t] = on(), n =
|
|
5666
|
+
const e = y(), [t] = on(), n = k()[1], [r] = Oe();
|
|
5667
5667
|
N(() => {
|
|
5668
5668
|
r === "deposit" && t?.symbol && n({
|
|
5669
5669
|
address: t?.address,
|
|
@@ -5703,7 +5703,7 @@ const IS = /* @__PURE__ */ Dn(ES), on = ({
|
|
|
5703
5703
|
default:
|
|
5704
5704
|
return e;
|
|
5705
5705
|
}
|
|
5706
|
-
}, OS = "1",
|
|
5706
|
+
}, OS = "1", LS = () => {
|
|
5707
5707
|
const { account: e = I } = R(), { address: t, chainId: n } = y(), [r] = M(), o = fe({ address: t, chainId: n }), { minDepositUSD: a } = mi(t, n), { data: i } = mT({
|
|
5708
5708
|
address: t,
|
|
5709
5709
|
chainId: n,
|
|
@@ -5718,7 +5718,7 @@ const IS = /* @__PURE__ */ Dn(ES), on = ({
|
|
|
5718
5718
|
}, ho = (e) => {
|
|
5719
5719
|
const [{ action: t, status: n }] = Z();
|
|
5720
5720
|
return t === e && (n === "Wallet" || n === "Mining");
|
|
5721
|
-
},
|
|
5721
|
+
}, kS = (e) => {
|
|
5722
5722
|
const t = be(), { showError: n } = It(), { onAcceptTermsOfUse: r } = ao(), { termsOfUseAccepted: o } = q(), { swapQuoteRefreshTriggered: a } = ae(), i = Gr(), l = de(!1), c = a === "deposit", {
|
|
5723
5723
|
disabled: d,
|
|
5724
5724
|
label: p,
|
|
@@ -5777,7 +5777,7 @@ const IS = /* @__PURE__ */ Dn(ES), on = ({
|
|
|
5777
5777
|
isLoading: g
|
|
5778
5778
|
};
|
|
5779
5779
|
}, DS = () => {
|
|
5780
|
-
const e = S(), { approveAndDeposit: t, isLoading: n, flowState: r } = UA(), { handleClick: o, disabled: a } =
|
|
5780
|
+
const e = S(), { approveAndDeposit: t, isLoading: n, flowState: r } = UA(), { handleClick: o, disabled: a } = kS(t);
|
|
5781
5781
|
return {
|
|
5782
5782
|
handleClick: o,
|
|
5783
5783
|
disabled: a,
|
|
@@ -5808,10 +5808,10 @@ const IS = /* @__PURE__ */ Dn(ES), on = ({
|
|
|
5808
5808
|
maintenance: r,
|
|
5809
5809
|
maintenanceDeposits: o,
|
|
5810
5810
|
depositCapacity: a
|
|
5811
|
-
} = y(), [i] =
|
|
5811
|
+
} = y(), [i] = k(), l = Gn(), c = pe({
|
|
5812
5812
|
address: i.address,
|
|
5813
5813
|
chainId: n
|
|
5814
|
-
}), { isVaultDepositLocked: d, isAccountWhitelisted: p } = _S(), { requiresHighSlippageConfirm: u, confirmHighSlippage: m, slippageToBeUsed: h } = co(), { requiresMinDeposit: v, requiredMinDepositAmount: g } =
|
|
5814
|
+
}), { isVaultDepositLocked: d, isAccountWhitelisted: p } = _S(), { requiresHighSlippageConfirm: u, confirmHighSlippage: m, slippageToBeUsed: h } = co(), { requiresMinDeposit: v, requiredMinDepositAmount: g } = LS(), T = Number(i.value || "0") * Number(c), x = a !== void 0 && T > a;
|
|
5815
5815
|
return {
|
|
5816
5816
|
requiresMinDeposit: v,
|
|
5817
5817
|
requiresWhitelist: d && !p,
|
|
@@ -5859,7 +5859,7 @@ const IS = /* @__PURE__ */ Dn(ES), on = ({
|
|
|
5859
5859
|
`${Math.abs(c)}`
|
|
5860
5860
|
) }) : /* @__PURE__ */ s(RS, {});
|
|
5861
5861
|
}, MS = () => {
|
|
5862
|
-
const [e, t] =
|
|
5862
|
+
const [e, t] = k(), { chainId: n } = y(), r = pe({ address: e.address, chainId: n }), o = Se({
|
|
5863
5863
|
symbol: e.symbol,
|
|
5864
5864
|
address: e.address
|
|
5865
5865
|
});
|
|
@@ -5904,7 +5904,7 @@ const IS = /* @__PURE__ */ Dn(ES), on = ({
|
|
|
5904
5904
|
children: e
|
|
5905
5905
|
}) => {
|
|
5906
5906
|
const t = S();
|
|
5907
|
-
return /* @__PURE__ */ s(Aa, { children: ({ open: n }) => /* @__PURE__ */ w(
|
|
5907
|
+
return /* @__PURE__ */ s(Aa, { children: ({ open: n }) => /* @__PURE__ */ w(L, { children: [
|
|
5908
5908
|
/* @__PURE__ */ w(Sa, { className: "dtw-px-1.5 dtw-w-[100px] dtw-flex 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: [
|
|
5909
5909
|
n ? t.hide : t.showAll,
|
|
5910
5910
|
/* @__PURE__ */ s(
|
|
@@ -5977,7 +5977,7 @@ const IS = /* @__PURE__ */ Dn(ES), on = ({
|
|
|
5977
5977
|
(c, d) => d.fractionUsdNumber - c.fractionUsdNumber
|
|
5978
5978
|
);
|
|
5979
5979
|
}, VS = (e) => {
|
|
5980
|
-
const { address: t, chainId: n } = y(), [{ value: r }] =
|
|
5980
|
+
const { address: t, chainId: n } = y(), [{ value: r }] = k(), o = rT({
|
|
5981
5981
|
vaultTokensAmount: r,
|
|
5982
5982
|
address: t,
|
|
5983
5983
|
chainId: n
|
|
@@ -6007,7 +6007,7 @@ const IS = /* @__PURE__ */ Dn(ES), on = ({
|
|
|
6007
6007
|
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: [
|
|
6008
6008
|
t.as,
|
|
6009
6009
|
" ",
|
|
6010
|
-
/* @__PURE__ */ s(
|
|
6010
|
+
/* @__PURE__ */ s(ke, { symbols: [e], size: "xs" }),
|
|
6011
6011
|
" ",
|
|
6012
6012
|
e
|
|
6013
6013
|
] });
|
|
@@ -6076,7 +6076,7 @@ const IS = /* @__PURE__ */ Dn(ES), on = ({
|
|
|
6076
6076
|
},
|
|
6077
6077
|
[n, t]
|
|
6078
6078
|
);
|
|
6079
|
-
return /* @__PURE__ */ s("div", { className: C("dtw-text-sm dtw-font-light", e), children: o.length > 0 ? /* @__PURE__ */ w(
|
|
6079
|
+
return /* @__PURE__ */ s("div", { className: C("dtw-text-sm dtw-font-light", e), children: o.length > 0 ? /* @__PURE__ */ w(L, { children: [
|
|
6080
6080
|
/* @__PURE__ */ s(xn, { children: o.map(d) }),
|
|
6081
6081
|
a.length > 0 && /* @__PURE__ */ s(Mi, { children: /* @__PURE__ */ s(xn, { children: a.map(d) }) }),
|
|
6082
6082
|
i && /* @__PURE__ */ w("p", { className: "dtw-text-warning dtw-text-[length:var(--panel-label-font-size)]", children: [
|
|
@@ -6092,14 +6092,14 @@ const IS = /* @__PURE__ */ Dn(ES), on = ({
|
|
|
6092
6092
|
rel: "noreferrer",
|
|
6093
6093
|
children: [
|
|
6094
6094
|
"Flat Money ",
|
|
6095
|
-
/* @__PURE__ */ s(
|
|
6095
|
+
/* @__PURE__ */ s(ka, { className: "dtw-w-3" })
|
|
6096
6096
|
]
|
|
6097
6097
|
}
|
|
6098
6098
|
)
|
|
6099
6099
|
] })
|
|
6100
6100
|
] }) : /* @__PURE__ */ s(li, {}) });
|
|
6101
6101
|
}, qS = ({ symbol: e }) => {
|
|
6102
|
-
const t = Yt(), n = be(), { standalone: r } = q(), o = t.some((p) => p.symbol === e), a = e ===
|
|
6102
|
+
const t = Yt(), n = be(), { standalone: r } = q(), o = t.some((p) => p.symbol === e), a = e === Ae.symbol, i = Kd(), l = o && t.length === 1;
|
|
6103
6103
|
return {
|
|
6104
6104
|
isAllSymbol: a,
|
|
6105
6105
|
onClick: () => {
|
|
@@ -6270,7 +6270,7 @@ const XS = (e) => {
|
|
|
6270
6270
|
"dtw-flex dtw-justify-between dtw-items-center dtw-text-[length:var(--panel-input-label-font-size,var(--panel-font-size-sm))] dtw-leading-[var(--panel-input-label-line-height,var(--panel-line-height-sm))] dtw-font-[var(--panel-input-label-font-weight,var(--panel-font-weight-light))] dtw-gap-x-2"
|
|
6271
6271
|
),
|
|
6272
6272
|
children: [
|
|
6273
|
-
/* @__PURE__ */ s("div", { className: "transparent-scrollbar dtw-flex-1 dtw-overflow-x-auto", children: d ===
|
|
6273
|
+
/* @__PURE__ */ s("div", { className: "transparent-scrollbar dtw-flex-1 dtw-overflow-x-auto", children: d === Ae.symbol ? /* @__PURE__ */ s(Fi, { iconSize: "sm" }) : /* @__PURE__ */ s(
|
|
6274
6274
|
"input",
|
|
6275
6275
|
{
|
|
6276
6276
|
className: C(
|
|
@@ -6294,7 +6294,7 @@ const XS = (e) => {
|
|
|
6294
6294
|
}
|
|
6295
6295
|
),
|
|
6296
6296
|
/* @__PURE__ */ w("div", { className: "dtw-flex dtw-items-center dtw-justify-between dtw-gap-x-2", children: [
|
|
6297
|
-
/* @__PURE__ */ s("div", { className: "dtw-flex dtw-items-center dtw-gap-[var(--panel-input-price-gap,var(--panel-gap))] dtw-flex-1 dtw-overflow-x-auto transparent-scrollbar", children: h && /* @__PURE__ */ s(
|
|
6297
|
+
/* @__PURE__ */ s("div", { className: "dtw-flex dtw-items-center dtw-gap-[var(--panel-input-price-gap,var(--panel-gap))] dtw-flex-1 dtw-overflow-x-auto transparent-scrollbar", children: h && /* @__PURE__ */ s(L, { children: g ? /* @__PURE__ */ s("div", { className: "dtw-h-[18px]", children: /* @__PURE__ */ s(Re, { className: "dtw-stroke-[color:var(--panel-accent-from-color)] dtw-h-[var(--panel-icon-secondary-size)] sm:dtw-h-[var(--panel-icon-secondary-size-sm)] dtw-w-[var(--panel-icon-secondary-size)] sm:dtw-w-[var(--panel-icon-secondary-size-sm)]" }) }) : /* @__PURE__ */ w(
|
|
6298
6298
|
"span",
|
|
6299
6299
|
{
|
|
6300
6300
|
className: C(
|
|
@@ -6318,7 +6318,7 @@ const XS = (e) => {
|
|
|
6318
6318
|
}
|
|
6319
6319
|
);
|
|
6320
6320
|
}, JS = () => {
|
|
6321
|
-
const { stablePrecision: e, defaultPrecision: t } = q(), [{ symbol: n, address: r }] =
|
|
6321
|
+
const { stablePrecision: e, defaultPrecision: t } = q(), [{ symbol: n, address: r }] = k(), o = Se({ symbol: n, address: r, watch: !0 });
|
|
6322
6322
|
return {
|
|
6323
6323
|
formattedBalance: za({
|
|
6324
6324
|
balance: o,
|
|
@@ -6332,7 +6332,7 @@ const XS = (e) => {
|
|
|
6332
6332
|
const { formattedBalance: e, symbol: t } = JS();
|
|
6333
6333
|
return /* @__PURE__ */ s(ii, { balance: e, symbol: t });
|
|
6334
6334
|
}, ex = () => {
|
|
6335
|
-
const { stablePrecision: e, defaultPrecision: t } = q(), [{ symbol: n, address: r }] = M(), o =
|
|
6335
|
+
const { stablePrecision: e, defaultPrecision: t } = q(), [{ symbol: n, address: r }] = M(), o = Se({ symbol: n, address: r, watch: !0 });
|
|
6336
6336
|
return {
|
|
6337
6337
|
formattedBalance: za({
|
|
6338
6338
|
balance: o,
|
|
@@ -6410,11 +6410,11 @@ const XS = (e) => {
|
|
|
6410
6410
|
for (const E of x)
|
|
6411
6411
|
for (const D of T) {
|
|
6412
6412
|
const O = Object.entries(o).reduce(
|
|
6413
|
-
(J, [
|
|
6414
|
-
const Te =
|
|
6413
|
+
(J, [xe, Le]) => {
|
|
6414
|
+
const Te = Le?.find(
|
|
6415
6415
|
(qe) => qe.routerKey === D
|
|
6416
6416
|
);
|
|
6417
|
-
return { ...J, [
|
|
6417
|
+
return { ...J, [xe]: Te };
|
|
6418
6418
|
},
|
|
6419
6419
|
{}
|
|
6420
6420
|
), K = Ac({
|
|
@@ -6619,7 +6619,7 @@ const XS = (e) => {
|
|
|
6619
6619
|
}
|
|
6620
6620
|
}, [r, a, o, e, d, c]);
|
|
6621
6621
|
}, ji = () => {
|
|
6622
|
-
const e = y(), [t] = on(), { isAllAssetsWithdrawOptionDefault: n } = q(), { data: r = [] } = ce(), o = r.length > 0, { data: a } = wi(e), i = Oe()[1], l =
|
|
6622
|
+
const e = y(), [t] = on(), { isAllAssetsWithdrawOptionDefault: n } = q(), { data: r = [] } = ce(), o = r.length > 0, { data: a } = wi(e), i = Oe()[1], l = k()[1], c = M()[1], d = () => {
|
|
6623
6623
|
l({
|
|
6624
6624
|
...t,
|
|
6625
6625
|
value: "",
|
|
@@ -6632,15 +6632,15 @@ const XS = (e) => {
|
|
|
6632
6632
|
});
|
|
6633
6633
|
}, p = () => {
|
|
6634
6634
|
const { customTokens: u, defaultWithdrawTokenSymbol: m } = e.withdrawParams, h = u.find(
|
|
6635
|
-
({ symbol:
|
|
6636
|
-
) ?? u[0] ??
|
|
6635
|
+
({ symbol: b }) => b === m
|
|
6636
|
+
) ?? u[0] ?? Ae, v = n || m === Ae.symbol, g = o ? h : a || v ? Ae : h;
|
|
6637
6637
|
l({
|
|
6638
6638
|
address: e.address,
|
|
6639
6639
|
symbol: e.symbol,
|
|
6640
6640
|
decimals: F,
|
|
6641
6641
|
value: ""
|
|
6642
6642
|
}), c({
|
|
6643
|
-
...
|
|
6643
|
+
...g,
|
|
6644
6644
|
value: "",
|
|
6645
6645
|
isLoading: !1
|
|
6646
6646
|
});
|
|
@@ -6683,7 +6683,7 @@ const XS = (e) => {
|
|
|
6683
6683
|
onInputFocus: a,
|
|
6684
6684
|
onInputChange: i
|
|
6685
6685
|
} = WS(), l = en(o ?? 0);
|
|
6686
|
-
return /* @__PURE__ */ w(
|
|
6686
|
+
return /* @__PURE__ */ w(L, { children: [
|
|
6687
6687
|
/* @__PURE__ */ s(
|
|
6688
6688
|
Vt,
|
|
6689
6689
|
{
|
|
@@ -7050,7 +7050,7 @@ const XS = (e) => {
|
|
|
7050
7050
|
}, Ix = () => {
|
|
7051
7051
|
const e = S(), t = be();
|
|
7052
7052
|
Yn();
|
|
7053
|
-
const { symbol: n } = y(), [r] =
|
|
7053
|
+
const { symbol: n } = y(), [r] = k(), [o] = M(), a = kn()[1], { isCompleteWithdrawStep: i } = _t(), { swapQuoteRefreshTriggered: l } = ae(), c = Gr(), { isFetching: d, isError: p } = at(), u = de(!1), m = f(() => {
|
|
7054
7054
|
a({
|
|
7055
7055
|
sendToken: {
|
|
7056
7056
|
symbol: n,
|
|
@@ -7116,11 +7116,11 @@ const XS = (e) => {
|
|
|
7116
7116
|
key: "sanctioned"
|
|
7117
7117
|
}
|
|
7118
7118
|
].filter(({ value: d }) => d);
|
|
7119
|
-
return /* @__PURE__ */ w(
|
|
7119
|
+
return /* @__PURE__ */ w(L, { children: [
|
|
7120
7120
|
/* @__PURE__ */ s(j.InputGroup, { children: /* @__PURE__ */ s(lx, {}) }),
|
|
7121
7121
|
/* @__PURE__ */ s(mx, { children: l ? c.map(
|
|
7122
7122
|
({ Component: d, key: p }) => d && /* @__PURE__ */ s(d, {}, p)
|
|
7123
|
-
) : /* @__PURE__ */ s(
|
|
7123
|
+
) : /* @__PURE__ */ s(L, { children: /* @__PURE__ */ s(fo, { children: /* @__PURE__ */ w("div", { className: "tw-flex tw-flex-col tw-gap-2", children: [
|
|
7124
7124
|
/* @__PURE__ */ s(BS, {}),
|
|
7125
7125
|
/* @__PURE__ */ s(xx, { highlighted: !1, children: e.limitBuy })
|
|
7126
7126
|
] }) }) }) }),
|
|
@@ -7135,7 +7135,7 @@ const XS = (e) => {
|
|
|
7135
7135
|
Px(o) && t[o] && t[o].isOpen && (n = r);
|
|
7136
7136
|
}
|
|
7137
7137
|
}), n;
|
|
7138
|
-
},
|
|
7138
|
+
}, Lx = ({ type: e }) => {
|
|
7139
7139
|
const t = S(), { DepositTermsOfUse: n, ActionButton: r = G } = $(), { handleReject: o, handleConfirm: a, isPending: i } = ie({
|
|
7140
7140
|
type: e
|
|
7141
7141
|
});
|
|
@@ -7170,7 +7170,7 @@ const XS = (e) => {
|
|
|
7170
7170
|
)
|
|
7171
7171
|
] })
|
|
7172
7172
|
] });
|
|
7173
|
-
},
|
|
7173
|
+
}, kx = ({ type: e }) => {
|
|
7174
7174
|
const t = S(), { ActionButton: n = G } = $(), { handleReject: r, handleConfirm: o } = ie({ type: e });
|
|
7175
7175
|
return /* @__PURE__ */ w(j.Overlay, { className: "dtw-justify-between dtw-gap-y-1", children: [
|
|
7176
7176
|
/* @__PURE__ */ w("div", { className: "dtw-flex dtw-gap-1 dtw-items-center dtw-text-warning", children: [
|
|
@@ -7252,7 +7252,7 @@ const XS = (e) => {
|
|
|
7252
7252
|
isActive: n,
|
|
7253
7253
|
onClose: r
|
|
7254
7254
|
}) => {
|
|
7255
|
-
const o =
|
|
7255
|
+
const o = Se({
|
|
7256
7256
|
symbol: e.symbol,
|
|
7257
7257
|
address: e.address
|
|
7258
7258
|
}), { defaultPrecision: a } = q();
|
|
@@ -7317,7 +7317,7 @@ const XS = (e) => {
|
|
|
7317
7317
|
}
|
|
7318
7318
|
);
|
|
7319
7319
|
}, Mx = [], Fx = () => {
|
|
7320
|
-
const e = y(), [t] = Oe(), [n, r] =
|
|
7320
|
+
const e = y(), [t] = Oe(), [n, r] = k(), [o, a] = M(), { data: i } = wi(e), l = on(), c = i ? Mx : e.withdrawParams.customTokens;
|
|
7321
7321
|
return P(
|
|
7322
7322
|
() => ({
|
|
7323
7323
|
tokens: t === "deposit" ? l : c,
|
|
@@ -7400,7 +7400,7 @@ const XS = (e) => {
|
|
|
7400
7400
|
i && /* @__PURE__ */ s("li", { className: "dtw-cursor-pointer dtw-rounded-xl dtw-p-0.5 even:dtw-bg-[color:var(--panel-popup-list-item-bg-even)] odd:dtw-bg-[color:var(--panel-popup-list-item-bg-odd)] dtw-group", children: /* @__PURE__ */ s(
|
|
7401
7401
|
$x,
|
|
7402
7402
|
{
|
|
7403
|
-
token:
|
|
7403
|
+
token: Ae,
|
|
7404
7404
|
onSelect: a
|
|
7405
7405
|
}
|
|
7406
7406
|
) })
|
|
@@ -7436,7 +7436,7 @@ const XS = (e) => {
|
|
|
7436
7436
|
searchQuery: e,
|
|
7437
7437
|
type: t
|
|
7438
7438
|
}) => {
|
|
7439
|
-
const n = uT(), r = Yt(), o = y(), { handleReject: a } = ie({ type: t }), [i] = Oe(), l =
|
|
7439
|
+
const n = uT(), r = Yt(), o = y(), { handleReject: a } = ie({ type: t }), [i] = Oe(), l = k()[1], c = M()[1], d = Gd()[1], p = f(
|
|
7440
7440
|
({ address: m, value: h, decimals: v, symbol: g }) => {
|
|
7441
7441
|
(i === "deposit" ? c : l)({ address: m, value: h, decimals: v, symbol: g }), d(m), a();
|
|
7442
7442
|
},
|
|
@@ -7560,7 +7560,7 @@ const XS = (e) => {
|
|
|
7560
7560
|
] })
|
|
7561
7561
|
] }),
|
|
7562
7562
|
/* @__PURE__ */ s(Ye, {}),
|
|
7563
|
-
i && /* @__PURE__ */ w(
|
|
7563
|
+
i && /* @__PURE__ */ w(L, { children: [
|
|
7564
7564
|
/* @__PURE__ */ w("div", { className: "dtw-flex dtw-items-center dtw-justify-between dtw-gap-2 dtw-w-full", children: [
|
|
7565
7565
|
/* @__PURE__ */ s("p", { children: t.paidLabel }),
|
|
7566
7566
|
/* @__PURE__ */ w("div", { className: "dtw-flex dtw-flex-col dtw-items-end dtw-justify-center dtw-gap-1 dtw-text-[color:var(--panel-secondary-content-color)]", children: [
|
|
@@ -7578,7 +7578,7 @@ const XS = (e) => {
|
|
|
7578
7578
|
/* @__PURE__ */ s("p", { children: t.priceLabel }),
|
|
7579
7579
|
/* @__PURE__ */ s("p", { className: "dtw-text-[color:var(--panel-secondary-content-color)]", children: c })
|
|
7580
7580
|
] }),
|
|
7581
|
-
n && /* @__PURE__ */ w(
|
|
7581
|
+
n && /* @__PURE__ */ w(L, { children: [
|
|
7582
7582
|
/* @__PURE__ */ s(Ye, {}),
|
|
7583
7583
|
/* @__PURE__ */ w("div", { className: "dtw-flex dtw-items-center dtw-justify-between dtw-gap-2 dtw-w-full", children: [
|
|
7584
7584
|
/* @__PURE__ */ s("p", { children: t.transactionLabel }),
|
|
@@ -7611,7 +7611,7 @@ const XS = (e) => {
|
|
|
7611
7611
|
onClose: e
|
|
7612
7612
|
}) => {
|
|
7613
7613
|
const t = S(), { ActionButton: n = G } = $(), [{ link: r }] = Z();
|
|
7614
|
-
return /* @__PURE__ */ w(
|
|
7614
|
+
return /* @__PURE__ */ w(L, { children: [
|
|
7615
7615
|
/* @__PURE__ */ w("div", { className: "dtw-flex dtw-flex-col dtw-items-center dtw-justify-center dtw-gap-2 dtw-pt-1 dtw-px-4 dtw-w-full dtw-h-full md:dtw-w-1/2 md:dtw-h-1/2", children: [
|
|
7616
7616
|
/* @__PURE__ */ w("div", { className: "dtw-flex dtw-flex-col dtw-items-center dtw-gap-2 dtw-text-[color:var(--panel-success-content-color)]", children: [
|
|
7617
7617
|
/* @__PURE__ */ s(qt, { className: "dtw-h-16 dtw-w-16 lg:dtw-h-24 lg:dtw-w-24 dtw-shrink-0" }),
|
|
@@ -7667,7 +7667,7 @@ const XS = (e) => {
|
|
|
7667
7667
|
const t = S(), [n] = e ?? [];
|
|
7668
7668
|
return n ? /* @__PURE__ */ w("div", { className: "dtw-flex dtw-items-center dtw-gap-1 dtw-flex-wrap dtw-overflow-hidden", children: [
|
|
7669
7669
|
/* @__PURE__ */ s("span", { children: t.approveSpending }),
|
|
7670
|
-
/* @__PURE__ */ s(
|
|
7670
|
+
/* @__PURE__ */ s(ke, { size: "sm", symbols: [n.symbol] }),
|
|
7671
7671
|
/* @__PURE__ */ s("span", { children: n.symbol })
|
|
7672
7672
|
] }) : null;
|
|
7673
7673
|
}, eC = ({ receiveTokens: e }) => {
|
|
@@ -7676,7 +7676,7 @@ const XS = (e) => {
|
|
|
7676
7676
|
t.swapAndClaimTo,
|
|
7677
7677
|
" ",
|
|
7678
7678
|
/* @__PURE__ */ w("div", { className: "dtw-flex dtw-items-center dtw-gap-1", children: [
|
|
7679
|
-
/* @__PURE__ */ s(
|
|
7679
|
+
/* @__PURE__ */ s(ke, { size: "sm", symbols: [n.symbol] }),
|
|
7680
7680
|
" ",
|
|
7681
7681
|
n.symbol
|
|
7682
7682
|
] })
|
|
@@ -7686,21 +7686,21 @@ const XS = (e) => {
|
|
|
7686
7686
|
return o ? /* @__PURE__ */ w("div", { className: "dtw-flex dtw-flex-wrap dtw-items-center dtw-gap-x-1", children: [
|
|
7687
7687
|
n === "deposit" ? r.pay : n === "multi_withdraw" ? r.sell : r.unrollAction,
|
|
7688
7688
|
/* @__PURE__ */ w("div", { className: "dtw-flex dtw-items-center dtw-gap-1", children: [
|
|
7689
|
-
/* @__PURE__ */ s(
|
|
7689
|
+
/* @__PURE__ */ s(ke, { size: "sm", symbols: [o.symbol] }),
|
|
7690
7690
|
" ",
|
|
7691
7691
|
o.symbol
|
|
7692
7692
|
] }),
|
|
7693
7693
|
" ",
|
|
7694
7694
|
"to receive",
|
|
7695
|
-
/* @__PURE__ */ s("div", { className: "dtw-flex dtw-items-center dtw-gap-1", children: a ? /* @__PURE__ */ w(
|
|
7696
|
-
/* @__PURE__ */ s(
|
|
7695
|
+
/* @__PURE__ */ s("div", { className: "dtw-flex dtw-items-center dtw-gap-1", children: a ? /* @__PURE__ */ w(L, { children: [
|
|
7696
|
+
/* @__PURE__ */ s(ke, { size: "sm", symbols: [a.symbol] }),
|
|
7697
7697
|
" ",
|
|
7698
7698
|
a.symbol
|
|
7699
|
-
] }) : /* @__PURE__ */ s(
|
|
7699
|
+
] }) : /* @__PURE__ */ s(L, { children: n === "multi_withdraw" ? r.multiAssetFractions : r.swappableAssets }) })
|
|
7700
7700
|
] }) : null;
|
|
7701
7701
|
}, nC = () => {
|
|
7702
7702
|
const e = S(), [{ action: t, receiveTokens: n, sendTokens: r }] = Z();
|
|
7703
|
-
return t === "approve" ? /* @__PURE__ */ s(Jx, { sendTokens: r }) : t === "swap" ? /* @__PURE__ */ s(eC, { receiveTokens: n }) : t === "claim" ? /* @__PURE__ */ s(
|
|
7703
|
+
return t === "approve" ? /* @__PURE__ */ s(Jx, { sendTokens: r }) : t === "swap" ? /* @__PURE__ */ s(eC, { receiveTokens: n }) : t === "claim" ? /* @__PURE__ */ s(L, { children: e.claimLabel }) : t === "create_limit_sell_order" ? /* @__PURE__ */ s(L, { children: e.createLimitSellOrder }) : t === "delete_limit_order_withdraw" ? /* @__PURE__ */ s(L, { children: e.deleteWithdrawalRequest }) : t === "update_ondo_prices" ? /* @__PURE__ */ w("div", { className: "dtw-flex dtw-flex-col dtw-gap-1", children: [
|
|
7704
7704
|
/* @__PURE__ */ s("span", { children: e.updateOndoPricesStep }),
|
|
7705
7705
|
/* @__PURE__ */ s("span", { className: "dtw-text-xs dtw-text-[color:var(--panel-secondary-content-color)]", children: e.updateOndoPricesHint })
|
|
7706
7706
|
] }) : /* @__PURE__ */ s(
|
|
@@ -7744,7 +7744,7 @@ const XS = (e) => {
|
|
|
7744
7744
|
}
|
|
7745
7745
|
) : null;
|
|
7746
7746
|
}, aC = ({ type: e }) => {
|
|
7747
|
-
const { address: t, symbol: n } = y(), [{ link: r }, o] = Z(), { handleReject: a } = ie({ type: e }), [i] =
|
|
7747
|
+
const { address: t, symbol: n } = y(), [{ link: r }, o] = Z(), { handleReject: a } = ie({ type: e }), [i] = kn(), l = Ha(r);
|
|
7748
7748
|
return {
|
|
7749
7749
|
onClose: f(() => {
|
|
7750
7750
|
o({ isOpen: !1, status: "None" }), a();
|
|
@@ -7773,7 +7773,7 @@ const XS = (e) => {
|
|
|
7773
7773
|
o
|
|
7774
7774
|
] })
|
|
7775
7775
|
] }),
|
|
7776
|
-
i && i.length > 0 && /* @__PURE__ */ w(
|
|
7776
|
+
i && i.length > 0 && /* @__PURE__ */ w(L, { children: [
|
|
7777
7777
|
/* @__PURE__ */ s(Ye, {}),
|
|
7778
7778
|
/* @__PURE__ */ w("div", { className: "dtw-flex dtw-items-center dtw-justify-between dtw-gap-2 dtw-w-full", children: [
|
|
7779
7779
|
/* @__PURE__ */ s("p", { children: t.receivedLabel }),
|
|
@@ -7783,7 +7783,7 @@ const XS = (e) => {
|
|
|
7783
7783
|
] }, d.symbol)) })
|
|
7784
7784
|
] })
|
|
7785
7785
|
] }),
|
|
7786
|
-
n && /* @__PURE__ */ w(
|
|
7786
|
+
n && /* @__PURE__ */ w(L, { children: [
|
|
7787
7787
|
/* @__PURE__ */ s(Ye, {}),
|
|
7788
7788
|
/* @__PURE__ */ w("div", { className: "dtw-flex dtw-items-center dtw-justify-between dtw-gap-2 dtw-w-full", children: [
|
|
7789
7789
|
/* @__PURE__ */ s("p", { children: t.transactionLabel }),
|
|
@@ -7808,7 +7808,7 @@ const XS = (e) => {
|
|
|
7808
7808
|
return c ? /* @__PURE__ */ s(Xx, { type: e }) : i ? /* @__PURE__ */ s(qx, { type: e }) : l ? /* @__PURE__ */ s(sC, { type: e }) : d ? /* @__PURE__ */ s(oC, { type: e }) : /* @__PURE__ */ w(j.Notification, { onClose: r, children: [
|
|
7809
7809
|
/* @__PURE__ */ w("div", { className: "dtw-flex dtw-items-center dtw-gap-1.5", children: [
|
|
7810
7810
|
/* @__PURE__ */ s("span", { className: "dtw-font-semibold dtw-drop-shadow-md", children: n }),
|
|
7811
|
-
o ? /* @__PURE__ */ s(
|
|
7811
|
+
o ? /* @__PURE__ */ s(La, { className: "dtw-h-6 dtw-w-6 dtw-text-[color:var(--panel-success-content-color)]" }) : /* @__PURE__ */ s(p, { className: "dtw-h-5 dtw-w-5 " })
|
|
7812
7812
|
] }),
|
|
7813
7813
|
/* @__PURE__ */ s("div", { className: "dtw-font-light dtw-text-sm dtw-max-h-16 dtw-overflow-y-auto theme-scrollbar dtw-break-all", children: /* @__PURE__ */ s(nC, {}) }),
|
|
7814
7814
|
t && /* @__PURE__ */ s(
|
|
@@ -7976,7 +7976,7 @@ const XS = (e) => {
|
|
|
7976
7976
|
}
|
|
7977
7977
|
);
|
|
7978
7978
|
}, wa = !0, hC = (e) => {
|
|
7979
|
-
const { isWrongNetwork: t } = Ki(), n =
|
|
7979
|
+
const { isWrongNetwork: t } = Ki(), n = kn()[1], { data: r = [] } = ce(), o = zi({ isClaim: wa }), {
|
|
7980
7980
|
disabled: a,
|
|
7981
7981
|
label: i,
|
|
7982
7982
|
handleTrade: l
|
|
@@ -8468,16 +8468,16 @@ const dl = (e) => ({
|
|
|
8468
8468
|
}, PC = ({
|
|
8469
8469
|
price: e,
|
|
8470
8470
|
markPrice: t
|
|
8471
|
-
}) => new _(e).gt(t) ? `+${
|
|
8471
|
+
}) => new _(e).gt(t) ? `+${Lr((+e / +t - 1) * 100, 2)}` : "", OC = ({
|
|
8472
8472
|
price: e,
|
|
8473
8473
|
markPrice: t
|
|
8474
|
-
}) => new _(e).lt(t) ? `-${
|
|
8474
|
+
}) => new _(e).lt(t) ? `-${Lr((1 - +e / +t) * 100, 2)}` : "", LC = ({
|
|
8475
8475
|
error: e,
|
|
8476
8476
|
translationMap: t
|
|
8477
8477
|
}) => e ? e.title === Jc ? {
|
|
8478
8478
|
...e,
|
|
8479
8479
|
hint: t.invalidLimitOrderPriceError
|
|
8480
|
-
} : e : null,
|
|
8480
|
+
} : e : null, kC = () => {
|
|
8481
8481
|
const e = Be(), {
|
|
8482
8482
|
form: { upperLimitPrice: t, lowerLimitPrice: n, sellPercentage: r },
|
|
8483
8483
|
pricingAsset: o,
|
|
@@ -8538,8 +8538,8 @@ const dl = (e) => ({
|
|
|
8538
8538
|
onDisableSellPercentage: v,
|
|
8539
8539
|
coveredVaultAmount: g,
|
|
8540
8540
|
vaultSymbol: b
|
|
8541
|
-
} =
|
|
8542
|
-
return /* @__PURE__ */ s(
|
|
8541
|
+
} = kC();
|
|
8542
|
+
return /* @__PURE__ */ s(L, { children: /* @__PURE__ */ w("div", { className: "dtw-flex dtw-flex-col dtw-gap-[var(--limit-order-input-group-gap,var(--limit-order-gap))] dtw-px-[var(--limit-order-group-px)]", children: [
|
|
8543
8543
|
/* @__PURE__ */ s(
|
|
8544
8544
|
ll,
|
|
8545
8545
|
{
|
|
@@ -8658,7 +8658,7 @@ const dl = (e) => ({
|
|
|
8658
8658
|
(async () => {
|
|
8659
8659
|
if (u && t === "waiting-confirmation" && !a.current) {
|
|
8660
8660
|
a.current = !0, n("creating");
|
|
8661
|
-
const T =
|
|
8661
|
+
const T = kr[d] ?? 1e3;
|
|
8662
8662
|
await new Promise((x) => setTimeout(x, T));
|
|
8663
8663
|
try {
|
|
8664
8664
|
await e();
|
|
@@ -8815,7 +8815,7 @@ const dl = (e) => ({
|
|
|
8815
8815
|
return {
|
|
8816
8816
|
handleClick: m,
|
|
8817
8817
|
disabled: u,
|
|
8818
|
-
error:
|
|
8818
|
+
error: LC({
|
|
8819
8819
|
error: c,
|
|
8820
8820
|
translationMap: e
|
|
8821
8821
|
}),
|
|
@@ -9361,7 +9361,7 @@ const dl = (e) => ({
|
|
|
9361
9361
|
return e;
|
|
9362
9362
|
}
|
|
9363
9363
|
};
|
|
9364
|
-
function
|
|
9364
|
+
function Ce() {
|
|
9365
9365
|
}
|
|
9366
9366
|
const Tl = (e) => {
|
|
9367
9367
|
const [t] = e.depositTokens;
|
|
@@ -9391,17 +9391,17 @@ const Tl = (e) => {
|
|
|
9391
9391
|
depositTokens: []
|
|
9392
9392
|
})
|
|
9393
9393
|
), nE = () => Promise.resolve(), Sl = ue({
|
|
9394
|
-
setUpperLimitPrice:
|
|
9395
|
-
setLowerLimitPrice:
|
|
9396
|
-
setInputAmount:
|
|
9397
|
-
setSlippageBps:
|
|
9398
|
-
setDeadlineDays:
|
|
9399
|
-
setTermsAccepted:
|
|
9400
|
-
setInputToken:
|
|
9401
|
-
setIsSubmitting:
|
|
9402
|
-
reset:
|
|
9394
|
+
setUpperLimitPrice: Ce,
|
|
9395
|
+
setLowerLimitPrice: Ce,
|
|
9396
|
+
setInputAmount: Ce,
|
|
9397
|
+
setSlippageBps: Ce,
|
|
9398
|
+
setDeadlineDays: Ce,
|
|
9399
|
+
setTermsAccepted: Ce,
|
|
9400
|
+
setInputToken: Ce,
|
|
9401
|
+
setIsSubmitting: Ce,
|
|
9402
|
+
reset: Ce,
|
|
9403
9403
|
onSubmitOrder: nE,
|
|
9404
|
-
onLog:
|
|
9404
|
+
onLog: Ce
|
|
9405
9405
|
}), xl = ({ children: e, initialState: t, actions: n }) => {
|
|
9406
9406
|
const [r, o] = En(
|
|
9407
9407
|
tE,
|
|
@@ -9540,7 +9540,7 @@ const Tl = (e) => {
|
|
|
9540
9540
|
a(d), o("");
|
|
9541
9541
|
},
|
|
9542
9542
|
[a, o]
|
|
9543
|
-
), c =
|
|
9543
|
+
), c = Se({
|
|
9544
9544
|
symbol: n.symbol,
|
|
9545
9545
|
address: n.address,
|
|
9546
9546
|
watch: !0
|
|
@@ -9583,7 +9583,7 @@ const Tl = (e) => {
|
|
|
9583
9583
|
onClick: () => n(o),
|
|
9584
9584
|
children: [
|
|
9585
9585
|
/* @__PURE__ */ s(
|
|
9586
|
-
|
|
9586
|
+
ke,
|
|
9587
9587
|
{
|
|
9588
9588
|
symbols: [o.symbol],
|
|
9589
9589
|
size: "lg",
|
|
@@ -9607,7 +9607,7 @@ const Tl = (e) => {
|
|
|
9607
9607
|
inputAmountLabel: c,
|
|
9608
9608
|
balanceLabel: d
|
|
9609
9609
|
} = oE();
|
|
9610
|
-
return /* @__PURE__ */ w(
|
|
9610
|
+
return /* @__PURE__ */ w(L, { children: [
|
|
9611
9611
|
/* @__PURE__ */ w("div", { className: "dtw-px-3 dtw-py-2 dtw-flex dtw-flex-col dtw-gap-2 dtw-border dtw-border-[var(--limit-order-switch-panel-border-color)] dtw-rounded-[var(--limit-order-switch-panel-radius,var(--limit-order-radius))] dtw-bg-[color:var(--limit-order-secondary-color)]", children: [
|
|
9612
9612
|
/* @__PURE__ */ w("div", { className: "dtw-flex dtw-items-center dtw-justify-between", children: [
|
|
9613
9613
|
/* @__PURE__ */ s("span", { className: "dtw-text-[color:var(--limit-order-primary-content-color)] dtw-text-[length:var(--limit-order-font-size)]", children: c }),
|
|
@@ -9640,7 +9640,7 @@ const Tl = (e) => {
|
|
|
9640
9640
|
onClick: () => t(!0),
|
|
9641
9641
|
children: [
|
|
9642
9642
|
/* @__PURE__ */ s(
|
|
9643
|
-
|
|
9643
|
+
ke,
|
|
9644
9644
|
{
|
|
9645
9645
|
symbols: [o.symbol],
|
|
9646
9646
|
size: "xs",
|
|
@@ -9734,7 +9734,7 @@ const Tl = (e) => {
|
|
|
9734
9734
|
lowerLimitLabel: u,
|
|
9735
9735
|
lowerLimitSubtitle: m
|
|
9736
9736
|
} = rE();
|
|
9737
|
-
return /* @__PURE__ */ s(
|
|
9737
|
+
return /* @__PURE__ */ s(L, { children: /* @__PURE__ */ w("div", { className: "dtw-flex dtw-flex-col dtw-gap-[var(--limit-order-input-group-gap,var(--limit-order-gap))] dtw-px-[var(--limit-order-group-px)]", children: [
|
|
9738
9738
|
/* @__PURE__ */ s(
|
|
9739
9739
|
ll,
|
|
9740
9740
|
{
|
|
@@ -9832,14 +9832,14 @@ const Tl = (e) => {
|
|
|
9832
9832
|
slippageBps: b,
|
|
9833
9833
|
deadlineDays: T
|
|
9834
9834
|
}
|
|
9835
|
-
} = n, x = BigInt(Qe(g, m.decimals)), E = !!v, O = BigInt(!!h ? Qe(h, gn) : 0), K = E ? BigInt(Qe(v, gn)) : _e, re = mE(), J = wE(T),
|
|
9835
|
+
} = n, x = BigInt(Qe(g, m.decimals)), E = !!v, O = BigInt(!!h ? Qe(h, gn) : 0), K = E ? BigInt(Qe(v, gn)) : _e, re = mE(), J = wE(T), xe = {
|
|
9836
9836
|
owner: t,
|
|
9837
9837
|
targetVault: c,
|
|
9838
9838
|
pricingAsset: u.address,
|
|
9839
9839
|
minTriggerPriceD18: O,
|
|
9840
9840
|
maxTriggerPriceD18: K,
|
|
9841
9841
|
slippageToleranceBps: Number(b)
|
|
9842
|
-
},
|
|
9842
|
+
}, Le = {
|
|
9843
9843
|
permitted: {
|
|
9844
9844
|
token: m.address,
|
|
9845
9845
|
amount: x
|
|
@@ -9847,7 +9847,7 @@ const Tl = (e) => {
|
|
|
9847
9847
|
spender: p,
|
|
9848
9848
|
nonce: re,
|
|
9849
9849
|
deadline: BigInt(J),
|
|
9850
|
-
witness:
|
|
9850
|
+
witness: xe
|
|
9851
9851
|
};
|
|
9852
9852
|
i(!0);
|
|
9853
9853
|
try {
|
|
@@ -9860,9 +9860,9 @@ const Tl = (e) => {
|
|
|
9860
9860
|
domain: Te,
|
|
9861
9861
|
types: BT,
|
|
9862
9862
|
primaryType: "PermitWitnessTransferFrom",
|
|
9863
|
-
message:
|
|
9863
|
+
message: Le
|
|
9864
9864
|
}), oe = {
|
|
9865
|
-
order:
|
|
9865
|
+
order: xe,
|
|
9866
9866
|
permit: {
|
|
9867
9867
|
token: m.address,
|
|
9868
9868
|
amount: x.toString(),
|
|
@@ -9906,7 +9906,7 @@ const Tl = (e) => {
|
|
|
9906
9906
|
(async () => {
|
|
9907
9907
|
if (d && e === "waiting-confirmation" && !n.current) {
|
|
9908
9908
|
n.current = !0, t("signing");
|
|
9909
|
-
const g =
|
|
9909
|
+
const g = kr[c] ?? 1e3;
|
|
9910
9910
|
await new Promise((b) => setTimeout(b, g));
|
|
9911
9911
|
try {
|
|
9912
9912
|
await l();
|
|
@@ -9940,7 +9940,7 @@ const Tl = (e) => {
|
|
|
9940
9940
|
}, gE = () => {
|
|
9941
9941
|
const e = st(), {
|
|
9942
9942
|
form: { upperLimitPrice: t, lowerLimitPrice: n, inputAmount: r, slippageBps: o }
|
|
9943
|
-
} = Me(), { approveAndSign: a, isLoading: i, flowState: l, needsApproval: c } = _l(), d = hr(t) || hr(n), p = hr(r), u = Number(o), m = !isNaN(u) && u >=
|
|
9943
|
+
} = Me(), { approveAndSign: a, isLoading: i, flowState: l, needsApproval: c } = _l(), d = hr(t) || hr(n), p = hr(r), u = Number(o), m = !isNaN(u) && u >= LT && u <= kT;
|
|
9944
9944
|
return {
|
|
9945
9945
|
handleClick: a,
|
|
9946
9946
|
disabled: !d || !p || !m,
|
|
@@ -10143,7 +10143,7 @@ const Tl = (e) => {
|
|
|
10143
10143
|
),
|
|
10144
10144
|
n && /* @__PURE__ */ s(Na, { className: C("dtw-select-none", r), children: n })
|
|
10145
10145
|
] }), Ol = () => {
|
|
10146
|
-
const [e] =
|
|
10146
|
+
const [e] = k();
|
|
10147
10147
|
return new _(e.value || "0").shiftedBy(e.decimals);
|
|
10148
10148
|
}, CE = () => {
|
|
10149
10149
|
const { account: e = I } = R(), { address: t, chainId: n } = y(), r = X("limitOrder", n), o = Ol(), { data: a } = Qt({
|
|
@@ -10186,11 +10186,11 @@ const Tl = (e) => {
|
|
|
10186
10186
|
}) => {
|
|
10187
10187
|
const t = S(), { ActionButton: n = G } = $(), { isApproved: r, approveLimitOrder: o, isApprovePending: a } = IE();
|
|
10188
10188
|
return r ? e : /* @__PURE__ */ s(n, { onClick: o, loading: a, children: t.approve });
|
|
10189
|
-
},
|
|
10189
|
+
}, Ll = () => {
|
|
10190
10190
|
const { chainId: e, pricingAsset: t } = y();
|
|
10191
10191
|
return t ?? ed[e];
|
|
10192
10192
|
}, ba = "limit_order_withdraw", _E = (e) => {
|
|
10193
|
-
const { account: t = I } = R(), { address: n, chainId: r, symbol: o } = y(), a =
|
|
10193
|
+
const { account: t = I } = R(), { address: n, chainId: r, symbol: o } = y(), a = Ll(), i = se()[1], l = je({ action: ba }), c = f(
|
|
10194
10194
|
(...h) => {
|
|
10195
10195
|
l(...h), e();
|
|
10196
10196
|
},
|
|
@@ -10234,7 +10234,7 @@ const Tl = (e) => {
|
|
|
10234
10234
|
limitOrderHandler: e,
|
|
10235
10235
|
action: t
|
|
10236
10236
|
}) => {
|
|
10237
|
-
const n = S(), { showError: r } = It(), { account: o } = R(), a = y(), [i] =
|
|
10237
|
+
const n = S(), { showError: r } = It(), { account: o } = R(), a = y(), [i] = k(), l = Z()[1], c = se()[1], d = Ur(), p = t === "delete_limit_order_withdraw", u = async () => {
|
|
10238
10238
|
const m = a.chainId;
|
|
10239
10239
|
l({
|
|
10240
10240
|
isOpen: !0,
|
|
@@ -10267,7 +10267,7 @@ const Tl = (e) => {
|
|
|
10267
10267
|
label: p ? n.delete : n.withdrawAction,
|
|
10268
10268
|
handleLimitOrderWithdraw: u
|
|
10269
10269
|
};
|
|
10270
|
-
}, OE = "limit_order_withdraw",
|
|
10270
|
+
}, OE = "limit_order_withdraw", LE = () => {
|
|
10271
10271
|
const e = be(), t = ho("limit_order_withdraw"), n = f(
|
|
10272
10272
|
() => e({
|
|
10273
10273
|
type: "MERGE_OVERLAY",
|
|
@@ -10283,8 +10283,8 @@ const Tl = (e) => {
|
|
|
10283
10283
|
handleLimitOrderWithdraw: o,
|
|
10284
10284
|
isLoading: t
|
|
10285
10285
|
};
|
|
10286
|
-
},
|
|
10287
|
-
const { ActionButton: t = G } = $(), { label: n, handleLimitOrderWithdraw: r, isLoading: o } =
|
|
10286
|
+
}, kE = ({ disabled: e }) => {
|
|
10287
|
+
const { ActionButton: t = G } = $(), { label: n, handleLimitOrderWithdraw: r, isLoading: o } = LE();
|
|
10288
10288
|
return /* @__PURE__ */ s(
|
|
10289
10289
|
t,
|
|
10290
10290
|
{
|
|
@@ -10301,7 +10301,7 @@ const Tl = (e) => {
|
|
|
10301
10301
|
className: e
|
|
10302
10302
|
}) => {
|
|
10303
10303
|
const t = S();
|
|
10304
|
-
return /* @__PURE__ */ w(
|
|
10304
|
+
return /* @__PURE__ */ w(L, { children: [
|
|
10305
10305
|
/* @__PURE__ */ s("p", { children: t.limitOrderWithdrawDescription }),
|
|
10306
10306
|
/* @__PURE__ */ s(
|
|
10307
10307
|
"div",
|
|
@@ -10334,7 +10334,7 @@ const Tl = (e) => {
|
|
|
10334
10334
|
) })
|
|
10335
10335
|
] }),
|
|
10336
10336
|
/* @__PURE__ */ s(n, { highlighted: !1, onClick: r, children: t.back }),
|
|
10337
|
-
/* @__PURE__ */ s(NE, { children: /* @__PURE__ */ s(
|
|
10337
|
+
/* @__PURE__ */ s(NE, { children: /* @__PURE__ */ s(kE, { disabled: !o }) })
|
|
10338
10338
|
] }) });
|
|
10339
10339
|
}, BE = ({
|
|
10340
10340
|
isActive: e,
|
|
@@ -10446,7 +10446,7 @@ const Tl = (e) => {
|
|
|
10446
10446
|
return () => clearTimeout(r);
|
|
10447
10447
|
}, [e]), t;
|
|
10448
10448
|
}, zE = ({ type: e }) => {
|
|
10449
|
-
const { handleReject: t } = ie({ type: e }), [n] =
|
|
10449
|
+
const { handleReject: t } = ie({ type: e }), [n] = kn(), [{ status: r, action: o }] = Z(), { isCompleteWithdrawStep: a } = _t(), {
|
|
10450
10450
|
isUnrollAndClaimTransaction: i,
|
|
10451
10451
|
isFetching: l,
|
|
10452
10452
|
isFetched: c
|
|
@@ -10454,7 +10454,7 @@ const Tl = (e) => {
|
|
|
10454
10454
|
onErrorCallback: t
|
|
10455
10455
|
}), p = UE(d);
|
|
10456
10456
|
WE(t, r, o);
|
|
10457
|
-
const u = a ? Ft : d ? Mt : hn, m = n?.receiveTokens?.[0], h = n?.receiveTokens?.length === 1 && m?.symbol, v = m?.symbol !==
|
|
10457
|
+
const u = a ? Ft : d ? Mt : hn, m = n?.receiveTokens?.[0], h = n?.receiveTokens?.length === 1 && m?.symbol, v = m?.symbol !== Ae.symbol ? m?.amount : "";
|
|
10458
10458
|
return {
|
|
10459
10459
|
isUnrollAndClaimTransaction: i,
|
|
10460
10460
|
activeStepIndex: u,
|
|
@@ -10557,7 +10557,7 @@ const Tl = (e) => {
|
|
|
10557
10557
|
onError: i
|
|
10558
10558
|
}) => {
|
|
10559
10559
|
const l = S(), c = rt();
|
|
10560
|
-
return !e || !t ? /* @__PURE__ */ w(
|
|
10560
|
+
return !e || !t ? /* @__PURE__ */ w(L, { children: [
|
|
10561
10561
|
/* @__PURE__ */ s(
|
|
10562
10562
|
jt,
|
|
10563
10563
|
{
|
|
@@ -10576,7 +10576,7 @@ const Tl = (e) => {
|
|
|
10576
10576
|
label: l.swapToCompleteSell
|
|
10577
10577
|
}
|
|
10578
10578
|
)
|
|
10579
|
-
] }) : /* @__PURE__ */ w(
|
|
10579
|
+
] }) : /* @__PURE__ */ w(L, { children: [
|
|
10580
10580
|
/* @__PURE__ */ s(
|
|
10581
10581
|
jE,
|
|
10582
10582
|
{
|
|
@@ -10626,7 +10626,7 @@ const Tl = (e) => {
|
|
|
10626
10626
|
),
|
|
10627
10627
|
/* @__PURE__ */ w("div", { className: "dtw-flex dtw-flex-col dtw-items-center dtw-gap-2", children: [
|
|
10628
10628
|
/* @__PURE__ */ s(
|
|
10629
|
-
|
|
10629
|
+
ke,
|
|
10630
10630
|
{
|
|
10631
10631
|
symbols: [p?.sendToken?.symbol ?? ""],
|
|
10632
10632
|
size: "2xl"
|
|
@@ -10674,7 +10674,7 @@ const Tl = (e) => {
|
|
|
10674
10674
|
] });
|
|
10675
10675
|
}, YE = () => {
|
|
10676
10676
|
const e = S();
|
|
10677
|
-
return /* @__PURE__ */ w(
|
|
10677
|
+
return /* @__PURE__ */ w(L, { children: [
|
|
10678
10678
|
/* @__PURE__ */ s(
|
|
10679
10679
|
Ht,
|
|
10680
10680
|
{
|
|
@@ -10688,7 +10688,7 @@ const Tl = (e) => {
|
|
|
10688
10688
|
{
|
|
10689
10689
|
label: e.tokenAllowance,
|
|
10690
10690
|
tooltipText: e.toggleTokenApprovalAmount,
|
|
10691
|
-
children: /* @__PURE__ */ s(
|
|
10691
|
+
children: /* @__PURE__ */ s(ki, {})
|
|
10692
10692
|
}
|
|
10693
10693
|
),
|
|
10694
10694
|
/* @__PURE__ */ s(Di, {})
|
|
@@ -10740,7 +10740,7 @@ const Tl = (e) => {
|
|
|
10740
10740
|
};
|
|
10741
10741
|
}, ZE = () => {
|
|
10742
10742
|
const e = S(), { assets: t, usdAmount: n, withdrawalVaultLink: r } = XE();
|
|
10743
|
-
return /* @__PURE__ */ w(
|
|
10743
|
+
return /* @__PURE__ */ w(L, { children: [
|
|
10744
10744
|
/* @__PURE__ */ w("div", { className: "dtw-text-sm dtw-flex dtw-items-center dtw-gap-1", children: [
|
|
10745
10745
|
/* @__PURE__ */ s("span", { className: "dtw-text-[color:var(--panel-secondary-content-color)]", children: e.total }),
|
|
10746
10746
|
/* @__PURE__ */ s(
|
|
@@ -10854,7 +10854,7 @@ const Tl = (e) => {
|
|
|
10854
10854
|
}, aI = ({ children: e }) => /* @__PURE__ */ w(j.Meta, { children: [
|
|
10855
10855
|
/* @__PURE__ */ s("div", { className: "dtw-bg-[var(--panel-meta-action-panel-bg)]", children: e }),
|
|
10856
10856
|
/* @__PURE__ */ s(oI, {})
|
|
10857
|
-
] }), sI = () => (ox(), /* @__PURE__ */ w(
|
|
10857
|
+
] }), sI = () => (ox(), /* @__PURE__ */ w(L, { children: [
|
|
10858
10858
|
/* @__PURE__ */ w(j.InputGroup, { children: [
|
|
10859
10859
|
/* @__PURE__ */ s(ZE, {}),
|
|
10860
10860
|
/* @__PURE__ */ s(nI, {})
|
|
@@ -10867,7 +10867,7 @@ const Tl = (e) => {
|
|
|
10867
10867
|
const { chainId: e, address: t } = y(), { exitFeeNumber: n } = lo({
|
|
10868
10868
|
address: t,
|
|
10869
10869
|
chainId: e
|
|
10870
|
-
}), [r] =
|
|
10870
|
+
}), [r] = k(), [o, a] = M(), i = fe({ address: t, chainId: e }), l = pe({
|
|
10871
10871
|
address: o.address,
|
|
10872
10872
|
chainId: e
|
|
10873
10873
|
});
|
|
@@ -10928,8 +10928,8 @@ const Tl = (e) => {
|
|
|
10928
10928
|
], vr = {
|
|
10929
10929
|
requiresLeveragedCollateralLiquidity: !1,
|
|
10930
10930
|
leveragedCollateralValueFormatted: "$0"
|
|
10931
|
-
}, fr = (e) => _(e.amount).shiftedBy(-e.precision).times(e.rate).shiftedBy(-F).toNumber(),
|
|
10932
|
-
const e = y(), t = Et(e), [n] =
|
|
10931
|
+
}, fr = (e) => _(e.amount).shiftedBy(-e.precision).times(e.rate).shiftedBy(-F).toNumber(), kl = () => {
|
|
10932
|
+
const e = y(), t = Et(e), [n] = k(), r = fe(e), o = t.find(
|
|
10933
10933
|
({ tokenAddress: u, amount: m }) => gr.some(
|
|
10934
10934
|
(h) => h.isLeveragedAsset(u) && m !== "0"
|
|
10935
10935
|
)
|
|
@@ -10975,10 +10975,10 @@ const Tl = (e) => {
|
|
|
10975
10975
|
})
|
|
10976
10976
|
};
|
|
10977
10977
|
}, Dl = () => {
|
|
10978
|
-
const { chainId: e, onDemandWithdrawalEnabled: t } = y(), { requiresLeveragedCollateralLiquidity: n } =
|
|
10978
|
+
const { chainId: e, onDemandWithdrawalEnabled: t } = y(), { requiresLeveragedCollateralLiquidity: n } = kl(), r = Hn(), o = Ll();
|
|
10979
10979
|
return n && !!o && !!t && (e === Pn.id || !r);
|
|
10980
10980
|
}, dI = () => {
|
|
10981
|
-
const { address: e, chainId: t, maintenance: n, maintenanceWithdrawals: r, symbol: o } = y(), [a] =
|
|
10981
|
+
const { address: e, chainId: t, maintenance: n, maintenanceWithdrawals: r, symbol: o } = y(), [a] = k(), i = be(), l = Dl(), c = Gn(), { data: d = 0 } = dT({
|
|
10982
10982
|
address: e,
|
|
10983
10983
|
chainId: t
|
|
10984
10984
|
}), p = d > 0, u = ps(
|
|
@@ -11042,7 +11042,7 @@ const Tl = (e) => {
|
|
|
11042
11042
|
`${Math.abs(l)}`
|
|
11043
11043
|
) }) : e;
|
|
11044
11044
|
}, uI = () => {
|
|
11045
|
-
const { address: e, chainId: t } = y(), [n, r] =
|
|
11045
|
+
const { address: e, chainId: t } = y(), [n, r] = k(), o = Se({
|
|
11046
11046
|
symbol: n.symbol,
|
|
11047
11047
|
address: n.address
|
|
11048
11048
|
}), a = fe({ address: e, chainId: t });
|
|
@@ -11058,7 +11058,7 @@ const Tl = (e) => {
|
|
|
11058
11058
|
...t,
|
|
11059
11059
|
updater: n,
|
|
11060
11060
|
price: r,
|
|
11061
|
-
displayCalculatedValue: t.symbol !==
|
|
11061
|
+
displayCalculatedValue: t.symbol !== Ae.symbol
|
|
11062
11062
|
};
|
|
11063
11063
|
}, wI = () => {
|
|
11064
11064
|
const e = uI(), t = mI();
|
|
@@ -11071,7 +11071,7 @@ const Tl = (e) => {
|
|
|
11071
11071
|
};
|
|
11072
11072
|
}, hI = () => {
|
|
11073
11073
|
const { sendToken: e, onInputChange: t, receiveToken: n } = wI();
|
|
11074
|
-
return /* @__PURE__ */ w(
|
|
11074
|
+
return /* @__PURE__ */ w(L, { children: [
|
|
11075
11075
|
/* @__PURE__ */ s(
|
|
11076
11076
|
Vt,
|
|
11077
11077
|
{
|
|
@@ -11184,7 +11184,7 @@ const Tl = (e) => {
|
|
|
11184
11184
|
slippageTooltipText: en(a) === H.DEFAULT ? e.withdrawSlippageWarning : e.highSlippageWarning,
|
|
11185
11185
|
isMaxSlippageLoading: r,
|
|
11186
11186
|
slippagePlaceholder: `${a}%`,
|
|
11187
|
-
exitFee:
|
|
11187
|
+
exitFee: Lr(o, 2),
|
|
11188
11188
|
minReceivedText: e.estimatedMultiAssetFractions,
|
|
11189
11189
|
showMinReceivedText: i
|
|
11190
11190
|
};
|
|
@@ -11250,10 +11250,10 @@ const Tl = (e) => {
|
|
|
11250
11250
|
const { WithdrawMetaInfo: t, AvailableLiquidityAlert: n, OnDemandWithdrawAlert: r } = $(), {
|
|
11251
11251
|
requiresLeveragedCollateralLiquidity: o,
|
|
11252
11252
|
leveragedCollateralValueFormatted: a
|
|
11253
|
-
} =
|
|
11253
|
+
} = kl(), i = Dl();
|
|
11254
11254
|
return /* @__PURE__ */ w(j.Meta, { children: [
|
|
11255
11255
|
/* @__PURE__ */ s(bI, {}),
|
|
11256
|
-
/* @__PURE__ */ s("div", { children: o ? i ? /* @__PURE__ */ s(
|
|
11256
|
+
/* @__PURE__ */ s("div", { children: o ? i ? /* @__PURE__ */ s(L, { children: !!r && /* @__PURE__ */ s(r, {}) }) : /* @__PURE__ */ s(L, { children: !!n && /* @__PURE__ */ s(
|
|
11257
11257
|
n,
|
|
11258
11258
|
{
|
|
11259
11259
|
liquidityAmount: a
|
|
@@ -11265,7 +11265,7 @@ const Tl = (e) => {
|
|
|
11265
11265
|
] });
|
|
11266
11266
|
}, SI = () => {
|
|
11267
11267
|
const e = S();
|
|
11268
|
-
return iI(), /* @__PURE__ */ w(
|
|
11268
|
+
return iI(), /* @__PURE__ */ w(L, { children: [
|
|
11269
11269
|
/* @__PURE__ */ s(j.InputGroup, { children: /* @__PURE__ */ s(hI, {}) }),
|
|
11270
11270
|
/* @__PURE__ */ s(AI, { children: /* @__PURE__ */ s(fo, { children: /* @__PURE__ */ w("div", { className: "dtw-flex dtw-flex-col dtw-gap-2 dtw-w-full", children: [
|
|
11271
11271
|
/* @__PURE__ */ s(pI, { children: /* @__PURE__ */ s(Zi, {}) }),
|
|
@@ -11330,8 +11330,8 @@ const Tl = (e) => {
|
|
|
11330
11330
|
}
|
|
11331
11331
|
),
|
|
11332
11332
|
/* @__PURE__ */ w(Ox, { children: [
|
|
11333
|
-
/* @__PURE__ */ s(
|
|
11334
|
-
/* @__PURE__ */ s(
|
|
11333
|
+
/* @__PURE__ */ s(Lx, { type: U.TERMS_OF_USE }),
|
|
11334
|
+
/* @__PURE__ */ s(kx, { type: U.HIGH_SLIPPAGE }),
|
|
11335
11335
|
/* @__PURE__ */ s(Dx, { type: U.HYPEREVM_WARNING }),
|
|
11336
11336
|
/* @__PURE__ */ s(Ux, { type: U.TOKEN_SELECT, searchQuery: "" }),
|
|
11337
11337
|
/* @__PURE__ */ s(Vx, { type: U.POOL_SELECT, searchQuery: "" }),
|
|
@@ -11343,7 +11343,7 @@ const Tl = (e) => {
|
|
|
11343
11343
|
/* @__PURE__ */ s(fC, { type: U.ERROR_NOTIFICATION })
|
|
11344
11344
|
] })
|
|
11345
11345
|
] });
|
|
11346
|
-
},
|
|
11346
|
+
}, LI = ({
|
|
11347
11347
|
children: e,
|
|
11348
11348
|
config: t,
|
|
11349
11349
|
className: n
|
|
@@ -11596,14 +11596,14 @@ const Tl = (e) => {
|
|
|
11596
11596
|
},
|
|
11597
11597
|
children: e
|
|
11598
11598
|
}
|
|
11599
|
-
),
|
|
11599
|
+
), kI = ({
|
|
11600
11600
|
children: e,
|
|
11601
11601
|
config: t,
|
|
11602
11602
|
theme: n,
|
|
11603
11603
|
components: r,
|
|
11604
11604
|
translation: o,
|
|
11605
11605
|
className: a
|
|
11606
|
-
}) => /* @__PURE__ */ s(xd, { config: o, children: /* @__PURE__ */ s(
|
|
11606
|
+
}) => /* @__PURE__ */ s(xd, { config: o, children: /* @__PURE__ */ s(LI, { config: n, className: a, children: /* @__PURE__ */ s(qb, { config: t, children: /* @__PURE__ */ s(ty, { config: r, children: /* @__PURE__ */ s(NT, { children: e }) }) }) }) }), TN = (e) => /* @__PURE__ */ s(kI, { ...e, children: /* @__PURE__ */ s(OI, {}) }), Rl = ({
|
|
11607
11607
|
title: e,
|
|
11608
11608
|
children: t,
|
|
11609
11609
|
className: n,
|
|
@@ -11648,7 +11648,7 @@ const Tl = (e) => {
|
|
|
11648
11648
|
r
|
|
11649
11649
|
),
|
|
11650
11650
|
onClose: t,
|
|
11651
|
-
children: /* @__PURE__ */ s(o, { children: /* @__PURE__ */ w(
|
|
11651
|
+
children: /* @__PURE__ */ s(o, { children: /* @__PURE__ */ w(L, { children: [
|
|
11652
11652
|
/* @__PURE__ */ s(ql, { className: "dtw-fixed dtw-inset-0 dtw-backdrop-blur-md dtw-backdrop-brightness-75 dtw-backdrop-filter" }),
|
|
11653
11653
|
/* @__PURE__ */ s(
|
|
11654
11654
|
"div",
|
|
@@ -11687,7 +11687,7 @@ const Tl = (e) => {
|
|
|
11687
11687
|
({ children: c }) => /* @__PURE__ */ s(Jn, { config: t, children: c }),
|
|
11688
11688
|
[t]
|
|
11689
11689
|
);
|
|
11690
|
-
return /* @__PURE__ */ w(
|
|
11690
|
+
return /* @__PURE__ */ w(L, { children: [
|
|
11691
11691
|
e({ onClick: n, isTransactionPending: a }),
|
|
11692
11692
|
/* @__PURE__ */ s(
|
|
11693
11693
|
$l,
|
|
@@ -11746,7 +11746,7 @@ const Tl = (e) => {
|
|
|
11746
11746
|
({ children: l }) => /* @__PURE__ */ s(Jn, { config: t, children: l }),
|
|
11747
11747
|
[t]
|
|
11748
11748
|
);
|
|
11749
|
-
return /* @__PURE__ */ w(
|
|
11749
|
+
return /* @__PURE__ */ w(L, { children: [
|
|
11750
11750
|
e({ onClick: r }),
|
|
11751
11751
|
/* @__PURE__ */ s(
|
|
11752
11752
|
$l,
|
|
@@ -11823,8 +11823,8 @@ export {
|
|
|
11823
11823
|
ON as AaveLendingPoolAbi,
|
|
11824
11824
|
I as AddressZero,
|
|
11825
11825
|
Ya as BRIDGED_TOKENS_SYMBOLS,
|
|
11826
|
-
|
|
11827
|
-
|
|
11826
|
+
LN as BRIDGED_USDC_ARBITRUM,
|
|
11827
|
+
kN as BRIDGED_USDC_OPTIMISM,
|
|
11828
11828
|
DN as BRIDGED_USDC_POLYGON,
|
|
11829
11829
|
RN as CBBTC_BASE,
|
|
11830
11830
|
$N as CBETH_BASE,
|
|
@@ -11848,11 +11848,11 @@ export {
|
|
|
11848
11848
|
Co as DEFAULT_SIMULATION_ERROR,
|
|
11849
11849
|
Ka as DEFAULT_WITHDRAW_SLIPPAGE,
|
|
11850
11850
|
BT as EIP712_TYPES,
|
|
11851
|
-
|
|
11851
|
+
Lc as EMPTY_POOL_CONFIG,
|
|
11852
11852
|
Ze as EasySwapperV2Abi,
|
|
11853
11853
|
wt as EstimationError,
|
|
11854
11854
|
xo as GAS_ESTIMATION_ERROR,
|
|
11855
|
-
|
|
11855
|
+
kc as GAS_LIMIT_BUFFER_COEFF,
|
|
11856
11856
|
ei as GET_ALL_LIMIT_SELL_ORDER_IDS_FUNCTION_NAME,
|
|
11857
11857
|
GN as GMX_MARKET_ASSETS,
|
|
11858
11858
|
HN as GMX_MARKET_ASSETS_MAP,
|
|
@@ -11865,9 +11865,9 @@ export {
|
|
|
11865
11865
|
TE as LimitBuyOverlay,
|
|
11866
11866
|
ss as LimitOrderAbi,
|
|
11867
11867
|
AN as LimitSellOrderModal,
|
|
11868
|
-
|
|
11868
|
+
Ee as MANAGER_FEE_DENOMINATOR,
|
|
11869
11869
|
cn as MAX_GAS_LIMIT_MAP,
|
|
11870
|
-
|
|
11870
|
+
Ae as MULTI_ASSET_TOKEN,
|
|
11871
11871
|
_e as MaxUint256,
|
|
11872
11872
|
qN as NATIVE_TOKEN_DEPOSIT_GAS_LIMIT,
|
|
11873
11873
|
Wr as OndoApiError,
|
|
@@ -11933,7 +11933,7 @@ export {
|
|
|
11933
11933
|
V_ as formatEther,
|
|
11934
11934
|
Ge as formatNumberToLimitedDecimals,
|
|
11935
11935
|
ln as formatNumeratorToPercentage,
|
|
11936
|
-
|
|
11936
|
+
Lr as formatPercentage,
|
|
11937
11937
|
ne as formatToUsd,
|
|
11938
11938
|
j_ as formatUnits,
|
|
11939
11939
|
sc as getContractAbiById,
|
|
@@ -11947,7 +11947,7 @@ export {
|
|
|
11947
11947
|
q_ as hexToString,
|
|
11948
11948
|
So as isAaveLendAndBorrowAsset,
|
|
11949
11949
|
Q as isEqualAddress,
|
|
11950
|
-
|
|
11950
|
+
kb as isErrorWithMessage,
|
|
11951
11951
|
dc as isFmpAirdropVaultAddress,
|
|
11952
11952
|
_r as isNativeToken,
|
|
11953
11953
|
V as isZeroAddress,
|
|
@@ -11971,7 +11971,7 @@ export {
|
|
|
11971
11971
|
Jy as useCheckWhitelist,
|
|
11972
11972
|
at as useCompleteWithdrawSwapQuotes,
|
|
11973
11973
|
ce as useCompleteWithdrawTrackedAssets,
|
|
11974
|
-
|
|
11974
|
+
L_ as useConnect,
|
|
11975
11975
|
ve as useContractFunction,
|
|
11976
11976
|
eT as useContractPoolComposition,
|
|
11977
11977
|
Js as useContractReadErrorLogging,
|
|
@@ -11980,9 +11980,9 @@ export {
|
|
|
11980
11980
|
_i as useDebounce,
|
|
11981
11981
|
PS as useDepositLockTime,
|
|
11982
11982
|
fA as useDepositProjectedEarnings,
|
|
11983
|
-
|
|
11983
|
+
k_ as useDisconnect,
|
|
11984
11984
|
TA as useEasySwapperTrackedAssets,
|
|
11985
|
-
|
|
11985
|
+
Ln as useEffectiveAggregators,
|
|
11986
11986
|
XT as useExchangeRate,
|
|
11987
11987
|
bN as useFlatmoneyPointsUserBalances,
|
|
11988
11988
|
Bb as useGasPrice,
|
|
@@ -12025,7 +12025,7 @@ export {
|
|
|
12025
12025
|
$_ as useReadContracts,
|
|
12026
12026
|
M as useReceiveTokenInput,
|
|
12027
12027
|
_A as useReferralAddress,
|
|
12028
|
-
|
|
12028
|
+
k as useSendTokenInput,
|
|
12029
12029
|
B_ as useSendTransaction,
|
|
12030
12030
|
sN as useSetPoolAddress,
|
|
12031
12031
|
dN as useSetTradingType,
|
|
@@ -12053,7 +12053,7 @@ export {
|
|
|
12053
12053
|
cN as useUpdateTradingSettings,
|
|
12054
12054
|
Qy as useUserBalancesDynamic,
|
|
12055
12055
|
an as useUserLimitSellOrder,
|
|
12056
|
-
|
|
12056
|
+
Se as useUserTokenBalance,
|
|
12057
12057
|
mT as useUserVaultBalance,
|
|
12058
12058
|
uT as useUserVaultsBalances,
|
|
12059
12059
|
fN as useVaultContractData,
|
|
@@ -12062,7 +12062,7 @@ export {
|
|
|
12062
12062
|
sT as useVaultVestedPoints,
|
|
12063
12063
|
M_ as useWaitForTransactionReceipt,
|
|
12064
12064
|
F_ as useWalletClient,
|
|
12065
|
-
|
|
12065
|
+
kn as useWithdrawAction,
|
|
12066
12066
|
W_ as useWriteContract,
|
|
12067
12067
|
NN as validateLoggerEventParams
|
|
12068
12068
|
};
|