@dhedge/trading-widget 6.0.0 → 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 +310 -302
- package/ondo-BnkOJgHw.cjs +1 -0
- package/{ondo-v5VUY6Q9.js → ondo-Cl97ID2o.js} +193 -188
- package/package.json +1 -1
- package/trading-widget/providers/component-provider/component-provider.d.ts +3 -0
- package/trading-widget/providers/component-provider/component-provider.hooks.d.ts +3 -0
- package/trading-widget/providers/component-provider/component-provider.types.d.ts +3 -0
- 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,46 +3731,48 @@ 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 = ""
|
|
3738
3738
|
}) => {
|
|
3739
|
-
const { Image: r = ci } = $(),
|
|
3740
|
-
[
|
|
3741
|
-
}), { height:
|
|
3742
|
-
if (
|
|
3743
|
-
|
|
3744
|
-
|
|
3739
|
+
const { Image: r = ci, customIcons: o } = $(), a = e.join(""), [i, l] = W({
|
|
3740
|
+
[a]: !1
|
|
3741
|
+
}), { height: c, width: d, diameter: p } = zT(t), u = e.length === 1 ? o?.[e[0]] : void 0, m = CT(u ? [] : e);
|
|
3742
|
+
if (u)
|
|
3743
|
+
return /* @__PURE__ */ s(u, { className: C(c, d, n) });
|
|
3744
|
+
if (!m?.length || !m[0] || i[a]) return null;
|
|
3745
|
+
const h = () => l((v) => ({ ...v, [a]: !0 }));
|
|
3746
|
+
return m.length === 1 ? /* @__PURE__ */ s(
|
|
3745
3747
|
r,
|
|
3746
3748
|
{
|
|
3747
|
-
src:
|
|
3749
|
+
src: m[0],
|
|
3748
3750
|
alt: `${e[0]} icon`,
|
|
3749
|
-
className: C(
|
|
3750
|
-
width:
|
|
3751
|
-
height:
|
|
3752
|
-
onError:
|
|
3751
|
+
className: C(c, d, n),
|
|
3752
|
+
width: p,
|
|
3753
|
+
height: p,
|
|
3754
|
+
onError: h
|
|
3753
3755
|
}
|
|
3754
3756
|
) : /* @__PURE__ */ s(
|
|
3755
3757
|
"span",
|
|
3756
3758
|
{
|
|
3757
|
-
className: `dtw-flex-no-wrap dtw-z-0 dtw-flex ${
|
|
3758
|
-
children:
|
|
3759
|
+
className: `dtw-flex-no-wrap dtw-z-0 dtw-flex ${c} ${n}`,
|
|
3760
|
+
children: m.map((v, g) => /* @__PURE__ */ s(
|
|
3759
3761
|
r,
|
|
3760
3762
|
{
|
|
3761
|
-
src:
|
|
3762
|
-
alt: `${e[
|
|
3763
|
+
src: v,
|
|
3764
|
+
alt: `${e[g]} icon`,
|
|
3763
3765
|
className: C(
|
|
3764
3766
|
"dtw-inline-block dtw-overflow-visible dtw-rounded-full",
|
|
3767
|
+
d,
|
|
3765
3768
|
c,
|
|
3766
|
-
|
|
3767
|
-
UT(h, e.length)
|
|
3769
|
+
UT(g, e.length)
|
|
3768
3770
|
),
|
|
3769
|
-
width:
|
|
3770
|
-
height:
|
|
3771
|
-
onError:
|
|
3771
|
+
width: p,
|
|
3772
|
+
height: p,
|
|
3773
|
+
onError: h
|
|
3772
3774
|
},
|
|
3773
|
-
|
|
3775
|
+
g
|
|
3774
3776
|
))
|
|
3775
3777
|
}
|
|
3776
3778
|
);
|
|
@@ -3783,7 +3785,7 @@ const ST = /* @__PURE__ */ Dn(AT), gi = ({
|
|
|
3783
3785
|
customTitle: a,
|
|
3784
3786
|
className: i
|
|
3785
3787
|
}) => {
|
|
3786
|
-
const l = S(), c = a || (e ===
|
|
3788
|
+
const l = S(), c = a || (e === Ae.symbol ? l.allAssets : e);
|
|
3787
3789
|
return /* @__PURE__ */ w(
|
|
3788
3790
|
"div",
|
|
3789
3791
|
{
|
|
@@ -3793,7 +3795,7 @@ const ST = /* @__PURE__ */ Dn(AT), gi = ({
|
|
|
3793
3795
|
),
|
|
3794
3796
|
children: [
|
|
3795
3797
|
o ?? /* @__PURE__ */ s(
|
|
3796
|
-
|
|
3798
|
+
ke,
|
|
3797
3799
|
{
|
|
3798
3800
|
size: n,
|
|
3799
3801
|
symbols: t,
|
|
@@ -3966,17 +3968,16 @@ function Kn(e, t, n) {
|
|
|
3966
3968
|
}
|
|
3967
3969
|
}
|
|
3968
3970
|
const qT = ({
|
|
3969
|
-
|
|
3970
|
-
|
|
3971
|
-
|
|
3972
|
-
error: r
|
|
3971
|
+
chainId: e,
|
|
3972
|
+
txHash: t,
|
|
3973
|
+
error: n
|
|
3973
3974
|
}) => {
|
|
3974
|
-
if (e !==
|
|
3975
|
+
if (e !== On.id || !t || !n)
|
|
3975
3976
|
return !1;
|
|
3976
|
-
const
|
|
3977
|
-
return
|
|
3977
|
+
const r = n instanceof Error ? n.message : String(n);
|
|
3978
|
+
return /\bNo Result\b/i.test(r);
|
|
3978
3979
|
}, KT = () => {
|
|
3979
|
-
const [e, t] = se(), n = Z()[1], r = Vd(), o = qd(), [a] = e, i = a?.txHash, l = a?.action, c = l === "approve", d = a?.chainId, { invalidateTradingQueries: p, invalidateAllowanceQueries: u } = Zt(), { data: m, error: h } = mt({
|
|
3980
|
+
const [e, t] = se(), n = Z()[1], r = Vd(), o = qd(), [a] = e, i = a?.txHash, l = a?.action, c = l === "approve", d = a?.chainId, { invalidateTradingQueries: p, invalidateAllowanceQueries: u } = Zt(), { data: m, error: h, refetch: v } = mt({
|
|
3980
3981
|
hash: i,
|
|
3981
3982
|
chainId: d,
|
|
3982
3983
|
pollingInterval: Gt,
|
|
@@ -3984,19 +3985,19 @@ const qT = ({
|
|
|
3984
3985
|
});
|
|
3985
3986
|
N(() => {
|
|
3986
3987
|
if (!m) return;
|
|
3987
|
-
const
|
|
3988
|
-
const
|
|
3989
|
-
if (
|
|
3990
|
-
const
|
|
3991
|
-
l !== "update_ondo_prices" && (n({ link:
|
|
3988
|
+
const g = () => {
|
|
3989
|
+
const T = m.transactionHash;
|
|
3990
|
+
if (T) {
|
|
3991
|
+
const x = Kn(T, "transaction", d);
|
|
3992
|
+
l !== "update_ondo_prices" && (n({ link: x, status: "Success", action: l }), o?.(m, l, x)), t({ type: "remove", status: "success", txHash: T });
|
|
3992
3993
|
}
|
|
3993
3994
|
c ? u() : p();
|
|
3994
|
-
},
|
|
3995
|
-
if (
|
|
3996
|
-
const
|
|
3997
|
-
return () => clearTimeout(
|
|
3995
|
+
}, b = d ? kr[d] ?? 0 : 0;
|
|
3996
|
+
if (b > 0) {
|
|
3997
|
+
const T = setTimeout(g, b);
|
|
3998
|
+
return () => clearTimeout(T);
|
|
3998
3999
|
} else
|
|
3999
|
-
|
|
4000
|
+
g();
|
|
4000
4001
|
}, [
|
|
4001
4002
|
m,
|
|
4002
4003
|
c,
|
|
@@ -4008,14 +4009,20 @@ const qT = ({
|
|
|
4008
4009
|
u,
|
|
4009
4010
|
p
|
|
4010
4011
|
]), N(() => {
|
|
4011
|
-
|
|
4012
|
-
|
|
4013
|
-
|
|
4014
|
-
|
|
4015
|
-
|
|
4016
|
-
|
|
4017
|
-
|
|
4018
|
-
|
|
4012
|
+
if (h) {
|
|
4013
|
+
if (qT({ chainId: d, txHash: i, error: h })) {
|
|
4014
|
+
v();
|
|
4015
|
+
return;
|
|
4016
|
+
}
|
|
4017
|
+
n({
|
|
4018
|
+
isOpen: !1,
|
|
4019
|
+
status: "None",
|
|
4020
|
+
link: "",
|
|
4021
|
+
action: l,
|
|
4022
|
+
sendTokens: null,
|
|
4023
|
+
receiveTokens: null
|
|
4024
|
+
}), t({ type: "remove", status: "fail" }), r?.(h, l, d, i);
|
|
4025
|
+
}
|
|
4019
4026
|
}, [
|
|
4020
4027
|
h,
|
|
4021
4028
|
c,
|
|
@@ -4024,14 +4031,15 @@ const qT = ({
|
|
|
4024
4031
|
i,
|
|
4025
4032
|
n,
|
|
4026
4033
|
t,
|
|
4027
|
-
r
|
|
4034
|
+
r,
|
|
4035
|
+
v
|
|
4028
4036
|
]);
|
|
4029
4037
|
}, je = ({
|
|
4030
4038
|
action: e,
|
|
4031
4039
|
onErrorCallback: t,
|
|
4032
4040
|
onSuccessCallback: n
|
|
4033
4041
|
}) => {
|
|
4034
|
-
const [, r] = Z(), [, o] = se(), [, a] =
|
|
4042
|
+
const [, r] = Z(), [, o] = se(), [, a] = k(), i = jd();
|
|
4035
4043
|
return f(
|
|
4036
4044
|
(l, c, d) => {
|
|
4037
4045
|
if (c) {
|
|
@@ -4096,7 +4104,7 @@ const qT = ({
|
|
|
4096
4104
|
});
|
|
4097
4105
|
return he(o ?? BigInt(0), F);
|
|
4098
4106
|
}, YT = () => {
|
|
4099
|
-
const [e] =
|
|
4107
|
+
const [e] = k(), [t] = M(), n = Se({
|
|
4100
4108
|
address: e.address,
|
|
4101
4109
|
symbol: e.symbol
|
|
4102
4110
|
}), r = new _(e.value), o = new _(
|
|
@@ -4106,7 +4114,7 @@ const qT = ({
|
|
|
4106
4114
|
};
|
|
4107
4115
|
function QT(e, t, n, r) {
|
|
4108
4116
|
try {
|
|
4109
|
-
if (t ===
|
|
4117
|
+
if (t === Ae.symbol)
|
|
4110
4118
|
return "";
|
|
4111
4119
|
const o = Number(n), a = Number(r);
|
|
4112
4120
|
return o === 0 || a === 0 || !isFinite(o) || !isFinite(a) ? "" : `1 ${e} = ${(a / o).toFixed(
|
|
@@ -4117,7 +4125,7 @@ function QT(e, t, n, r) {
|
|
|
4117
4125
|
}
|
|
4118
4126
|
}
|
|
4119
4127
|
const XT = () => {
|
|
4120
|
-
const [e] =
|
|
4128
|
+
const [e] = k(), [t] = M();
|
|
4121
4129
|
return {
|
|
4122
4130
|
value: QT(
|
|
4123
4131
|
e.symbol,
|
|
@@ -4129,11 +4137,11 @@ const XT = () => {
|
|
|
4129
4137
|
};
|
|
4130
4138
|
}, rt = () => {
|
|
4131
4139
|
const e = !et(), [{ symbol: t }] = M(), [{ isMultiAssetWithdrawalEnabled: n }] = ee();
|
|
4132
|
-
return e && n && t ===
|
|
4140
|
+
return e && n && t === Ae.symbol;
|
|
4133
4141
|
}, Yn = ({
|
|
4134
4142
|
onErrorCallback: e
|
|
4135
4143
|
} = {}) => {
|
|
4136
|
-
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({
|
|
4137
4145
|
tokenAddress: o.address,
|
|
4138
4146
|
ownerAddress: t ?? I,
|
|
4139
4147
|
spenderAddress: i,
|
|
@@ -4203,7 +4211,7 @@ const XT = () => {
|
|
|
4203
4211
|
signal: n,
|
|
4204
4212
|
buildKey: pc
|
|
4205
4213
|
}), tA = (e, t) => {
|
|
4206
|
-
const n = zr(), { effectiveSelectedAggregators: r } =
|
|
4214
|
+
const n = zr(), { effectiveSelectedAggregators: r } = Ln();
|
|
4207
4215
|
return _n({
|
|
4208
4216
|
queryKey: ["getSwapsQuotes", e, r],
|
|
4209
4217
|
queryFn: async ({ signal: o, queryKey: [, a] }) => await Ni({
|
|
@@ -4417,7 +4425,7 @@ const _i = (e, t) => {
|
|
|
4417
4425
|
};
|
|
4418
4426
|
}, [e, t]), n;
|
|
4419
4427
|
}, iA = () => {
|
|
4420
|
-
const e = y(), [t] =
|
|
4428
|
+
const e = y(), [t] = k(), n = rt(), r = ot(), [{ slippage: o }] = ee(), a = o === "auto", i = sA(e);
|
|
4421
4429
|
return f(
|
|
4422
4430
|
async (l) => {
|
|
4423
4431
|
const c = Ba(t.value), d = n ? [c] : [e.address, c], p = await i({
|
|
@@ -4441,7 +4449,7 @@ const _i = (e, t) => {
|
|
|
4441
4449
|
}, lA = ({
|
|
4442
4450
|
debounceTime: e
|
|
4443
4451
|
} = {}) => {
|
|
4444
|
-
const t = y(), n = rt(), [r] =
|
|
4452
|
+
const t = y(), n = rt(), [r] = k(), o = ot(), { data: { getSupportedAssets: a } = {} } = qn(t), i = _i(
|
|
4445
4453
|
r.value || "0",
|
|
4446
4454
|
e ?? 0
|
|
4447
4455
|
);
|
|
@@ -4574,7 +4582,7 @@ const _i = (e, t) => {
|
|
|
4574
4582
|
trade: e,
|
|
4575
4583
|
onErrorCallback: t
|
|
4576
4584
|
}) => {
|
|
4577
|
-
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({
|
|
4578
4586
|
symbol: l.symbol,
|
|
4579
4587
|
address: l.address
|
|
4580
4588
|
}), b = d === "deposit", T = YT(), x = b ? "deposit" : h ? "multi_withdraw" : v ? "single_withdraw_and_claim" : "single_withdraw", E = async () => {
|
|
@@ -4653,7 +4661,7 @@ const _i = (e, t) => {
|
|
|
4653
4661
|
[t, r, l, e, a]
|
|
4654
4662
|
);
|
|
4655
4663
|
}, fA = () => {
|
|
4656
|
-
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({
|
|
4657
4665
|
address: r.address,
|
|
4658
4666
|
chainId: t,
|
|
4659
4667
|
disabled: !e || !n.apy
|
|
@@ -4674,7 +4682,7 @@ const _i = (e, t) => {
|
|
|
4674
4682
|
showEarnings: !1
|
|
4675
4683
|
};
|
|
4676
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) => {
|
|
4677
|
-
const { effectiveSelectedAggregators: n } =
|
|
4685
|
+
const { effectiveSelectedAggregators: n } = Ln(), r = zr(), { isValid: o } = bA({
|
|
4678
4686
|
chainId: String(e.chainId),
|
|
4679
4687
|
sourceAddress: e.sourceAddress,
|
|
4680
4688
|
destinationAddress: e.destinationAddress,
|
|
@@ -4694,7 +4702,7 @@ const _i = (e, t) => {
|
|
|
4694
4702
|
enabled: o && (t?.enabled ?? !0)
|
|
4695
4703
|
});
|
|
4696
4704
|
}, Qn = (e = {}) => {
|
|
4697
|
-
const t = e?.extendedDebounceTime ?? !1, [n] =
|
|
4705
|
+
const t = e?.extendedDebounceTime ?? !1, [n] = k(), r = _i(
|
|
4698
4706
|
n.value,
|
|
4699
4707
|
t ? es : qc
|
|
4700
4708
|
);
|
|
@@ -4795,7 +4803,7 @@ const _i = (e, t) => {
|
|
|
4795
4803
|
i,
|
|
4796
4804
|
l
|
|
4797
4805
|
]);
|
|
4798
|
-
},
|
|
4806
|
+
}, Li = ({
|
|
4799
4807
|
rawAmountToSpend: e,
|
|
4800
4808
|
tokenAddress: t,
|
|
4801
4809
|
ownerAddress: n,
|
|
@@ -4829,7 +4837,7 @@ const _i = (e, t) => {
|
|
|
4829
4837
|
() => [e, r],
|
|
4830
4838
|
[e, r]
|
|
4831
4839
|
);
|
|
4832
|
-
},
|
|
4840
|
+
}, ki = () => {
|
|
4833
4841
|
const e = S(), [t, n] = xA();
|
|
4834
4842
|
return /* @__PURE__ */ s(
|
|
4835
4843
|
zn,
|
|
@@ -4840,7 +4848,7 @@ const _i = (e, t) => {
|
|
|
4840
4848
|
}
|
|
4841
4849
|
);
|
|
4842
4850
|
}, CA = () => {
|
|
4843
|
-
const [{ selectedAggregators: e }, t] = ee(), { effectiveAvailableAggregators: n, effectiveSelectedAggregators: r } =
|
|
4851
|
+
const [{ selectedAggregators: e }, t] = ee(), { effectiveAvailableAggregators: n, effectiveSelectedAggregators: r } = Ln(), o = f(
|
|
4844
4852
|
(a) => {
|
|
4845
4853
|
const i = e.includes(a) ? e.filter((l) => l !== a) : [...e, a];
|
|
4846
4854
|
t({ selectedAggregators: i });
|
|
@@ -4881,7 +4889,7 @@ const _i = (e, t) => {
|
|
|
4881
4889
|
);
|
|
4882
4890
|
}, EA = () => {
|
|
4883
4891
|
const e = S();
|
|
4884
|
-
return /* @__PURE__ */ w(
|
|
4892
|
+
return /* @__PURE__ */ w(L, { children: [
|
|
4885
4893
|
/* @__PURE__ */ s(
|
|
4886
4894
|
Ht,
|
|
4887
4895
|
{
|
|
@@ -4895,7 +4903,7 @@ const _i = (e, t) => {
|
|
|
4895
4903
|
{
|
|
4896
4904
|
label: e.tokenAllowance,
|
|
4897
4905
|
tooltipText: e.toggleTokenApprovalAmount,
|
|
4898
|
-
children: /* @__PURE__ */ s(
|
|
4906
|
+
children: /* @__PURE__ */ s(ki, {})
|
|
4899
4907
|
}
|
|
4900
4908
|
),
|
|
4901
4909
|
/* @__PURE__ */ s(Di, {})
|
|
@@ -4968,7 +4976,7 @@ const _i = (e, t) => {
|
|
|
4968
4976
|
(o) => Q(o.address, r)
|
|
4969
4977
|
)
|
|
4970
4978
|
)?.tokenAddress ?? e[0]?.tokenAddress : null, Nt = () => {
|
|
4971
|
-
const [e] =
|
|
4979
|
+
const [e] = k(), { chainId: t, address: n } = y(), r = Et({
|
|
4972
4980
|
address: n,
|
|
4973
4981
|
chainId: t
|
|
4974
4982
|
}), o = PA();
|
|
@@ -5006,13 +5014,13 @@ const _i = (e, t) => {
|
|
|
5006
5014
|
e.symbol
|
|
5007
5015
|
]);
|
|
5008
5016
|
}, nn = () => {
|
|
5009
|
-
const [e] =
|
|
5017
|
+
const [e] = k(), { vaultDepositTokenAddress: t } = Nt();
|
|
5010
5018
|
return !Q(e.address, t);
|
|
5011
5019
|
}, Xn = () => {
|
|
5012
5020
|
const e = io(), [{ slippage: t }] = ee(), n = nn();
|
|
5013
5021
|
return t === "auto" ? n ? e : Xa : t;
|
|
5014
5022
|
}, rn = () => {
|
|
5015
|
-
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();
|
|
5016
5024
|
return yA(
|
|
5017
5025
|
{
|
|
5018
5026
|
sourceAddress: n.address,
|
|
@@ -5028,9 +5036,9 @@ const _i = (e, t) => {
|
|
|
5028
5036
|
}
|
|
5029
5037
|
);
|
|
5030
5038
|
}, Ri = () => {
|
|
5031
|
-
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(
|
|
5032
5040
|
Number(a ?? "0"),
|
|
5033
|
-
|
|
5041
|
+
Ee
|
|
5034
5042
|
), [{ slippage: l }] = ee(), c = l === "auto", d = Xn(), p = nn(), u = +pe({
|
|
5035
5043
|
address: r.address,
|
|
5036
5044
|
chainId: n
|
|
@@ -5062,20 +5070,20 @@ const _i = (e, t) => {
|
|
|
5062
5070
|
}), c = Number(n || "0") * o;
|
|
5063
5071
|
return i && l !== 0 ? new _(c / l).shiftedBy(i).times(1 - ts / 100).toFixed(0) : "0";
|
|
5064
5072
|
}, $i = () => {
|
|
5065
|
-
const [e] =
|
|
5073
|
+
const [e] = k(), { debouncedSendTokenValue: t } = Qn(), n = nn(), r = OA({
|
|
5066
5074
|
isDepositWithSwapTransaction: n,
|
|
5067
5075
|
sendTokenAddress: e.address,
|
|
5068
5076
|
sendTokenValue: t
|
|
5069
5077
|
});
|
|
5070
5078
|
return n ? r : new _(t || "0").shiftedBy(e.decimals).toFixed(0);
|
|
5071
|
-
},
|
|
5079
|
+
}, LA = "0x", Er = (e, t, n = [], r) => {
|
|
5072
5080
|
const {
|
|
5073
5081
|
vaultAddress: o,
|
|
5074
5082
|
vaultDepositTokenAddress: a,
|
|
5075
5083
|
vaultDepositTokenAmount: i,
|
|
5076
5084
|
minVaultTokensReceivedAmount: l,
|
|
5077
5085
|
sendTokenAmount: c
|
|
5078
|
-
} = t, d = r ??
|
|
5086
|
+
} = t, d = r ?? LA;
|
|
5079
5087
|
switch (e) {
|
|
5080
5088
|
case "nativeDeposit":
|
|
5081
5089
|
case "nativeDepositWithCustomCooldown":
|
|
@@ -5101,7 +5109,7 @@ const _i = (e, t) => {
|
|
|
5101
5109
|
case "zapDepositWithCustomCooldown":
|
|
5102
5110
|
return [...n, d];
|
|
5103
5111
|
}
|
|
5104
|
-
},
|
|
5112
|
+
}, kA = async ({
|
|
5105
5113
|
baseArgs: e,
|
|
5106
5114
|
swapQuotes: t,
|
|
5107
5115
|
estimate: n,
|
|
@@ -5180,7 +5188,7 @@ const _i = (e, t) => {
|
|
|
5180
5188
|
depositMethod: e,
|
|
5181
5189
|
vaultDepositTokenAddress: t
|
|
5182
5190
|
}) => {
|
|
5183
|
-
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;
|
|
5184
5192
|
return f(
|
|
5185
5193
|
async (v) => {
|
|
5186
5194
|
const g = {
|
|
@@ -5191,7 +5199,7 @@ const _i = (e, t) => {
|
|
|
5191
5199
|
sendTokenAmount: i
|
|
5192
5200
|
}, b = DA(e);
|
|
5193
5201
|
try {
|
|
5194
|
-
return b ? await
|
|
5202
|
+
return b ? await kA({
|
|
5195
5203
|
baseArgs: g,
|
|
5196
5204
|
swapQuotes: c,
|
|
5197
5205
|
estimate: v,
|
|
@@ -5266,7 +5274,7 @@ const _i = (e, t) => {
|
|
|
5266
5274
|
onSettled: t,
|
|
5267
5275
|
onErrorCallback: n
|
|
5268
5276
|
}) => {
|
|
5269
|
-
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({
|
|
5270
5278
|
action: mr,
|
|
5271
5279
|
onErrorCallback: n,
|
|
5272
5280
|
onSuccessCallback: t
|
|
@@ -5307,7 +5315,7 @@ const _i = (e, t) => {
|
|
|
5307
5315
|
c
|
|
5308
5316
|
]);
|
|
5309
5317
|
}, WA = () => {
|
|
5310
|
-
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({
|
|
5311
5319
|
tokenAddress: n.address,
|
|
5312
5320
|
ownerAddress: e,
|
|
5313
5321
|
spenderAddress: r,
|
|
@@ -5343,13 +5351,13 @@ const _i = (e, t) => {
|
|
|
5343
5351
|
(oe) => oe.action === "approve"
|
|
5344
5352
|
)?.txHash, J = v.find(
|
|
5345
5353
|
(oe) => oe.action === "update_ondo_prices"
|
|
5346
|
-
)?.txHash, { data:
|
|
5354
|
+
)?.txHash, { data: xe } = mt({
|
|
5347
5355
|
hash: re,
|
|
5348
5356
|
pollingInterval: Gt,
|
|
5349
5357
|
query: {
|
|
5350
5358
|
enabled: !!re && e === "waiting-approve-confirmation"
|
|
5351
5359
|
}
|
|
5352
|
-
}), { data:
|
|
5360
|
+
}), { data: Le } = mt({
|
|
5353
5361
|
hash: J,
|
|
5354
5362
|
pollingInterval: Gt,
|
|
5355
5363
|
query: {
|
|
@@ -5358,7 +5366,7 @@ const _i = (e, t) => {
|
|
|
5358
5366
|
});
|
|
5359
5367
|
return N(() => {
|
|
5360
5368
|
(async () => {
|
|
5361
|
-
if (!(!
|
|
5369
|
+
if (!(!xe || e !== "waiting-approve-confirmation")) {
|
|
5362
5370
|
if (O && !r.current) {
|
|
5363
5371
|
r.current = !0, t("updating-prices");
|
|
5364
5372
|
try {
|
|
@@ -5372,7 +5380,7 @@ const _i = (e, t) => {
|
|
|
5372
5380
|
}
|
|
5373
5381
|
})();
|
|
5374
5382
|
}, [
|
|
5375
|
-
|
|
5383
|
+
xe,
|
|
5376
5384
|
u,
|
|
5377
5385
|
e,
|
|
5378
5386
|
l,
|
|
@@ -5382,9 +5390,9 @@ const _i = (e, t) => {
|
|
|
5382
5390
|
K
|
|
5383
5391
|
]), N(() => {
|
|
5384
5392
|
(async () => {
|
|
5385
|
-
|
|
5393
|
+
Le && e === "waiting-prices-confirmation" && !n.current && (n.current = !0, t("depositing"), await l());
|
|
5386
5394
|
})();
|
|
5387
|
-
}, [
|
|
5395
|
+
}, [Le, u, e, l]), N(() => {
|
|
5388
5396
|
e === "waiting-approve-confirmation" && m === "approve" && h === "None" && o();
|
|
5389
5397
|
}, [e, m, h, o]), N(() => {
|
|
5390
5398
|
e === "waiting-prices-confirmation" && m === "update_ondo_prices" && h === "None" && o();
|
|
@@ -5424,7 +5432,7 @@ const _i = (e, t) => {
|
|
|
5424
5432
|
address: e,
|
|
5425
5433
|
chainId: t
|
|
5426
5434
|
}) => {
|
|
5427
|
-
const [n] =
|
|
5435
|
+
const [n] = k(), r = et(), { vaultDepositTokenAddress: o } = Nt(), a = $i(), i = !!(a && +a > 0), l = Pe({
|
|
5428
5436
|
address: X("easySwapperV2", t),
|
|
5429
5437
|
abi: Ze,
|
|
5430
5438
|
functionName: "depositQuote",
|
|
@@ -5437,7 +5445,7 @@ const _i = (e, t) => {
|
|
|
5437
5445
|
});
|
|
5438
5446
|
return Js(l), l;
|
|
5439
5447
|
}, GA = () => {
|
|
5440
|
-
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({
|
|
5441
5449
|
address: e,
|
|
5442
5450
|
chainId: t
|
|
5443
5451
|
}), m = d || u || l;
|
|
@@ -5464,10 +5472,10 @@ const _i = (e, t) => {
|
|
|
5464
5472
|
const { address: t, chainId: n } = y(), { data: r } = we({
|
|
5465
5473
|
address: t,
|
|
5466
5474
|
chainId: n
|
|
5467
|
-
}), [o] =
|
|
5475
|
+
}), [o] = k(), [a] = M(), i = pe({
|
|
5468
5476
|
address: o.address,
|
|
5469
5477
|
chainId: n
|
|
5470
|
-
}), 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;
|
|
5471
5479
|
return P(() => {
|
|
5472
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(
|
|
5473
5481
|
l ?? "0"
|
|
@@ -5540,7 +5548,7 @@ function iS() {
|
|
|
5540
5548
|
}
|
|
5541
5549
|
var lS = iS, wr = Us, cS = lS, dS = qr, pS = 1 / 0, uS = wr && 1 / dS(new wr([, -0]))[1] == pS ? function(e) {
|
|
5542
5550
|
return new wr(e);
|
|
5543
|
-
} : cS, mS = uS, wS =
|
|
5551
|
+
} : cS, mS = uS, wS = ks, hS = oS, gS = sS, vS = Ds, fS = mS, bS = qr, yS = 200;
|
|
5544
5552
|
function TS(e, t, n) {
|
|
5545
5553
|
var r = -1, o = hS, a = e.length, i = !0, l = [], c = l;
|
|
5546
5554
|
if (n)
|
|
@@ -5655,7 +5663,7 @@ const IS = /* @__PURE__ */ Dn(ES), on = ({
|
|
|
5655
5663
|
r.defaultDepositTokenSymbol
|
|
5656
5664
|
]);
|
|
5657
5665
|
}, NS = () => {
|
|
5658
|
-
const e = y(), [t] = on(), n =
|
|
5666
|
+
const e = y(), [t] = on(), n = k()[1], [r] = Oe();
|
|
5659
5667
|
N(() => {
|
|
5660
5668
|
r === "deposit" && t?.symbol && n({
|
|
5661
5669
|
address: t?.address,
|
|
@@ -5695,7 +5703,7 @@ const IS = /* @__PURE__ */ Dn(ES), on = ({
|
|
|
5695
5703
|
default:
|
|
5696
5704
|
return e;
|
|
5697
5705
|
}
|
|
5698
|
-
}, OS = "1",
|
|
5706
|
+
}, OS = "1", LS = () => {
|
|
5699
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({
|
|
5700
5708
|
address: t,
|
|
5701
5709
|
chainId: n,
|
|
@@ -5710,7 +5718,7 @@ const IS = /* @__PURE__ */ Dn(ES), on = ({
|
|
|
5710
5718
|
}, ho = (e) => {
|
|
5711
5719
|
const [{ action: t, status: n }] = Z();
|
|
5712
5720
|
return t === e && (n === "Wallet" || n === "Mining");
|
|
5713
|
-
},
|
|
5721
|
+
}, kS = (e) => {
|
|
5714
5722
|
const t = be(), { showError: n } = It(), { onAcceptTermsOfUse: r } = ao(), { termsOfUseAccepted: o } = q(), { swapQuoteRefreshTriggered: a } = ae(), i = Gr(), l = de(!1), c = a === "deposit", {
|
|
5715
5723
|
disabled: d,
|
|
5716
5724
|
label: p,
|
|
@@ -5769,7 +5777,7 @@ const IS = /* @__PURE__ */ Dn(ES), on = ({
|
|
|
5769
5777
|
isLoading: g
|
|
5770
5778
|
};
|
|
5771
5779
|
}, DS = () => {
|
|
5772
|
-
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);
|
|
5773
5781
|
return {
|
|
5774
5782
|
handleClick: o,
|
|
5775
5783
|
disabled: a,
|
|
@@ -5800,10 +5808,10 @@ const IS = /* @__PURE__ */ Dn(ES), on = ({
|
|
|
5800
5808
|
maintenance: r,
|
|
5801
5809
|
maintenanceDeposits: o,
|
|
5802
5810
|
depositCapacity: a
|
|
5803
|
-
} = y(), [i] =
|
|
5811
|
+
} = y(), [i] = k(), l = Gn(), c = pe({
|
|
5804
5812
|
address: i.address,
|
|
5805
5813
|
chainId: n
|
|
5806
|
-
}), { 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;
|
|
5807
5815
|
return {
|
|
5808
5816
|
requiresMinDeposit: v,
|
|
5809
5817
|
requiresWhitelist: d && !p,
|
|
@@ -5851,7 +5859,7 @@ const IS = /* @__PURE__ */ Dn(ES), on = ({
|
|
|
5851
5859
|
`${Math.abs(c)}`
|
|
5852
5860
|
) }) : /* @__PURE__ */ s(RS, {});
|
|
5853
5861
|
}, MS = () => {
|
|
5854
|
-
const [e, t] =
|
|
5862
|
+
const [e, t] = k(), { chainId: n } = y(), r = pe({ address: e.address, chainId: n }), o = Se({
|
|
5855
5863
|
symbol: e.symbol,
|
|
5856
5864
|
address: e.address
|
|
5857
5865
|
});
|
|
@@ -5896,7 +5904,7 @@ const IS = /* @__PURE__ */ Dn(ES), on = ({
|
|
|
5896
5904
|
children: e
|
|
5897
5905
|
}) => {
|
|
5898
5906
|
const t = S();
|
|
5899
|
-
return /* @__PURE__ */ s(Aa, { children: ({ open: n }) => /* @__PURE__ */ w(
|
|
5907
|
+
return /* @__PURE__ */ s(Aa, { children: ({ open: n }) => /* @__PURE__ */ w(L, { children: [
|
|
5900
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: [
|
|
5901
5909
|
n ? t.hide : t.showAll,
|
|
5902
5910
|
/* @__PURE__ */ s(
|
|
@@ -5969,7 +5977,7 @@ const IS = /* @__PURE__ */ Dn(ES), on = ({
|
|
|
5969
5977
|
(c, d) => d.fractionUsdNumber - c.fractionUsdNumber
|
|
5970
5978
|
);
|
|
5971
5979
|
}, VS = (e) => {
|
|
5972
|
-
const { address: t, chainId: n } = y(), [{ value: r }] =
|
|
5980
|
+
const { address: t, chainId: n } = y(), [{ value: r }] = k(), o = rT({
|
|
5973
5981
|
vaultTokensAmount: r,
|
|
5974
5982
|
address: t,
|
|
5975
5983
|
chainId: n
|
|
@@ -5999,7 +6007,7 @@ const IS = /* @__PURE__ */ Dn(ES), on = ({
|
|
|
5999
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: [
|
|
6000
6008
|
t.as,
|
|
6001
6009
|
" ",
|
|
6002
|
-
/* @__PURE__ */ s(
|
|
6010
|
+
/* @__PURE__ */ s(ke, { symbols: [e], size: "xs" }),
|
|
6003
6011
|
" ",
|
|
6004
6012
|
e
|
|
6005
6013
|
] });
|
|
@@ -6068,7 +6076,7 @@ const IS = /* @__PURE__ */ Dn(ES), on = ({
|
|
|
6068
6076
|
},
|
|
6069
6077
|
[n, t]
|
|
6070
6078
|
);
|
|
6071
|
-
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: [
|
|
6072
6080
|
/* @__PURE__ */ s(xn, { children: o.map(d) }),
|
|
6073
6081
|
a.length > 0 && /* @__PURE__ */ s(Mi, { children: /* @__PURE__ */ s(xn, { children: a.map(d) }) }),
|
|
6074
6082
|
i && /* @__PURE__ */ w("p", { className: "dtw-text-warning dtw-text-[length:var(--panel-label-font-size)]", children: [
|
|
@@ -6084,14 +6092,14 @@ const IS = /* @__PURE__ */ Dn(ES), on = ({
|
|
|
6084
6092
|
rel: "noreferrer",
|
|
6085
6093
|
children: [
|
|
6086
6094
|
"Flat Money ",
|
|
6087
|
-
/* @__PURE__ */ s(
|
|
6095
|
+
/* @__PURE__ */ s(ka, { className: "dtw-w-3" })
|
|
6088
6096
|
]
|
|
6089
6097
|
}
|
|
6090
6098
|
)
|
|
6091
6099
|
] })
|
|
6092
6100
|
] }) : /* @__PURE__ */ s(li, {}) });
|
|
6093
6101
|
}, qS = ({ symbol: e }) => {
|
|
6094
|
-
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;
|
|
6095
6103
|
return {
|
|
6096
6104
|
isAllSymbol: a,
|
|
6097
6105
|
onClick: () => {
|
|
@@ -6262,7 +6270,7 @@ const XS = (e) => {
|
|
|
6262
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"
|
|
6263
6271
|
),
|
|
6264
6272
|
children: [
|
|
6265
|
-
/* @__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(
|
|
6266
6274
|
"input",
|
|
6267
6275
|
{
|
|
6268
6276
|
className: C(
|
|
@@ -6286,7 +6294,7 @@ const XS = (e) => {
|
|
|
6286
6294
|
}
|
|
6287
6295
|
),
|
|
6288
6296
|
/* @__PURE__ */ w("div", { className: "dtw-flex dtw-items-center dtw-justify-between dtw-gap-x-2", children: [
|
|
6289
|
-
/* @__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(
|
|
6290
6298
|
"span",
|
|
6291
6299
|
{
|
|
6292
6300
|
className: C(
|
|
@@ -6310,7 +6318,7 @@ const XS = (e) => {
|
|
|
6310
6318
|
}
|
|
6311
6319
|
);
|
|
6312
6320
|
}, JS = () => {
|
|
6313
|
-
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 });
|
|
6314
6322
|
return {
|
|
6315
6323
|
formattedBalance: za({
|
|
6316
6324
|
balance: o,
|
|
@@ -6324,7 +6332,7 @@ const XS = (e) => {
|
|
|
6324
6332
|
const { formattedBalance: e, symbol: t } = JS();
|
|
6325
6333
|
return /* @__PURE__ */ s(ii, { balance: e, symbol: t });
|
|
6326
6334
|
}, ex = () => {
|
|
6327
|
-
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 });
|
|
6328
6336
|
return {
|
|
6329
6337
|
formattedBalance: za({
|
|
6330
6338
|
balance: o,
|
|
@@ -6402,11 +6410,11 @@ const XS = (e) => {
|
|
|
6402
6410
|
for (const E of x)
|
|
6403
6411
|
for (const D of T) {
|
|
6404
6412
|
const O = Object.entries(o).reduce(
|
|
6405
|
-
(J, [
|
|
6406
|
-
const Te =
|
|
6413
|
+
(J, [xe, Le]) => {
|
|
6414
|
+
const Te = Le?.find(
|
|
6407
6415
|
(qe) => qe.routerKey === D
|
|
6408
6416
|
);
|
|
6409
|
-
return { ...J, [
|
|
6417
|
+
return { ...J, [xe]: Te };
|
|
6410
6418
|
},
|
|
6411
6419
|
{}
|
|
6412
6420
|
), K = Ac({
|
|
@@ -6611,7 +6619,7 @@ const XS = (e) => {
|
|
|
6611
6619
|
}
|
|
6612
6620
|
}, [r, a, o, e, d, c]);
|
|
6613
6621
|
}, ji = () => {
|
|
6614
|
-
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 = () => {
|
|
6615
6623
|
l({
|
|
6616
6624
|
...t,
|
|
6617
6625
|
value: "",
|
|
@@ -6624,15 +6632,15 @@ const XS = (e) => {
|
|
|
6624
6632
|
});
|
|
6625
6633
|
}, p = () => {
|
|
6626
6634
|
const { customTokens: u, defaultWithdrawTokenSymbol: m } = e.withdrawParams, h = u.find(
|
|
6627
|
-
({ symbol:
|
|
6628
|
-
) ?? u[0] ??
|
|
6635
|
+
({ symbol: b }) => b === m
|
|
6636
|
+
) ?? u[0] ?? Ae, v = n || m === Ae.symbol, g = o ? h : a || v ? Ae : h;
|
|
6629
6637
|
l({
|
|
6630
6638
|
address: e.address,
|
|
6631
6639
|
symbol: e.symbol,
|
|
6632
6640
|
decimals: F,
|
|
6633
6641
|
value: ""
|
|
6634
6642
|
}), c({
|
|
6635
|
-
...
|
|
6643
|
+
...g,
|
|
6636
6644
|
value: "",
|
|
6637
6645
|
isLoading: !1
|
|
6638
6646
|
});
|
|
@@ -6675,7 +6683,7 @@ const XS = (e) => {
|
|
|
6675
6683
|
onInputFocus: a,
|
|
6676
6684
|
onInputChange: i
|
|
6677
6685
|
} = WS(), l = en(o ?? 0);
|
|
6678
|
-
return /* @__PURE__ */ w(
|
|
6686
|
+
return /* @__PURE__ */ w(L, { children: [
|
|
6679
6687
|
/* @__PURE__ */ s(
|
|
6680
6688
|
Vt,
|
|
6681
6689
|
{
|
|
@@ -7042,7 +7050,7 @@ const XS = (e) => {
|
|
|
7042
7050
|
}, Ix = () => {
|
|
7043
7051
|
const e = S(), t = be();
|
|
7044
7052
|
Yn();
|
|
7045
|
-
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(() => {
|
|
7046
7054
|
a({
|
|
7047
7055
|
sendToken: {
|
|
7048
7056
|
symbol: n,
|
|
@@ -7108,11 +7116,11 @@ const XS = (e) => {
|
|
|
7108
7116
|
key: "sanctioned"
|
|
7109
7117
|
}
|
|
7110
7118
|
].filter(({ value: d }) => d);
|
|
7111
|
-
return /* @__PURE__ */ w(
|
|
7119
|
+
return /* @__PURE__ */ w(L, { children: [
|
|
7112
7120
|
/* @__PURE__ */ s(j.InputGroup, { children: /* @__PURE__ */ s(lx, {}) }),
|
|
7113
7121
|
/* @__PURE__ */ s(mx, { children: l ? c.map(
|
|
7114
7122
|
({ Component: d, key: p }) => d && /* @__PURE__ */ s(d, {}, p)
|
|
7115
|
-
) : /* @__PURE__ */ s(
|
|
7123
|
+
) : /* @__PURE__ */ s(L, { children: /* @__PURE__ */ s(fo, { children: /* @__PURE__ */ w("div", { className: "tw-flex tw-flex-col tw-gap-2", children: [
|
|
7116
7124
|
/* @__PURE__ */ s(BS, {}),
|
|
7117
7125
|
/* @__PURE__ */ s(xx, { highlighted: !1, children: e.limitBuy })
|
|
7118
7126
|
] }) }) }) }),
|
|
@@ -7127,7 +7135,7 @@ const XS = (e) => {
|
|
|
7127
7135
|
Px(o) && t[o] && t[o].isOpen && (n = r);
|
|
7128
7136
|
}
|
|
7129
7137
|
}), n;
|
|
7130
|
-
},
|
|
7138
|
+
}, Lx = ({ type: e }) => {
|
|
7131
7139
|
const t = S(), { DepositTermsOfUse: n, ActionButton: r = G } = $(), { handleReject: o, handleConfirm: a, isPending: i } = ie({
|
|
7132
7140
|
type: e
|
|
7133
7141
|
});
|
|
@@ -7162,7 +7170,7 @@ const XS = (e) => {
|
|
|
7162
7170
|
)
|
|
7163
7171
|
] })
|
|
7164
7172
|
] });
|
|
7165
|
-
},
|
|
7173
|
+
}, kx = ({ type: e }) => {
|
|
7166
7174
|
const t = S(), { ActionButton: n = G } = $(), { handleReject: r, handleConfirm: o } = ie({ type: e });
|
|
7167
7175
|
return /* @__PURE__ */ w(j.Overlay, { className: "dtw-justify-between dtw-gap-y-1", children: [
|
|
7168
7176
|
/* @__PURE__ */ w("div", { className: "dtw-flex dtw-gap-1 dtw-items-center dtw-text-warning", children: [
|
|
@@ -7244,7 +7252,7 @@ const XS = (e) => {
|
|
|
7244
7252
|
isActive: n,
|
|
7245
7253
|
onClose: r
|
|
7246
7254
|
}) => {
|
|
7247
|
-
const o =
|
|
7255
|
+
const o = Se({
|
|
7248
7256
|
symbol: e.symbol,
|
|
7249
7257
|
address: e.address
|
|
7250
7258
|
}), { defaultPrecision: a } = q();
|
|
@@ -7309,7 +7317,7 @@ const XS = (e) => {
|
|
|
7309
7317
|
}
|
|
7310
7318
|
);
|
|
7311
7319
|
}, Mx = [], Fx = () => {
|
|
7312
|
-
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;
|
|
7313
7321
|
return P(
|
|
7314
7322
|
() => ({
|
|
7315
7323
|
tokens: t === "deposit" ? l : c,
|
|
@@ -7392,7 +7400,7 @@ const XS = (e) => {
|
|
|
7392
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(
|
|
7393
7401
|
$x,
|
|
7394
7402
|
{
|
|
7395
|
-
token:
|
|
7403
|
+
token: Ae,
|
|
7396
7404
|
onSelect: a
|
|
7397
7405
|
}
|
|
7398
7406
|
) })
|
|
@@ -7428,7 +7436,7 @@ const XS = (e) => {
|
|
|
7428
7436
|
searchQuery: e,
|
|
7429
7437
|
type: t
|
|
7430
7438
|
}) => {
|
|
7431
|
-
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(
|
|
7432
7440
|
({ address: m, value: h, decimals: v, symbol: g }) => {
|
|
7433
7441
|
(i === "deposit" ? c : l)({ address: m, value: h, decimals: v, symbol: g }), d(m), a();
|
|
7434
7442
|
},
|
|
@@ -7552,7 +7560,7 @@ const XS = (e) => {
|
|
|
7552
7560
|
] })
|
|
7553
7561
|
] }),
|
|
7554
7562
|
/* @__PURE__ */ s(Ye, {}),
|
|
7555
|
-
i && /* @__PURE__ */ w(
|
|
7563
|
+
i && /* @__PURE__ */ w(L, { children: [
|
|
7556
7564
|
/* @__PURE__ */ w("div", { className: "dtw-flex dtw-items-center dtw-justify-between dtw-gap-2 dtw-w-full", children: [
|
|
7557
7565
|
/* @__PURE__ */ s("p", { children: t.paidLabel }),
|
|
7558
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: [
|
|
@@ -7570,7 +7578,7 @@ const XS = (e) => {
|
|
|
7570
7578
|
/* @__PURE__ */ s("p", { children: t.priceLabel }),
|
|
7571
7579
|
/* @__PURE__ */ s("p", { className: "dtw-text-[color:var(--panel-secondary-content-color)]", children: c })
|
|
7572
7580
|
] }),
|
|
7573
|
-
n && /* @__PURE__ */ w(
|
|
7581
|
+
n && /* @__PURE__ */ w(L, { children: [
|
|
7574
7582
|
/* @__PURE__ */ s(Ye, {}),
|
|
7575
7583
|
/* @__PURE__ */ w("div", { className: "dtw-flex dtw-items-center dtw-justify-between dtw-gap-2 dtw-w-full", children: [
|
|
7576
7584
|
/* @__PURE__ */ s("p", { children: t.transactionLabel }),
|
|
@@ -7603,7 +7611,7 @@ const XS = (e) => {
|
|
|
7603
7611
|
onClose: e
|
|
7604
7612
|
}) => {
|
|
7605
7613
|
const t = S(), { ActionButton: n = G } = $(), [{ link: r }] = Z();
|
|
7606
|
-
return /* @__PURE__ */ w(
|
|
7614
|
+
return /* @__PURE__ */ w(L, { children: [
|
|
7607
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: [
|
|
7608
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: [
|
|
7609
7617
|
/* @__PURE__ */ s(qt, { className: "dtw-h-16 dtw-w-16 lg:dtw-h-24 lg:dtw-w-24 dtw-shrink-0" }),
|
|
@@ -7659,7 +7667,7 @@ const XS = (e) => {
|
|
|
7659
7667
|
const t = S(), [n] = e ?? [];
|
|
7660
7668
|
return n ? /* @__PURE__ */ w("div", { className: "dtw-flex dtw-items-center dtw-gap-1 dtw-flex-wrap dtw-overflow-hidden", children: [
|
|
7661
7669
|
/* @__PURE__ */ s("span", { children: t.approveSpending }),
|
|
7662
|
-
/* @__PURE__ */ s(
|
|
7670
|
+
/* @__PURE__ */ s(ke, { size: "sm", symbols: [n.symbol] }),
|
|
7663
7671
|
/* @__PURE__ */ s("span", { children: n.symbol })
|
|
7664
7672
|
] }) : null;
|
|
7665
7673
|
}, eC = ({ receiveTokens: e }) => {
|
|
@@ -7668,7 +7676,7 @@ const XS = (e) => {
|
|
|
7668
7676
|
t.swapAndClaimTo,
|
|
7669
7677
|
" ",
|
|
7670
7678
|
/* @__PURE__ */ w("div", { className: "dtw-flex dtw-items-center dtw-gap-1", children: [
|
|
7671
|
-
/* @__PURE__ */ s(
|
|
7679
|
+
/* @__PURE__ */ s(ke, { size: "sm", symbols: [n.symbol] }),
|
|
7672
7680
|
" ",
|
|
7673
7681
|
n.symbol
|
|
7674
7682
|
] })
|
|
@@ -7678,21 +7686,21 @@ const XS = (e) => {
|
|
|
7678
7686
|
return o ? /* @__PURE__ */ w("div", { className: "dtw-flex dtw-flex-wrap dtw-items-center dtw-gap-x-1", children: [
|
|
7679
7687
|
n === "deposit" ? r.pay : n === "multi_withdraw" ? r.sell : r.unrollAction,
|
|
7680
7688
|
/* @__PURE__ */ w("div", { className: "dtw-flex dtw-items-center dtw-gap-1", children: [
|
|
7681
|
-
/* @__PURE__ */ s(
|
|
7689
|
+
/* @__PURE__ */ s(ke, { size: "sm", symbols: [o.symbol] }),
|
|
7682
7690
|
" ",
|
|
7683
7691
|
o.symbol
|
|
7684
7692
|
] }),
|
|
7685
7693
|
" ",
|
|
7686
7694
|
"to receive",
|
|
7687
|
-
/* @__PURE__ */ s("div", { className: "dtw-flex dtw-items-center dtw-gap-1", children: a ? /* @__PURE__ */ w(
|
|
7688
|
-
/* @__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] }),
|
|
7689
7697
|
" ",
|
|
7690
7698
|
a.symbol
|
|
7691
|
-
] }) : /* @__PURE__ */ s(
|
|
7699
|
+
] }) : /* @__PURE__ */ s(L, { children: n === "multi_withdraw" ? r.multiAssetFractions : r.swappableAssets }) })
|
|
7692
7700
|
] }) : null;
|
|
7693
7701
|
}, nC = () => {
|
|
7694
7702
|
const e = S(), [{ action: t, receiveTokens: n, sendTokens: r }] = Z();
|
|
7695
|
-
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: [
|
|
7696
7704
|
/* @__PURE__ */ s("span", { children: e.updateOndoPricesStep }),
|
|
7697
7705
|
/* @__PURE__ */ s("span", { className: "dtw-text-xs dtw-text-[color:var(--panel-secondary-content-color)]", children: e.updateOndoPricesHint })
|
|
7698
7706
|
] }) : /* @__PURE__ */ s(
|
|
@@ -7736,7 +7744,7 @@ const XS = (e) => {
|
|
|
7736
7744
|
}
|
|
7737
7745
|
) : null;
|
|
7738
7746
|
}, aC = ({ type: e }) => {
|
|
7739
|
-
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);
|
|
7740
7748
|
return {
|
|
7741
7749
|
onClose: f(() => {
|
|
7742
7750
|
o({ isOpen: !1, status: "None" }), a();
|
|
@@ -7765,7 +7773,7 @@ const XS = (e) => {
|
|
|
7765
7773
|
o
|
|
7766
7774
|
] })
|
|
7767
7775
|
] }),
|
|
7768
|
-
i && i.length > 0 && /* @__PURE__ */ w(
|
|
7776
|
+
i && i.length > 0 && /* @__PURE__ */ w(L, { children: [
|
|
7769
7777
|
/* @__PURE__ */ s(Ye, {}),
|
|
7770
7778
|
/* @__PURE__ */ w("div", { className: "dtw-flex dtw-items-center dtw-justify-between dtw-gap-2 dtw-w-full", children: [
|
|
7771
7779
|
/* @__PURE__ */ s("p", { children: t.receivedLabel }),
|
|
@@ -7775,7 +7783,7 @@ const XS = (e) => {
|
|
|
7775
7783
|
] }, d.symbol)) })
|
|
7776
7784
|
] })
|
|
7777
7785
|
] }),
|
|
7778
|
-
n && /* @__PURE__ */ w(
|
|
7786
|
+
n && /* @__PURE__ */ w(L, { children: [
|
|
7779
7787
|
/* @__PURE__ */ s(Ye, {}),
|
|
7780
7788
|
/* @__PURE__ */ w("div", { className: "dtw-flex dtw-items-center dtw-justify-between dtw-gap-2 dtw-w-full", children: [
|
|
7781
7789
|
/* @__PURE__ */ s("p", { children: t.transactionLabel }),
|
|
@@ -7800,7 +7808,7 @@ const XS = (e) => {
|
|
|
7800
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: [
|
|
7801
7809
|
/* @__PURE__ */ w("div", { className: "dtw-flex dtw-items-center dtw-gap-1.5", children: [
|
|
7802
7810
|
/* @__PURE__ */ s("span", { className: "dtw-font-semibold dtw-drop-shadow-md", children: n }),
|
|
7803
|
-
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 " })
|
|
7804
7812
|
] }),
|
|
7805
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, {}) }),
|
|
7806
7814
|
t && /* @__PURE__ */ s(
|
|
@@ -7968,7 +7976,7 @@ const XS = (e) => {
|
|
|
7968
7976
|
}
|
|
7969
7977
|
);
|
|
7970
7978
|
}, wa = !0, hC = (e) => {
|
|
7971
|
-
const { isWrongNetwork: t } = Ki(), n =
|
|
7979
|
+
const { isWrongNetwork: t } = Ki(), n = kn()[1], { data: r = [] } = ce(), o = zi({ isClaim: wa }), {
|
|
7972
7980
|
disabled: a,
|
|
7973
7981
|
label: i,
|
|
7974
7982
|
handleTrade: l
|
|
@@ -8460,16 +8468,16 @@ const dl = (e) => ({
|
|
|
8460
8468
|
}, PC = ({
|
|
8461
8469
|
price: e,
|
|
8462
8470
|
markPrice: t
|
|
8463
|
-
}) => new _(e).gt(t) ? `+${
|
|
8471
|
+
}) => new _(e).gt(t) ? `+${Lr((+e / +t - 1) * 100, 2)}` : "", OC = ({
|
|
8464
8472
|
price: e,
|
|
8465
8473
|
markPrice: t
|
|
8466
|
-
}) => new _(e).lt(t) ? `-${
|
|
8474
|
+
}) => new _(e).lt(t) ? `-${Lr((1 - +e / +t) * 100, 2)}` : "", LC = ({
|
|
8467
8475
|
error: e,
|
|
8468
8476
|
translationMap: t
|
|
8469
8477
|
}) => e ? e.title === Jc ? {
|
|
8470
8478
|
...e,
|
|
8471
8479
|
hint: t.invalidLimitOrderPriceError
|
|
8472
|
-
} : e : null,
|
|
8480
|
+
} : e : null, kC = () => {
|
|
8473
8481
|
const e = Be(), {
|
|
8474
8482
|
form: { upperLimitPrice: t, lowerLimitPrice: n, sellPercentage: r },
|
|
8475
8483
|
pricingAsset: o,
|
|
@@ -8530,8 +8538,8 @@ const dl = (e) => ({
|
|
|
8530
8538
|
onDisableSellPercentage: v,
|
|
8531
8539
|
coveredVaultAmount: g,
|
|
8532
8540
|
vaultSymbol: b
|
|
8533
|
-
} =
|
|
8534
|
-
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: [
|
|
8535
8543
|
/* @__PURE__ */ s(
|
|
8536
8544
|
ll,
|
|
8537
8545
|
{
|
|
@@ -8650,7 +8658,7 @@ const dl = (e) => ({
|
|
|
8650
8658
|
(async () => {
|
|
8651
8659
|
if (u && t === "waiting-confirmation" && !a.current) {
|
|
8652
8660
|
a.current = !0, n("creating");
|
|
8653
|
-
const T =
|
|
8661
|
+
const T = kr[d] ?? 1e3;
|
|
8654
8662
|
await new Promise((x) => setTimeout(x, T));
|
|
8655
8663
|
try {
|
|
8656
8664
|
await e();
|
|
@@ -8807,7 +8815,7 @@ const dl = (e) => ({
|
|
|
8807
8815
|
return {
|
|
8808
8816
|
handleClick: m,
|
|
8809
8817
|
disabled: u,
|
|
8810
|
-
error:
|
|
8818
|
+
error: LC({
|
|
8811
8819
|
error: c,
|
|
8812
8820
|
translationMap: e
|
|
8813
8821
|
}),
|
|
@@ -9353,7 +9361,7 @@ const dl = (e) => ({
|
|
|
9353
9361
|
return e;
|
|
9354
9362
|
}
|
|
9355
9363
|
};
|
|
9356
|
-
function
|
|
9364
|
+
function Ce() {
|
|
9357
9365
|
}
|
|
9358
9366
|
const Tl = (e) => {
|
|
9359
9367
|
const [t] = e.depositTokens;
|
|
@@ -9383,17 +9391,17 @@ const Tl = (e) => {
|
|
|
9383
9391
|
depositTokens: []
|
|
9384
9392
|
})
|
|
9385
9393
|
), nE = () => Promise.resolve(), Sl = ue({
|
|
9386
|
-
setUpperLimitPrice:
|
|
9387
|
-
setLowerLimitPrice:
|
|
9388
|
-
setInputAmount:
|
|
9389
|
-
setSlippageBps:
|
|
9390
|
-
setDeadlineDays:
|
|
9391
|
-
setTermsAccepted:
|
|
9392
|
-
setInputToken:
|
|
9393
|
-
setIsSubmitting:
|
|
9394
|
-
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,
|
|
9395
9403
|
onSubmitOrder: nE,
|
|
9396
|
-
onLog:
|
|
9404
|
+
onLog: Ce
|
|
9397
9405
|
}), xl = ({ children: e, initialState: t, actions: n }) => {
|
|
9398
9406
|
const [r, o] = En(
|
|
9399
9407
|
tE,
|
|
@@ -9532,7 +9540,7 @@ const Tl = (e) => {
|
|
|
9532
9540
|
a(d), o("");
|
|
9533
9541
|
},
|
|
9534
9542
|
[a, o]
|
|
9535
|
-
), c =
|
|
9543
|
+
), c = Se({
|
|
9536
9544
|
symbol: n.symbol,
|
|
9537
9545
|
address: n.address,
|
|
9538
9546
|
watch: !0
|
|
@@ -9575,7 +9583,7 @@ const Tl = (e) => {
|
|
|
9575
9583
|
onClick: () => n(o),
|
|
9576
9584
|
children: [
|
|
9577
9585
|
/* @__PURE__ */ s(
|
|
9578
|
-
|
|
9586
|
+
ke,
|
|
9579
9587
|
{
|
|
9580
9588
|
symbols: [o.symbol],
|
|
9581
9589
|
size: "lg",
|
|
@@ -9599,7 +9607,7 @@ const Tl = (e) => {
|
|
|
9599
9607
|
inputAmountLabel: c,
|
|
9600
9608
|
balanceLabel: d
|
|
9601
9609
|
} = oE();
|
|
9602
|
-
return /* @__PURE__ */ w(
|
|
9610
|
+
return /* @__PURE__ */ w(L, { children: [
|
|
9603
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: [
|
|
9604
9612
|
/* @__PURE__ */ w("div", { className: "dtw-flex dtw-items-center dtw-justify-between", children: [
|
|
9605
9613
|
/* @__PURE__ */ s("span", { className: "dtw-text-[color:var(--limit-order-primary-content-color)] dtw-text-[length:var(--limit-order-font-size)]", children: c }),
|
|
@@ -9632,7 +9640,7 @@ const Tl = (e) => {
|
|
|
9632
9640
|
onClick: () => t(!0),
|
|
9633
9641
|
children: [
|
|
9634
9642
|
/* @__PURE__ */ s(
|
|
9635
|
-
|
|
9643
|
+
ke,
|
|
9636
9644
|
{
|
|
9637
9645
|
symbols: [o.symbol],
|
|
9638
9646
|
size: "xs",
|
|
@@ -9726,7 +9734,7 @@ const Tl = (e) => {
|
|
|
9726
9734
|
lowerLimitLabel: u,
|
|
9727
9735
|
lowerLimitSubtitle: m
|
|
9728
9736
|
} = rE();
|
|
9729
|
-
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: [
|
|
9730
9738
|
/* @__PURE__ */ s(
|
|
9731
9739
|
ll,
|
|
9732
9740
|
{
|
|
@@ -9824,14 +9832,14 @@ const Tl = (e) => {
|
|
|
9824
9832
|
slippageBps: b,
|
|
9825
9833
|
deadlineDays: T
|
|
9826
9834
|
}
|
|
9827
|
-
} = 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 = {
|
|
9828
9836
|
owner: t,
|
|
9829
9837
|
targetVault: c,
|
|
9830
9838
|
pricingAsset: u.address,
|
|
9831
9839
|
minTriggerPriceD18: O,
|
|
9832
9840
|
maxTriggerPriceD18: K,
|
|
9833
9841
|
slippageToleranceBps: Number(b)
|
|
9834
|
-
},
|
|
9842
|
+
}, Le = {
|
|
9835
9843
|
permitted: {
|
|
9836
9844
|
token: m.address,
|
|
9837
9845
|
amount: x
|
|
@@ -9839,7 +9847,7 @@ const Tl = (e) => {
|
|
|
9839
9847
|
spender: p,
|
|
9840
9848
|
nonce: re,
|
|
9841
9849
|
deadline: BigInt(J),
|
|
9842
|
-
witness:
|
|
9850
|
+
witness: xe
|
|
9843
9851
|
};
|
|
9844
9852
|
i(!0);
|
|
9845
9853
|
try {
|
|
@@ -9852,9 +9860,9 @@ const Tl = (e) => {
|
|
|
9852
9860
|
domain: Te,
|
|
9853
9861
|
types: BT,
|
|
9854
9862
|
primaryType: "PermitWitnessTransferFrom",
|
|
9855
|
-
message:
|
|
9863
|
+
message: Le
|
|
9856
9864
|
}), oe = {
|
|
9857
|
-
order:
|
|
9865
|
+
order: xe,
|
|
9858
9866
|
permit: {
|
|
9859
9867
|
token: m.address,
|
|
9860
9868
|
amount: x.toString(),
|
|
@@ -9898,7 +9906,7 @@ const Tl = (e) => {
|
|
|
9898
9906
|
(async () => {
|
|
9899
9907
|
if (d && e === "waiting-confirmation" && !n.current) {
|
|
9900
9908
|
n.current = !0, t("signing");
|
|
9901
|
-
const g =
|
|
9909
|
+
const g = kr[c] ?? 1e3;
|
|
9902
9910
|
await new Promise((b) => setTimeout(b, g));
|
|
9903
9911
|
try {
|
|
9904
9912
|
await l();
|
|
@@ -9932,7 +9940,7 @@ const Tl = (e) => {
|
|
|
9932
9940
|
}, gE = () => {
|
|
9933
9941
|
const e = st(), {
|
|
9934
9942
|
form: { upperLimitPrice: t, lowerLimitPrice: n, inputAmount: r, slippageBps: o }
|
|
9935
|
-
} = 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;
|
|
9936
9944
|
return {
|
|
9937
9945
|
handleClick: a,
|
|
9938
9946
|
disabled: !d || !p || !m,
|
|
@@ -10135,7 +10143,7 @@ const Tl = (e) => {
|
|
|
10135
10143
|
),
|
|
10136
10144
|
n && /* @__PURE__ */ s(Na, { className: C("dtw-select-none", r), children: n })
|
|
10137
10145
|
] }), Ol = () => {
|
|
10138
|
-
const [e] =
|
|
10146
|
+
const [e] = k();
|
|
10139
10147
|
return new _(e.value || "0").shiftedBy(e.decimals);
|
|
10140
10148
|
}, CE = () => {
|
|
10141
10149
|
const { account: e = I } = R(), { address: t, chainId: n } = y(), r = X("limitOrder", n), o = Ol(), { data: a } = Qt({
|
|
@@ -10178,11 +10186,11 @@ const Tl = (e) => {
|
|
|
10178
10186
|
}) => {
|
|
10179
10187
|
const t = S(), { ActionButton: n = G } = $(), { isApproved: r, approveLimitOrder: o, isApprovePending: a } = IE();
|
|
10180
10188
|
return r ? e : /* @__PURE__ */ s(n, { onClick: o, loading: a, children: t.approve });
|
|
10181
|
-
},
|
|
10189
|
+
}, Ll = () => {
|
|
10182
10190
|
const { chainId: e, pricingAsset: t } = y();
|
|
10183
10191
|
return t ?? ed[e];
|
|
10184
10192
|
}, ba = "limit_order_withdraw", _E = (e) => {
|
|
10185
|
-
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(
|
|
10186
10194
|
(...h) => {
|
|
10187
10195
|
l(...h), e();
|
|
10188
10196
|
},
|
|
@@ -10226,7 +10234,7 @@ const Tl = (e) => {
|
|
|
10226
10234
|
limitOrderHandler: e,
|
|
10227
10235
|
action: t
|
|
10228
10236
|
}) => {
|
|
10229
|
-
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 () => {
|
|
10230
10238
|
const m = a.chainId;
|
|
10231
10239
|
l({
|
|
10232
10240
|
isOpen: !0,
|
|
@@ -10259,7 +10267,7 @@ const Tl = (e) => {
|
|
|
10259
10267
|
label: p ? n.delete : n.withdrawAction,
|
|
10260
10268
|
handleLimitOrderWithdraw: u
|
|
10261
10269
|
};
|
|
10262
|
-
}, OE = "limit_order_withdraw",
|
|
10270
|
+
}, OE = "limit_order_withdraw", LE = () => {
|
|
10263
10271
|
const e = be(), t = ho("limit_order_withdraw"), n = f(
|
|
10264
10272
|
() => e({
|
|
10265
10273
|
type: "MERGE_OVERLAY",
|
|
@@ -10275,8 +10283,8 @@ const Tl = (e) => {
|
|
|
10275
10283
|
handleLimitOrderWithdraw: o,
|
|
10276
10284
|
isLoading: t
|
|
10277
10285
|
};
|
|
10278
|
-
},
|
|
10279
|
-
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();
|
|
10280
10288
|
return /* @__PURE__ */ s(
|
|
10281
10289
|
t,
|
|
10282
10290
|
{
|
|
@@ -10293,7 +10301,7 @@ const Tl = (e) => {
|
|
|
10293
10301
|
className: e
|
|
10294
10302
|
}) => {
|
|
10295
10303
|
const t = S();
|
|
10296
|
-
return /* @__PURE__ */ w(
|
|
10304
|
+
return /* @__PURE__ */ w(L, { children: [
|
|
10297
10305
|
/* @__PURE__ */ s("p", { children: t.limitOrderWithdrawDescription }),
|
|
10298
10306
|
/* @__PURE__ */ s(
|
|
10299
10307
|
"div",
|
|
@@ -10326,7 +10334,7 @@ const Tl = (e) => {
|
|
|
10326
10334
|
) })
|
|
10327
10335
|
] }),
|
|
10328
10336
|
/* @__PURE__ */ s(n, { highlighted: !1, onClick: r, children: t.back }),
|
|
10329
|
-
/* @__PURE__ */ s(NE, { children: /* @__PURE__ */ s(
|
|
10337
|
+
/* @__PURE__ */ s(NE, { children: /* @__PURE__ */ s(kE, { disabled: !o }) })
|
|
10330
10338
|
] }) });
|
|
10331
10339
|
}, BE = ({
|
|
10332
10340
|
isActive: e,
|
|
@@ -10438,7 +10446,7 @@ const Tl = (e) => {
|
|
|
10438
10446
|
return () => clearTimeout(r);
|
|
10439
10447
|
}, [e]), t;
|
|
10440
10448
|
}, zE = ({ type: e }) => {
|
|
10441
|
-
const { handleReject: t } = ie({ type: e }), [n] =
|
|
10449
|
+
const { handleReject: t } = ie({ type: e }), [n] = kn(), [{ status: r, action: o }] = Z(), { isCompleteWithdrawStep: a } = _t(), {
|
|
10442
10450
|
isUnrollAndClaimTransaction: i,
|
|
10443
10451
|
isFetching: l,
|
|
10444
10452
|
isFetched: c
|
|
@@ -10446,7 +10454,7 @@ const Tl = (e) => {
|
|
|
10446
10454
|
onErrorCallback: t
|
|
10447
10455
|
}), p = UE(d);
|
|
10448
10456
|
WE(t, r, o);
|
|
10449
|
-
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 : "";
|
|
10450
10458
|
return {
|
|
10451
10459
|
isUnrollAndClaimTransaction: i,
|
|
10452
10460
|
activeStepIndex: u,
|
|
@@ -10549,7 +10557,7 @@ const Tl = (e) => {
|
|
|
10549
10557
|
onError: i
|
|
10550
10558
|
}) => {
|
|
10551
10559
|
const l = S(), c = rt();
|
|
10552
|
-
return !e || !t ? /* @__PURE__ */ w(
|
|
10560
|
+
return !e || !t ? /* @__PURE__ */ w(L, { children: [
|
|
10553
10561
|
/* @__PURE__ */ s(
|
|
10554
10562
|
jt,
|
|
10555
10563
|
{
|
|
@@ -10568,7 +10576,7 @@ const Tl = (e) => {
|
|
|
10568
10576
|
label: l.swapToCompleteSell
|
|
10569
10577
|
}
|
|
10570
10578
|
)
|
|
10571
|
-
] }) : /* @__PURE__ */ w(
|
|
10579
|
+
] }) : /* @__PURE__ */ w(L, { children: [
|
|
10572
10580
|
/* @__PURE__ */ s(
|
|
10573
10581
|
jE,
|
|
10574
10582
|
{
|
|
@@ -10618,7 +10626,7 @@ const Tl = (e) => {
|
|
|
10618
10626
|
),
|
|
10619
10627
|
/* @__PURE__ */ w("div", { className: "dtw-flex dtw-flex-col dtw-items-center dtw-gap-2", children: [
|
|
10620
10628
|
/* @__PURE__ */ s(
|
|
10621
|
-
|
|
10629
|
+
ke,
|
|
10622
10630
|
{
|
|
10623
10631
|
symbols: [p?.sendToken?.symbol ?? ""],
|
|
10624
10632
|
size: "2xl"
|
|
@@ -10666,7 +10674,7 @@ const Tl = (e) => {
|
|
|
10666
10674
|
] });
|
|
10667
10675
|
}, YE = () => {
|
|
10668
10676
|
const e = S();
|
|
10669
|
-
return /* @__PURE__ */ w(
|
|
10677
|
+
return /* @__PURE__ */ w(L, { children: [
|
|
10670
10678
|
/* @__PURE__ */ s(
|
|
10671
10679
|
Ht,
|
|
10672
10680
|
{
|
|
@@ -10680,7 +10688,7 @@ const Tl = (e) => {
|
|
|
10680
10688
|
{
|
|
10681
10689
|
label: e.tokenAllowance,
|
|
10682
10690
|
tooltipText: e.toggleTokenApprovalAmount,
|
|
10683
|
-
children: /* @__PURE__ */ s(
|
|
10691
|
+
children: /* @__PURE__ */ s(ki, {})
|
|
10684
10692
|
}
|
|
10685
10693
|
),
|
|
10686
10694
|
/* @__PURE__ */ s(Di, {})
|
|
@@ -10732,7 +10740,7 @@ const Tl = (e) => {
|
|
|
10732
10740
|
};
|
|
10733
10741
|
}, ZE = () => {
|
|
10734
10742
|
const e = S(), { assets: t, usdAmount: n, withdrawalVaultLink: r } = XE();
|
|
10735
|
-
return /* @__PURE__ */ w(
|
|
10743
|
+
return /* @__PURE__ */ w(L, { children: [
|
|
10736
10744
|
/* @__PURE__ */ w("div", { className: "dtw-text-sm dtw-flex dtw-items-center dtw-gap-1", children: [
|
|
10737
10745
|
/* @__PURE__ */ s("span", { className: "dtw-text-[color:var(--panel-secondary-content-color)]", children: e.total }),
|
|
10738
10746
|
/* @__PURE__ */ s(
|
|
@@ -10846,7 +10854,7 @@ const Tl = (e) => {
|
|
|
10846
10854
|
}, aI = ({ children: e }) => /* @__PURE__ */ w(j.Meta, { children: [
|
|
10847
10855
|
/* @__PURE__ */ s("div", { className: "dtw-bg-[var(--panel-meta-action-panel-bg)]", children: e }),
|
|
10848
10856
|
/* @__PURE__ */ s(oI, {})
|
|
10849
|
-
] }), sI = () => (ox(), /* @__PURE__ */ w(
|
|
10857
|
+
] }), sI = () => (ox(), /* @__PURE__ */ w(L, { children: [
|
|
10850
10858
|
/* @__PURE__ */ w(j.InputGroup, { children: [
|
|
10851
10859
|
/* @__PURE__ */ s(ZE, {}),
|
|
10852
10860
|
/* @__PURE__ */ s(nI, {})
|
|
@@ -10859,7 +10867,7 @@ const Tl = (e) => {
|
|
|
10859
10867
|
const { chainId: e, address: t } = y(), { exitFeeNumber: n } = lo({
|
|
10860
10868
|
address: t,
|
|
10861
10869
|
chainId: e
|
|
10862
|
-
}), [r] =
|
|
10870
|
+
}), [r] = k(), [o, a] = M(), i = fe({ address: t, chainId: e }), l = pe({
|
|
10863
10871
|
address: o.address,
|
|
10864
10872
|
chainId: e
|
|
10865
10873
|
});
|
|
@@ -10920,8 +10928,8 @@ const Tl = (e) => {
|
|
|
10920
10928
|
], vr = {
|
|
10921
10929
|
requiresLeveragedCollateralLiquidity: !1,
|
|
10922
10930
|
leveragedCollateralValueFormatted: "$0"
|
|
10923
|
-
}, fr = (e) => _(e.amount).shiftedBy(-e.precision).times(e.rate).shiftedBy(-F).toNumber(),
|
|
10924
|
-
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(
|
|
10925
10933
|
({ tokenAddress: u, amount: m }) => gr.some(
|
|
10926
10934
|
(h) => h.isLeveragedAsset(u) && m !== "0"
|
|
10927
10935
|
)
|
|
@@ -10967,10 +10975,10 @@ const Tl = (e) => {
|
|
|
10967
10975
|
})
|
|
10968
10976
|
};
|
|
10969
10977
|
}, Dl = () => {
|
|
10970
|
-
const { chainId: e, onDemandWithdrawalEnabled: t } = y(), { requiresLeveragedCollateralLiquidity: n } =
|
|
10978
|
+
const { chainId: e, onDemandWithdrawalEnabled: t } = y(), { requiresLeveragedCollateralLiquidity: n } = kl(), r = Hn(), o = Ll();
|
|
10971
10979
|
return n && !!o && !!t && (e === Pn.id || !r);
|
|
10972
10980
|
}, dI = () => {
|
|
10973
|
-
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({
|
|
10974
10982
|
address: e,
|
|
10975
10983
|
chainId: t
|
|
10976
10984
|
}), p = d > 0, u = ps(
|
|
@@ -11034,7 +11042,7 @@ const Tl = (e) => {
|
|
|
11034
11042
|
`${Math.abs(l)}`
|
|
11035
11043
|
) }) : e;
|
|
11036
11044
|
}, uI = () => {
|
|
11037
|
-
const { address: e, chainId: t } = y(), [n, r] =
|
|
11045
|
+
const { address: e, chainId: t } = y(), [n, r] = k(), o = Se({
|
|
11038
11046
|
symbol: n.symbol,
|
|
11039
11047
|
address: n.address
|
|
11040
11048
|
}), a = fe({ address: e, chainId: t });
|
|
@@ -11050,7 +11058,7 @@ const Tl = (e) => {
|
|
|
11050
11058
|
...t,
|
|
11051
11059
|
updater: n,
|
|
11052
11060
|
price: r,
|
|
11053
|
-
displayCalculatedValue: t.symbol !==
|
|
11061
|
+
displayCalculatedValue: t.symbol !== Ae.symbol
|
|
11054
11062
|
};
|
|
11055
11063
|
}, wI = () => {
|
|
11056
11064
|
const e = uI(), t = mI();
|
|
@@ -11063,7 +11071,7 @@ const Tl = (e) => {
|
|
|
11063
11071
|
};
|
|
11064
11072
|
}, hI = () => {
|
|
11065
11073
|
const { sendToken: e, onInputChange: t, receiveToken: n } = wI();
|
|
11066
|
-
return /* @__PURE__ */ w(
|
|
11074
|
+
return /* @__PURE__ */ w(L, { children: [
|
|
11067
11075
|
/* @__PURE__ */ s(
|
|
11068
11076
|
Vt,
|
|
11069
11077
|
{
|
|
@@ -11176,7 +11184,7 @@ const Tl = (e) => {
|
|
|
11176
11184
|
slippageTooltipText: en(a) === H.DEFAULT ? e.withdrawSlippageWarning : e.highSlippageWarning,
|
|
11177
11185
|
isMaxSlippageLoading: r,
|
|
11178
11186
|
slippagePlaceholder: `${a}%`,
|
|
11179
|
-
exitFee:
|
|
11187
|
+
exitFee: Lr(o, 2),
|
|
11180
11188
|
minReceivedText: e.estimatedMultiAssetFractions,
|
|
11181
11189
|
showMinReceivedText: i
|
|
11182
11190
|
};
|
|
@@ -11242,10 +11250,10 @@ const Tl = (e) => {
|
|
|
11242
11250
|
const { WithdrawMetaInfo: t, AvailableLiquidityAlert: n, OnDemandWithdrawAlert: r } = $(), {
|
|
11243
11251
|
requiresLeveragedCollateralLiquidity: o,
|
|
11244
11252
|
leveragedCollateralValueFormatted: a
|
|
11245
|
-
} =
|
|
11253
|
+
} = kl(), i = Dl();
|
|
11246
11254
|
return /* @__PURE__ */ w(j.Meta, { children: [
|
|
11247
11255
|
/* @__PURE__ */ s(bI, {}),
|
|
11248
|
-
/* @__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(
|
|
11249
11257
|
n,
|
|
11250
11258
|
{
|
|
11251
11259
|
liquidityAmount: a
|
|
@@ -11257,7 +11265,7 @@ const Tl = (e) => {
|
|
|
11257
11265
|
] });
|
|
11258
11266
|
}, SI = () => {
|
|
11259
11267
|
const e = S();
|
|
11260
|
-
return iI(), /* @__PURE__ */ w(
|
|
11268
|
+
return iI(), /* @__PURE__ */ w(L, { children: [
|
|
11261
11269
|
/* @__PURE__ */ s(j.InputGroup, { children: /* @__PURE__ */ s(hI, {}) }),
|
|
11262
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: [
|
|
11263
11271
|
/* @__PURE__ */ s(pI, { children: /* @__PURE__ */ s(Zi, {}) }),
|
|
@@ -11322,8 +11330,8 @@ const Tl = (e) => {
|
|
|
11322
11330
|
}
|
|
11323
11331
|
),
|
|
11324
11332
|
/* @__PURE__ */ w(Ox, { children: [
|
|
11325
|
-
/* @__PURE__ */ s(
|
|
11326
|
-
/* @__PURE__ */ s(
|
|
11333
|
+
/* @__PURE__ */ s(Lx, { type: U.TERMS_OF_USE }),
|
|
11334
|
+
/* @__PURE__ */ s(kx, { type: U.HIGH_SLIPPAGE }),
|
|
11327
11335
|
/* @__PURE__ */ s(Dx, { type: U.HYPEREVM_WARNING }),
|
|
11328
11336
|
/* @__PURE__ */ s(Ux, { type: U.TOKEN_SELECT, searchQuery: "" }),
|
|
11329
11337
|
/* @__PURE__ */ s(Vx, { type: U.POOL_SELECT, searchQuery: "" }),
|
|
@@ -11335,7 +11343,7 @@ const Tl = (e) => {
|
|
|
11335
11343
|
/* @__PURE__ */ s(fC, { type: U.ERROR_NOTIFICATION })
|
|
11336
11344
|
] })
|
|
11337
11345
|
] });
|
|
11338
|
-
},
|
|
11346
|
+
}, LI = ({
|
|
11339
11347
|
children: e,
|
|
11340
11348
|
config: t,
|
|
11341
11349
|
className: n
|
|
@@ -11588,14 +11596,14 @@ const Tl = (e) => {
|
|
|
11588
11596
|
},
|
|
11589
11597
|
children: e
|
|
11590
11598
|
}
|
|
11591
|
-
),
|
|
11599
|
+
), kI = ({
|
|
11592
11600
|
children: e,
|
|
11593
11601
|
config: t,
|
|
11594
11602
|
theme: n,
|
|
11595
11603
|
components: r,
|
|
11596
11604
|
translation: o,
|
|
11597
11605
|
className: a
|
|
11598
|
-
}) => /* @__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 = ({
|
|
11599
11607
|
title: e,
|
|
11600
11608
|
children: t,
|
|
11601
11609
|
className: n,
|
|
@@ -11640,7 +11648,7 @@ const Tl = (e) => {
|
|
|
11640
11648
|
r
|
|
11641
11649
|
),
|
|
11642
11650
|
onClose: t,
|
|
11643
|
-
children: /* @__PURE__ */ s(o, { children: /* @__PURE__ */ w(
|
|
11651
|
+
children: /* @__PURE__ */ s(o, { children: /* @__PURE__ */ w(L, { children: [
|
|
11644
11652
|
/* @__PURE__ */ s(ql, { className: "dtw-fixed dtw-inset-0 dtw-backdrop-blur-md dtw-backdrop-brightness-75 dtw-backdrop-filter" }),
|
|
11645
11653
|
/* @__PURE__ */ s(
|
|
11646
11654
|
"div",
|
|
@@ -11679,7 +11687,7 @@ const Tl = (e) => {
|
|
|
11679
11687
|
({ children: c }) => /* @__PURE__ */ s(Jn, { config: t, children: c }),
|
|
11680
11688
|
[t]
|
|
11681
11689
|
);
|
|
11682
|
-
return /* @__PURE__ */ w(
|
|
11690
|
+
return /* @__PURE__ */ w(L, { children: [
|
|
11683
11691
|
e({ onClick: n, isTransactionPending: a }),
|
|
11684
11692
|
/* @__PURE__ */ s(
|
|
11685
11693
|
$l,
|
|
@@ -11738,7 +11746,7 @@ const Tl = (e) => {
|
|
|
11738
11746
|
({ children: l }) => /* @__PURE__ */ s(Jn, { config: t, children: l }),
|
|
11739
11747
|
[t]
|
|
11740
11748
|
);
|
|
11741
|
-
return /* @__PURE__ */ w(
|
|
11749
|
+
return /* @__PURE__ */ w(L, { children: [
|
|
11742
11750
|
e({ onClick: r }),
|
|
11743
11751
|
/* @__PURE__ */ s(
|
|
11744
11752
|
$l,
|
|
@@ -11815,8 +11823,8 @@ export {
|
|
|
11815
11823
|
ON as AaveLendingPoolAbi,
|
|
11816
11824
|
I as AddressZero,
|
|
11817
11825
|
Ya as BRIDGED_TOKENS_SYMBOLS,
|
|
11818
|
-
|
|
11819
|
-
|
|
11826
|
+
LN as BRIDGED_USDC_ARBITRUM,
|
|
11827
|
+
kN as BRIDGED_USDC_OPTIMISM,
|
|
11820
11828
|
DN as BRIDGED_USDC_POLYGON,
|
|
11821
11829
|
RN as CBBTC_BASE,
|
|
11822
11830
|
$N as CBETH_BASE,
|
|
@@ -11840,11 +11848,11 @@ export {
|
|
|
11840
11848
|
Co as DEFAULT_SIMULATION_ERROR,
|
|
11841
11849
|
Ka as DEFAULT_WITHDRAW_SLIPPAGE,
|
|
11842
11850
|
BT as EIP712_TYPES,
|
|
11843
|
-
|
|
11851
|
+
Lc as EMPTY_POOL_CONFIG,
|
|
11844
11852
|
Ze as EasySwapperV2Abi,
|
|
11845
11853
|
wt as EstimationError,
|
|
11846
11854
|
xo as GAS_ESTIMATION_ERROR,
|
|
11847
|
-
|
|
11855
|
+
kc as GAS_LIMIT_BUFFER_COEFF,
|
|
11848
11856
|
ei as GET_ALL_LIMIT_SELL_ORDER_IDS_FUNCTION_NAME,
|
|
11849
11857
|
GN as GMX_MARKET_ASSETS,
|
|
11850
11858
|
HN as GMX_MARKET_ASSETS_MAP,
|
|
@@ -11857,9 +11865,9 @@ export {
|
|
|
11857
11865
|
TE as LimitBuyOverlay,
|
|
11858
11866
|
ss as LimitOrderAbi,
|
|
11859
11867
|
AN as LimitSellOrderModal,
|
|
11860
|
-
|
|
11868
|
+
Ee as MANAGER_FEE_DENOMINATOR,
|
|
11861
11869
|
cn as MAX_GAS_LIMIT_MAP,
|
|
11862
|
-
|
|
11870
|
+
Ae as MULTI_ASSET_TOKEN,
|
|
11863
11871
|
_e as MaxUint256,
|
|
11864
11872
|
qN as NATIVE_TOKEN_DEPOSIT_GAS_LIMIT,
|
|
11865
11873
|
Wr as OndoApiError,
|
|
@@ -11925,7 +11933,7 @@ export {
|
|
|
11925
11933
|
V_ as formatEther,
|
|
11926
11934
|
Ge as formatNumberToLimitedDecimals,
|
|
11927
11935
|
ln as formatNumeratorToPercentage,
|
|
11928
|
-
|
|
11936
|
+
Lr as formatPercentage,
|
|
11929
11937
|
ne as formatToUsd,
|
|
11930
11938
|
j_ as formatUnits,
|
|
11931
11939
|
sc as getContractAbiById,
|
|
@@ -11939,7 +11947,7 @@ export {
|
|
|
11939
11947
|
q_ as hexToString,
|
|
11940
11948
|
So as isAaveLendAndBorrowAsset,
|
|
11941
11949
|
Q as isEqualAddress,
|
|
11942
|
-
|
|
11950
|
+
kb as isErrorWithMessage,
|
|
11943
11951
|
dc as isFmpAirdropVaultAddress,
|
|
11944
11952
|
_r as isNativeToken,
|
|
11945
11953
|
V as isZeroAddress,
|
|
@@ -11963,7 +11971,7 @@ export {
|
|
|
11963
11971
|
Jy as useCheckWhitelist,
|
|
11964
11972
|
at as useCompleteWithdrawSwapQuotes,
|
|
11965
11973
|
ce as useCompleteWithdrawTrackedAssets,
|
|
11966
|
-
|
|
11974
|
+
L_ as useConnect,
|
|
11967
11975
|
ve as useContractFunction,
|
|
11968
11976
|
eT as useContractPoolComposition,
|
|
11969
11977
|
Js as useContractReadErrorLogging,
|
|
@@ -11972,9 +11980,9 @@ export {
|
|
|
11972
11980
|
_i as useDebounce,
|
|
11973
11981
|
PS as useDepositLockTime,
|
|
11974
11982
|
fA as useDepositProjectedEarnings,
|
|
11975
|
-
|
|
11983
|
+
k_ as useDisconnect,
|
|
11976
11984
|
TA as useEasySwapperTrackedAssets,
|
|
11977
|
-
|
|
11985
|
+
Ln as useEffectiveAggregators,
|
|
11978
11986
|
XT as useExchangeRate,
|
|
11979
11987
|
bN as useFlatmoneyPointsUserBalances,
|
|
11980
11988
|
Bb as useGasPrice,
|
|
@@ -12017,7 +12025,7 @@ export {
|
|
|
12017
12025
|
$_ as useReadContracts,
|
|
12018
12026
|
M as useReceiveTokenInput,
|
|
12019
12027
|
_A as useReferralAddress,
|
|
12020
|
-
|
|
12028
|
+
k as useSendTokenInput,
|
|
12021
12029
|
B_ as useSendTransaction,
|
|
12022
12030
|
sN as useSetPoolAddress,
|
|
12023
12031
|
dN as useSetTradingType,
|
|
@@ -12045,7 +12053,7 @@ export {
|
|
|
12045
12053
|
cN as useUpdateTradingSettings,
|
|
12046
12054
|
Qy as useUserBalancesDynamic,
|
|
12047
12055
|
an as useUserLimitSellOrder,
|
|
12048
|
-
|
|
12056
|
+
Se as useUserTokenBalance,
|
|
12049
12057
|
mT as useUserVaultBalance,
|
|
12050
12058
|
uT as useUserVaultsBalances,
|
|
12051
12059
|
fN as useVaultContractData,
|
|
@@ -12054,7 +12062,7 @@ export {
|
|
|
12054
12062
|
sT as useVaultVestedPoints,
|
|
12055
12063
|
M_ as useWaitForTransactionReceipt,
|
|
12056
12064
|
F_ as useWalletClient,
|
|
12057
|
-
|
|
12065
|
+
kn as useWithdrawAction,
|
|
12058
12066
|
W_ as useWriteContract,
|
|
12059
12067
|
NN as validateLoggerEventParams
|
|
12060
12068
|
};
|