@dhedge/trading-widget 5.7.0 → 5.7.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/index.js CHANGED
@@ -1,30 +1,31 @@
1
- var Li = Object.defineProperty;
2
- var $i = (e, t, n) => t in e ? Li(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
3
- var Le = (e, t, n) => $i(e, typeof t != "symbol" ? t + "" : t, n);
1
+ var Pi = Object.defineProperty;
2
+ var Li = (e, t, n) => t in e ? Pi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
3
+ var Le = (e, t, n) => Li(e, typeof t != "symbol" ? t + "" : t, n);
4
4
  import { jsx as s, jsxs as w, Fragment as O } from "react/jsx-runtime";
5
- import { Tab as Mr, Disclosure as Fr, DisclosureButton as Wr, Transition as zr, DisclosurePanel as Ur, TabPanel as Gr, Popover as Ri, PopoverButton as Bi, PopoverBackdrop as Mi, PopoverPanel as Fi, Field as Hr, Label as Vr, Switch as Wi, Checkbox as zi, TabGroup as jr, TabList as qr, TabPanels as Kr, Dialog as Ui, DialogBackdrop as Gi, DialogPanel as Hi } from "@headlessui/react";
6
- import { useAccount as Qr, useConfig as Vi, useSwitchChain as ji, useReadContract as ye, useBalance as qi, useWalletClient as Ki, usePublicClient as Vn, useWriteContract as Qi, useEstimateFeesPerGas as Yi, useBlockNumber as Xi, useCapabilities as Zi, useReadContracts as re, useConnect as Yr, useWaitForTransactionReceipt as qt, useWaitForCallsStatus as Ji, useSimulateContract as el, useSendCalls as tl } from "wagmi";
7
- import { useBlockNumber as cE, useConnect as dE, useDisconnect as pE, usePublicClient as uE, useReadContract as mE, useReadContracts as wE, useSendTransaction as hE, useWaitForTransactionReceipt as gE, useWalletClient as vE, useWriteContract as fE } from "wagmi";
8
- import { createContext as ge, useReducer as jn, useCallback as f, useMemo as _, useContext as ve, useState as q, useEffect as N, forwardRef as nl, useRef as de, Children as ol, isValidElement as rl, Fragment as al } from "react";
9
- import { b as I, p as F, G as sl, o as ft, j as il, R as Go, S as ll, a0 as gn, s as Ho, q as cl, a6 as dl, a5 as Qe, ap as bt, aq as Ne, ar as _e, as as Ve, u as pl, B as Xr, $ as ue, at as vn, N as Zr, I as ul, am as ml, m as wl, t as hl, n as gl, k as vl, w as fl, h as Jr, ab as Fe, aa as qe, a1 as me, au as bl, J as Kt, av as ea, r as ta, E as Tl, a9 as qn, ag as na, z as oa, H as ra, l as yl, F as Al, af as Sl, ae as xl, D as Cl, a2 as Ye, c as Mt, y as Ce, K as El, a as aa, x as sa, v as ia, d as la, a8 as Il, X as Nl, aw as ca, Z as fn } from "./storage-C-fGORin.js";
10
- import { A as TE, ax as yE, ay as AE, az as SE, aA as xE, aB as CE, aC as EE, C as IE, f as NE, aD as _E, aE as kE, g as OE, i as DE, T as PE, U as LE, aF as $E, aG as RE, a3 as BE, aH as ME, a4 as FE, aI as WE, aJ as zE, aK as UE, aL as GE, aM as HE, aN as VE, aO as jE, aP as qE, aQ as KE, aR as QE, aS as YE, aT as XE, aU as ZE, aV as JE, aW as eI, aX as tI, aY as nI, aZ as oI, a_ as rI, a$ as aI, b0 as sI, b1 as iI, b2 as lI, b3 as cI, b4 as dI, b5 as pI, b6 as uI, b7 as mI, b8 as wI, b9 as hI, ba as gI, bb as vI, bc as fI, bd as bI, ah as TI, ai as yI } from "./storage-C-fGORin.js";
11
- import { erc20Abi as we, encodeFunctionData as da, formatUnits as he, formatEther as _l, encodePacked as kl, keccak256 as Ol } from "viem";
12
- import { decodeErrorResult as SI, encodeFunctionData as xI, erc20Abi as CI, formatEther as EI, formatUnits as II, hexToString as NI, trim as _I } from "viem";
5
+ import { Tab as Mr, Disclosure as Fr, DisclosureButton as Wr, Transition as zr, DisclosurePanel as Ur, TabPanel as Gr, Popover as $i, PopoverButton as Ri, PopoverBackdrop as Bi, PopoverPanel as Mi, Field as Hr, Label as Vr, Switch as Fi, Checkbox as Wi, TabGroup as jr, TabList as qr, TabPanels as Kr, Dialog as zi, DialogBackdrop as Ui, DialogPanel as Gi } from "@headlessui/react";
6
+ import { useAccount as Qr, useConfig as Hi, useSwitchChain as Vi, useReadContract as ye, useBalance as ji, useWalletClient as qi, usePublicClient as Vn, useWriteContract as Ki, useEstimateFeesPerGas as Qi, useBlockNumber as Yi, useCapabilities as Xi, useReadContracts as ae, useConnect as Yr, useWaitForTransactionReceipt as qt, useWaitForCallsStatus as Zi, useSimulateContract as Ji, useSendCalls as el } from "wagmi";
7
+ import { useBlockNumber as pE, useConnect as uE, useDisconnect as mE, usePublicClient as wE, useReadContract as hE, useReadContracts as gE, useSendTransaction as vE, useWaitForTransactionReceipt as fE, useWalletClient as bE, useWriteContract as TE } from "wagmi";
8
+ import { createContext as ge, useReducer as jn, useCallback as f, useMemo as _, useContext as ve, useState as q, useEffect as N, forwardRef as tl, useRef as de, Children as nl, isValidElement as ol, Fragment as rl } from "react";
9
+ import { b as I, p as F, G as al, o as ft, j as sl, R as Go, S as il, a0 as gn, s as Ho, q as ll, a6 as cl, a5 as Qe, ap as bt, aq as Ne, ar as _e, as as Ve, u as dl, B as Xr, $ as ue, at as vn, N as Zr, I as pl, am as ul, m as ml, t as wl, n as hl, k as gl, w as vl, h as Jr, ab as Fe, aa as qe, a1 as me, au as fl, J as Kt, av as ea, r as ta, E as bl, a9 as qn, ag as na, z as oa, H as ra, l as Tl, F as yl, af as Al, ae as Sl, D as xl, a2 as Ye, c as Mt, y as Ce, K as Cl, a as aa, x as sa, v as ia, d as la, a8 as El, X as Il, aw as ca, Z as fn } from "./storage-C-fGORin.js";
10
+ import { A as AE, ax as SE, ay as xE, az as CE, aA as EE, aB as IE, aC as NE, C as _E, f as kE, aD as OE, aE as DE, g as PE, i as LE, T as $E, U as RE, aF as BE, aG as ME, a3 as FE, aH as WE, a4 as zE, aI as UE, aJ as GE, aK as HE, aL as VE, aM as jE, aN as qE, aO as KE, aP as QE, aQ as YE, aR as XE, aS as ZE, aT as JE, aU as eI, aV as tI, aW as nI, aX as oI, aY as rI, aZ as aI, a_ as sI, a$ as iI, b0 as lI, b1 as cI, b2 as dI, b3 as pI, b4 as uI, b5 as mI, b6 as wI, b7 as hI, b8 as gI, b9 as vI, ba as fI, bb as bI, bc as TI, bd as yI, ah as AI, ai as SI } from "./storage-C-fGORin.js";
11
+ import { erc20Abi as we, encodeFunctionData as da, formatUnits as he, formatEther as Nl, encodePacked as _l, keccak256 as kl } from "viem";
12
+ import { decodeErrorResult as CI, encodeFunctionData as EI, erc20Abi as II, formatEther as NI, formatUnits as _I, hexToString as kI, trim as OI } from "viem";
13
13
  import E, { BigNumber as Ie } from "bignumber.js";
14
- import { z as Dl, H as Pl, n as Ll, o as j, S as Q, F as Kn, v as $l, T as J, M as Rl, L as Ln, x as Vo, U as ee, p as Wt, w as je, l as Pt, V as Bl, W as wt, D as Ml, y as Qn, c as Fl, g as jo, h as Wl, i as zl, Q as Ul, d as Gl, f as Hl, I as pa, k as bn, K as Vl, e as qo, O as jl, N as ua, C as ma, r as wa, s as ql, m as ha, G as ga, X as ke, Y as Kl, A as va, J as fa, Z as Yn, _ as Ql, B as Ko, u as Yl, t as Xl, E as Zl } from "./complex-withdraw-asset-data-CSbXrln9.js";
15
- import { $ as OI, a0 as DI, R as PI } from "./complex-withdraw-asset-data-CSbXrln9.js";
16
- import { CustomError as Jl } from "ts-custom-error";
14
+ import { z as Ol, H as Dl, n as Pl, o as j, S as Q, F as Kn, v as Ll, T as Z, M as $l, L as Ln, x as Vo, U as ee, p as Wt, w as je, l as Pt, V as Rl, W as wt, D as Bl, y as Qn, c as Ml, g as jo, h as Fl, i as Wl, Q as zl, d as Ul, f as Gl, I as pa, k as bn, K as Hl, e as qo, O as Vl, N as ua, C as ma, r as wa, s as jl, m as ha, G as ga, X as ke, Y as ql, A as va, J as fa, Z as Yn, _ as Kl, B as Ko, u as Ql, t as Yl, E as Xl } from "./complex-withdraw-asset-data-CSbXrln9.js";
15
+ import { $ as PI, a0 as LI, R as $I } from "./complex-withdraw-asset-data-CSbXrln9.js";
16
+ import { CustomError as Zl } from "ts-custom-error";
17
17
  import { useQuery as Xn, useQueryClient as Zn } from "@tanstack/react-query";
18
- import { QuestionMarkCircleIcon as $n, ExclamationCircleIcon as ht, CheckCircleIcon as ba, Cog6ToothIcon as ec, LockClosedIcon as tc, ArrowTopRightOnSquareIcon as Ta } from "@heroicons/react/24/outline";
18
+ import { QuestionMarkCircleIcon as $n, ExclamationCircleIcon as ht, CheckCircleIcon as ba, Cog6ToothIcon as Jl, LockClosedIcon as ec, ArrowTopRightOnSquareIcon as Ta } from "@heroicons/react/24/outline";
19
19
  import C from "classnames";
20
- import { usePopperTooltip as nc } from "react-popper-tooltip";
21
- import { format as oc, formatDuration as ya, intervalToDuration as rc } from "date-fns";
22
- import { optimism as Aa, base as Sa, hyperEvm as ac, polygon as sc, arbitrum as Jn, mainnet as ic } from "wagmi/chains";
23
- import { arbitrum as $I, base as RI, optimism as BI, polygon as MI } from "wagmi/chains";
24
- import { injected as lc } from "wagmi/connectors";
25
- import { ChevronDownIcon as xa, ArrowDownIcon as cc, ArrowPathIcon as dc, CheckIcon as Tt } from "@heroicons/react/24/solid";
26
- import { XMarkIcon as Ca, ChevronLeftIcon as pc } from "@heroicons/react/16/solid";
27
- import { CircleStackIcon as Ea, ChevronDownIcon as uc, CheckIcon as mc } from "@heroicons/react/20/solid";
20
+ import { usePopperTooltip as tc } from "react-popper-tooltip";
21
+ import { format as nc, formatDuration as ya, intervalToDuration as oc } from "date-fns";
22
+ import { optimism as Aa, base as Sa, hyperEvm as rc, polygon as ac, arbitrum as Jn, mainnet as sc } from "wagmi/chains";
23
+ import { arbitrum as BI, base as MI, optimism as FI, polygon as WI } from "wagmi/chains";
24
+ import { injected as ic } from "wagmi/connectors";
25
+ import { ChevronDownIcon as xa, ArrowDownIcon as lc, ArrowPathIcon as cc, CheckIcon as Tt } from "@heroicons/react/24/solid";
26
+ import { XMarkIcon as Ca, ChevronLeftIcon as dc } from "@heroicons/react/16/solid";
27
+ import { CircleStackIcon as Ea, ChevronDownIcon as pc, CheckIcon as uc } from "@heroicons/react/20/solid";
28
+ import { C as mc } from "./derive-BmKPodpX.js";
28
29
  const $ = () => {
29
30
  const { address: e, status: t, connector: n, isConnected: o } = Qr();
30
31
  return {
@@ -72,7 +73,7 @@ const $ = () => {
72
73
  stateMutability: "nonpayable",
73
74
  type: "function"
74
75
  }
75
- ], zC = {
76
+ ], GC = {
76
77
  address: "0xb88339cb7199b77e23db6e890353e22632ba630f",
77
78
  symbol: "USDC",
78
79
  decimals: 6,
@@ -104,7 +105,7 @@ const Qo = {
104
105
  isMaxSlippageLoading: !1,
105
106
  availableAggregators: [],
106
107
  ...e?.settings,
107
- isBatchTransactionsEnabled: Dl() ?? e?.settings?.isBatchTransactionsEnabled ?? !1,
108
+ isBatchTransactionsEnabled: Ol() ?? e?.settings?.isBatchTransactionsEnabled ?? !1,
108
109
  selectedAggregators: e?.settings?.selectedAggregators ?? e?.settings?.availableAggregators ?? []
109
110
  },
110
111
  type: o,
@@ -269,7 +270,7 @@ const Qo = {
269
270
  const o = t.transactions.find(
270
271
  (a) => a.txHash === n.payload.txHash
271
272
  );
272
- return n.payload.status === "success" && o && Pl({
273
+ return n.payload.status === "success" && o && Dl({
273
274
  action: o.action,
274
275
  log: e,
275
276
  symbol: o.symbol,
@@ -310,7 +311,7 @@ const Qo = {
310
311
  default:
311
312
  return t;
312
313
  }
313
- }, UC = ({
314
+ }, HC = ({
314
315
  children: e,
315
316
  initialState: t,
316
317
  actions: {
@@ -344,7 +345,7 @@ const Qo = {
344
345
  x({ type: "UPDATE_SEND_TOKEN_INPUT", payload: P }), o?.(P);
345
346
  },
346
347
  [o]
347
- ), oe = f(
348
+ ), re = f(
348
349
  (P) => {
349
350
  x({ type: "UPDATE_RECEIVE_TOKEN_INPUT", payload: P }), r?.(P);
350
351
  },
@@ -393,13 +394,13 @@ const Qo = {
393
394
  x({ type: "SET_SWAP_QUOTE_REFRESH_TRIGGERED", payload: P });
394
395
  },
395
396
  []
396
- ), Pi = _(
397
+ ), Di = _(
397
398
  () => ({
398
399
  setPoolAddress: R,
399
400
  setTradingType: Dt,
400
401
  updateTradingSettings: xe,
401
402
  updateSendTokenInput: B,
402
- updateReceiveTokenInput: oe,
403
+ updateReceiveTokenInput: re,
403
404
  updateTradingModal: $o,
404
405
  updateWithdrawAction: Ro,
405
406
  updateTransactions: Bo,
@@ -422,7 +423,7 @@ const Qo = {
422
423
  Dt,
423
424
  xe,
424
425
  B,
425
- oe,
426
+ re,
426
427
  $o,
427
428
  Ro,
428
429
  Bo,
@@ -441,11 +442,11 @@ const Qo = {
441
442
  Uo
442
443
  ]
443
444
  );
444
- return /* @__PURE__ */ s(_a.Provider, { value: Pi, children: /* @__PURE__ */ s(Na.Provider, { value: y, children: e }) });
445
- }, Z = () => ve(Na), W = () => ve(_a), GC = () => W().setPoolAddress, HC = () => W().updateSendTokenInput, VC = () => W().updateReceiveTokenInput, jC = () => W().updateTradingSettings, qC = () => W().setTradingType, KC = () => W().updateTradingModal, gc = () => W().updatePoolFallbackData, vc = () => W().onTransactionError, ka = () => W().onTradingSettleError, fc = () => W().onTransactionSuccess, eo = () => W().onTransactionEstimationError, bc = () => W().onTokenSelector, Xe = () => W().onLog, Tc = () => W().onSimulateTransaction, to = () => {
445
+ return /* @__PURE__ */ s(_a.Provider, { value: Di, children: /* @__PURE__ */ s(Na.Provider, { value: y, children: e }) });
446
+ }, J = () => ve(Na), W = () => ve(_a), VC = () => W().setPoolAddress, jC = () => W().updateSendTokenInput, qC = () => W().updateReceiveTokenInput, KC = () => W().updateTradingSettings, QC = () => W().setTradingType, YC = () => W().updateTradingModal, gc = () => W().updatePoolFallbackData, vc = () => W().onTransactionError, ka = () => W().onTradingSettleError, fc = () => W().onTransactionSuccess, eo = () => W().onTransactionEstimationError, bc = () => W().onTokenSelector, Xe = () => W().onLog, Tc = () => W().onSimulateTransaction, to = () => {
446
447
  const e = W().getSwapQuotes, {
447
448
  settings: { selectedAggregators: t }
448
- } = Z();
449
+ } = J();
449
450
  return f(
450
451
  ({
451
452
  signal: n,
@@ -461,47 +462,47 @@ const Qo = {
461
462
  }),
462
463
  [e, t]
463
464
  );
464
- }, QC = () => W().updatePoolConfig, YC = () => W().addPoolConfig, XC = () => W().updateCustomDepositTokensPerChain, no = () => W().setSwapQuoteRefreshTriggered, yc = () => [
465
- Z().poolAddress,
465
+ }, XC = () => W().updatePoolConfig, ZC = () => W().addPoolConfig, JC = () => W().updateCustomDepositTokensPerChain, no = () => W().setSwapQuoteRefreshTriggered, yc = () => [
466
+ J().poolAddress,
466
467
  W().setPoolAddress
467
468
  ], T = () => {
468
- const { poolAddress: e, poolConfigMap: t } = Z();
469
- return t[e] ?? sl;
469
+ const { poolAddress: e, poolConfigMap: t } = J();
470
+ return t[e] ?? al;
470
471
  }, yt = () => {
471
- const { poolConfigMap: e } = Z();
472
+ const { poolConfigMap: e } = J();
472
473
  return _(() => Object.values(e), [e]);
473
- }, ZC = (e) => {
474
+ }, eE = (e) => {
474
475
  const t = yt();
475
476
  return _(
476
477
  () => t.some((n) => n.address === e),
477
478
  [t, e]
478
479
  );
479
480
  }, Ze = () => {
480
- const { poolFallbackData: e, poolAddress: t } = Z(), n = gc();
481
+ const { poolFallbackData: e, poolAddress: t } = J(), n = gc();
481
482
  return [
482
483
  e.address === t ? e : { address: t },
483
484
  n
484
485
  ];
485
- }, Oa = () => Z().input, k = () => [
486
+ }, Oa = () => J().input, k = () => [
486
487
  Oa().sendToken,
487
488
  W().updateSendTokenInput
488
489
  ], L = () => [
489
490
  Oa().receiveToken,
490
491
  W().updateReceiveTokenInput
491
492
  ], Y = () => [
492
- Z().settings,
493
+ J().settings,
493
494
  W().updateTradingSettings
494
495
  ], Ac = () => [
495
- Z().customDepositTokensPerChain,
496
+ J().customDepositTokensPerChain,
496
497
  W().updateCustomDepositTokensPerChain
497
- ], K = () => [Z().modal, W().updateTradingModal], Qt = () => [
498
- Z().withdrawAction,
498
+ ], K = () => [J().modal, W().updateTradingModal], Qt = () => [
499
+ J().withdrawAction,
499
500
  W().updateWithdrawAction
500
- ], fe = () => [Z().type, W().setTradingType], We = () => Z().type === "deposit", te = () => [
501
- Z().transactions,
501
+ ], fe = () => [J().type, W().setTradingType], We = () => J().type === "deposit", te = () => [
502
+ J().transactions,
502
503
  W().updateTransactions
503
- ], Sc = () => Z().defaultChainId, Tn = (e, t) => t.some(({ id: n }) => n === e), Oe = () => {
504
- const { chain: e } = Qr(), { chains: t } = Vi(), { switchChain: n, switchChainAsync: o } = ji(), r = Sc(), a = e?.id, i = Tn(a, t), l = r && Tn(r, t) ? r : t[0].id;
504
+ ], Sc = () => J().defaultChainId, Tn = (e, t) => t.some(({ id: n }) => n === e), Oe = () => {
505
+ const { chain: e } = Qr(), { chains: t } = Hi(), { switchChain: n, switchChainAsync: o } = Vi(), r = Sc(), a = e?.id, i = Tn(a, t), l = r && Tn(r, t) ? r : t[0].id;
505
506
  return {
506
507
  chain: e,
507
508
  isSupported: i,
@@ -527,12 +528,12 @@ const Qo = {
527
528
  enabled: !r,
528
529
  refetchInterval: ft
529
530
  }
530
- }), JC = () => {
531
+ }), tE = () => {
531
532
  const { account: e } = $(), [t, n] = q(!1);
532
533
  return N(() => {
533
534
  n(!!e);
534
535
  }, [e]), t;
535
- }, Da = (e) => qi({
536
+ }, Da = (e) => ji({
536
537
  ...e,
537
538
  query: { ...e?.query, staleTime: ft }
538
539
  });
@@ -1056,8 +1057,8 @@ function ah(e, t, n, o, r, a) {
1056
1057
  b || (b = m == "constructor");
1057
1058
  }
1058
1059
  if (g && !b) {
1059
- var B = e.constructor, oe = t.constructor;
1060
- B != oe && "constructor" in e && "constructor" in t && !(typeof B == "function" && B instanceof B && typeof oe == "function" && oe instanceof oe) && (g = !1);
1060
+ var B = e.constructor, re = t.constructor;
1061
+ B != re && "constructor" in e && "constructor" in t && !(typeof B == "function" && B instanceof B && typeof re == "function" && re instanceof re) && (g = !1);
1061
1062
  }
1062
1063
  return a.delete(e), a.delete(t), g;
1063
1064
  }
@@ -1335,9 +1336,9 @@ const of = (e) => typeof e == "object" && e !== null && "message" in e && typeof
1335
1336
  return new Error(String(e));
1336
1337
  }
1337
1338
  }, af = (e) => rf(e).message;
1338
- class St extends Jl {
1339
+ class St extends Zl {
1339
1340
  constructor({
1340
- message: n = il,
1341
+ message: n = sl,
1341
1342
  link: o,
1342
1343
  slippage: r,
1343
1344
  txArgs: a,
@@ -1365,7 +1366,7 @@ const sf = async () => {
1365
1366
  contractId: n,
1366
1367
  onSettled: o
1367
1368
  }) => {
1368
- const { account: r } = $(), { chainId: a, supportedChainId: i } = Oe(), l = Ki({ chainId: a }), c = Vn({ chainId: a }), d = Ll(n), p = t ?? j(n, a ?? i), u = Tc(), { writeContract: m } = Qi({
1369
+ const { account: r } = $(), { chainId: a, supportedChainId: i } = Oe(), l = qi({ chainId: a }), c = Vn({ chainId: a }), d = Pl(n), p = t ?? j(n, a ?? i), u = Tc(), { writeContract: m } = Ki({
1369
1370
  mutation: {
1370
1371
  onSettled: o
1371
1372
  }
@@ -1384,8 +1385,8 @@ const sf = async () => {
1384
1385
  if (!R || !a || R === BigInt(0))
1385
1386
  return { error: Go, value: BigInt(0) };
1386
1387
  const B = Math.round(
1387
- Number(R) * ll
1388
- ), oe = gn[a] ?? B, xe = BigInt(Math.min(oe, B));
1388
+ Number(R) * il
1389
+ ), re = gn[a] ?? B, xe = BigInt(Math.min(re, B));
1389
1390
  return console.debug(
1390
1391
  `[core-ui-kit]: estimated gas limit: ${Number(R)}`
1391
1392
  ), { error: "", value: xe };
@@ -1456,18 +1457,18 @@ const sf = async () => {
1456
1457
  });
1457
1458
  const { value: R, error: B } = await h(...b);
1458
1459
  if (B) {
1459
- const { data: oe } = await Promise.race([
1460
+ const { data: re } = await Promise.race([
1460
1461
  v(...b),
1461
1462
  new Promise(
1462
- (xe) => setTimeout(xe, cl, {
1463
+ (xe) => setTimeout(xe, ll, {
1463
1464
  data: null,
1464
- error: dl
1465
+ error: cl
1465
1466
  })
1466
1467
  )
1467
1468
  ]);
1468
1469
  throw new St({
1469
1470
  message: B,
1470
- link: oe?.link,
1471
+ link: re?.link,
1471
1472
  txArgs: b,
1472
1473
  account: r,
1473
1474
  functionName: e,
@@ -1510,7 +1511,7 @@ const sf = async () => {
1510
1511
  send: a && c ? g : sf,
1511
1512
  estimate: h
1512
1513
  };
1513
- }, lf = (e) => Yi({
1514
+ }, lf = (e) => Qi({
1514
1515
  ...e,
1515
1516
  query: {
1516
1517
  ...e?.query,
@@ -1540,7 +1541,7 @@ const sf = async () => {
1540
1541
  abi: n,
1541
1542
  functionName: e,
1542
1543
  args: o
1543
- }))?.result, eE = ({
1544
+ }))?.result, nE = ({
1544
1545
  disabled: e,
1545
1546
  functionName: t,
1546
1547
  address: n,
@@ -1569,7 +1570,7 @@ const sf = async () => {
1569
1570
  queryKey: e,
1570
1571
  watch: t = !0
1571
1572
  }) => {
1572
- const n = Zn(), { data: o } = Xi({
1573
+ const n = Zn(), { data: o } = Yi({
1573
1574
  query: {
1574
1575
  refetchInterval: Qe
1575
1576
  }
@@ -1607,7 +1608,7 @@ const sf = async () => {
1607
1608
  }, [e]);
1608
1609
  return { invalidateAllowanceQueries: t, invalidateTradingQueries: n };
1609
1610
  }, vo = () => {
1610
- const { chainId: e } = Oe(), { data: t } = Zi();
1611
+ const { chainId: e } = Oe(), { data: t } = Xi();
1611
1612
  if (!e || !t)
1612
1613
  return !1;
1613
1614
  const n = t?.[e]?.atomic?.status;
@@ -1620,7 +1621,7 @@ const sf = async () => {
1620
1621
  interactive: r = !0,
1621
1622
  delayHide: a = 50
1622
1623
  }) => {
1623
- const { getTooltipProps: i, setTooltipRef: l, setTriggerRef: c, visible: d } = nc({
1624
+ const { getTooltipProps: i, setTooltipRef: l, setTriggerRef: c, visible: d } = tc({
1624
1625
  interactive: r,
1625
1626
  delayHide: a,
1626
1627
  offset: [0, 12],
@@ -1685,7 +1686,7 @@ const sf = async () => {
1685
1686
  query: {
1686
1687
  enabled: a && !!o
1687
1688
  }
1688
- }), { data: d, queryKey: p } = re({
1689
+ }), { data: d, queryKey: p } = ae({
1689
1690
  contracts: [
1690
1691
  {
1691
1692
  address: t,
@@ -1711,7 +1712,7 @@ const sf = async () => {
1711
1712
  }), zn({
1712
1713
  watch: n && !a,
1713
1714
  queryKey: p
1714
- }), a ? $l({
1715
+ }), a ? Ll({
1715
1716
  nativeTokenBalance: he(
1716
1717
  l?.value ?? BigInt(0),
1717
1718
  l?.decimals ?? F
@@ -1736,7 +1737,7 @@ const sf = async () => {
1736
1737
  ], gf = (e) => ({
1737
1738
  isUserDhedgePool: e[0].result
1738
1739
  }), sn = () => {
1739
- const { account: e = I } = $(), { chainId: t, supportedChainId: n } = Oe(), o = t ?? n, { data: r } = re({
1740
+ const { account: e = I } = $(), { chainId: t, supportedChainId: n } = Oe(), o = t ?? n, { data: r } = ae({
1740
1741
  contracts: hf({ address: e, chainId: o }),
1741
1742
  query: {
1742
1743
  enabled: !Q(e),
@@ -1777,7 +1778,7 @@ const sf = async () => {
1777
1778
  isCustomCooldownDepositAllowed: e[1].result,
1778
1779
  customCooldown: e[2].result,
1779
1780
  aaveAssetGuardAddress: e[3].result
1780
- }), ln = ({ address: e, chainId: t }) => re({
1781
+ }), ln = ({ address: e, chainId: t }) => ae({
1781
1782
  contracts: vf({ address: e, chainId: t }),
1782
1783
  query: {
1783
1784
  enabled: !!e && !Q(e),
@@ -1833,7 +1834,7 @@ const sf = async () => {
1833
1834
  address: e,
1834
1835
  chainId: t
1835
1836
  }) => {
1836
- const n = cs({ address: e, chainId: t }), { account: o = I } = $(), r = re({
1837
+ const n = cs({ address: e, chainId: t }), { account: o = I } = $(), r = ae({
1837
1838
  contracts: bf({
1838
1839
  address: n ?? I,
1839
1840
  chainId: t,
@@ -1870,7 +1871,7 @@ const sf = async () => {
1870
1871
  chainId: t
1871
1872
  }) => {
1872
1873
  const n = cs({ address: e, chainId: t });
1873
- return re({
1874
+ return ae({
1874
1875
  contracts: yf({
1875
1876
  address: n ?? I,
1876
1877
  chainId: t
@@ -1975,7 +1976,7 @@ const ds = /* @__PURE__ */ Yt(ab), ps = ({
1975
1976
  account: e
1976
1977
  }) => {
1977
1978
  const { chainId: t } = Oe(), n = yt();
1978
- return re({
1979
+ return ae({
1979
1980
  contracts: sb(n.map((o) => ({ ...o, account: e }))),
1980
1981
  query: {
1981
1982
  select: (o) => ds(o, ib).reduce(
@@ -2016,7 +2017,7 @@ const ds = /* @__PURE__ */ Yt(ab), ps = ({
2016
2017
  ], db = ([e, t]) => {
2017
2018
  const n = t?.result;
2018
2019
  return {
2019
- tokenPrice: e?.result !== BigInt(0) ? e?.result?.toString() : pl,
2020
+ tokenPrice: e?.result !== BigInt(0) ? e?.result?.toString() : dl,
2020
2021
  totalValueD18: n?.totalFundValue?.toString(),
2021
2022
  totalSupplyD18: n?.totalSupply?.toString(),
2022
2023
  isPrivateVault: n?.privatePool,
@@ -2026,12 +2027,12 @@ const ds = /* @__PURE__ */ Yt(ab), ps = ({
2026
2027
  exitFee: n?.exitFeeNumerator?.toString(),
2027
2028
  managerAddress: n?.manager?.toString()
2028
2029
  };
2029
- }, ae = ({
2030
+ }, se = ({
2030
2031
  address: e,
2031
2032
  chainId: t,
2032
2033
  refetchInterval: n,
2033
2034
  enabled: o = !0
2034
- }) => re({
2035
+ }) => ae({
2035
2036
  contracts: cb({ address: e, chainId: t }),
2036
2037
  query: {
2037
2038
  enabled: o && !!e && !Q(e),
@@ -2042,11 +2043,11 @@ const ds = /* @__PURE__ */ Yt(ab), ps = ({
2042
2043
  address: e,
2043
2044
  chainId: t
2044
2045
  }) => {
2045
- const { account: n } = $(), { data: { managerAddress: o } = { managerAddress: I } } = ae({ address: e, chainId: t }), { data: { isMemberAllowed: r = !1 } = {} } = cn({
2046
+ const { account: n } = $(), { data: { managerAddress: o } = { managerAddress: I } } = se({ address: e, chainId: t }), { data: { isMemberAllowed: r = !1 } = {} } = cn({
2046
2047
  address: e,
2047
2048
  chainId: t
2048
2049
  });
2049
- return n ? r || J(n, o) : !1;
2050
+ return n ? r || Z(n, o) : !1;
2050
2051
  }, ub = ({
2051
2052
  address: e,
2052
2053
  chainId: t
@@ -2068,7 +2069,7 @@ const ds = /* @__PURE__ */ Yt(ab), ps = ({
2068
2069
  } = dn({ address: e, chainId: t }), c = _(
2069
2070
  () => r?.map(({ asset: p }) => p) ?? [],
2070
2071
  [r]
2071
- ), { data: d } = re({
2072
+ ), { data: d } = ae({
2072
2073
  contracts: c.flatMap((p) => [
2073
2074
  {
2074
2075
  address: p,
@@ -2095,7 +2096,7 @@ const ds = /* @__PURE__ */ Yt(ab), ps = ({
2095
2096
  return [];
2096
2097
  const p = ds(d, 2);
2097
2098
  return r.map(({ asset: u, isDeposit: m }, h) => {
2098
- const v = u.toLowerCase(), [g, b] = p[h] ?? [], y = Xr[v.toLowerCase()] ?? g?.result?.toString() ?? o?.[v]?.tokenName ?? Rl(v);
2099
+ const v = u.toLowerCase(), [g, b] = p[h] ?? [], y = Xr[v.toLowerCase()] ?? g?.result?.toString() ?? o?.[v]?.tokenName ?? $l(v);
2099
2100
  return {
2100
2101
  tokenAddress: v,
2101
2102
  isDeposit: m,
@@ -2171,7 +2172,7 @@ const ds = /* @__PURE__ */ Yt(ab), ps = ({
2171
2172
  vaultTokensAmount: t,
2172
2173
  chainId: n
2173
2174
  }) => {
2174
- const o = xt({ address: e, chainId: n }), { data: { totalSupplyD18: r } = {} } = ae({ address: e, chainId: n });
2175
+ const o = xt({ address: e, chainId: n }), { data: { totalSupplyD18: r } = {} } = se({ address: e, chainId: n });
2175
2176
  return _(() => r ? wb({
2176
2177
  composition: o,
2177
2178
  vaultTokensAmount: Ln(t || 0),
@@ -2180,9 +2181,9 @@ const ds = /* @__PURE__ */ Yt(ab), ps = ({
2180
2181
  }, pe = ({
2181
2182
  address: e,
2182
2183
  chainId: t,
2183
- formatter: n = _l
2184
+ formatter: n = Nl
2184
2185
  }) => {
2185
- const [o] = Ze(), { data: r } = ae({
2186
+ const [o] = Ze(), { data: r } = se({
2186
2187
  address: e,
2187
2188
  chainId: t,
2188
2189
  refetchInterval: ft
@@ -2191,14 +2192,14 @@ const ds = /* @__PURE__ */ Yt(ab), ps = ({
2191
2192
  BigInt(r?.tokenPrice ?? o?.tokenPrice ?? "0")
2192
2193
  );
2193
2194
  }, bo = ({ address: e, chainId: t }) => {
2194
- const [n] = Ze(), o = J(n.address, e) ? n : null, {
2195
+ const [n] = Ze(), o = Z(n.address, e) ? n : null, {
2195
2196
  data: {
2196
2197
  performanceFee: r,
2197
2198
  streamingFee: a,
2198
2199
  entryFee: i,
2199
2200
  exitFee: l
2200
2201
  } = {}
2201
- } = ae({ address: e, chainId: t }), c = i ?? o?.entryFeeNumerator ?? "0", d = l ?? o?.exitFeeNumerator ?? "0";
2202
+ } = se({ address: e, chainId: t }), c = i ?? o?.entryFeeNumerator ?? "0", d = l ?? o?.exitFeeNumerator ?? "0";
2202
2203
  return _(() => {
2203
2204
  const p = r ?? o?.performanceFeeNumerator ?? "0", u = a ?? o?.streamingFeeNumerator ?? "0";
2204
2205
  return {
@@ -2273,7 +2274,7 @@ const ds = /* @__PURE__ */ Yt(ab), ps = ({
2273
2274
  }, fb = ({
2274
2275
  enabled: e,
2275
2276
  address: t
2276
- }) => re({
2277
+ }) => ae({
2277
2278
  contracts: vb(t),
2278
2279
  query: {
2279
2280
  enabled: e,
@@ -2294,7 +2295,7 @@ const ds = /* @__PURE__ */ Yt(ab), ps = ({
2294
2295
  address: e,
2295
2296
  chainId: t
2296
2297
  }), o = j("factory", t);
2297
- return re({
2298
+ return ae({
2298
2299
  contracts: n.map(({ tokenAddress: r }) => ({
2299
2300
  address: o,
2300
2301
  abi: bt,
@@ -2304,7 +2305,7 @@ const ds = /* @__PURE__ */ Yt(ab), ps = ({
2304
2305
  })),
2305
2306
  query: {
2306
2307
  select: (r) => n.some(({ amount: a, tokenAddress: i }, l) => (!!r[l]?.result || bb.some(
2307
- (p) => J(p, i)
2308
+ (p) => Z(p, i)
2308
2309
  )) && a !== "0"),
2309
2310
  staleTime: 1 / 0
2310
2311
  }
@@ -2319,7 +2320,7 @@ const ds = /* @__PURE__ */ Yt(ab), ps = ({
2319
2320
  for (const [t, n] of Tb)
2320
2321
  if (e <= t)
2321
2322
  return n;
2322
- return ul;
2323
+ return pl;
2323
2324
  }, Cn = (e) => Number(e?.toString() ?? "0") * 1e3, Ab = ({
2324
2325
  address: e,
2325
2326
  chainId: t
@@ -2354,9 +2355,9 @@ function Sb(e, t, n) {
2354
2355
  balanceInUsdNumber: o
2355
2356
  };
2356
2357
  }
2357
- const ws = (e, t) => Bl(e) ? {
2358
+ const ws = (e, t) => Rl(e) ? {
2358
2359
  rawBalance: e?.toString() ?? "",
2359
- ...Sb(he(e, ml), t?.toString())
2360
+ ...Sb(he(e, ul), t?.toString())
2360
2361
  } : {
2361
2362
  rawBalance: "",
2362
2363
  balanceInUsd: "",
@@ -2382,7 +2383,7 @@ const ws = (e, t) => Bl(e) ? {
2382
2383
  chainId: t,
2383
2384
  address: n
2384
2385
  }) => {
2385
- const { data: o, isFetched: r } = ae({ address: n, chainId: t }), { poolFallbackData: a } = Z(), i = J(a.address, n) ? a.tokenPrice ?? "0" : "0";
2386
+ const { data: o, isFetched: r } = se({ address: n, chainId: t }), { poolFallbackData: a } = J(), i = Z(a.address, n) ? a.tokenPrice ?? "0" : "0";
2386
2387
  return ye({
2387
2388
  address: e ? n : void 0,
2388
2389
  abi: Ne,
@@ -2402,7 +2403,7 @@ const ws = (e, t) => Bl(e) ? {
2402
2403
  chainId: t,
2403
2404
  select: n = Eb
2404
2405
  }) => {
2405
- const { data: { totalValueD18: o } = {} } = ae({ address: e, chainId: t }), { data: { maxSupplyCapD18: r } = {} } = cn({
2406
+ const { data: { totalValueD18: o } = {} } = se({ address: e, chainId: t }), { data: { maxSupplyCapD18: r } = {} } = cn({
2406
2407
  address: e,
2407
2408
  chainId: t
2408
2409
  });
@@ -2424,7 +2425,7 @@ const ws = (e, t) => Bl(e) ? {
2424
2425
  const { data: { maxSupplyCapD18: n } = {} } = cn({
2425
2426
  address: e,
2426
2427
  chainId: t
2427
- }), { data: { totalSupplyD18: o } = {} } = ae({ address: e, chainId: t }), r = pe({ address: e, chainId: t }), { data: a = 0 } = Ib({
2428
+ }), { data: { totalSupplyD18: o } = {} } = se({ address: e, chainId: t }), r = pe({ address: e, chainId: t }), { data: a = 0 } = Ib({
2428
2429
  address: e,
2429
2430
  chainId: t
2430
2431
  });
@@ -2443,26 +2444,26 @@ const ws = (e, t) => Bl(e) ? {
2443
2444
  remainingSupplyCapNumber: d,
2444
2445
  remainingSupplyCapInUsd: p
2445
2446
  };
2446
- }, tE = ({
2447
+ }, oE = ({
2447
2448
  address: e,
2448
2449
  chainId: t
2449
2450
  }) => {
2450
- const { data: { isPrivateVault: n } = { isPrivateVault: !1 } } = ae({
2451
+ const { data: { isPrivateVault: n } = { isPrivateVault: !1 } } = se({
2451
2452
  address: e,
2452
2453
  chainId: t
2453
2454
  }), r = yt().find(
2454
- (i) => J(e, i.address) && i.chainId === t
2455
+ (i) => Z(e, i.address) && i.chainId === t
2455
2456
  ), a = !!(r?.maintenance || r?.maintenanceDeposits);
2456
2457
  return n || a;
2457
- }, nE = (e) => ae(e), oE = () => {
2458
+ }, rE = (e) => se(e), aE = () => {
2458
2459
  const {
2459
2460
  address: e,
2460
2461
  symbol: t,
2461
2462
  chainId: n
2462
- } = T(), { account: o = I } = $(), r = be({ symbol: t, address: e }), { data: { totalSupplyD18: a } = {} } = ae({
2463
+ } = T(), { account: o = I } = $(), r = be({ symbol: t, address: e }), { data: { totalSupplyD18: a } = {} } = se({
2463
2464
  address: e,
2464
2465
  chainId: n
2465
- }), l = Ml(e) && !J(o, I), {
2466
+ }), l = Bl(e) && !Z(o, I), {
2466
2467
  data: { lockedVaultPointsBalance: c, unlockTaxInPercents: d, unlockTime: p } = {},
2467
2468
  isLoading: u
2468
2469
  } = fb({
@@ -2476,7 +2477,7 @@ const ws = (e, t) => Bl(e) ? {
2476
2477
  unlockTaxAmount: v.toFixed(),
2477
2478
  vestedPointsAmount: h.minus(v).toFixed(),
2478
2479
  unlockTimestamp: g,
2479
- unlockDate: g ? oc(g, "PPP") : null,
2480
+ unlockDate: g ? nc(g, "PPP") : null,
2480
2481
  isLoading: u
2481
2482
  };
2482
2483
  }, [
@@ -2507,18 +2508,18 @@ const To = (e) => e ? `https://raw.githubusercontent.com/dhedge/crypto-icons/mai
2507
2508
  isSanctioned: !1,
2508
2509
  depositQuoteDiffWarningThreshold: 1.5,
2509
2510
  depositQuoteDiffErrorThreshold: 3,
2510
- defaultWithdrawSlippage: fl,
2511
- defaultLockTime: vl,
2512
- defaultNoSwapMinDepositAmountGap: gl,
2513
- defaultSwapTransactionSlippage: hl,
2514
- defaultNotificationDuration: wl,
2511
+ defaultWithdrawSlippage: vl,
2512
+ defaultLockTime: gl,
2513
+ defaultNoSwapMinDepositAmountGap: hl,
2514
+ defaultSwapTransactionSlippage: wl,
2515
+ defaultNotificationDuration: ml,
2515
2516
  stablePrecision: 3,
2516
2517
  defaultPrecision: 6,
2517
2518
  termsOfUseAccepted: !0,
2518
2519
  standalone: !0,
2519
2520
  isAllAssetsWithdrawOptionDefault: !1,
2520
2521
  chainConfig: {
2521
- [ic.id]: {
2522
+ [sc.id]: {
2522
2523
  name: "Ethereum",
2523
2524
  iconPath: ""
2524
2525
  },
@@ -2530,7 +2531,7 @@ const To = (e) => e ? `https://raw.githubusercontent.com/dhedge/crypto-icons/mai
2530
2531
  name: "Optimism",
2531
2532
  iconPath: ""
2532
2533
  },
2533
- [sc.id]: {
2534
+ [ac.id]: {
2534
2535
  name: "Polygon",
2535
2536
  iconPath: ""
2536
2537
  },
@@ -2538,7 +2539,7 @@ const To = (e) => e ? `https://raw.githubusercontent.com/dhedge/crypto-icons/mai
2538
2539
  name: "Base",
2539
2540
  iconPath: ""
2540
2541
  },
2541
- [ac.id]: {
2542
+ [rc.id]: {
2542
2543
  name: "HyperEVM",
2543
2544
  iconPath: ""
2544
2545
  }
@@ -2548,7 +2549,7 @@ const To = (e) => e ? `https://raw.githubusercontent.com/dhedge/crypto-icons/mai
2548
2549
  limitOrderThemeConfig: {}
2549
2550
  }, Ob = () => {
2550
2551
  const { connect: e } = Yr(), t = f(
2551
- () => e({ connector: lc({ shimDisconnect: !0 }) }),
2552
+ () => e({ connector: ic({ shimDisconnect: !0 }) }),
2552
2553
  [e]
2553
2554
  ), n = f(async () => (console.log(
2554
2555
  "terms of use were accepted. Assume `termsOfUseAccepted` config value switch to true"
@@ -2824,7 +2825,7 @@ const Fb = /* @__PURE__ */ Yt(Mb), fs = ({
2824
2825
  if (!e)
2825
2826
  throw new Error("OverlayDispatchContext is used out of Provider");
2826
2827
  return e;
2827
- }, se = ({ type: e }) => {
2828
+ }, ie = ({ type: e }) => {
2828
2829
  const t = Cs(), n = ne(), o = f(() => {
2829
2830
  n({
2830
2831
  type: "MERGE_OVERLAY",
@@ -3131,7 +3132,7 @@ const Fb = /* @__PURE__ */ Yt(Mb), fs = ({
3131
3132
  ),
3132
3133
  children: [
3133
3134
  e,
3134
- !!i && /* @__PURE__ */ s("div", { className: "dtw-absolute dtw-top-5 dtw-left-5", children: /* @__PURE__ */ s(Ht, { Icon: pc, onClick: i }) }),
3135
+ !!i && /* @__PURE__ */ s("div", { className: "dtw-absolute dtw-top-5 dtw-left-5", children: /* @__PURE__ */ s(Ht, { Icon: dc, onClick: i }) }),
3135
3136
  !!r && /* @__PURE__ */ s("div", { className: "dtw-absolute dtw-top-5 dtw-right-5", children: /* @__PURE__ */ s(Ht, { Icon: Ca, onClick: r }) })
3136
3137
  ]
3137
3138
  }
@@ -3147,15 +3148,15 @@ const Fb = /* @__PURE__ */ Yt(Mb), fs = ({
3147
3148
  n?.(), r?.(Fe.TRADING_SETTINGS_OPENED);
3148
3149
  };
3149
3150
  return /* @__PURE__ */ w(
3150
- Ri,
3151
+ $i,
3151
3152
  {
3152
3153
  className: C(
3153
3154
  "dtw-flex dtw-items-center dtw-justify-end",
3154
3155
  e
3155
3156
  ),
3156
3157
  children: [
3157
- /* @__PURE__ */ s(Bi, { onClick: a, children: /* @__PURE__ */ s(
3158
- ec,
3158
+ /* @__PURE__ */ s(Ri, { onClick: a, children: /* @__PURE__ */ s(
3159
+ Jl,
3159
3160
  {
3160
3161
  className: C(
3161
3162
  "dtw-h-[var(--panel-input-token-icon-size,var(--panel-icon-size))] dtw-w-[var(--panel-input-token-icon-size,var(--panel-icon-size))] sm:dtw-w-[var(--panel-input-token-icon-size-sm,var(--panel-icon-size-sm))] sm:dtw-h-[var(--panel-input-token-icon-size-sm,var(--panel-icon-size-sm))] hover:dtw-opacity-80 dtw-text-[color:var(--panel-icon-color,var(--panel-content-color))]",
@@ -3163,9 +3164,9 @@ const Fb = /* @__PURE__ */ Yt(Mb), fs = ({
3163
3164
  )
3164
3165
  }
3165
3166
  ) }),
3166
- /* @__PURE__ */ s(Mi, { className: "dtw-absolute dtw-inset-0 dtw-bg-[var(--panel-popup-bg,var(--panel-secondary-color))] dtw-opacity-50" }),
3167
+ /* @__PURE__ */ s(Bi, { className: "dtw-absolute dtw-inset-0 dtw-bg-[var(--panel-popup-bg,var(--panel-secondary-color))] dtw-opacity-50" }),
3167
3168
  /* @__PURE__ */ s(
3168
- Fi,
3169
+ Mi,
3169
3170
  {
3170
3171
  className: "dtw-absolute dtw-z-10 dtw-max-w-xs dtw-top-14 dtw-right-0 dtw-transition dtw-duration-100 dtw-ease-out data-[closed]:dtw-translate-x-1/2 data-[closed]:dtw-opacity-0",
3171
3172
  transition: !0,
@@ -3275,7 +3276,7 @@ const Fb = /* @__PURE__ */ Yt(Mb), fs = ({
3275
3276
  /* @__PURE__ */ s("div", { className: "dtw-py-1 dtw-text-xs", children: t })
3276
3277
  ] }),
3277
3278
  /* @__PURE__ */ s(fo, { text: t, children: /* @__PURE__ */ s(n, { disabled: !0, children: /* @__PURE__ */ w("div", { className: "dtw-flex dtw-items-center dtw-justify-center dtw-gap-2", children: [
3278
- /* @__PURE__ */ s(tc, { className: "dtw-h-5" }),
3279
+ /* @__PURE__ */ s(ec, { className: "dtw-h-5" }),
3279
3280
  /* @__PURE__ */ s("span", { children: e })
3280
3281
  ] }) }) })
3281
3282
  ] });
@@ -3335,7 +3336,7 @@ const Fb = /* @__PURE__ */ Yt(Mb), fs = ({
3335
3336
  }
3336
3337
  ),
3337
3338
  /* @__PURE__ */ s(
3338
- Wi,
3339
+ Fi,
3339
3340
  {
3340
3341
  checked: l,
3341
3342
  onChange: d,
@@ -3528,7 +3529,7 @@ const Fb = /* @__PURE__ */ Yt(Mb), fs = ({
3528
3529
  if (!a) return r ? `${n}0.${r}` : n;
3529
3530
  const i = new Intl.NumberFormat().format(Number(a));
3530
3531
  return r !== void 0 ? `${n}${i}.${r.replace(/[^\d]/g, "")}` : `${n}${i}`;
3531
- }, Nn = (e) => e.replace(/,/g, ""), cT = nl(
3532
+ }, Nn = (e) => e.replace(/,/g, ""), cT = tl(
3532
3533
  ({
3533
3534
  value: e,
3534
3535
  onChange: t,
@@ -3654,7 +3655,7 @@ const Re = ({ className: e }) => /* @__PURE__ */ s(
3654
3655
  ] });
3655
3656
  };
3656
3657
  function pn(e, t, n) {
3657
- const o = bl[n ?? Jn.id]?.blockExplorers?.default?.url;
3658
+ const o = fl[n ?? Jn.id]?.blockExplorers?.default?.url;
3658
3659
  if (o)
3659
3660
  switch (t) {
3660
3661
  case "transaction":
@@ -3667,7 +3668,7 @@ const mT = ({
3667
3668
  batchId: e,
3668
3669
  updatePendingTransactions: t
3669
3670
  }) => {
3670
- const { data: n } = Ji({
3671
+ const { data: n } = Zi({
3671
3672
  id: e,
3672
3673
  pollingInterval: Kt,
3673
3674
  query: { enabled: !!e }
@@ -3737,7 +3738,7 @@ const mT = ({
3737
3738
  link: "",
3738
3739
  sendTokens: null,
3739
3740
  receiveTokens: null
3740
- }), r({ type: "remove", status: "fail" }), console.debug(`${e} transaction failed`, c), i?.(c), t?.(c);
3741
+ }), r({ type: "remove", status: "fail" }), console.debug(`${e} transaction failed`, c), i?.(c, d), t?.(c);
3741
3742
  return;
3742
3743
  }
3743
3744
  if (l) {
@@ -3762,7 +3763,7 @@ const mT = ({
3762
3763
  refetchInterval: n,
3763
3764
  disabled: o = !1
3764
3765
  }) => {
3765
- const { supportedChainId: r } = Oe(), { data: a } = re({
3766
+ const { supportedChainId: r } = Oe(), { data: a } = ae({
3766
3767
  contracts: [
3767
3768
  {
3768
3769
  address: j("factory", t ?? r),
@@ -3829,14 +3830,14 @@ const vT = () => {
3829
3830
  }, Eo = ({
3830
3831
  onErrorCallback: e
3831
3832
  } = {}) => {
3832
- const { account: t } = $(), { chainId: n } = T(), o = Ue(), [r] = k(), a = new E(r.value || "0").shiftedBy(r.decimals).toFixed(0, E.ROUND_UP), i = j("easySwapperV2", n), { canSpend: l, isFetching: c } = Hs({
3833
+ const { account: t } = $(), { chainId: n } = T(), o = Ue(), [r] = k(), a = new E(r.value || "0").shiftedBy(r.decimals).toFixed(0, E.ROUND_UP), i = j("easySwapperV2", n), { canSpend: l, isFetching: c } = Gs({
3833
3834
  tokenAddress: r.address,
3834
3835
  ownerAddress: t ?? I,
3835
3836
  spenderAddress: i,
3836
3837
  rawAmountToSpend: a,
3837
3838
  chainId: n,
3838
3839
  skip: o || a === "0"
3839
- }), d = Gs({
3840
+ }), d = Us({
3840
3841
  token: r,
3841
3842
  rawTokenAmount: a,
3842
3843
  spenderAddress: i,
@@ -3897,11 +3898,11 @@ const vT = () => {
3897
3898
  assets: e,
3898
3899
  getSwapQuotes: t,
3899
3900
  signal: n,
3900
- buildKey: Fl
3901
+ buildKey: Ml
3901
3902
  }), TT = (e, t) => {
3902
3903
  const n = to(), {
3903
3904
  settings: { selectedAggregators: o }
3904
- } = Z();
3905
+ } = J();
3905
3906
  return Xn({
3906
3907
  queryKey: ["getSwapsQuotes", e, o],
3907
3908
  queryFn: async ({ signal: r, queryKey: [, a] }) => await Ls({
@@ -3957,13 +3958,13 @@ const vT = () => {
3957
3958
  }) => {
3958
3959
  const p = Qn(l);
3959
3960
  if (!o?.some(
3960
- (g) => J(g, n)
3961
+ (g) => Z(g, n)
3961
3962
  ))
3962
3963
  return jo(
3963
3964
  o,
3964
3965
  p
3965
3966
  );
3966
- const m = await Wl(
3967
+ const m = await Fl(
3967
3968
  o,
3968
3969
  n,
3969
3970
  {
@@ -3972,10 +3973,10 @@ const vT = () => {
3972
3973
  fetchAaveSwapParams: r,
3973
3974
  fetchAaveSwapQuotes: a
3974
3975
  }
3975
- ), h = zl(
3976
+ ), h = Wl(
3976
3977
  m
3977
3978
  );
3978
- return await Ul(
3979
+ return await zl(
3979
3980
  h,
3980
3981
  m,
3981
3982
  p,
@@ -3991,7 +3992,7 @@ const vT = () => {
3991
3992
  ]
3992
3993
  );
3993
3994
  }, CT = () => {
3994
- const { defaultWithdrawSlippage: e, defaultSwapTransactionSlippage: t } = U(), n = !We(), { isCompleteWithdrawStep: o, isFetching: r } = Ge(), [a] = L(), [, i] = Y(), l = Ws();
3995
+ const { defaultWithdrawSlippage: e, defaultSwapTransactionSlippage: t } = U(), n = !We(), { isCompleteWithdrawStep: o, isFetching: r } = Ge(), [a] = L(), [, i] = Y(), l = Fs();
3995
3996
  N(() => {
3996
3997
  if (!(!n || a.isLoading || r)) {
3997
3998
  if (o) {
@@ -4024,18 +4025,22 @@ const vT = () => {
4024
4025
  query: { enabled: !Q(e) }
4025
4026
  });
4026
4027
  }, Io = () => {
4027
- const { chainId: e } = T(), [t] = L(), n = Ps({ address: t.address, chainId: e }), o = Nt(), r = Bs(), a = new E(r).shiftedBy(F).div(n?.toString() ?? "1").shiftedBy(t.decimals).toFixed(0, E.ROUND_DOWN), i = new E(a).times(1 - ta / 100).times(1 - o / 100).toFixed(0, E.ROUND_DOWN);
4028
- return { expectedReceiveAmount: a, minExpectedReceiveAmount: i };
4028
+ const { chainId: e } = T(), [t] = L(), n = Ps({ address: t.address, chainId: e }), o = Nt(), { data: r = [] } = oe(), a = r.filter(({ address: u }) => Z(u, t.address)).reduce((u, { rawBalance: m }) => u + m, BigInt(0)), i = r.filter(({ address: u }) => !Z(u, t.address)).reduce((u, { valueInUsd: m }) => u + m, 0), l = new E(i).shiftedBy(F).div(n?.toString() ?? "1").shiftedBy(t.decimals).toFixed(0, E.ROUND_DOWN), c = new E(l).times(1 - ta / 100).times(1 - o / 100).toFixed(0, E.ROUND_DOWN), d = new E(
4029
+ a.toString()
4030
+ ).plus(l).toFixed(0, E.ROUND_DOWN), p = new E(
4031
+ a.toString()
4032
+ ).plus(c).toFixed(0, E.ROUND_DOWN);
4033
+ return { expectedReceiveAmount: d, minExpectedReceiveAmount: p };
4029
4034
  }, Rs = ({
4030
4035
  isClaim: e,
4031
4036
  onErrorCallback: t
4032
4037
  } = {}) => {
4033
- const n = T(), { data: o = [] } = ie(), { data: r = {} } = He(), [a] = L(), { minExpectedReceiveAmount: i } = Io(), l = te()[1], c = e ? "claim" : "swap", d = it({
4038
+ const n = T(), { data: o = [] } = oe(), { data: r = {} } = He(), [a] = L(), { minExpectedReceiveAmount: i } = Io(), l = te()[1], c = e ? "claim" : "swap", d = it({
4034
4039
  action: c,
4035
4040
  onErrorCallback: t
4036
- }), p = zs(), { send: u, estimate: m } = Se({
4041
+ }), p = Ws(), { send: u, estimate: m } = Se({
4037
4042
  contractId: "easySwapperV2",
4038
- functionName: Tl,
4043
+ functionName: bl,
4039
4044
  onSettled: d
4040
4045
  }), h = f(async () => {
4041
4046
  if (e || !p)
@@ -4047,14 +4052,14 @@ const vT = () => {
4047
4052
  return console.warn("[Complete Withdraw] No available routers found for swap"), [];
4048
4053
  for (const g of v) {
4049
4054
  const b = Object.entries(r).reduce(
4050
- (R, [B, oe]) => {
4051
- const xe = oe?.find(
4055
+ (R, [B, re]) => {
4056
+ const xe = re?.find(
4052
4057
  (Dt) => Dt.routerKey === g
4053
4058
  );
4054
4059
  return { ...R, [B]: xe };
4055
4060
  },
4056
4061
  {}
4057
- ), y = Gl({
4062
+ ), y = Ul({
4058
4063
  assets: o,
4059
4064
  swapData: b,
4060
4065
  receiveAssetAddress: a.address
@@ -4092,10 +4097,10 @@ const vT = () => {
4092
4097
  h,
4093
4098
  l
4094
4099
  ]);
4095
- }, Bs = () => {
4096
- const { data: e = [] } = ie();
4100
+ }, IT = () => {
4101
+ const { data: e = [] } = oe();
4097
4102
  return e.reduce((t, { balance: n, price: o }) => t + n * o, 0);
4098
- }, IT = ({
4103
+ }, NT = ({
4099
4104
  account: e,
4100
4105
  chainId: t
4101
4106
  }) => ye({
@@ -4105,7 +4110,7 @@ const vT = () => {
4105
4110
  chainId: t,
4106
4111
  args: [e],
4107
4112
  query: { enabled: !Q(e) }
4108
- }), NT = ({
4113
+ }), _T = ({
4109
4114
  assets: e,
4110
4115
  chainId: t
4111
4116
  }) => e.flatMap(({ token: n }) => [
@@ -4130,13 +4135,13 @@ const vT = () => {
4130
4135
  chainId: t,
4131
4136
  args: [n]
4132
4137
  }
4133
- ]), _T = 3, Ms = ({
4138
+ ]), kT = 3, Bs = ({
4134
4139
  assets: e,
4135
4140
  chainId: t
4136
4141
  }) => {
4137
4142
  const n = f(
4138
4143
  (o) => e.map(({ token: r, balance: a }, i) => {
4139
- const l = i * _T, c = l + 1, d = c + 1, p = Number(
4144
+ const l = i * kT, c = l + 1, d = c + 1, p = Number(
4140
4145
  o[c]?.result ?? F
4141
4146
  ), u = Xr[r.toLowerCase()] ?? o[l]?.result?.toString() ?? "", m = new E(a.toString()).shiftedBy(-p).toNumber(), h = new E(o[d]?.result?.toString() ?? 0).shiftedBy(-F).toNumber(), v = m * h;
4142
4147
  return {
@@ -4151,25 +4156,25 @@ const vT = () => {
4151
4156
  }).sort((r, a) => a.valueInUsd - r.valueInUsd),
4152
4157
  [e]
4153
4158
  );
4154
- return re({
4155
- contracts: NT({ assets: e, chainId: t }),
4159
+ return ae({
4160
+ contracts: _T({ assets: e, chainId: t }),
4156
4161
  query: {
4157
4162
  enabled: e.length > 0,
4158
4163
  select: n
4159
4164
  }
4160
4165
  });
4161
- }, ie = () => {
4162
- const { account: e = I } = $(), { chainId: t } = T(), { data: n = [] } = IT({
4166
+ }, oe = () => {
4167
+ const { account: e = I } = $(), { chainId: t } = T(), { data: n = [] } = NT({
4163
4168
  account: e,
4164
4169
  chainId: t
4165
4170
  });
4166
- return Ms({ assets: n, chainId: t });
4171
+ return Bs({ assets: n, chainId: t });
4167
4172
  }, Ge = () => {
4168
- const { data: e = [], isFetching: t } = ie();
4173
+ const { data: e = [], isFetching: t } = oe();
4169
4174
  return { isCompleteWithdrawStep: e?.length > 0, isFetching: t };
4170
4175
  }, He = () => {
4171
- const { defaultSwapTransactionSlippage: e } = U(), { chainId: t } = T(), { account: n = I } = $(), [{ slippage: o }] = Y(), [r] = L(), { data: a = [] } = ie(), i = zs(), l = _(
4172
- () => a.filter(({ address: c }) => !J(c, r.address)).map(({ address: c, rawBalance: d }) => ({
4176
+ const { defaultSwapTransactionSlippage: e } = U(), { chainId: t } = T(), { account: n = I } = $(), [{ slippage: o }] = Y(), [r] = L(), { data: a = [] } = oe(), i = Ws(), l = _(
4177
+ () => a.filter(({ address: c }) => !Z(c, r.address)).map(({ address: c, rawBalance: d }) => ({
4173
4178
  chainId: t,
4174
4179
  sourceAddress: c,
4175
4180
  destinationAddress: r.address,
@@ -4190,8 +4195,8 @@ const vT = () => {
4190
4195
  enabled: i,
4191
4196
  refetchInterval: qn
4192
4197
  });
4193
- }, kT = () => {
4194
- const [e, t] = L(), { data: n = [] } = ie(), {
4198
+ }, OT = () => {
4199
+ const [e, t] = L(), { data: n = [] } = oe(), {
4195
4200
  data: o,
4196
4201
  isFetching: r,
4197
4202
  isError: a
@@ -4202,7 +4207,7 @@ const vT = () => {
4202
4207
  if (n.length === 0 || r || a)
4203
4208
  return;
4204
4209
  const i = n.reduce((l, c) => {
4205
- if (J(c.address, e.address))
4210
+ if (Z(c.address, e.address))
4206
4211
  return l.plus(c.rawBalance.toString());
4207
4212
  const d = o?.[c.address] ?? [], u = d[$s(d)]?.destinationAmount ?? "0";
4208
4213
  return l.plus(u);
@@ -4222,12 +4227,12 @@ const vT = () => {
4222
4227
  o,
4223
4228
  t
4224
4229
  ]);
4225
- }, Fs = ({
4230
+ }, Ms = ({
4226
4231
  withdraw: e,
4227
4232
  isClaim: t,
4228
4233
  onErrorCallback: n
4229
4234
  }) => {
4230
- const o = S(), r = ne(), { account: a } = $(), i = T(), [l] = L(), c = K()[1], d = te()[1], p = eo(), { data: u } = ie(), { isFetching: m } = He(), h = f(async () => {
4235
+ const o = S(), r = ne(), { account: a } = $(), i = T(), [l] = L(), c = K()[1], d = te()[1], p = eo(), { data: u } = oe(), { isFetching: m } = He(), h = f(async () => {
4231
4236
  const v = i.chainId, g = (u ?? []).map(
4232
4237
  ({ address: y, decimals: x, symbol: R, balance: B }) => ({
4233
4238
  address: y,
@@ -4236,7 +4241,7 @@ const vT = () => {
4236
4241
  value: B.toString()
4237
4242
  })
4238
4243
  ), b = t ? null : g.filter(
4239
- (y) => !J(y.address, l.address)
4244
+ (y) => !Z(y.address, l.address)
4240
4245
  );
4241
4246
  c({
4242
4247
  isOpen: !0,
@@ -4290,19 +4295,19 @@ const vT = () => {
4290
4295
  label: t ? o.claimAction : o.swapAction,
4291
4296
  handleTrade: h
4292
4297
  };
4293
- }, Ws = () => {
4298
+ }, Fs = () => {
4294
4299
  const { expectedReceiveAmount: e } = Io(), [t] = L(), n = new E(
4295
4300
  t.value || "0"
4296
4301
  ).shiftedBy(t.decimals);
4297
4302
  return e === "0" || n.isZero() ? 0 : n.dividedBy(e).minus(1).times(100).decimalPlaces(2, E.ROUND_DOWN).toNumber();
4298
- }, zs = () => {
4299
- const [e] = L(), { data: t = [] } = ie();
4300
- return t.length > 0 && t.some(({ address: n }) => !J(n, e.address));
4301
- }, OT = ({
4303
+ }, Ws = () => {
4304
+ const [e] = L(), { data: t = [] } = oe();
4305
+ return t.length > 0 && t.some(({ address: n }) => !Z(n, e.address));
4306
+ }, DT = ({
4302
4307
  handleTrade: e,
4303
4308
  onError: t
4304
4309
  }) => {
4305
- const n = ne(), { data: o = [] } = ie(), {
4310
+ const n = ne(), { data: o = [] } = oe(), {
4306
4311
  data: r,
4307
4312
  isFetching: a,
4308
4313
  isError: i
@@ -4333,7 +4338,7 @@ const vT = () => {
4333
4338
  return n === "auto" ? t ? o ?? e : e : n;
4334
4339
  };
4335
4340
  function kr(e, t, n) {
4336
- const [o, r] = q(n), a = Hl ? e === "sessionStorage" ? sessionStorage : localStorage : null, i = f(
4341
+ const [o, r] = q(n), a = Gl ? e === "sessionStorage" ? sessionStorage : localStorage : null, i = f(
4337
4342
  (l) => {
4338
4343
  try {
4339
4344
  r(l), a?.setItem(t, JSON.stringify(l));
@@ -4352,7 +4357,7 @@ function kr(e, t, n) {
4352
4357
  }
4353
4358
  }, [t, a]), [o, i];
4354
4359
  }
4355
- const Us = (e, t) => {
4360
+ const zs = (e, t) => {
4356
4361
  const [n, o] = q(e);
4357
4362
  return N(() => {
4358
4363
  const r = setTimeout(() => {
@@ -4362,7 +4367,7 @@ const Us = (e, t) => {
4362
4367
  clearTimeout(r);
4363
4368
  };
4364
4369
  }, [e, t]), n;
4365
- }, DT = () => {
4370
+ }, PT = () => {
4366
4371
  const e = T(), [t] = k(), n = Ue(), o = Nt(), r = xT(e);
4367
4372
  return f(
4368
4373
  async (a) => {
@@ -4382,10 +4387,10 @@ const Us = (e, t) => {
4382
4387
  o
4383
4388
  ]
4384
4389
  );
4385
- }, PT = ({
4390
+ }, LT = ({
4386
4391
  debounceTime: e
4387
4392
  } = {}) => {
4388
- const t = T(), n = Ue(), [o] = k(), r = Nt(), { data: { getSupportedAssets: a } = {} } = dn(t), i = Us(
4393
+ const t = T(), n = Ue(), [o] = k(), r = Nt(), { data: { getSupportedAssets: a } = {} } = dn(t), i = zs(
4389
4394
  o.value || "0",
4390
4395
  e ?? 0
4391
4396
  );
@@ -4403,10 +4408,10 @@ const Us = (e, t) => {
4403
4408
  n,
4404
4409
  t.address
4405
4410
  ]);
4406
- }, LT = (e) => typeof e[0] == "string" && typeof e[1] == "bigint" && Array.isArray(e[2]), $T = () => {
4407
- const e = T(), t = an(), { canSpend: n } = Eo(), o = PT({
4411
+ }, $T = (e) => typeof e[0] == "string" && typeof e[1] == "bigint" && Array.isArray(e[2]), RT = () => {
4412
+ const e = T(), t = an(), { canSpend: n } = Eo(), o = LT({
4408
4413
  debounceTime: ra
4409
- }), r = LT(o) && o[1] !== BigInt(0) && !t && n, { data: a } = el({
4414
+ }), r = $T(o) && o[1] !== BigInt(0) && !t && n, { data: a } = Ji({
4410
4415
  abi: _e,
4411
4416
  address: j("easySwapperV2", e.chainId),
4412
4417
  functionName: oa,
@@ -4415,7 +4420,7 @@ const Us = (e, t) => {
4415
4420
  enabled: r
4416
4421
  }
4417
4422
  });
4418
- return Ms({
4423
+ return Bs({
4419
4424
  assets: a?.result[0] ?? [],
4420
4425
  chainId: e.chainId
4421
4426
  });
@@ -4424,17 +4429,17 @@ const Us = (e, t) => {
4424
4429
  data: t = [],
4425
4430
  isFetching: n,
4426
4431
  isFetched: o
4427
- } = $T(), r = sn();
4432
+ } = RT(), r = sn();
4428
4433
  return {
4429
4434
  // EasySwapperV2::unrollAndClaim is not supported from within dHEDGE vaults. Managers should be able to use regular initWithdrawal & completeWithdrawal flow instead.
4430
- isUnrollAndClaimTransaction: t?.length === 1 && J(t[0]?.address, e.address) && !r,
4435
+ isUnrollAndClaimTransaction: t?.length === 1 && Z(t[0]?.address, e.address) && !r,
4431
4436
  isFetching: n,
4432
4437
  isFetched: o
4433
4438
  };
4434
- }, RT = ({
4439
+ }, BT = ({
4435
4440
  onErrorCallback: e
4436
4441
  } = {}) => {
4437
- const t = T(), n = Ue(), { isUnrollAndClaimTransaction: o } = No(), r = DT(), a = te()[1], i = n ? "multi_withdraw" : o ? "single_withdraw_and_claim" : "single_withdraw", l = it({ action: i, onErrorCallback: e }), c = n ? yl : o ? Al : oa, { send: d, estimate: p } = Se({
4442
+ const t = T(), n = Ue(), { isUnrollAndClaimTransaction: o } = No(), r = PT(), a = te()[1], i = n ? "multi_withdraw" : o ? "single_withdraw_and_claim" : "single_withdraw", l = it({ action: i, onErrorCallback: e }), c = n ? Tl : o ? yl : oa, { send: d, estimate: p } = Se({
4438
4443
  contractId: n ? "poolLogic" : "easySwapperV2",
4439
4444
  dynamicContractAddress: n ? t.address : void 0,
4440
4445
  functionName: c,
@@ -4513,7 +4518,7 @@ const Us = (e, t) => {
4513
4518
  label: g ? n.depositAction : m ? n.withdrawAction : h ? n.unrollAndClaimAction : n.unrollAction,
4514
4519
  handleTrade: x
4515
4520
  };
4516
- }, BT = 1, MT = "USD", FT = ({
4521
+ }, MT = 1, FT = "USD", WT = ({
4517
4522
  depositValueInUsd: e,
4518
4523
  apy: t,
4519
4524
  apyCurrencyPrice: n,
@@ -4531,33 +4536,33 @@ const Us = (e, t) => {
4531
4536
  dailyEarnings: bn({ value: r / 365, currency: o }),
4532
4537
  monthlyEarnings: bn({ value: r / 12, currency: o })
4533
4538
  };
4534
- }, WT = ({
4539
+ }, zT = ({
4535
4540
  currency: e,
4536
4541
  depositValueInUsd: t,
4537
4542
  chainId: n,
4538
4543
  apy: o,
4539
4544
  disabled: r
4540
4545
  }) => {
4541
- const a = e === "ETH" ? Sl[n]?.address : e === "BTC" ? xl[n]?.address : void 0, i = le({
4546
+ const a = e === "ETH" ? Al[n]?.address : e === "BTC" ? Sl[n]?.address : void 0, i = le({
4542
4547
  address: a ?? I,
4543
4548
  chainId: n,
4544
4549
  disabled: r || !o || !a
4545
- }), l = a ? Number(i) : BT;
4550
+ }), l = a ? Number(i) : MT;
4546
4551
  return _(
4547
- () => FT({
4552
+ () => WT({
4548
4553
  depositValueInUsd: t,
4549
4554
  apy: o,
4550
4555
  apyCurrencyPrice: l,
4551
- currency: a ? e : MT
4556
+ currency: a ? e : FT
4552
4557
  }),
4553
4558
  [t, o, l, e, a]
4554
4559
  );
4555
- }, zT = () => {
4560
+ }, UT = () => {
4556
4561
  const e = fe()[0] === "deposit", { chainId: t } = T(), [n] = Ze(), [o] = k(), r = le({
4557
4562
  address: o.address,
4558
4563
  chainId: t,
4559
4564
  disabled: !e || !n.apy
4560
- }), a = WT({
4565
+ }), a = zT({
4561
4566
  chainId: t,
4562
4567
  apy: n.apy?.value,
4563
4568
  currency: n.apy?.currency,
@@ -4573,10 +4578,10 @@ const Us = (e, t) => {
4573
4578
  monthlyEarnings: null,
4574
4579
  showEarnings: !1
4575
4580
  };
4576
- }, UT = (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" }, GT = (e, t) => {
4581
+ }, GT = (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" }, HT = (e, t) => {
4577
4582
  const {
4578
4583
  settings: { selectedAggregators: n }
4579
- } = Z(), o = to(), { isValid: r } = UT({
4584
+ } = J(), o = to(), { isValid: r } = GT({
4580
4585
  chainId: String(e.chainId),
4581
4586
  sourceAddress: e.sourceAddress,
4582
4587
  destinationAddress: e.destinationAddress,
@@ -4596,18 +4601,18 @@ const Us = (e, t) => {
4596
4601
  enabled: r && (t?.enabled ?? !0)
4597
4602
  });
4598
4603
  }, un = (e = {}) => {
4599
- const t = e?.extendedDebounceTime ?? !1, [n] = k(), o = Us(
4604
+ const t = e?.extendedDebounceTime ?? !1, [n] = k(), o = zs(
4600
4605
  n.value,
4601
- t ? ra : Cl
4606
+ t ? ra : xl
4602
4607
  );
4603
4608
  return {
4604
4609
  debouncedSendTokenValue: o,
4605
4610
  isDebouncing: n.value !== o
4606
4611
  };
4607
- }, HT = () => {
4612
+ }, VT = () => {
4608
4613
  const e = vo(), [{ isBatchTransactionsEnabled: t }] = Y();
4609
4614
  return e && t;
4610
- }, Bt = "approve", Gs = ({
4615
+ }, Bt = "approve", Us = ({
4611
4616
  token: e,
4612
4617
  rawTokenAmount: t,
4613
4618
  spenderAddress: n,
@@ -4654,7 +4659,7 @@ const Us = (e, t) => {
4654
4659
  i,
4655
4660
  l
4656
4661
  ]);
4657
- }, Hs = ({
4662
+ }, Gs = ({
4658
4663
  rawAmountToSpend: e,
4659
4664
  tokenAddress: t,
4660
4665
  ownerAddress: n,
@@ -4675,7 +4680,7 @@ const Us = (e, t) => {
4675
4680
  ),
4676
4681
  isFetching: l
4677
4682
  }, [l, e, i, a]);
4678
- }, VT = () => {
4683
+ }, jT = () => {
4679
4684
  const [{ isInfiniteAllowance: e }, t] = Y(), n = Xe(), o = f(
4680
4685
  (r) => {
4681
4686
  t({ isInfiniteAllowance: r }), n?.(Fe.INFINITE_ALLOWANCE_CHANGE, {
@@ -4688,8 +4693,8 @@ const Us = (e, t) => {
4688
4693
  () => [e, o],
4689
4694
  [e, o]
4690
4695
  );
4691
- }, Vs = () => {
4692
- const e = S(), [t, n] = VT();
4696
+ }, Hs = () => {
4697
+ const e = S(), [t, n] = jT();
4693
4698
  return /* @__PURE__ */ s(
4694
4699
  Et,
4695
4700
  {
@@ -4698,10 +4703,10 @@ const Us = (e, t) => {
4698
4703
  label: e.infinite
4699
4704
  }
4700
4705
  );
4701
- }, jT = () => {
4706
+ }, qT = () => {
4702
4707
  const [{ isBatchTransactionsEnabled: e }, t] = Y(), n = Xe(), o = f(
4703
4708
  (r) => {
4704
- t({ isBatchTransactionsEnabled: r }), Vl(r), n?.(Fe.BATCH_TRANSACTIONS_CHANGE, {
4709
+ t({ isBatchTransactionsEnabled: r }), Hl(r), n?.(Fe.BATCH_TRANSACTIONS_CHANGE, {
4705
4710
  [qe.IS_BATCH_TRANSACTIONS_ENABLED.NAME]: r ? 1 : 0
4706
4711
  });
4707
4712
  },
@@ -4711,8 +4716,8 @@ const Us = (e, t) => {
4711
4716
  () => [e, o],
4712
4717
  [e, o]
4713
4718
  );
4714
- }, js = () => {
4715
- const e = S(), [t, n] = jT();
4719
+ }, Vs = () => {
4720
+ const e = S(), [t, n] = qT();
4716
4721
  return /* @__PURE__ */ s(
4717
4722
  Et,
4718
4723
  {
@@ -4721,7 +4726,7 @@ const Us = (e, t) => {
4721
4726
  label: e.batchTransactionsSwitchLabel
4722
4727
  }
4723
4728
  );
4724
- }, qT = () => {
4729
+ }, KT = () => {
4725
4730
  const [{ availableAggregators: e, selectedAggregators: t }, n] = Y(), o = f(
4726
4731
  (r) => {
4727
4732
  const a = t.includes(r) ? t.filter((i) => i !== r) : [...t, r];
@@ -4734,8 +4739,8 @@ const Us = (e, t) => {
4734
4739
  selectedAggregators: t,
4735
4740
  onAggregatorToggle: o
4736
4741
  };
4737
- }, qs = () => {
4738
- const e = S(), { availableAggregators: t, selectedAggregators: n, onAggregatorToggle: o } = qT();
4742
+ }, js = () => {
4743
+ const e = S(), { availableAggregators: t, selectedAggregators: n, onAggregatorToggle: o } = KT();
4739
4744
  return t.length <= 1 ? null : /* @__PURE__ */ s(
4740
4745
  Be,
4741
4746
  {
@@ -4761,7 +4766,7 @@ const Us = (e, t) => {
4761
4766
  )) })
4762
4767
  }
4763
4768
  );
4764
- }, KT = () => {
4769
+ }, QT = () => {
4765
4770
  const e = vo(), t = S();
4766
4771
  return /* @__PURE__ */ w(O, { children: [
4767
4772
  /* @__PURE__ */ s(
@@ -4777,7 +4782,7 @@ const Us = (e, t) => {
4777
4782
  {
4778
4783
  label: t.tokenAllowance,
4779
4784
  tooltipText: t.toggleTokenApprovalAmount,
4780
- children: /* @__PURE__ */ s(Vs, {})
4785
+ children: /* @__PURE__ */ s(Hs, {})
4781
4786
  }
4782
4787
  ),
4783
4788
  e && /* @__PURE__ */ s(
@@ -4785,26 +4790,26 @@ const Us = (e, t) => {
4785
4790
  {
4786
4791
  label: t.batchTransactionsLabel,
4787
4792
  tooltipText: t.batchTransactionsTooltip,
4788
- children: /* @__PURE__ */ s(js, {})
4793
+ children: /* @__PURE__ */ s(Vs, {})
4789
4794
  }
4790
4795
  ),
4791
- /* @__PURE__ */ s(qs, {})
4796
+ /* @__PURE__ */ s(js, {})
4792
4797
  ] });
4793
- }, QT = () => {
4798
+ }, YT = () => {
4794
4799
  const { chainId: e, address: t } = T(), { data: { isCustomCooldownDepositAllowed: n } = {} } = ln({
4795
4800
  address: t,
4796
4801
  chainId: e
4797
4802
  });
4798
4803
  return n !== !1;
4799
4804
  }, Or = (e, t) => e.length ? e.find(
4800
- ({ tokenAddress: o }) => Object.values(El[t] ?? {}).some(
4801
- (r) => J(r.address, o)
4805
+ ({ tokenAddress: o }) => Object.values(Cl[t] ?? {}).some(
4806
+ (r) => Z(r.address, o)
4802
4807
  )
4803
4808
  )?.tokenAddress ?? e[0]?.tokenAddress : null, lt = () => {
4804
4809
  const [e] = k(), { chainId: t, address: n } = T(), o = xt({
4805
4810
  address: n,
4806
4811
  chainId: t
4807
- }), r = QT();
4812
+ }), r = YT();
4808
4813
  return _(() => {
4809
4814
  const a = o.filter(
4810
4815
  ({ isDeposit: c }) => c
@@ -4822,7 +4827,7 @@ const Us = (e, t) => {
4822
4827
  };
4823
4828
  }
4824
4829
  const l = a.find(
4825
- ({ tokenAddress: c }) => J(c, e.address)
4830
+ ({ tokenAddress: c }) => Z(c, e.address)
4826
4831
  );
4827
4832
  return l ? {
4828
4833
  depositMethod: r ? Ce.DEPOSIT_CUSTOM : Ce.DEPOSIT,
@@ -4840,13 +4845,13 @@ const Us = (e, t) => {
4840
4845
  ]);
4841
4846
  }, _t = () => {
4842
4847
  const [e] = k(), { vaultDepositTokenAddress: t } = lt();
4843
- return !J(e.address, t);
4848
+ return !Z(e.address, t);
4844
4849
  }, ko = () => {
4845
4850
  const { defaultSwapTransactionSlippage: e } = U(), [{ slippage: t }] = Y(), n = _t();
4846
4851
  return t === "auto" ? n ? e : Jr : t;
4847
4852
  }, kt = () => {
4848
4853
  const { account: e = I } = $(), { chainId: t } = T(), [n] = k(), { debouncedSendTokenValue: o } = un(), { vaultDepositTokenAddress: r } = lt(), a = _t();
4849
- return GT(
4854
+ return HT(
4850
4855
  {
4851
4856
  sourceAddress: n.address,
4852
4857
  destinationAddress: r,
@@ -4861,8 +4866,8 @@ const Us = (e, t) => {
4861
4866
  refetchInterval: qn
4862
4867
  }
4863
4868
  );
4864
- }, Ks = () => {
4865
- const { defaultNoSwapMinDepositAmountGap: e } = U(), { address: t, chainId: n } = T(), [o] = k(), [r] = L(), { data: { entryFee: a } = {} } = ae({ address: t, chainId: n }), i = je(
4869
+ }, qs = () => {
4870
+ const { defaultNoSwapMinDepositAmountGap: e } = U(), { address: t, chainId: n } = T(), [o] = k(), [r] = L(), { data: { entryFee: a } = {} } = se({ address: t, chainId: n }), i = je(
4866
4871
  Number(a ?? "0"),
4867
4872
  ue
4868
4873
  ), [{ slippage: l }] = Y(), c = l === "auto", d = ko(), p = _t(), u = +le({
@@ -4875,7 +4880,7 @@ const Us = (e, t) => {
4875
4880
  }
4876
4881
  const h = c ? e : d;
4877
4882
  return new E(r.value || "0").shiftedBy(r.decimals).times(1 - h / 100).toFixed(0);
4878
- }, YT = ({
4883
+ }, XT = ({
4879
4884
  isDepositWithSwapTransaction: e,
4880
4885
  sendTokenAddress: t,
4881
4886
  sendTokenValue: n
@@ -4895,8 +4900,8 @@ const Us = (e, t) => {
4895
4900
  disabled: !e
4896
4901
  }), c = Number(n || "0") * r;
4897
4902
  return i && l !== 0 ? new E(c / l).shiftedBy(i).times(1 - ta / 100).toFixed(0) : "0";
4898
- }, Qs = () => {
4899
- const [e] = k(), { debouncedSendTokenValue: t } = un(), n = _t(), o = YT({
4903
+ }, Ks = () => {
4904
+ const [e] = k(), { debouncedSendTokenValue: t } = un(), n = _t(), o = XT({
4900
4905
  isDepositWithSwapTransaction: n,
4901
4906
  sendTokenAddress: e.address,
4902
4907
  sendTokenValue: t
@@ -4933,7 +4938,7 @@ const Us = (e, t) => {
4933
4938
  case "zapDepositWithCustomCooldown":
4934
4939
  return n;
4935
4940
  }
4936
- }, XT = async ({
4941
+ }, ZT = async ({
4937
4942
  baseArgs: e,
4938
4943
  swapQuotes: t,
4939
4944
  estimate: n,
@@ -4991,11 +4996,11 @@ const Us = (e, t) => {
4991
4996
  return u;
4992
4997
  }
4993
4998
  return console.warn("[Deposit] No valid routers found for swap"), u;
4994
- }, ZT = (e) => e === "zapNativeDeposit" || e === "zapNativeDepositWithCustomCooldown" || e === "zapDeposit" || e === "zapDepositWithCustomCooldown", JT = ({
4999
+ }, JT = (e) => e === "zapNativeDeposit" || e === "zapNativeDepositWithCustomCooldown" || e === "zapDeposit" || e === "zapDepositWithCustomCooldown", ey = ({
4995
5000
  depositMethod: e,
4996
5001
  vaultDepositTokenAddress: t
4997
5002
  }) => {
4998
- const { address: n } = T(), [o] = k(), r = o.value || "0", a = new E(r).shiftedBy(o.decimals).toFixed(0), i = Qs(), { data: l } = kt(), c = Ks(), d = ko();
5003
+ const { address: n } = T(), [o] = k(), r = o.value || "0", a = new E(r).shiftedBy(o.decimals).toFixed(0), i = Ks(), { data: l } = kt(), c = qs(), d = ko();
4999
5004
  return f(
5000
5005
  async (p) => {
5001
5006
  const u = {
@@ -5004,9 +5009,9 @@ const Us = (e, t) => {
5004
5009
  vaultDepositTokenAmount: i,
5005
5010
  minVaultTokensReceivedAmount: c,
5006
5011
  sendTokenAmount: a
5007
- }, m = ZT(e);
5012
+ }, m = JT(e);
5008
5013
  try {
5009
- return m ? XT({
5014
+ return m ? ZT({
5010
5015
  baseArgs: u,
5011
5016
  swapQuotes: l,
5012
5017
  estimate: p,
@@ -5033,8 +5038,8 @@ const Us = (e, t) => {
5033
5038
  i
5034
5039
  ]
5035
5040
  );
5036
- }, Ys = () => {
5037
- const { chainId: e } = T(), [t] = L(), n = te()[1], { depositMethod: o, vaultDepositTokenAddress: r } = lt(), a = JT({
5041
+ }, Qs = () => {
5042
+ const { chainId: e } = T(), [t] = L(), n = te()[1], { depositMethod: o, vaultDepositTokenAddress: r } = lt(), a = ey({
5038
5043
  depositMethod: o,
5039
5044
  vaultDepositTokenAddress: r
5040
5045
  }), i = f(() => {
@@ -5051,11 +5056,11 @@ const Us = (e, t) => {
5051
5056
  buildDepositTransactionArgs: a,
5052
5057
  addPendingTransaction: i
5053
5058
  };
5054
- }, ey = "deposit", ty = ({
5059
+ }, ty = "deposit", ny = ({
5055
5060
  onDepositSettled: e
5056
5061
  }) => {
5057
- const { depositMethod: t, buildDepositTransactionArgs: n, addPendingTransaction: o } = Ys(), r = it({
5058
- action: ey,
5062
+ const { depositMethod: t, buildDepositTransactionArgs: n, addPendingTransaction: o } = Qs(), r = it({
5063
+ action: ty,
5059
5064
  onErrorCallback: e,
5060
5065
  onSuccessCallback: e
5061
5066
  }), { send: a, estimate: i } = Se({
@@ -5068,8 +5073,8 @@ const Us = (e, t) => {
5068
5073
  const l = await n(i);
5069
5074
  return a(...l);
5070
5075
  }, [o, a, n, i]);
5071
- }, Xs = () => {
5072
- const { account: e = I } = $(), { chainId: t } = T(), [n] = k(), o = j("easySwapperV2", t), r = new E(n.value || "0").shiftedBy(n.decimals).toFixed(0, E.ROUND_UP), { canSpend: a } = Hs({
5076
+ }, Ys = () => {
5077
+ const { account: e = I } = $(), { chainId: t } = T(), [n] = k(), o = j("easySwapperV2", t), r = new E(n.value || "0").shiftedBy(n.decimals).toFixed(0, E.ROUND_UP), { canSpend: a } = Gs({
5073
5078
  tokenAddress: n.address,
5074
5079
  ownerAddress: e,
5075
5080
  spenderAddress: o,
@@ -5077,18 +5082,18 @@ const Us = (e, t) => {
5077
5082
  chainId: t,
5078
5083
  skip: Kn(n.symbol, t) || r === "0"
5079
5084
  });
5080
- return { approve: Gs({
5085
+ return { approve: Us({
5081
5086
  token: n,
5082
5087
  rawTokenAmount: r,
5083
5088
  spenderAddress: o
5084
5089
  }), canSpend: a };
5085
- }, ny = () => {
5090
+ }, oy = () => {
5086
5091
  const [e, t] = q("idle"), n = de(!1), o = f(() => {
5087
5092
  t("idle"), n.current = !1;
5088
- }, []), r = ty({ onDepositSettled: o }), { handleTrade: a } = _o({
5093
+ }, []), r = ny({ onDepositSettled: o }), { handleTrade: a } = _o({
5089
5094
  trade: r,
5090
5095
  onErrorCallback: o
5091
- }), { approve: i, canSpend: l } = Xs(), { chainId: c } = T(), [{ action: d, status: p }] = K(), [u] = te(), m = u.find(
5096
+ }), { approve: i, canSpend: l } = Ys(), { chainId: c } = T(), [{ action: d, status: p }] = K(), [u] = te(), m = u.find(
5092
5097
  (b) => b.action === "approve"
5093
5098
  )?.txHash, { data: h } = qt({
5094
5099
  hash: m,
@@ -5121,11 +5126,11 @@ const Us = (e, t) => {
5121
5126
  isLoading: e !== "idle",
5122
5127
  flowState: e
5123
5128
  };
5124
- }, oy = ({
5129
+ }, ry = ({
5125
5130
  address: e,
5126
5131
  chainId: t
5127
5132
  }) => {
5128
- const [n] = k(), o = We(), { vaultDepositTokenAddress: r } = lt(), a = Qs(), i = !!(a && +a > 0), l = ye({
5133
+ const [n] = k(), o = We(), { vaultDepositTokenAddress: r } = lt(), a = Ks(), i = !!(a && +a > 0), l = ye({
5129
5134
  address: j("easySwapperV2", t),
5130
5135
  abi: _e,
5131
5136
  functionName: "depositQuote",
@@ -5137,8 +5142,8 @@ const Us = (e, t) => {
5137
5142
  }
5138
5143
  });
5139
5144
  return rs(l), l;
5140
- }, ry = () => {
5141
- const { address: e, chainId: t } = T(), n = We(), [o] = k(), [r, a] = L(), [, i] = Y(), { isDebouncing: l, debouncedSendTokenValue: c } = un(), { isFetching: d } = kt(), { data: p, isFetching: u } = oy({
5145
+ }, ay = () => {
5146
+ const { address: e, chainId: t } = T(), n = We(), [o] = k(), [r, a] = L(), [, i] = Y(), { isDebouncing: l, debouncedSendTokenValue: c } = un(), { isFetching: d } = kt(), { data: p, isFetching: u } = ry({
5142
5147
  address: e,
5143
5148
  chainId: t
5144
5149
  }), m = d || u || l;
@@ -5161,8 +5166,8 @@ const Us = (e, t) => {
5161
5166
  }, [n, m, a]), N(() => {
5162
5167
  n && (!o.value || o.value === "0") && (a({ value: "0" }), i({ minSlippage: 0 }));
5163
5168
  }, [a, i, o.value, n]);
5164
- }, Zs = (e = {}) => {
5165
- const { address: t, chainId: n } = T(), { data: o } = ae({
5169
+ }, Xs = (e = {}) => {
5170
+ const { address: t, chainId: n } = T(), { data: o } = se({
5166
5171
  address: t,
5167
5172
  chainId: n
5168
5173
  }), [r] = k(), [a] = L(), i = le({
@@ -5185,10 +5190,10 @@ const Us = (e, t) => {
5185
5190
  i,
5186
5191
  l
5187
5192
  ]);
5188
- }, ay = () => {
5193
+ }, sy = () => {
5189
5194
  const e = We(), [t] = L(), [, n] = Y(), { isDebouncing: o } = un({
5190
5195
  extendedDebounceTime: !0
5191
- }), r = ko(), a = Zs({ includesEntryFee: !0 });
5196
+ }), r = ko(), a = Xs({ includesEntryFee: !0 });
5192
5197
  N(() => {
5193
5198
  if (!e || t.isLoading || o)
5194
5199
  return;
@@ -5203,54 +5208,54 @@ const Us = (e, t) => {
5203
5208
  o
5204
5209
  ]);
5205
5210
  };
5206
- function sy(e, t, n, o) {
5211
+ function iy(e, t, n, o) {
5207
5212
  for (var r = e.length, a = n + (o ? 1 : -1); o ? a-- : ++a < r; )
5208
5213
  if (t(e[a], a, e))
5209
5214
  return a;
5210
5215
  return -1;
5211
5216
  }
5212
- var iy = sy;
5213
- function ly(e) {
5217
+ var ly = iy;
5218
+ function cy(e) {
5214
5219
  return e !== e;
5215
5220
  }
5216
- var cy = ly;
5217
- function dy(e, t, n) {
5221
+ var dy = cy;
5222
+ function py(e, t, n) {
5218
5223
  for (var o = n - 1, r = e.length; ++o < r; )
5219
5224
  if (e[o] === t)
5220
5225
  return o;
5221
5226
  return -1;
5222
5227
  }
5223
- var py = dy, uy = iy, my = cy, wy = py;
5224
- function hy(e, t, n) {
5225
- return t === t ? wy(e, t, n) : uy(e, my, n);
5228
+ var uy = py, my = ly, wy = dy, hy = uy;
5229
+ function gy(e, t, n) {
5230
+ return t === t ? hy(e, t, n) : my(e, wy, n);
5226
5231
  }
5227
- var gy = hy, vy = gy;
5228
- function fy(e, t) {
5232
+ var vy = gy, fy = vy;
5233
+ function by(e, t) {
5229
5234
  var n = e == null ? 0 : e.length;
5230
- return !!n && vy(e, t, 0) > -1;
5235
+ return !!n && fy(e, t, 0) > -1;
5231
5236
  }
5232
- var by = fy;
5233
- function Ty(e, t, n) {
5237
+ var Ty = by;
5238
+ function yy(e, t, n) {
5234
5239
  for (var o = -1, r = e == null ? 0 : e.length; ++o < r; )
5235
5240
  if (n(t, e[o]))
5236
5241
  return !0;
5237
5242
  return !1;
5238
5243
  }
5239
- var yy = Ty;
5240
- function Ay() {
5244
+ var Ay = yy;
5245
+ function Sy() {
5241
5246
  }
5242
- var Sy = Ay, _n = ja, xy = Sy, Cy = io, Ey = 1 / 0, Iy = _n && 1 / Cy(new _n([, -0]))[1] == Ey ? function(e) {
5247
+ var xy = Sy, _n = ja, Cy = xy, Ey = io, Iy = 1 / 0, Ny = _n && 1 / Ey(new _n([, -0]))[1] == Iy ? function(e) {
5243
5248
  return new _n(e);
5244
- } : xy, Ny = Iy, _y = Ma, ky = by, Oy = yy, Dy = Fa, Py = Ny, Ly = io, $y = 200;
5245
- function Ry(e, t, n) {
5246
- var o = -1, r = ky, a = e.length, i = !0, l = [], c = l;
5249
+ } : Cy, _y = Ny, ky = Ma, Oy = Ty, Dy = Ay, Py = Fa, Ly = _y, $y = io, Ry = 200;
5250
+ function By(e, t, n) {
5251
+ var o = -1, r = Oy, a = e.length, i = !0, l = [], c = l;
5247
5252
  if (n)
5248
- i = !1, r = Oy;
5249
- else if (a >= $y) {
5250
- var d = t ? null : Py(e);
5253
+ i = !1, r = Dy;
5254
+ else if (a >= Ry) {
5255
+ var d = t ? null : Ly(e);
5251
5256
  if (d)
5252
- return Ly(d);
5253
- i = !1, r = Dy, c = new _y();
5257
+ return $y(d);
5258
+ i = !1, r = Py, c = new ky();
5254
5259
  } else
5255
5260
  c = t ? [] : l;
5256
5261
  e:
@@ -5265,14 +5270,14 @@ function Ry(e, t, n) {
5265
5270
  }
5266
5271
  return l;
5267
5272
  }
5268
- var By = Ry, My = ns, Fy = By;
5269
- function Wy(e, t) {
5270
- return e && e.length ? Fy(e, My(t)) : [];
5273
+ var My = By, Fy = ns, Wy = My;
5274
+ function zy(e, t) {
5275
+ return e && e.length ? Wy(e, Fy(t)) : [];
5271
5276
  }
5272
- var zy = Wy;
5273
- const Uy = /* @__PURE__ */ Yt(zy), Oo = () => {
5277
+ var Uy = zy;
5278
+ const Gy = /* @__PURE__ */ Yt(Uy), Oo = () => {
5274
5279
  const { address: e, chainId: t, depositParams: n } = T(), { account: o } = $(), r = xt({ address: e, chainId: t }), a = sn(), [{ isCustomDepositOptionsDisabled: i }] = Y(), [l] = Ac(), c = _(
5275
- () => Uy(
5280
+ () => Gy(
5276
5281
  [
5277
5282
  ...r.filter(({ isDeposit: m }) => m).map(({ tokenAddress: m, tokenName: h, precision: v }) => ({
5278
5283
  address: m.toLowerCase(),
@@ -5296,7 +5301,7 @@ const Uy = /* @__PURE__ */ Yt(zy), Oo = () => {
5296
5301
  l,
5297
5302
  t
5298
5303
  ]
5299
- ), d = !!c.length, p = !!o && d, { data: u } = re({
5304
+ ), d = !!c.length, p = !!o && d, { data: u } = ae({
5300
5305
  contracts: c.map(({ address: m }) => ({
5301
5306
  address: m,
5302
5307
  abi: we,
@@ -5352,7 +5357,7 @@ const Uy = /* @__PURE__ */ Yt(zy), Oo = () => {
5352
5357
  u,
5353
5358
  n.defaultDepositTokenSymbol
5354
5359
  ]);
5355
- }, Gy = () => {
5360
+ }, Hy = () => {
5356
5361
  const e = T(), [t] = Oo(), n = k()[1], [o] = fe();
5357
5362
  N(() => {
5358
5363
  o === "deposit" && t?.symbol && n({
@@ -5370,8 +5375,8 @@ const Uy = /* @__PURE__ */ Yt(zy), Oo = () => {
5370
5375
  t?.address,
5371
5376
  t?.decimals
5372
5377
  ]);
5373
- }, Hy = () => {
5374
- const { chainId: e, address: t, deprecated: n } = T(), { data: { isPrivateVault: o } = { isPrivateVault: !1 } } = ae({
5378
+ }, Vy = () => {
5379
+ const { chainId: e, address: t, deprecated: n } = T(), { data: { isPrivateVault: o } = { isPrivateVault: !1 } } = se({
5375
5380
  address: t,
5376
5381
  chainId: e
5377
5382
  }), r = o || n, a = pb({
@@ -5379,7 +5384,7 @@ const Uy = /* @__PURE__ */ Yt(zy), Oo = () => {
5379
5384
  chainId: e
5380
5385
  });
5381
5386
  return { isVaultDepositLocked: r, isAccountWhitelisted: a };
5382
- }, Vy = () => {
5387
+ }, jy = () => {
5383
5388
  const { defaultLockTime: e } = U(), { chainId: t, address: n } = T(), { data: { customCooldown: o } = {} } = ln({
5384
5389
  address: n,
5385
5390
  chainId: t
@@ -5393,12 +5398,12 @@ const Uy = /* @__PURE__ */ Yt(zy), Oo = () => {
5393
5398
  default:
5394
5399
  return e;
5395
5400
  }
5396
- }, jy = "1", qy = () => {
5401
+ }, qy = "1", Ky = () => {
5397
5402
  const { account: e = I } = $(), { address: t, chainId: n } = T(), [o] = L(), r = pe({ address: t, chainId: n }), { minDepositUSD: a } = us(t, n), { data: i } = Cb({
5398
5403
  address: t,
5399
5404
  chainId: n,
5400
5405
  account: e
5401
- }), l = i?.balanceInUsdNumber ?? 0, c = r === "0" ? jy : r, d = Math.max(0, a - l), p = new E(
5406
+ }), l = i?.balanceInUsdNumber ?? 0, c = r === "0" ? qy : r, d = Math.max(0, a - l), p = new E(
5402
5407
  o.value || "0"
5403
5408
  ).multipliedBy(c);
5404
5409
  return {
@@ -5408,8 +5413,8 @@ const Uy = /* @__PURE__ */ Yt(zy), Oo = () => {
5408
5413
  }, Do = (e) => {
5409
5414
  const [{ action: t, status: n }] = K();
5410
5415
  return t === e && (n === "Wallet" || n === "Mining");
5411
- }, Js = (e) => {
5412
- const t = ne(), { onAcceptTermsOfUse: n } = yo(), { termsOfUseAccepted: o } = U(), { swapQuoteRefreshTriggered: r } = Z(), a = no(), i = de(!1), l = r === "deposit", {
5416
+ }, Zs = (e) => {
5417
+ const t = ne(), { onAcceptTermsOfUse: n } = yo(), { termsOfUseAccepted: o } = U(), { swapQuoteRefreshTriggered: r } = J(), a = no(), i = de(!1), l = r === "deposit", {
5413
5418
  disabled: c,
5414
5419
  label: d,
5415
5420
  handleTrade: p
@@ -5462,8 +5467,8 @@ const Uy = /* @__PURE__ */ Yt(zy), Oo = () => {
5462
5467
  label: d,
5463
5468
  isLoading: v
5464
5469
  };
5465
- }, Ky = () => {
5466
- const e = S(), { approveAndDeposit: t, isLoading: n, flowState: o } = ny(), { handleClick: r, disabled: a } = Js(t);
5470
+ }, Qy = () => {
5471
+ const e = S(), { approveAndDeposit: t, isLoading: n, flowState: o } = oy(), { handleClick: r, disabled: a } = Zs(t);
5467
5472
  return {
5468
5473
  handleClick: r,
5469
5474
  disabled: a,
@@ -5480,10 +5485,10 @@ const Uy = /* @__PURE__ */ Yt(zy), Oo = () => {
5480
5485
  }
5481
5486
  })()
5482
5487
  };
5483
- }, Qy = () => {
5484
- const { ActionButton: e = G } = D(), { handleClick: t, disabled: n, isLoading: o, buttonText: r } = Ky();
5485
- return /* @__PURE__ */ s(e, { onClick: t, disabled: n, loading: o, children: r });
5486
5488
  }, Yy = () => {
5489
+ const { ActionButton: e = G } = D(), { handleClick: t, disabled: n, isLoading: o, buttonText: r } = Qy();
5490
+ return /* @__PURE__ */ s(e, { onClick: t, disabled: n, loading: o, children: r });
5491
+ }, Xy = () => {
5487
5492
  const { chainId: e } = T(), [t] = k(), n = j("easySwapperV2", e), o = new E(t.value || "0").shiftedBy(t.decimals).toFixed(0, E.ROUND_UP);
5488
5493
  return _(
5489
5494
  () => ({
@@ -5495,7 +5500,7 @@ const Uy = /* @__PURE__ */ Yt(zy), Oo = () => {
5495
5500
  }),
5496
5501
  [e, o, t.address, n]
5497
5502
  );
5498
- }, Xy = (e) => {
5503
+ }, Zy = (e) => {
5499
5504
  const [, t] = K(), [, n] = te(), [, o] = k(), [, r] = Y(), a = ka();
5500
5505
  return f(
5501
5506
  (i, l) => {
@@ -5521,7 +5526,7 @@ const Uy = /* @__PURE__ */ Yt(zy), Oo = () => {
5521
5526
  o
5522
5527
  ]
5523
5528
  );
5524
- }, Zy = ({
5529
+ }, Jy = ({
5525
5530
  address: e,
5526
5531
  abi: t,
5527
5532
  functionName: n,
@@ -5531,28 +5536,28 @@ const Uy = /* @__PURE__ */ Yt(zy), Oo = () => {
5531
5536
  to: e,
5532
5537
  data: da({ abi: t, functionName: n, args: o }),
5533
5538
  value: r
5534
- }), Jy = ({
5539
+ }), eA = ({
5535
5540
  onSettled: e
5536
5541
  }) => {
5537
- const { sendCalls: t } = tl({
5542
+ const { sendCalls: t } = el({
5538
5543
  mutation: {
5539
5544
  onSettled: e
5540
5545
  }
5541
5546
  });
5542
5547
  return f(
5543
5548
  async (n) => t({
5544
- calls: n.map(Zy),
5549
+ calls: n.map(Jy),
5545
5550
  forceAtomic: !0
5546
5551
  }),
5547
5552
  [t]
5548
5553
  );
5549
- }, eA = "deposit", tA = () => {
5554
+ }, tA = "deposit", nA = () => {
5550
5555
  const {
5551
5556
  chainId: e,
5552
5557
  depositMethod: t,
5553
5558
  buildDepositTransactionArgs: n,
5554
5559
  addPendingTransaction: o
5555
- } = Ys(), r = Yy(), a = Xy(eA), i = Jy({
5560
+ } = Qs(), r = Xy(), a = Zy(tA), i = eA({
5556
5561
  onSettled: a
5557
5562
  });
5558
5563
  return f(async () => {
@@ -5572,11 +5577,11 @@ const Uy = /* @__PURE__ */ Yt(zy), Oo = () => {
5572
5577
  i,
5573
5578
  r
5574
5579
  ]);
5575
- }, nA = () => {
5576
- const { ActionButton: e = G } = D(), t = tA(), { handleClick: n, label: o, disabled: r, isLoading: a } = Js(t);
5577
- return /* @__PURE__ */ s(e, { onClick: n, disabled: r, loading: a, children: o });
5578
5580
  }, oA = () => {
5579
- const e = HT(), {
5581
+ const { ActionButton: e = G } = D(), t = nA(), { handleClick: n, label: o, disabled: r, isLoading: a } = Zs(t);
5582
+ return /* @__PURE__ */ s(e, { onClick: n, disabled: r, loading: a, children: o });
5583
+ }, rA = () => {
5584
+ const e = VT(), {
5580
5585
  deprecated: t,
5581
5586
  symbol: n,
5582
5587
  chainId: o,
@@ -5586,7 +5591,7 @@ const Uy = /* @__PURE__ */ Yt(zy), Oo = () => {
5586
5591
  } = T(), [l] = k(), c = an(), d = le({
5587
5592
  address: l.address,
5588
5593
  chainId: o
5589
- }), { isVaultDepositLocked: p, isAccountWhitelisted: u } = Hy(), { canSpend: m } = Xs(), { requiresHighSlippageConfirm: h, confirmHighSlippage: v, slippageToBeUsed: g } = Ao(), { requiresMinDeposit: b, requiredMinDepositAmount: y } = qy(), R = Number(l.value || "0") * Number(d), B = i !== void 0 && R > i;
5594
+ }), { isVaultDepositLocked: p, isAccountWhitelisted: u } = Vy(), { canSpend: m } = Ys(), { requiresHighSlippageConfirm: h, confirmHighSlippage: v, slippageToBeUsed: g } = Ao(), { requiresMinDeposit: b, requiredMinDepositAmount: y } = Ky(), R = Number(l.value || "0") * Number(d), B = i !== void 0 && R > i;
5590
5595
  return {
5591
5596
  requiresMinDeposit: b,
5592
5597
  requiresWhitelist: p && !u,
@@ -5602,7 +5607,7 @@ const Uy = /* @__PURE__ */ Yt(zy), Oo = () => {
5602
5607
  isBatchContractWritesTrading: e,
5603
5608
  insufficientBalance: c
5604
5609
  };
5605
- }, rA = () => {
5610
+ }, aA = () => {
5606
5611
  const { ActionButton: e = G } = D(), t = S(), n = So("deposit"), {
5607
5612
  requiresMinDeposit: o,
5608
5613
  requiredMinDepositAmount: r,
@@ -5617,7 +5622,7 @@ const Uy = /* @__PURE__ */ Yt(zy), Oo = () => {
5617
5622
  isBatchContractWritesTrading: h,
5618
5623
  insufficientBalance: v,
5619
5624
  exceedsDepositCapacity: g
5620
- } = oA();
5625
+ } = rA();
5621
5626
  return o ? /* @__PURE__ */ s(e, { disabled: !0, children: t.minimumPurchase.replace("{value}", r) }) : i || m ? /* @__PURE__ */ s(
5622
5627
  Vt,
5623
5628
  {
@@ -5636,8 +5641,8 @@ const Uy = /* @__PURE__ */ Yt(zy), Oo = () => {
5636
5641
  ) : v ? /* @__PURE__ */ s(e, { disabled: !0, children: t.insufficientBalance }) : l ? /* @__PURE__ */ s(e, { onClick: u, children: t.confirmMaxSlippage.replace(
5637
5642
  "{slippagePercentage}",
5638
5643
  `${Math.abs(p)}`
5639
- ) }) : a && h ? /* @__PURE__ */ s(nA, {}) : /* @__PURE__ */ s(Qy, {});
5640
- }, aA = () => {
5644
+ ) }) : a && h ? /* @__PURE__ */ s(oA, {}) : /* @__PURE__ */ s(Yy, {});
5645
+ }, sA = () => {
5641
5646
  const [e, t] = k(), { chainId: n } = T(), o = le({ address: e.address, chainId: n }), r = be({
5642
5647
  symbol: e.symbol,
5643
5648
  address: e.address
@@ -5648,14 +5653,14 @@ const Uy = /* @__PURE__ */ Yt(zy), Oo = () => {
5648
5653
  balance: r,
5649
5654
  updater: t
5650
5655
  };
5651
- }, sA = () => {
5656
+ }, iA = () => {
5652
5657
  const { address: e, chainId: t } = T(), [n] = L(), o = pe({ address: e, chainId: t });
5653
5658
  return {
5654
5659
  ...n,
5655
5660
  price: o
5656
5661
  };
5657
- }, iA = () => {
5658
- const e = aA(), t = sA(), n = Xe(), o = Zs(), [{ minSlippage: r }] = Y();
5662
+ }, lA = () => {
5663
+ const e = sA(), t = iA(), n = Xe(), o = Xs(), [{ minSlippage: r }] = Y();
5659
5664
  return {
5660
5665
  autoFocus: !1,
5661
5666
  sendToken: e,
@@ -5665,7 +5670,7 @@ const Uy = /* @__PURE__ */ Yt(zy), Oo = () => {
5665
5670
  onInputFocus: () => {
5666
5671
  n?.(Fe.INVEST_INPUT_FOCUS, {
5667
5672
  symbol: e.symbol,
5668
- address: jl(e.address)
5673
+ address: Vl(e.address)
5669
5674
  });
5670
5675
  },
5671
5676
  onInputChange: (l) => {
@@ -5679,7 +5684,7 @@ const Uy = /* @__PURE__ */ Yt(zy), Oo = () => {
5679
5684
  style: { borderSpacing: "0px 0.25rem" },
5680
5685
  children: /* @__PURE__ */ s("tbody", { children: e })
5681
5686
  }
5682
- ), ei = ({
5687
+ ), Js = ({
5683
5688
  children: e
5684
5689
  }) => {
5685
5690
  const t = S();
@@ -5698,14 +5703,14 @@ const Uy = /* @__PURE__ */ Yt(zy), Oo = () => {
5698
5703
  ] }),
5699
5704
  /* @__PURE__ */ s(zr, { show: n, children: /* @__PURE__ */ s(Ur, { className: "dtw-mt-1 dtw-transition dtw-transform dtw-duration-100 dtw-ease-out data-[closed]:opacity-0 data-[closed]:-dtw-translate-y-2.5 dtw-static dtw-rounded-[var(--panel-radius-secondary,var(--panel-radius))] dtw-flex dtw-flex-col dtw-gap-1", children: e }) })
5700
5705
  ] }) });
5701
- }, lA = (e) => {
5706
+ }, cA = (e) => {
5702
5707
  const { address: t, chainId: n } = T(), [{ value: o }] = k(), r = hb({
5703
5708
  vaultTokensAmount: o,
5704
5709
  address: t,
5705
5710
  chainId: n
5706
5711
  }), a = e ? r.length : ia, i = r.find(
5707
5712
  ({ tokenAddress: p }) => Zr.some(
5708
- (u) => J(p, u)
5713
+ (u) => Z(p, u)
5709
5714
  )
5710
5715
  ), l = !!i && i.amount !== "0", { firstPart: c, secondPart: d } = ua(
5711
5716
  r,
@@ -5718,7 +5723,7 @@ const Uy = /* @__PURE__ */ Yt(zy), Oo = () => {
5718
5723
  unitSymbol: i?.tokenName,
5719
5724
  unitAddress: i?.tokenAddress ?? I
5720
5725
  };
5721
- }, cA = ({ symbol: e }) => {
5726
+ }, dA = ({ symbol: e }) => {
5722
5727
  const t = S();
5723
5728
  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: [
5724
5729
  t.as,
@@ -5727,7 +5732,7 @@ const Uy = /* @__PURE__ */ Yt(zy), Oo = () => {
5727
5732
  " ",
5728
5733
  e
5729
5734
  ] });
5730
- }, ti = ({
5735
+ }, ei = ({
5731
5736
  className: e,
5732
5737
  showFraction: t = !0,
5733
5738
  iconSize: n,
@@ -5739,7 +5744,7 @@ const Uy = /* @__PURE__ */ Yt(zy), Oo = () => {
5739
5744
  showUnitWithdrawalTip: i,
5740
5745
  unitSymbol: l,
5741
5746
  unitAddress: c
5742
- } = lA(o), d = f(
5747
+ } = cA(o), d = f(
5743
5748
  ({
5744
5749
  fraction: p,
5745
5750
  fractionUsd: u,
@@ -5767,7 +5772,7 @@ const Uy = /* @__PURE__ */ Yt(zy), Oo = () => {
5767
5772
  }
5768
5773
  ),
5769
5774
  g && /* @__PURE__ */ s(
5770
- cA,
5775
+ dA,
5771
5776
  {
5772
5777
  symbol: wa(v).symbol
5773
5778
  }
@@ -5794,7 +5799,7 @@ const Uy = /* @__PURE__ */ Yt(zy), Oo = () => {
5794
5799
  );
5795
5800
  return /* @__PURE__ */ s("div", { className: C("dtw-text-sm dtw-font-light", e), children: r.length > 0 ? /* @__PURE__ */ w(O, { children: [
5796
5801
  /* @__PURE__ */ s(jt, { children: r.map(d) }),
5797
- a.length > 0 && /* @__PURE__ */ s(ei, { children: /* @__PURE__ */ s(jt, { children: a.map(d) }) }),
5802
+ a.length > 0 && /* @__PURE__ */ s(Js, { children: /* @__PURE__ */ s(jt, { children: a.map(d) }) }),
5798
5803
  i && /* @__PURE__ */ w("p", { className: "dtw-text-warning dtw-text-[length:var(--panel-label-font-size)]", children: [
5799
5804
  l,
5800
5805
  " can be redeemed using",
@@ -5803,7 +5808,7 @@ const Uy = /* @__PURE__ */ Yt(zy), Oo = () => {
5803
5808
  "a",
5804
5809
  {
5805
5810
  className: "dtw-text-warning dtw-inline-flex dtw-gap-0.5",
5806
- href: ql(c),
5811
+ href: jl(c),
5807
5812
  target: "_blank",
5808
5813
  rel: "noreferrer",
5809
5814
  children: [
@@ -5814,7 +5819,7 @@ const Uy = /* @__PURE__ */ Yt(zy), Oo = () => {
5814
5819
  )
5815
5820
  ] })
5816
5821
  ] }) : /* @__PURE__ */ s(ks, {}) });
5817
- }, dA = ({ symbol: e }) => {
5822
+ }, pA = ({ symbol: e }) => {
5818
5823
  const t = yt(), n = ne(), { standalone: o } = U(), r = t.some((p) => p.symbol === e), a = e === me.symbol, i = bc(), l = r && t.length === 1;
5819
5824
  return {
5820
5825
  isAllSymbol: a,
@@ -5830,8 +5835,8 @@ const Uy = /* @__PURE__ */ Yt(zy), Oo = () => {
5830
5835
  disabled: l,
5831
5836
  hideTokenIcon: o && r
5832
5837
  };
5833
- }, pA = ({ symbol: e }) => {
5834
- const { isAllSymbol: t, onClick: n, disabled: o, hideTokenIcon: r } = dA({
5838
+ }, uA = ({ symbol: e }) => {
5839
+ const { isAllSymbol: t, onClick: n, disabled: o, hideTokenIcon: r } = pA({
5835
5840
  symbol: e
5836
5841
  }), a = S();
5837
5842
  return /* @__PURE__ */ w(
@@ -5855,7 +5860,7 @@ const Uy = /* @__PURE__ */ Yt(zy), Oo = () => {
5855
5860
  }
5856
5861
  ),
5857
5862
  !o && /* @__PURE__ */ s(
5858
- uc,
5863
+ pc,
5859
5864
  {
5860
5865
  className: "dtw-flex-shrink-0 dtw-text-[color:var(--panel-icon-color,var(--panel-content-color))] dtw-h-[var(--panel-input-token-icon-size,var(--panel-icon-size))] dtw-w-[var(--panel-input-token-icon-size,var(--panel-icon-size))] sm:dtw-w-[var(--panel-input-token-icon-size-sm,var(--panel-icon-size-sm))] sm:dtw-h-[var(--panel-input-token-icon-size-sm,var(--panel-icon-size-sm))]",
5861
5866
  "aria-hidden": "true"
@@ -5865,13 +5870,13 @@ const Uy = /* @__PURE__ */ Yt(zy), Oo = () => {
5865
5870
  }
5866
5871
  );
5867
5872
  };
5868
- function uA(e, t) {
5873
+ function mA(e, t) {
5869
5874
  const n = new E(e);
5870
5875
  return t && n.gt(0) ? n.toFixed(6) : e;
5871
5876
  }
5872
- const mA = (e) => {
5877
+ const wA = (e) => {
5873
5878
  e.currentTarget.blur();
5874
- }, wA = ({
5879
+ }, hA = ({
5875
5880
  displayCalculatedValue: e,
5876
5881
  assetInput: t = "",
5877
5882
  assetPrice: n,
@@ -5912,7 +5917,7 @@ const mA = (e) => {
5912
5917
  inputRef: d,
5913
5918
  usdAmount: p,
5914
5919
  isEstimated: u,
5915
- value: uA(t, c),
5920
+ value: mA(t, c),
5916
5921
  autoFocus: l,
5917
5922
  onContainerClick: m,
5918
5923
  onMaxBalanceClick: v,
@@ -5928,7 +5933,7 @@ const mA = (e) => {
5928
5933
  onContainerClick: i,
5929
5934
  onMaxBalanceClick: l,
5930
5935
  onInputChange: c
5931
- } = wA(e), {
5936
+ } = hA(e), {
5932
5937
  assetSymbol: d,
5933
5938
  onInputFocus: p,
5934
5939
  disabled: u = !1,
@@ -5962,7 +5967,7 @@ const mA = (e) => {
5962
5967
  "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"
5963
5968
  ),
5964
5969
  children: [
5965
- /* @__PURE__ */ s("div", { className: "transparent-scrollbar dtw-flex-1 dtw-overflow-x-auto", children: d === me.symbol ? /* @__PURE__ */ s(ti, { iconSize: "sm" }) : /* @__PURE__ */ s(
5970
+ /* @__PURE__ */ s("div", { className: "transparent-scrollbar dtw-flex-1 dtw-overflow-x-auto", children: d === me.symbol ? /* @__PURE__ */ s(ei, { iconSize: "sm" }) : /* @__PURE__ */ s(
5966
5971
  "input",
5967
5972
  {
5968
5973
  className: C(
@@ -5978,10 +5983,10 @@ const mA = (e) => {
5978
5983
  onFocus: p,
5979
5984
  placeholder: "0",
5980
5985
  disabled: u,
5981
- onWheelCapture: mA
5986
+ onWheelCapture: wA
5982
5987
  }
5983
5988
  ) }),
5984
- /* @__PURE__ */ s(pA, { symbol: d })
5989
+ /* @__PURE__ */ s(uA, { symbol: d })
5985
5990
  ]
5986
5991
  }
5987
5992
  ),
@@ -6009,7 +6014,7 @@ const mA = (e) => {
6009
6014
  ]
6010
6015
  }
6011
6016
  );
6012
- }, hA = () => {
6017
+ }, gA = () => {
6013
6018
  const { stablePrecision: e, defaultPrecision: t } = U(), [{ symbol: n, address: o }] = k(), r = be({ symbol: n, address: o, watch: !0 });
6014
6019
  return {
6015
6020
  formattedBalance: ha({
@@ -6020,10 +6025,10 @@ const mA = (e) => {
6020
6025
  }),
6021
6026
  symbol: n
6022
6027
  };
6023
- }, ni = () => {
6024
- const { formattedBalance: e, symbol: t } = hA();
6028
+ }, ti = () => {
6029
+ const { formattedBalance: e, symbol: t } = gA();
6025
6030
  return /* @__PURE__ */ s(_s, { balance: e, symbol: t });
6026
- }, gA = () => {
6031
+ }, vA = () => {
6027
6032
  const { stablePrecision: e, defaultPrecision: t } = U(), [{ symbol: n, address: o }] = L(), r = be({ symbol: n, address: o, watch: !0 });
6028
6033
  return {
6029
6034
  formattedBalance: ha({
@@ -6034,11 +6039,11 @@ const mA = (e) => {
6034
6039
  }),
6035
6040
  symbol: n
6036
6041
  };
6037
- }, oi = () => {
6038
- const { formattedBalance: e, symbol: t } = gA();
6042
+ }, ni = () => {
6043
+ const { formattedBalance: e, symbol: t } = vA();
6039
6044
  return /* @__PURE__ */ s(_s, { balance: e, symbol: t });
6040
- }, ri = () => {
6041
- const e = T(), [t] = Oo(), { isAllAssetsWithdrawOptionDefault: n } = U(), { data: o = [] } = ie(), r = o.length > 0, { data: a } = ms(e), i = fe()[1], l = k()[1], c = L()[1], d = () => {
6045
+ }, oi = () => {
6046
+ const e = T(), [t] = Oo(), { isAllAssetsWithdrawOptionDefault: n } = U(), { data: o = [] } = oe(), r = o.length > 0, { data: a } = ms(e), i = fe()[1], l = k()[1], c = L()[1], d = () => {
6042
6047
  l({
6043
6048
  ...t,
6044
6049
  value: "",
@@ -6072,27 +6077,27 @@ const mA = (e) => {
6072
6077
  return p();
6073
6078
  }
6074
6079
  };
6075
- }, vA = () => {
6076
- wT(), Gy(), gb(), ie();
6077
- }, Ke = ["deposit", "withdraw"], fA = () => {
6078
- const [e] = fe(), t = ri();
6080
+ }, fA = () => {
6081
+ wT(), Hy(), gb(), oe();
6082
+ }, Ke = ["deposit", "withdraw"], bA = () => {
6083
+ const [e] = fe(), t = oi();
6079
6084
  return {
6080
6085
  handleClick: () => {
6081
6086
  const o = Ke.find((r) => r !== e);
6082
6087
  o && t(o);
6083
6088
  }
6084
6089
  };
6085
- }, ai = () => {
6086
- const { handleClick: e } = fA();
6090
+ }, ri = () => {
6091
+ const { handleClick: e } = bA();
6087
6092
  return /* @__PURE__ */ s(
6088
6093
  "div",
6089
6094
  {
6090
6095
  onClick: e,
6091
6096
  className: "dtw-cursor-pointer dtw-group dtw-absolute dtw-left-1/2 -dtw-top-[calc(var(--panel-inputs-group-gap)*0.5)] -dtw-translate-y-1/2 -dtw-translate-x-1/2 dtw-flex dtw-items-center dtw-justify-center dtw-rounded-[var(--panel-inputs-arrow-radius)] dtw-p-0.5 dtw-bg-[color:var(--panel-background-color)] dtw-backdrop-blur-3xl",
6092
- children: /* @__PURE__ */ s("button", { className: "!dtw-bg-[var(--panel-inputs-arrow-bg)] dtw-rounded-[var(--panel-inputs-arrow-radius)] dtw-px-[var(--panel-inputs-group-px-arrow)] dtw-py-[var(--panel-inputs-group-py-arrow)]", children: /* @__PURE__ */ s(cc, { className: "dtw-h-[var(--panel-inputs-group-arrow-size)] dtw-w-[var(--panel-inputs-group-arrow-size)] dtw-text-[color:var(--panel-inputs-arrow-color)] group-hover:dtw-opacity-[var(--panel-action-hover-opacity)] group-hover:dtw-rotate-180 dtw-transition-transform" }) })
6097
+ children: /* @__PURE__ */ s("button", { className: "!dtw-bg-[var(--panel-inputs-arrow-bg)] dtw-rounded-[var(--panel-inputs-arrow-radius)] dtw-px-[var(--panel-inputs-group-px-arrow)] dtw-py-[var(--panel-inputs-group-py-arrow)]", children: /* @__PURE__ */ s(lc, { className: "dtw-h-[var(--panel-inputs-group-arrow-size)] dtw-w-[var(--panel-inputs-group-arrow-size)] dtw-text-[color:var(--panel-inputs-arrow-color)] group-hover:dtw-opacity-[var(--panel-action-hover-opacity)] group-hover:dtw-rotate-180 dtw-transition-transform" }) })
6093
6098
  }
6094
6099
  );
6095
- }, bA = () => {
6100
+ }, TA = () => {
6096
6101
  const {
6097
6102
  sendToken: e,
6098
6103
  receiveToken: t,
@@ -6101,7 +6106,7 @@ const mA = (e) => {
6101
6106
  minSlippage: r,
6102
6107
  onInputFocus: a,
6103
6108
  onInputChange: i
6104
- } = iA(), l = Ct(r ?? 0);
6109
+ } = lA(), l = Ct(r ?? 0);
6105
6110
  return /* @__PURE__ */ w(O, { children: [
6106
6111
  /* @__PURE__ */ s(
6107
6112
  gt,
@@ -6116,7 +6121,7 @@ const mA = (e) => {
6116
6121
  maxBalance: e.balance,
6117
6122
  displayCalculatedValue: !0,
6118
6123
  isLoading: e.isLoading,
6119
- children: /* @__PURE__ */ s(ni, {})
6124
+ children: /* @__PURE__ */ s(ti, {})
6120
6125
  }
6121
6126
  ),
6122
6127
  /* @__PURE__ */ w(
@@ -6131,13 +6136,13 @@ const mA = (e) => {
6131
6136
  type: l,
6132
6137
  isLoading: t.isLoading,
6133
6138
  children: [
6134
- /* @__PURE__ */ s(oi, {}),
6135
- /* @__PURE__ */ s(ai, {})
6139
+ /* @__PURE__ */ s(ni, {}),
6140
+ /* @__PURE__ */ s(ri, {})
6136
6141
  ]
6137
6142
  }
6138
6143
  )
6139
6144
  ] });
6140
- }, TA = () => {
6145
+ }, yA = () => {
6141
6146
  const { address: e, chainId: t } = T(), n = Nb({ address: e, chainId: t }), [o] = L();
6142
6147
  if (!n)
6143
6148
  return { isMaxSupplyCapReached: !1, supplyCapInUsd: "" };
@@ -6150,8 +6155,8 @@ const mA = (e) => {
6150
6155
  isMaxSupplyCapReached: c,
6151
6156
  supplyCapInUsd: d
6152
6157
  };
6153
- }, yA = () => {
6154
- const e = S(), [{ slippage: t, minSlippage: n, isMaxSlippageLoading: o }] = Y(), r = t === "auto", a = Ks(), [i] = L(), { address: l, chainId: c } = T(), { entryFee: d } = bo({ address: l, chainId: c }), { minDepositUSD: p } = us(l, c), u = zT(), m = Vy(), h = _t(), v = p ? ee({ value: p, minimumFractionDigits: 0 }) : "", g = Ct(
6158
+ }, AA = () => {
6159
+ const e = S(), [{ slippage: t, minSlippage: n, isMaxSlippageLoading: o }] = Y(), r = t === "auto", a = qs(), [i] = L(), { address: l, chainId: c } = T(), { entryFee: d } = bo({ address: l, chainId: c }), { minDepositUSD: p } = us(l, c), u = UT(), m = jy(), h = _t(), v = p ? ee({ value: p, minimumFractionDigits: 0 }) : "", g = Ct(
6155
6160
  r ? n ?? 0 : t
6156
6161
  ), b = fs({
6157
6162
  tradingType: "deposit",
@@ -6200,7 +6205,7 @@ const mA = (e) => {
6200
6205
  ]
6201
6206
  }
6202
6207
  );
6203
- }, AA = () => {
6208
+ }, SA = () => {
6204
6209
  const e = S(), {
6205
6210
  projectedEarnings: { yearlyEarnings: t, dailyEarnings: n, showEarnings: o },
6206
6211
  slippageTooltipText: r,
@@ -6213,7 +6218,7 @@ const mA = (e) => {
6213
6218
  minDeposit: u,
6214
6219
  lockTime: m,
6215
6220
  showMinimumReceivedAmount: h
6216
- } = yA(), v = o ? [
6221
+ } = AA(), v = o ? [
6217
6222
  {
6218
6223
  tooltipText: e.projectedYearlyEarningsTooltip,
6219
6224
  label: e.yearlyEarnings,
@@ -6299,17 +6304,17 @@ const mA = (e) => {
6299
6304
  themeType: c
6300
6305
  }
6301
6306
  );
6302
- }, SA = ({ children: e }) => {
6303
- const { DepositMetaInfo: t, MaxSupplyReachedAlert: n } = D(), { isMaxSupplyCapReached: o, supplyCapInUsd: r } = TA();
6307
+ }, xA = ({ children: e }) => {
6308
+ const { DepositMetaInfo: t, MaxSupplyReachedAlert: n } = D(), { isMaxSupplyCapReached: o, supplyCapInUsd: r } = yA();
6304
6309
  return /* @__PURE__ */ w(V.Meta, { children: [
6305
6310
  o && !!n && /* @__PURE__ */ s(n, { supplyCapInUsd: r }),
6306
- /* @__PURE__ */ s(AA, {}),
6311
+ /* @__PURE__ */ s(SA, {}),
6307
6312
  t && /* @__PURE__ */ s(t, {}),
6308
6313
  /* @__PURE__ */ s("div", { className: "dtw-sticky dtw-bottom-0 dtw-bg-[var(--panel-meta-action-panel-bg)]", children: e })
6309
6314
  ] });
6310
- }, xA = () => {
6311
- ry(), ay();
6312
6315
  }, CA = () => {
6316
+ ay(), sy();
6317
+ }, EA = () => {
6313
6318
  const { ActionButton: e = G } = D(), t = S(), { status: n } = Yr(), { onConnect: o } = yo();
6314
6319
  return /* @__PURE__ */ s(
6315
6320
  e,
@@ -6320,21 +6325,21 @@ const mA = (e) => {
6320
6325
  children: t.connectWallet
6321
6326
  }
6322
6327
  );
6323
- }, EA = () => {
6328
+ }, IA = () => {
6324
6329
  const { ActionButton: e = G } = D(), { switchNetwork: t } = Oe(), { chainId: n } = T(), o = S();
6325
6330
  return /* @__PURE__ */ s(e, { onClick: () => {
6326
6331
  t?.({ chainId: n });
6327
6332
  }, children: o.switchNetwork });
6328
- }, si = () => {
6333
+ }, ai = () => {
6329
6334
  const { account: e } = $(), { chainId: t } = Oe(), n = T();
6330
6335
  return {
6331
6336
  isDisconnected: !e,
6332
6337
  isWrongNetwork: t !== n.chainId
6333
6338
  };
6334
6339
  }, Lo = ({ children: e }) => {
6335
- const { isDisconnected: t, isWrongNetwork: n } = si();
6336
- return t ? /* @__PURE__ */ s(CA, {}) : n ? /* @__PURE__ */ s(EA, {}) : e;
6337
- }, IA = ({
6340
+ const { isDisconnected: t, isWrongNetwork: n } = ai();
6341
+ return t ? /* @__PURE__ */ s(EA, {}) : n ? /* @__PURE__ */ s(IA, {}) : e;
6342
+ }, NA = ({
6338
6343
  onClick: e,
6339
6344
  tooltipText: t,
6340
6345
  disabled: n
@@ -6349,12 +6354,12 @@ const mA = (e) => {
6349
6354
  }, qn);
6350
6355
  return () => clearTimeout(i);
6351
6356
  }, [o]), { disabled: n || o, tooltipText: t, handleClick: a };
6352
- }, ii = (e) => {
6353
- const { disabled: t, tooltipText: n, handleClick: o } = IA(e);
6357
+ }, si = (e) => {
6358
+ const { disabled: t, tooltipText: n, handleClick: o } = NA(e);
6354
6359
  return /* @__PURE__ */ s(fo, { text: n, children: /* @__PURE__ */ s(
6355
6360
  Ht,
6356
6361
  {
6357
- Icon: dc,
6362
+ Icon: cc,
6358
6363
  onClick: o,
6359
6364
  disabled: t,
6360
6365
  containerClassName: "!dtw-self-center",
@@ -6364,50 +6369,50 @@ const mA = (e) => {
6364
6369
  )
6365
6370
  }
6366
6371
  ) });
6367
- }, NA = () => {
6372
+ }, _A = () => {
6368
6373
  const { refetch: e, isFetched: t } = kt(), { invalidateTradingQueries: n } = rn();
6369
6374
  return { handleSwapQuoteReload: () => {
6370
6375
  n(), e();
6371
6376
  }, disabled: !t };
6372
- }, _A = () => {
6373
- const e = S(), { handleSwapQuoteReload: t, disabled: n } = NA();
6377
+ }, kA = () => {
6378
+ const e = S(), { handleSwapQuoteReload: t, disabled: n } = _A();
6374
6379
  return /* @__PURE__ */ s(
6375
- ii,
6380
+ si,
6376
6381
  {
6377
6382
  tooltipText: e.refreshSwapQuoteTooltip,
6378
6383
  onClick: t,
6379
6384
  disabled: n
6380
6385
  }
6381
6386
  );
6382
- }, kA = () => {
6387
+ }, OA = () => {
6383
6388
  const { refetch: e, isFetched: t } = He(), { invalidateTradingQueries: n } = rn();
6384
6389
  return { handleSwapQuoteReload: () => {
6385
6390
  n(), e();
6386
6391
  }, disabled: !t };
6387
- }, OA = () => {
6388
- const e = S(), { handleSwapQuoteReload: t, disabled: n } = kA();
6392
+ }, DA = () => {
6393
+ const e = S(), { handleSwapQuoteReload: t, disabled: n } = OA();
6389
6394
  return /* @__PURE__ */ s(
6390
- ii,
6395
+ si,
6391
6396
  {
6392
6397
  tooltipText: e.refreshSwapQuoteTooltip,
6393
6398
  onClick: t,
6394
6399
  disabled: n
6395
6400
  }
6396
6401
  );
6397
- }, DA = () => We() ? /* @__PURE__ */ s(_A, {}) : /* @__PURE__ */ s(OA, {}), li = ({
6402
+ }, PA = () => We() ? /* @__PURE__ */ s(kA, {}) : /* @__PURE__ */ s(DA, {}), ii = ({
6398
6403
  children: e,
6399
6404
  ...t
6400
6405
  }) => {
6401
6406
  const { ActionButton: n = G } = D(), { openLimitSellOverlay: o, displayLimitSellOverlay: r } = qb();
6402
6407
  return r ? /* @__PURE__ */ s(n, { ...t, onClick: o, children: e }) : null;
6403
- }, ci = ({ children: e, ...t }) => {
6408
+ }, li = ({ children: e, ...t }) => {
6404
6409
  const { ActionButton: n = G } = D(), { onOpenNotificationsSettings: o } = yo();
6405
6410
  return o ? /* @__PURE__ */ s(n, { ...t, onClick: o, children: e }) : null;
6406
- }, PA = () => {
6411
+ }, LA = () => {
6407
6412
  const { address: e, symbol: t } = T();
6408
6413
  return {
6409
6414
  handleAddToWallet: f(() => {
6410
- Kl({
6415
+ ql({
6411
6416
  address: e,
6412
6417
  symbol: t,
6413
6418
  decimals: F,
@@ -6415,8 +6420,8 @@ const mA = (e) => {
6415
6420
  });
6416
6421
  }, [e, t])
6417
6422
  };
6418
- }, LA = () => {
6419
- const e = S(), { handleAddToWallet: t } = PA();
6423
+ }, $A = () => {
6424
+ const e = S(), { handleAddToWallet: t } = LA();
6420
6425
  return /* @__PURE__ */ s(
6421
6426
  "button",
6422
6427
  {
@@ -6426,8 +6431,8 @@ const mA = (e) => {
6426
6431
  children: e.addToWallet
6427
6432
  }
6428
6433
  );
6429
- }, $A = () => {
6430
- const e = S(), t = ne(), { symbol: n } = T(), [o] = k(), [r] = L(), a = Qt()[1], { isCompleteWithdrawStep: i } = Ge(), { swapQuoteRefreshTriggered: l } = Z(), c = no(), { isFetching: d, isError: p } = He(), u = de(!1), m = f(() => {
6434
+ }, RA = () => {
6435
+ const e = S(), t = ne(), { symbol: n } = T(), [o] = k(), [r] = L(), a = Qt()[1], { isCompleteWithdrawStep: i } = Ge(), { swapQuoteRefreshTriggered: l } = J(), c = no(), { isFetching: d, isError: p } = He(), u = de(!1), m = f(() => {
6431
6436
  a({
6432
6437
  sendToken: {
6433
6438
  symbol: n,
@@ -6476,11 +6481,11 @@ const mA = (e) => {
6476
6481
  disabled: l === "withdraw" && d,
6477
6482
  label: i ? e.swapAction : e.sellNow
6478
6483
  };
6479
- }, di = () => {
6480
- const { ActionButton: e = G } = D(), { handleClick: t, label: n, disabled: o } = $A();
6484
+ }, ci = () => {
6485
+ const { ActionButton: e = G } = D(), { handleClick: t, label: n, disabled: o } = RA();
6481
6486
  return /* @__PURE__ */ s(e, { onClick: t, disabled: o, children: n });
6482
- }, RA = () => {
6483
- xA();
6487
+ }, BA = () => {
6488
+ CA();
6484
6489
  const { isGeoBlocked: e, isSanctioned: t } = U(), { GeoBlockAlert: n, SanctionedAlert: o, CustomDepositMeta: r } = D(), a = e || t, i = [
6485
6490
  {
6486
6491
  Component: n,
@@ -6494,23 +6499,23 @@ const mA = (e) => {
6494
6499
  }
6495
6500
  ].filter(({ value: l }) => l);
6496
6501
  return /* @__PURE__ */ w(O, { children: [
6497
- /* @__PURE__ */ s(V.InputGroup, { children: /* @__PURE__ */ s(bA, {}) }),
6502
+ /* @__PURE__ */ s(V.InputGroup, { children: /* @__PURE__ */ s(TA, {}) }),
6498
6503
  r && /* @__PURE__ */ s(r, {}),
6499
- /* @__PURE__ */ s(SA, { children: a ? i.map(
6504
+ /* @__PURE__ */ s(xA, { children: a ? i.map(
6500
6505
  ({ Component: l, key: c }) => l && /* @__PURE__ */ s(l, {}, c)
6501
- ) : /* @__PURE__ */ s(O, { children: /* @__PURE__ */ s(Lo, { children: /* @__PURE__ */ s(rA, {}) }) }) })
6506
+ ) : /* @__PURE__ */ s(O, { children: /* @__PURE__ */ s(Lo, { children: /* @__PURE__ */ s(aA, {}) }) }) })
6502
6507
  ] });
6503
- }, BA = () => /* @__PURE__ */ s(V.Panel, { children: /* @__PURE__ */ s(RA, {}) }), MA = (e) => Object.keys(M).some((t) => t === e), FA = ({ children: e }) => {
6508
+ }, MA = () => /* @__PURE__ */ s(V.Panel, { children: /* @__PURE__ */ s(BA, {}) }), FA = (e) => Object.keys(M).some((t) => t === e), WA = ({ children: e }) => {
6504
6509
  const t = Cs();
6505
6510
  let n = null;
6506
- return ol.forEach(e, (o) => {
6507
- if (rl(o)) {
6511
+ return nl.forEach(e, (o) => {
6512
+ if (ol(o)) {
6508
6513
  const r = o.props.type;
6509
- MA(r) && t[r] && t[r].isOpen && (n = o);
6514
+ FA(r) && t[r] && t[r].isOpen && (n = o);
6510
6515
  }
6511
6516
  }), n;
6512
- }, WA = ({ type: e }) => {
6513
- const t = S(), { DepositTermsOfUse: n, ActionButton: o = G } = D(), { handleReject: r, handleConfirm: a, isPending: i } = se({
6517
+ }, zA = ({ type: e }) => {
6518
+ const t = S(), { DepositTermsOfUse: n, ActionButton: o = G } = D(), { handleReject: r, handleConfirm: a, isPending: i } = ie({
6514
6519
  type: e
6515
6520
  });
6516
6521
  return /* @__PURE__ */ w(V.Overlay, { className: "dtw-justify-between dtw-gap-y-1 dtw-overflow-y-auto theme-scrollbar", children: [
@@ -6544,8 +6549,8 @@ const mA = (e) => {
6544
6549
  )
6545
6550
  ] })
6546
6551
  ] });
6547
- }, zA = ({ type: e }) => {
6548
- const t = S(), { ActionButton: n = G } = D(), { handleReject: o, handleConfirm: r } = se({ type: e });
6552
+ }, UA = ({ type: e }) => {
6553
+ const t = S(), { ActionButton: n = G } = D(), { handleReject: o, handleConfirm: r } = ie({ type: e });
6549
6554
  return /* @__PURE__ */ w(V.Overlay, { className: "dtw-justify-between dtw-gap-y-1", children: [
6550
6555
  /* @__PURE__ */ w("div", { className: "dtw-flex dtw-gap-1 dtw-items-center dtw-text-warning", children: [
6551
6556
  /* @__PURE__ */ s(ht, { className: "dtw-h-5 dtw-w-5" }),
@@ -6567,18 +6572,18 @@ const mA = (e) => {
6567
6572
  /* @__PURE__ */ s(n, { onClick: r, children: t.confirm })
6568
6573
  ] })
6569
6574
  ] });
6570
- }, UA = ({
6575
+ }, GA = ({
6571
6576
  token: e,
6572
6577
  onSelect: t
6573
6578
  }) => ({
6574
6579
  onClick: () => {
6575
6580
  t(e);
6576
6581
  }
6577
- }), GA = ({
6582
+ }), HA = ({
6578
6583
  token: e,
6579
6584
  onSelect: t
6580
6585
  }) => {
6581
- const { onClick: n } = UA({ token: e, onSelect: t });
6586
+ const { onClick: n } = GA({ token: e, onSelect: t });
6582
6587
  return /* @__PURE__ */ w(
6583
6588
  "div",
6584
6589
  {
@@ -6596,7 +6601,7 @@ const mA = (e) => {
6596
6601
  }
6597
6602
  ),
6598
6603
  /* @__PURE__ */ s(
6599
- ti,
6604
+ ei,
6600
6605
  {
6601
6606
  className: "dtw-pt-2",
6602
6607
  showFraction: !1,
@@ -6606,7 +6611,7 @@ const mA = (e) => {
6606
6611
  ]
6607
6612
  }
6608
6613
  );
6609
- }, HA = ({
6614
+ }, VA = ({
6610
6615
  token: e,
6611
6616
  onSelect: t,
6612
6617
  isActive: n,
@@ -6629,13 +6634,13 @@ const mA = (e) => {
6629
6634
  t(e);
6630
6635
  }
6631
6636
  };
6632
- }, pi = ({
6637
+ }, di = ({
6633
6638
  token: e,
6634
6639
  onSelect: t,
6635
6640
  onClose: n,
6636
6641
  isActive: o = !1
6637
6642
  }) => {
6638
- const { onClick: r, formattedBalance: a } = HA({
6643
+ const { onClick: r, formattedBalance: a } = VA({
6639
6644
  token: e,
6640
6645
  onSelect: t,
6641
6646
  onClose: n,
@@ -6667,7 +6672,7 @@ const mA = (e) => {
6667
6672
  }
6668
6673
  ),
6669
6674
  /* @__PURE__ */ w("div", { className: "dtw-flex dtw-flex-col dtw-self-end dtw-text-sm dtw-font-light dtw-text-[color:var(--panel-balance-content-color)]", children: [
6670
- o && /* @__PURE__ */ s(mc, { className: "dtw-w-4 dtw-self-end dtw-text-themeGreen" }),
6675
+ o && /* @__PURE__ */ s(uc, { className: "dtw-w-4 dtw-self-end dtw-text-themeGreen" }),
6671
6676
  /* @__PURE__ */ w("div", { children: [
6672
6677
  /* @__PURE__ */ s("span", { className: "dtw-mr-1 dtw-text-xs", children: e.symbol }),
6673
6678
  a
@@ -6676,8 +6681,8 @@ const mA = (e) => {
6676
6681
  ]
6677
6682
  }
6678
6683
  );
6679
- }, VA = [], jA = () => {
6680
- const e = T(), [t] = fe(), [n, o] = k(), [r, a] = L(), { data: i } = ms(e), l = Oo(), c = i ? VA : e.withdrawParams.customTokens;
6684
+ }, jA = [], qA = () => {
6685
+ const e = T(), [t] = fe(), [n, o] = k(), [r, a] = L(), { data: i } = ms(e), l = Oo(), c = i ? jA : e.withdrawParams.customTokens;
6681
6686
  return _(
6682
6687
  () => ({
6683
6688
  tokens: t === "deposit" ? l : c,
@@ -6694,11 +6699,11 @@ const mA = (e) => {
6694
6699
  r
6695
6700
  ]
6696
6701
  );
6697
- }, qA = ({
6702
+ }, KA = ({
6698
6703
  searchQuery: e,
6699
6704
  type: t
6700
6705
  }) => {
6701
- const [{ isMultiAssetWithdrawalEnabled: n }] = Y(), { isCompleteWithdrawStep: o } = Ge(), r = sn(), [a] = fe(), { handleReject: i } = se({ type: t }), { tokens: l, updater: c, activeTokens: d } = jA(), p = _(
6706
+ const [{ isMultiAssetWithdrawalEnabled: n }] = Y(), { isCompleteWithdrawStep: o } = Ge(), r = sn(), [a] = fe(), { handleReject: i } = ie({ type: t }), { tokens: l, updater: c, activeTokens: d } = qA(), p = _(
6702
6707
  () => e ? l.filter(
6703
6708
  ({ symbol: m }) => m.toLowerCase().includes(e)
6704
6709
  ) : l,
@@ -6716,7 +6721,7 @@ const mA = (e) => {
6716
6721
  onClose: i,
6717
6722
  showMultiAssetWithdrawalOption: n && a === "withdraw" && !r && !o
6718
6723
  };
6719
- }, KA = ({
6724
+ }, QA = ({
6720
6725
  type: e,
6721
6726
  searchQuery: t
6722
6727
  }) => {
@@ -6726,7 +6731,7 @@ const mA = (e) => {
6726
6731
  onSelect: a,
6727
6732
  showMultiAssetWithdrawalOption: i,
6728
6733
  onClose: l
6729
- } = qA({ type: e, searchQuery: t });
6734
+ } = KA({ type: e, searchQuery: t });
6730
6735
  return /* @__PURE__ */ w(
6731
6736
  V.Overlay,
6732
6737
  {
@@ -6745,7 +6750,7 @@ const mA = (e) => {
6745
6750
  {
6746
6751
  className: "dtw-cursor-pointer dtw-rounded-xl dtw-drop-shadow-md even:odd:dtw-bg-[color:var(--panel-popup-list-item-bg-even)] odd:dtw-bg-[color:var(--panel-popup-list-item-bg-odd)] dtw-group",
6747
6752
  children: /* @__PURE__ */ s(
6748
- pi,
6753
+ di,
6749
6754
  {
6750
6755
  token: c,
6751
6756
  onSelect: a,
@@ -6758,7 +6763,7 @@ const mA = (e) => {
6758
6763
  );
6759
6764
  }),
6760
6765
  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(
6761
- GA,
6766
+ HA,
6762
6767
  {
6763
6768
  token: me,
6764
6769
  onSelect: a
@@ -6768,7 +6773,7 @@ const mA = (e) => {
6768
6773
  ]
6769
6774
  }
6770
6775
  );
6771
- }, QA = ({
6776
+ }, YA = ({
6772
6777
  children: e,
6773
6778
  chainId: t
6774
6779
  }) => {
@@ -6792,11 +6797,11 @@ const mA = (e) => {
6792
6797
  }, Gn = (e, t) => e.address in t ? {
6793
6798
  balanceInUsd: t[e.address]?.balanceInUsd ?? ee({ value: 0 }),
6794
6799
  balanceInUsdNumber: t[e.address]?.balanceInUsdNumber ?? 0
6795
- } : { balanceInUsd: ee({ value: 0 }), balanceInUsdNumber: 0 }, YA = (e) => (t, n) => Gn(n, e).balanceInUsdNumber - Gn(t, e).balanceInUsdNumber, XA = ({
6800
+ } : { balanceInUsd: ee({ value: 0 }), balanceInUsdNumber: 0 }, XA = (e) => (t, n) => Gn(n, e).balanceInUsdNumber - Gn(t, e).balanceInUsdNumber, ZA = ({
6796
6801
  searchQuery: e,
6797
6802
  type: t
6798
6803
  }) => {
6799
- const n = xb(), o = yt(), r = T(), { handleReject: a } = se({ type: t }), [i] = fe(), l = k()[1], c = L()[1], d = yc()[1], p = f(
6804
+ const n = xb(), o = yt(), r = T(), { handleReject: a } = ie({ type: t }), [i] = fe(), l = k()[1], c = L()[1], d = yc()[1], p = f(
6800
6805
  ({ address: m, value: h, decimals: v, symbol: g }) => {
6801
6806
  (i === "deposit" ? c : l)({ address: m, value: h, decimals: v, symbol: g }), d(m), a();
6802
6807
  },
@@ -6822,7 +6827,7 @@ const mA = (e) => {
6822
6827
  isActive: r.address === h.address
6823
6828
  })).filter(
6824
6829
  ({ symbol: h }) => e ? h.toLowerCase().includes(e) : !0
6825
- ).slice().sort(YA(n))
6830
+ ).slice().sort(XA(n))
6826
6831
  ]
6827
6832
  })
6828
6833
  ),
@@ -6831,11 +6836,11 @@ const mA = (e) => {
6831
6836
  onClose: a,
6832
6837
  onSelect: p
6833
6838
  };
6834
- }, ZA = ({
6839
+ }, JA = ({
6835
6840
  type: e,
6836
6841
  searchQuery: t
6837
6842
  }) => {
6838
- const n = S(), { poolList: o, onClose: r, onSelect: a } = XA({
6843
+ const n = S(), { poolList: o, onClose: r, onSelect: a } = ZA({
6839
6844
  type: e,
6840
6845
  searchQuery: t
6841
6846
  });
@@ -6847,7 +6852,7 @@ const mA = (e) => {
6847
6852
  className: "dtw-gap-[var(--panel-gap)]",
6848
6853
  children: [
6849
6854
  /* @__PURE__ */ s("span", { className: "dtw-text-center dtw-text-[length:var(--panel-font-size-sm)] dtw-font-[var(--panel-font-weight-medium)]", children: n.selectToken }),
6850
- /* @__PURE__ */ s("div", { className: "dtw-grid dtw-gap-[calc(var(--panel-gap) * 0.5)] dtw-overflow-y-auto theme-scrollbar", children: o.map(({ chainId: i, configs: l }) => /* @__PURE__ */ s(QA, { chainId: i, children: l.map(({ isActive: c, symbol: d, address: p }) => /* @__PURE__ */ s(
6855
+ /* @__PURE__ */ s("div", { className: "dtw-grid dtw-gap-[calc(var(--panel-gap) * 0.5)] dtw-overflow-y-auto theme-scrollbar", children: o.map(({ chainId: i, configs: l }) => /* @__PURE__ */ s(YA, { chainId: i, children: l.map(({ isActive: c, symbol: d, address: p }) => /* @__PURE__ */ s(
6851
6856
  "div",
6852
6857
  {
6853
6858
  className: C(
@@ -6857,7 +6862,7 @@ const mA = (e) => {
6857
6862
  }
6858
6863
  ),
6859
6864
  children: /* @__PURE__ */ s(
6860
- pi,
6865
+ di,
6861
6866
  {
6862
6867
  token: {
6863
6868
  symbol: d,
@@ -6876,23 +6881,35 @@ const mA = (e) => {
6876
6881
  ]
6877
6882
  }
6878
6883
  );
6879
- }, JA = ({ type: e }) => {
6880
- const { address: t, symbol: n, chainId: o } = T(), [{ link: r, sendTokens: a }, i] = K(), { handleReject: l } = se({ type: e }), c = a?.[0], d = va(r), p = pe({
6884
+ }, eS = ({ type: e }) => {
6885
+ const { address: t, symbol: n, chainId: o } = T(), [{ link: r, sendTokens: a }, i] = K(), { handleReject: l } = ie({ type: e }), c = a?.[0], d = va(r), p = pe({
6881
6886
  address: t,
6882
6887
  chainId: o
6883
- });
6888
+ }), u = f(() => {
6889
+ i({ isOpen: !1 }), l();
6890
+ }, [i, l]), m = mc.has(
6891
+ t.toLowerCase()
6892
+ );
6884
6893
  return {
6885
- onClose: f(() => {
6886
- i({ isOpen: !1 }), l();
6887
- }, [i, l]),
6894
+ onClose: u,
6888
6895
  link: r,
6896
+ vaultAddress: t,
6889
6897
  vaultSymbol: n,
6890
6898
  paidToken: c,
6891
6899
  txHash: d,
6892
- vaultTokenPrice: ee({ value: p })
6900
+ vaultTokenPrice: ee({ value: p }),
6901
+ showDeriveBanner: m
6893
6902
  };
6894
- }, eS = (e) => {
6895
- const t = S(), { link: n, onClose: o, vaultSymbol: r, paidToken: a, txHash: i, vaultTokenPrice: l } = JA(e), { ActionButton: c = G } = D(), d = ys();
6903
+ }, tS = (e) => {
6904
+ const t = S(), {
6905
+ link: n,
6906
+ onClose: o,
6907
+ showDeriveBanner: r,
6908
+ vaultSymbol: a,
6909
+ paidToken: i,
6910
+ txHash: l,
6911
+ vaultTokenPrice: c
6912
+ } = eS(e), { ActionButton: d = G, DeriveSuccessBanner: p } = D(), u = ys();
6896
6913
  return /* @__PURE__ */ w(V.Overlay, { className: "dtw-justify-between dtw-gap-y-4", noPadding: !0, children: [
6897
6914
  /* @__PURE__ */ w("div", { className: "dtw-flex dtw-flex-col dtw-items-center dtw-justify-center dtw-gap-3 dtw-pt-1 dtw-px-2 dtw-w-full", children: [
6898
6915
  /* @__PURE__ */ w("div", { className: "dtw-flex dtw-flex-col dtw-items-center dtw-text-[color:var(--panel-success-content-color)] dtw-mb-2", children: [
@@ -6903,43 +6920,44 @@ const mA = (e) => {
6903
6920
  /* @__PURE__ */ w("div", { className: "dtw-flex dtw-items-center dtw-justify-between dtw-gap-2 dtw-w-full", children: [
6904
6921
  /* @__PURE__ */ s("p", { children: t.orderingLabel }),
6905
6922
  /* @__PURE__ */ w("div", { className: "dtw-flex dtw-items-center dtw-gap-2 dtw-text-[color:var(--panel-secondary-content-color)]", children: [
6906
- /* @__PURE__ */ s("span", { children: r }),
6907
- /* @__PURE__ */ s(LA, {})
6923
+ /* @__PURE__ */ s("span", { children: a }),
6924
+ /* @__PURE__ */ s($A, {})
6908
6925
  ] })
6909
6926
  ] }),
6910
6927
  /* @__PURE__ */ s(Re, {}),
6911
- a && /* @__PURE__ */ w(O, { children: [
6928
+ i && /* @__PURE__ */ w(O, { children: [
6912
6929
  /* @__PURE__ */ w("div", { className: "dtw-flex dtw-items-center dtw-justify-between dtw-gap-2 dtw-w-full", children: [
6913
6930
  /* @__PURE__ */ s("p", { children: t.paidLabel }),
6914
6931
  /* @__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: [
6915
- a.value ? ke({
6916
- value: +a.value,
6932
+ i.value ? ke({
6933
+ value: +i.value,
6917
6934
  decimals: 4
6918
6935
  }) : null,
6919
6936
  " ",
6920
- a.symbol
6937
+ i.symbol
6921
6938
  ] })
6922
6939
  ] }),
6923
6940
  /* @__PURE__ */ s(Re, {})
6924
6941
  ] }),
6925
6942
  /* @__PURE__ */ w("div", { className: "dtw-flex dtw-items-center dtw-justify-between dtw-gap-2 dtw-w-full", children: [
6926
6943
  /* @__PURE__ */ s("p", { children: t.priceLabel }),
6927
- /* @__PURE__ */ s("p", { className: "dtw-text-[color:var(--panel-secondary-content-color)]", children: l })
6944
+ /* @__PURE__ */ s("p", { className: "dtw-text-[color:var(--panel-secondary-content-color)]", children: c })
6928
6945
  ] }),
6929
6946
  n && /* @__PURE__ */ w(O, { children: [
6930
6947
  /* @__PURE__ */ s(Re, {}),
6931
6948
  /* @__PURE__ */ w("div", { className: "dtw-flex dtw-items-center dtw-justify-between dtw-gap-2 dtw-w-full", children: [
6932
6949
  /* @__PURE__ */ s("p", { children: t.transactionLabel }),
6933
- /* @__PURE__ */ s(ze, { link: n, children: i ?? t.explorer })
6950
+ /* @__PURE__ */ s(ze, { link: n, children: l ?? t.explorer })
6934
6951
  ] })
6935
6952
  ] })
6936
6953
  ] }),
6954
+ !!p && r && /* @__PURE__ */ s(p, {}),
6937
6955
  /* @__PURE__ */ w("div", { className: "dtw-flex dtw-flex-col dtw-gap-2 dtw-w-full", children: [
6938
- d ? /* @__PURE__ */ s(li, { children: t.openLimitOrderAfterBuySwitchLabel }) : /* @__PURE__ */ s(ci, { children: t.openNotificationsSettingsLabel }),
6939
- /* @__PURE__ */ s(c, { highlighted: !1, onClick: o, children: t.done })
6956
+ u ? /* @__PURE__ */ s(ii, { children: t.openLimitOrderAfterBuySwitchLabel }) : r ? null : /* @__PURE__ */ s(li, { children: t.openNotificationsSettingsLabel }),
6957
+ /* @__PURE__ */ s(d, { highlighted: !1, onClick: o, children: t.done })
6940
6958
  ] })
6941
6959
  ] });
6942
- }, tS = () => {
6960
+ }, nS = () => {
6943
6961
  const e = S(), { LogoSpinner: t = Pe } = D(), [{ link: n }] = K();
6944
6962
  return /* @__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: [
6945
6963
  /* @__PURE__ */ s(t, { className: "dtw-h-16 dtw-w-16 lg:dtw-h-24 lg:dtw-w-24 dtw-shrink-0" }),
@@ -6954,7 +6972,7 @@ const mA = (e) => {
6954
6972
  }
6955
6973
  )
6956
6974
  ] });
6957
- }, nS = ({
6975
+ }, oS = ({
6958
6976
  onClose: e
6959
6977
  }) => {
6960
6978
  const t = S(), { ActionButton: n = G } = D(), [{ link: o }] = K();
@@ -6975,28 +6993,28 @@ const mA = (e) => {
6975
6993
  )
6976
6994
  ] }),
6977
6995
  /* @__PURE__ */ w("div", { className: "dtw-flex dtw-flex-col dtw-gap-2 dtw-w-full", children: [
6978
- /* @__PURE__ */ s(ci, { children: t.openNotificationsSettingsLabel }),
6996
+ /* @__PURE__ */ s(li, { children: t.openNotificationsSettingsLabel }),
6979
6997
  /* @__PURE__ */ s(n, { highlighted: !1, onClick: e, children: t.done })
6980
6998
  ] })
6981
6999
  ] });
6982
- }, oS = ({ type: e }) => {
6983
- const [{ status: t }, n] = K(), { handleReject: o } = se({ type: e }), r = t === "Mining";
7000
+ }, rS = ({ type: e }) => {
7001
+ const [{ status: t }, n] = K(), { handleReject: o } = ie({ type: e }), r = t === "Mining";
6984
7002
  return { onClose: f(() => {
6985
7003
  n({ isOpen: !1 }), o();
6986
7004
  }, [o, n]), isProcessing: r };
6987
- }, rS = (e) => {
6988
- const { onClose: t, isProcessing: n } = oS(e);
7005
+ }, aS = (e) => {
7006
+ const { onClose: t, isProcessing: n } = rS(e);
6989
7007
  return /* @__PURE__ */ s(
6990
7008
  V.Overlay,
6991
7009
  {
6992
7010
  className: "dtw-justify-between dtw-gap-y-4",
6993
7011
  onClose: t,
6994
7012
  noPadding: !0,
6995
- children: n ? /* @__PURE__ */ s(tS, {}) : /* @__PURE__ */ s(nS, { onClose: t })
7013
+ children: n ? /* @__PURE__ */ s(nS, {}) : /* @__PURE__ */ s(oS, { onClose: t })
6996
7014
  }
6997
7015
  );
6998
- }, aS = ({ type: e }) => {
6999
- const { statusLabel: t, status: n } = Es(), [{ link: o, action: r }, a] = K(), i = n == "Success", { handleReject: l } = se({ type: e }), c = r === "single_withdraw" && i, d = i && r === "deposit", p = i && r && la.includes(r);
7016
+ }, sS = ({ type: e }) => {
7017
+ const { statusLabel: t, status: n } = Es(), [{ link: o, action: r }, a] = K(), i = n == "Success", { handleReject: l } = ie({ type: e }), c = r === "single_withdraw" && i, d = i && r === "deposit", p = i && r && la.includes(r);
7000
7018
  return {
7001
7019
  title: t ?? n,
7002
7020
  isSuccessTx: i,
@@ -7010,14 +7028,14 @@ const mA = (e) => {
7010
7028
  displayLimitOrderTransactionOverlay: r === "create_limit_sell_order",
7011
7029
  displayWithdrawLimitOrderOverlay: r === "limit_order_withdraw"
7012
7030
  };
7013
- }, sS = ({ sendTokens: e }) => {
7031
+ }, iS = ({ sendTokens: e }) => {
7014
7032
  const t = S(), [n] = e ?? [];
7015
7033
  return n ? /* @__PURE__ */ w("div", { className: "dtw-flex dtw-items-center dtw-gap-1 dtw-flex-wrap dtw-overflow-hidden", children: [
7016
7034
  /* @__PURE__ */ s("span", { children: t.approveSpending }),
7017
7035
  /* @__PURE__ */ s(Me, { size: "sm", symbols: [n.symbol] }),
7018
7036
  /* @__PURE__ */ s("span", { children: n.symbol })
7019
7037
  ] }) : null;
7020
- }, iS = ({ receiveTokens: e }) => {
7038
+ }, lS = ({ receiveTokens: e }) => {
7021
7039
  const t = S(), [n] = e ?? [];
7022
7040
  return n ? /* @__PURE__ */ w("div", { className: "dtw-flex dtw-flex-wrap dtw-items-center dtw-gap-1", children: [
7023
7041
  t.swapAndClaimTo,
@@ -7028,7 +7046,7 @@ const mA = (e) => {
7028
7046
  n.symbol
7029
7047
  ] })
7030
7048
  ] }) : null;
7031
- }, lS = ({ sendTokens: e, receiveTokens: t, action: n }) => {
7049
+ }, cS = ({ sendTokens: e, receiveTokens: t, action: n }) => {
7032
7050
  const o = S(), [r] = e ?? [], [a] = t ?? [];
7033
7051
  return r ? /* @__PURE__ */ w("div", { className: "dtw-flex dtw-flex-wrap dtw-items-center dtw-gap-x-1", children: [
7034
7052
  n === "deposit" ? o.pay : n === "multi_withdraw" ? o.sell : o.unrollAction,
@@ -7045,23 +7063,23 @@ const mA = (e) => {
7045
7063
  a.symbol
7046
7064
  ] }) : /* @__PURE__ */ s(O, { children: n === "multi_withdraw" ? o.multiAssetFractions : o.swappableAssets }) })
7047
7065
  ] }) : null;
7048
- }, cS = () => {
7066
+ }, dS = () => {
7049
7067
  const e = S(), [{ action: t, receiveTokens: n, sendTokens: o }] = K();
7050
- return t === "approve" ? /* @__PURE__ */ s(sS, { sendTokens: o }) : t === "swap" ? /* @__PURE__ */ s(iS, { receiveTokens: n }) : t === "claim" ? /* @__PURE__ */ s(O, { children: e.claimLabel }) : t === "create_limit_sell_order" ? /* @__PURE__ */ s(O, { children: e.createLimitSellOrder }) : t === "delete_limit_order_withdraw" ? /* @__PURE__ */ s(O, { children: e.deleteWithdrawalRequest }) : /* @__PURE__ */ s(
7051
- lS,
7068
+ return t === "approve" ? /* @__PURE__ */ s(iS, { sendTokens: o }) : t === "swap" ? /* @__PURE__ */ s(lS, { receiveTokens: n }) : t === "claim" ? /* @__PURE__ */ s(O, { children: e.claimLabel }) : t === "create_limit_sell_order" ? /* @__PURE__ */ s(O, { children: e.createLimitSellOrder }) : t === "delete_limit_order_withdraw" ? /* @__PURE__ */ s(O, { children: e.deleteWithdrawalRequest }) : /* @__PURE__ */ s(
7069
+ cS,
7052
7070
  {
7053
7071
  action: t,
7054
7072
  sendTokens: o,
7055
7073
  receiveTokens: n
7056
7074
  }
7057
7075
  );
7058
- }, dS = ({ type: e }) => {
7059
- const [, t] = K(), { handleReject: n } = se({ type: e }), [{ link: o, status: r }] = K(), a = r == "Success";
7076
+ }, pS = ({ type: e }) => {
7077
+ const [, t] = K(), { handleReject: n } = ie({ type: e }), [{ link: o, status: r }] = K(), a = r == "Success";
7060
7078
  return { onClose: f(() => {
7061
7079
  t({ isOpen: !1 }), n();
7062
7080
  }, [n, t]), link: o, isSuccessTx: a };
7063
- }, pS = (e) => {
7064
- const t = S(), { ActionButton: n = G } = D(), { onClose: o, link: r, isSuccessTx: a } = dS(e);
7081
+ }, uS = (e) => {
7082
+ const t = S(), { ActionButton: n = G } = D(), { onClose: o, link: r, isSuccessTx: a } = pS(e);
7065
7083
  return a ? /* @__PURE__ */ w(
7066
7084
  V.Overlay,
7067
7085
  {
@@ -7087,8 +7105,8 @@ const mA = (e) => {
7087
7105
  ]
7088
7106
  }
7089
7107
  ) : null;
7090
- }, uS = ({ type: e }) => {
7091
- const { address: t, symbol: n } = T(), [{ link: o }, r] = K(), { handleReject: a } = se({ type: e }), [i] = Qt(), l = va(o);
7108
+ }, mS = ({ type: e }) => {
7109
+ const { address: t, symbol: n } = T(), [{ link: o }, r] = K(), { handleReject: a } = ie({ type: e }), [i] = Qt(), l = va(o);
7092
7110
  return {
7093
7111
  onClose: f(() => {
7094
7112
  r({ isOpen: !1, status: "None" }), a();
@@ -7100,8 +7118,8 @@ const mA = (e) => {
7100
7118
  vaultSymbol: i?.sendToken?.symbol || n,
7101
7119
  txHash: l
7102
7120
  };
7103
- }, mS = (e) => {
7104
- const t = S(), { link: n, onClose: o, vaultSymbol: r, vaultAmount: a, receiveTokens: i, txHash: l } = uS(e), { ActionButton: c = G } = D();
7121
+ }, wS = (e) => {
7122
+ const t = S(), { link: n, onClose: o, vaultSymbol: r, vaultAmount: a, receiveTokens: i, txHash: l } = mS(e), { ActionButton: c = G } = D();
7105
7123
  return /* @__PURE__ */ w(V.Overlay, { className: "dtw-justify-between dtw-gap-y-4", noPadding: !0, children: [
7106
7124
  /* @__PURE__ */ w("div", { className: "dtw-flex dtw-flex-col dtw-items-center dtw-justify-center dtw-gap-3 dtw-pt-1 dtw-px-2 dtw-w-full", children: [
7107
7125
  /* @__PURE__ */ w("div", { className: "dtw-flex dtw-flex-col dtw-items-center dtw-text-[color:var(--panel-success-content-color)] dtw-mb-2", children: [
@@ -7137,7 +7155,7 @@ const mA = (e) => {
7137
7155
  ] }),
7138
7156
  /* @__PURE__ */ s(c, { highlighted: !1, onClick: o, children: t.done })
7139
7157
  ] });
7140
- }, wS = ({ type: e }) => {
7158
+ }, hS = ({ type: e }) => {
7141
7159
  const {
7142
7160
  link: t,
7143
7161
  title: n,
@@ -7148,13 +7166,13 @@ const mA = (e) => {
7148
7166
  displaySuccessWithdrawalOverlay: l,
7149
7167
  displayLimitOrderTransactionOverlay: c,
7150
7168
  displayWithdrawLimitOrderOverlay: d
7151
- } = aS({ type: e }), { LogoSpinner: p = Pe } = D(), u = S();
7152
- return c ? /* @__PURE__ */ s(rS, { type: e }) : i ? /* @__PURE__ */ s(eS, { type: e }) : l ? /* @__PURE__ */ s(mS, { type: e }) : d ? /* @__PURE__ */ s(pS, { type: e }) : /* @__PURE__ */ w(V.Notification, { onClose: o, children: [
7169
+ } = sS({ type: e }), { LogoSpinner: p = Pe } = D(), u = S();
7170
+ return c ? /* @__PURE__ */ s(aS, { type: e }) : i ? /* @__PURE__ */ s(tS, { type: e }) : l ? /* @__PURE__ */ s(wS, { type: e }) : d ? /* @__PURE__ */ s(uS, { type: e }) : /* @__PURE__ */ w(V.Notification, { onClose: o, children: [
7153
7171
  /* @__PURE__ */ w("div", { className: "dtw-flex dtw-items-center dtw-gap-1.5", children: [
7154
7172
  /* @__PURE__ */ s("span", { className: "dtw-font-semibold dtw-drop-shadow-md", children: n }),
7155
7173
  r ? /* @__PURE__ */ s(ba, { 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 " })
7156
7174
  ] }),
7157
- /* @__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(cS, {}) }),
7175
+ /* @__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(dS, {}) }),
7158
7176
  t && /* @__PURE__ */ s(
7159
7177
  ze,
7160
7178
  {
@@ -7166,7 +7184,7 @@ const mA = (e) => {
7166
7184
  ),
7167
7185
  a && /* @__PURE__ */ s("p", { className: "dtw-text-xs", children: u.proceedWithNextStep })
7168
7186
  ] });
7169
- }, ui = (e) => /* @__PURE__ */ w(
7187
+ }, pi = (e) => /* @__PURE__ */ w(
7170
7188
  "svg",
7171
7189
  {
7172
7190
  width: "123",
@@ -7234,7 +7252,7 @@ const mA = (e) => {
7234
7252
  )
7235
7253
  ]
7236
7254
  }
7237
- ), mi = ({
7255
+ ), ui = ({
7238
7256
  triggerType: e,
7239
7257
  refetch: t,
7240
7258
  isFetched: n,
@@ -7244,27 +7262,27 @@ const mA = (e) => {
7244
7262
  return { handleClick: () => {
7245
7263
  r(e), a(), t(), o?.();
7246
7264
  }, disabled: !n };
7247
- }, hS = (e) => {
7265
+ }, gS = (e) => {
7248
7266
  const { refetch: t, isFetched: n } = kt();
7249
- return mi({
7267
+ return ui({
7250
7268
  triggerType: "deposit",
7251
7269
  refetch: t,
7252
7270
  isFetched: n,
7253
7271
  onClose: e
7254
7272
  });
7255
- }, wi = ({ handleClick: e, disabled: t }) => {
7273
+ }, mi = ({ handleClick: e, disabled: t }) => {
7256
7274
  const n = S(), { ActionButton: o = G } = D();
7257
7275
  return /* @__PURE__ */ s(o, { onClick: e, disabled: t, highlighted: !0, children: n.tryAgain });
7258
- }, gS = ({ onClose: e }) => {
7259
- const { handleClick: t, disabled: n } = hS(e);
7276
+ }, vS = ({ onClose: e }) => {
7277
+ const { handleClick: t, disabled: n } = gS(e);
7260
7278
  return /* @__PURE__ */ s(
7261
- wi,
7279
+ mi,
7262
7280
  {
7263
7281
  handleClick: t,
7264
7282
  disabled: n
7265
7283
  }
7266
7284
  );
7267
- }, vS = ({
7285
+ }, fS = ({
7268
7286
  error: e,
7269
7287
  onCancel: t
7270
7288
  }) => {
@@ -7280,20 +7298,20 @@ const mA = (e) => {
7280
7298
  }
7281
7299
  ),
7282
7300
  /* @__PURE__ */ w("div", { className: "dtw-flex dtw-flex-col dtw-items-center dtw-justify-center dtw-gap-4 dtw-pt-4 dtw-px-4 dtw-w-full dtw-flex-1", children: [
7283
- /* @__PURE__ */ s(ui, { className: "dtw-size-32" }),
7301
+ /* @__PURE__ */ s(pi, { className: "dtw-size-32" }),
7284
7302
  /* @__PURE__ */ w("div", { className: "dtw-flex dtw-flex-col dtw-items-center dtw-gap-2 dtw-text-center", children: [
7285
7303
  /* @__PURE__ */ s("p", { className: "dtw-text-lg dtw-font-medium", children: e.title }),
7286
7304
  e.hint && /* @__PURE__ */ s("p", { className: "dtw-text-sm dtw-text-[color:var(--panel-secondary-content-color)]", children: e.hint })
7287
7305
  ] })
7288
7306
  ] }),
7289
- /* @__PURE__ */ s(gS, { onClose: t })
7307
+ /* @__PURE__ */ s(vS, { onClose: t })
7290
7308
  ] });
7291
- }, fS = _e.filter(
7309
+ }, bS = _e.filter(
7292
7310
  ({ type: e }) => e === "error"
7293
- ).map(({ name: e }) => e), bS = ({ type: e }) => {
7294
- const { handleReject: t, meta: n } = se({ type: e }), { isCompleteWithdrawStep: o } = Ge(), r = We(), a = o && !r, i = n?.error ?? "", l = i === sa || i === na || i.includes(Il), c = fa({
7311
+ ).map(({ name: e }) => e), TS = ({ type: e }) => {
7312
+ const { handleReject: t, meta: n } = ie({ type: e }), { isCompleteWithdrawStep: o } = Ge(), r = We(), a = o && !r, i = n?.error ?? "", l = i === sa || i === na || i.includes(El), c = fa({
7295
7313
  errorMessage: n?.error,
7296
- abiErrors: fS
7314
+ abiErrors: bS
7297
7315
  });
7298
7316
  return {
7299
7317
  handleReject: t,
@@ -7302,29 +7320,29 @@ const mA = (e) => {
7302
7320
  isDepositSwapError: r && l,
7303
7321
  isWithdrawSwapError: a && l
7304
7322
  };
7305
- }, TS = (e) => {
7323
+ }, yS = (e) => {
7306
7324
  const { refetch: t, isFetched: n } = He();
7307
- return mi({
7325
+ return ui({
7308
7326
  triggerType: "withdraw",
7309
7327
  refetch: t,
7310
7328
  isFetched: n,
7311
7329
  onClose: e
7312
7330
  });
7313
- }, yS = ({ onClose: e }) => {
7314
- const { handleClick: t, disabled: n } = TS(e);
7331
+ }, AS = ({ onClose: e }) => {
7332
+ const { handleClick: t, disabled: n } = yS(e);
7315
7333
  return /* @__PURE__ */ s(
7316
- wi,
7334
+ mi,
7317
7335
  {
7318
7336
  handleClick: t,
7319
7337
  disabled: n
7320
7338
  }
7321
7339
  );
7322
- }, Dr = !0, AS = (e) => {
7323
- const { isWrongNetwork: t } = si(), n = Qt()[1], { data: o = [] } = ie(), r = Rs({ isClaim: Dr }), {
7340
+ }, Dr = !0, SS = (e) => {
7341
+ const { isWrongNetwork: t } = ai(), n = Qt()[1], { data: o = [] } = oe(), r = Rs({ isClaim: Dr }), {
7324
7342
  disabled: a,
7325
7343
  label: i,
7326
7344
  handleTrade: l
7327
- } = Fs({
7345
+ } = Ms({
7328
7346
  withdraw: r,
7329
7347
  isClaim: Dr
7330
7348
  }), c = Do("claim");
@@ -7336,12 +7354,12 @@ const mA = (e) => {
7336
7354
  }))
7337
7355
  }), e?.(), l();
7338
7356
  }, isWrongNetwork: t, isLoading: c };
7339
- }, hi = ({
7357
+ }, wi = ({
7340
7358
  highlighted: e,
7341
7359
  className: t,
7342
7360
  onClick: n
7343
7361
  }) => {
7344
- const { ActionButton: o = G } = D(), { handleTrade: r, disabled: a, label: i, isWrongNetwork: l, isLoading: c } = AS(n);
7362
+ const { ActionButton: o = G } = D(), { handleTrade: r, disabled: a, label: i, isWrongNetwork: l, isLoading: c } = SS(n);
7345
7363
  return l ? null : /* @__PURE__ */ s(
7346
7364
  o,
7347
7365
  {
@@ -7353,11 +7371,11 @@ const mA = (e) => {
7353
7371
  children: i
7354
7372
  }
7355
7373
  );
7356
- }, SS = (e) => e.length <= 1 ? e[0] ?? "" : [...e.slice(0, -1), `and ${e[e.length - 1]}`].join(
7374
+ }, xS = (e) => e.length <= 1 ? e[0] ?? "" : [...e.slice(0, -1), `and ${e[e.length - 1]}`].join(
7357
7375
  e.length === 2 ? " " : ", "
7358
- ), xS = ({ error: e, onCancel: t, isSwapError: n = !1 }) => {
7359
- const o = S(), { ActionButton: r = G } = D(), [a, i] = q(!1), { data: l = [] } = ie(), c = _(() => {
7360
- const d = l.map(({ symbol: u }) => u), p = SS(d);
7376
+ ), CS = ({ error: e, onCancel: t, isSwapError: n = !1 }) => {
7377
+ const o = S(), { ActionButton: r = G } = D(), [a, i] = q(!1), { data: l = [] } = oe(), c = _(() => {
7378
+ const d = l.map(({ symbol: u }) => u), p = xS(d);
7361
7379
  return o.skipSwapAndClaimSymbols.replace("{symbols}", p);
7362
7380
  }, [l, o.skipSwapAndClaimSymbols]);
7363
7381
  return /* @__PURE__ */ w(V.Overlay, { className: "dtw-justify-between dtw-gap-y-4", children: [
@@ -7371,7 +7389,7 @@ const mA = (e) => {
7371
7389
  }
7372
7390
  ),
7373
7391
  /* @__PURE__ */ w("div", { className: "dtw-flex dtw-flex-col dtw-items-center dtw-justify-center dtw-gap-4 dtw-pt-4 dtw-px-4 dtw-w-full dtw-flex-1", children: [
7374
- /* @__PURE__ */ s(ui, { className: "dtw-size-32" }),
7392
+ /* @__PURE__ */ s(pi, { className: "dtw-size-32" }),
7375
7393
  /* @__PURE__ */ w("div", { className: "dtw-flex dtw-flex-col dtw-items-center dtw-gap-2 dtw-text-center", children: [
7376
7394
  /* @__PURE__ */ s("p", { className: "dtw-text-lg dtw-font-medium", children: e.title }),
7377
7395
  e.hint && /* @__PURE__ */ s("p", { className: "dtw-text-sm dtw-text-[color:var(--panel-secondary-content-color)]", children: e.hint })
@@ -7387,34 +7405,34 @@ const mA = (e) => {
7387
7405
  }
7388
7406
  ) })
7389
7407
  ] }),
7390
- /* @__PURE__ */ s("div", { className: "dtw-flex dtw-flex-col dtw-gap-2 dtw-w-full", children: n && !a ? /* @__PURE__ */ s(yS, { onClose: t }) : /* @__PURE__ */ s(hi, { onClick: t, highlighted: !0 }) })
7408
+ /* @__PURE__ */ s("div", { className: "dtw-flex dtw-flex-col dtw-gap-2 dtw-w-full", children: n && !a ? /* @__PURE__ */ s(AS, { onClose: t }) : /* @__PURE__ */ s(wi, { onClick: t, highlighted: !0 }) })
7391
7409
  ] });
7392
- }, CS = (e) => {
7410
+ }, ES = (e) => {
7393
7411
  const {
7394
7412
  handleReject: t,
7395
7413
  error: n,
7396
7414
  showCompleteWithdrawErrorOverlay: o,
7397
7415
  isDepositSwapError: r,
7398
7416
  isWithdrawSwapError: a
7399
- } = bS(e);
7417
+ } = TS(e);
7400
7418
  return n ? o ? /* @__PURE__ */ s(
7401
- xS,
7419
+ CS,
7402
7420
  {
7403
7421
  error: n,
7404
7422
  onCancel: t,
7405
7423
  isSwapError: a
7406
7424
  }
7407
- ) : r ? /* @__PURE__ */ s(vS, { error: n, onCancel: t }) : /* @__PURE__ */ w(V.Notification, { onClose: t, children: [
7425
+ ) : r ? /* @__PURE__ */ s(fS, { error: n, onCancel: t }) : /* @__PURE__ */ w(V.Notification, { onClose: t, children: [
7408
7426
  /* @__PURE__ */ s("p", { className: "dtw-text-sm", children: n.title }),
7409
7427
  n.hint && /* @__PURE__ */ s("p", { className: "dtw-text-xs", children: n.hint })
7410
7428
  ] }) : null;
7411
- }, ES = [
7429
+ }, IS = [
7412
7430
  "dtw-bg-transparent",
7413
7431
  "dtw-border-[var(--limit-order-action-outline-button-border-color,var(--limit-order-border-color))]",
7414
7432
  "!dtw-text-[color:var(--limit-order-action-outline-button-color,var(--limit-order-content-color))]",
7415
7433
  "active:dtw-border-opacity-100",
7416
7434
  "hover:enabled:dtw-border-[var(--limit-order-action-outline-button-border-hover-color)]"
7417
- ], IS = [
7435
+ ], NS = [
7418
7436
  "!dtw-text-[color:var(--limit-order-action-accent-button-color,var(--limit-order-accent-content-color))]",
7419
7437
  "dtw-bg-gradient-to-r",
7420
7438
  "dtw-from-[var(--limit-order-action-accent-button-bg-from,var(--limit-order-accent-from-color))]",
@@ -7446,8 +7464,8 @@ const mA = (e) => {
7446
7464
  "dtw-px-5",
7447
7465
  "dtw-w-full",
7448
7466
  {
7449
- [IS.join(" ")]: n,
7450
- [ES.join(" ")]: !n,
7467
+ [NS.join(" ")]: n,
7468
+ [IS.join(" ")]: !n,
7451
7469
  "dtw-flex dtw-items-center dtw-justify-center dtw-gap-1": i
7452
7470
  },
7453
7471
  r
@@ -7460,7 +7478,7 @@ const mA = (e) => {
7460
7478
  e
7461
7479
  ]
7462
7480
  }
7463
- ), gi = {
7481
+ ), hi = {
7464
7482
  switchNetwork: "Switch Network",
7465
7483
  approve: "Approve",
7466
7484
  lowerLimitLabel: "Lower limit",
@@ -7487,21 +7505,21 @@ const mA = (e) => {
7487
7505
  termsPoint3: "If the vault tokens are still subject to a lock-up period, the order cannot be executed.",
7488
7506
  termsPoint4: "Limit sells are intended to settle in USDC. In rare cases where market conditions or high slippage prevent a USDC swap, the order may be settled in the underlying tokens of the respective vault.",
7489
7507
  termsPoint5: "While limit sells are generally expected to execute, they are currently in beta and execution is not guaranteed."
7490
- }, vi = ge(gi), fi = ({ children: e, config: t }) => {
7508
+ }, gi = ge(hi), vi = ({ children: e, config: t }) => {
7491
7509
  const n = _(
7492
7510
  () => ({
7493
- ...gi,
7511
+ ...hi,
7494
7512
  ...t
7495
7513
  }),
7496
7514
  [t]
7497
7515
  );
7498
- return /* @__PURE__ */ s(vi.Provider, { value: n, children: e });
7516
+ return /* @__PURE__ */ s(gi.Provider, { value: n, children: e });
7499
7517
  }, Te = () => {
7500
- const e = ve(vi);
7518
+ const e = ve(gi);
7501
7519
  if (!e)
7502
7520
  throw new Error("TranslationContext is used out of Provider");
7503
7521
  return e;
7504
- }, NS = ({
7522
+ }, _S = ({
7505
7523
  symbol: e,
7506
7524
  price: t
7507
7525
  }) => {
@@ -7510,7 +7528,7 @@ const mA = (e) => {
7510
7528
  /* @__PURE__ */ s("span", { className: "dtw-text-xs", children: n.currentPrice.replace("{symbol}", e) }),
7511
7529
  /* @__PURE__ */ s("span", { className: "dtw-font-[var(--limit-order-font-weight-bold)]", children: t })
7512
7530
  ] });
7513
- }, _S = 100, kS = 3, OS = ({
7531
+ }, kS = 100, OS = 3, DS = ({
7514
7532
  inputValue: e = "",
7515
7533
  onInputChange: t,
7516
7534
  autoFocus: n = !1
@@ -7525,13 +7543,13 @@ const mA = (e) => {
7525
7543
  },
7526
7544
  onInputChange: (c) => {
7527
7545
  const d = c.target.value.replace(/[^0-9]/g, "");
7528
- if (d.length > kS) return;
7546
+ if (d.length > OS) return;
7529
7547
  const p = Number(d);
7530
- !isNaN(p) && p <= _S && (r(d), t?.(d));
7548
+ !isNaN(p) && p <= kS && (r(d), t?.(d));
7531
7549
  }
7532
7550
  };
7533
- }, DS = (e) => {
7534
- const { disabled: t, placeholder: n, suffix: o = "%", postfix: r } = e, { inputRef: a, autoFocus: i, value: l, onContainerClick: c, onInputChange: d } = OS(e);
7551
+ }, PS = (e) => {
7552
+ const { disabled: t, placeholder: n, suffix: o = "%", postfix: r } = e, { inputRef: a, autoFocus: i, value: l, onContainerClick: c, onInputChange: d } = DS(e);
7535
7553
  return /* @__PURE__ */ s(
7536
7554
  "div",
7537
7555
  {
@@ -7557,12 +7575,12 @@ const mA = (e) => {
7557
7575
  ] })
7558
7576
  }
7559
7577
  );
7560
- }, PS = 7, Hn = 4, Pr = (e) => {
7578
+ }, LS = 7, Hn = 4, Pr = (e) => {
7561
7579
  if (!e)
7562
7580
  return "";
7563
7581
  const [t = "", n] = e.replace(/,/g, "").split("."), o = n && n.length > Hn ? n.slice(0, Hn) : n, r = t.replace(/\B(?=(\d{3})+(?!\d))/g, ",");
7564
7582
  return o !== void 0 ? `${r}.${o}` : r;
7565
- }, LS = ({
7583
+ }, $S = ({
7566
7584
  inputValue: e = "",
7567
7585
  onInputChange: t,
7568
7586
  autoFocus: n = !1
@@ -7577,11 +7595,11 @@ const mA = (e) => {
7577
7595
  },
7578
7596
  onInputChange: (c) => {
7579
7597
  const d = c.target.value.replace(/[^\d.]/g, "").replace(/(\..*)\./g, "$1"), [p = "", u = ""] = d.split(".");
7580
- t && p.length <= PS && u.length <= Hn && /^\d*(\.\d*)?$/.test(d) && (r(Pr(d)), t(d));
7598
+ t && p.length <= LS && u.length <= Hn && /^\d*(\.\d*)?$/.test(d) && (r(Pr(d)), t(d));
7581
7599
  }
7582
7600
  };
7583
7601
  }, Lr = (e) => {
7584
- const { disabled: t, placeholder: n, percentage: o, suffix: r } = e, { inputRef: a, autoFocus: i, value: l, onContainerClick: c, onInputChange: d } = LS(e);
7602
+ const { disabled: t, placeholder: n, percentage: o, suffix: r } = e, { inputRef: a, autoFocus: i, value: l, onContainerClick: c, onInputChange: d } = $S(e);
7585
7603
  return /* @__PURE__ */ s(
7586
7604
  "div",
7587
7605
  {
@@ -7628,12 +7646,12 @@ const mA = (e) => {
7628
7646
  ] }),
7629
7647
  a && r
7630
7648
  ] });
7631
- }, bi = {
7649
+ }, fi = {
7632
7650
  upperLimitPrice: "",
7633
7651
  lowerLimitPrice: "",
7634
7652
  sellPercentage: "",
7635
7653
  termsAccepted: !1
7636
- }, $S = (e, t) => {
7654
+ }, RS = (e, t) => {
7637
7655
  switch (t.type) {
7638
7656
  case "SET_UPPER_LIMIT_PRICE":
7639
7657
  return {
@@ -7663,7 +7681,7 @@ const mA = (e) => {
7663
7681
  case "RESET":
7664
7682
  return {
7665
7683
  ...e,
7666
- form: bi
7684
+ form: fi
7667
7685
  };
7668
7686
  case "SET_PENDING_TRANSACTION":
7669
7687
  return {
@@ -7676,19 +7694,19 @@ const mA = (e) => {
7676
7694
  };
7677
7695
  function Ee() {
7678
7696
  }
7679
- const Ti = (e) => ({
7697
+ const bi = (e) => ({
7680
7698
  vaultAddress: e.vaultAddress,
7681
7699
  vaultChainId: e.vaultChainId,
7682
7700
  isModalOpen: e.isModalOpen ?? !1,
7683
7701
  form: {
7684
- ...bi,
7702
+ ...fi,
7685
7703
  ...e.form
7686
7704
  },
7687
7705
  pendingTransaction: null,
7688
7706
  pricingAsset: e.pricingAsset,
7689
7707
  minAmountInUsd: e.minAmountInUsd
7690
- }), yi = ge(
7691
- Ti({
7708
+ }), Ti = ge(
7709
+ bi({
7692
7710
  vaultAddress: I,
7693
7711
  vaultChainId: 0,
7694
7712
  pricingAsset: {
@@ -7701,7 +7719,7 @@ const Ti = (e) => ({
7701
7719
  upperLimitPrice: ""
7702
7720
  }
7703
7721
  })
7704
- ), Ai = ge({
7722
+ ), yi = ge({
7705
7723
  setIsModalOpen: Ee,
7706
7724
  setUpperLimitPrice: Ee,
7707
7725
  setLowerLimitPrice: Ee,
@@ -7710,10 +7728,10 @@ const Ti = (e) => ({
7710
7728
  reset: Ee,
7711
7729
  setPendingTransaction: Ee,
7712
7730
  onLog: Ee
7713
- }), Si = ({ children: e, initialState: t, actions: n }) => {
7731
+ }), Ai = ({ children: e, initialState: t, actions: n }) => {
7714
7732
  const [o, r] = jn(
7715
- $S,
7716
- Ti(t)
7733
+ RS,
7734
+ bi(t)
7717
7735
  ), a = f((h) => {
7718
7736
  r({ type: "SET_UPPER_LIMIT_PRICE", payload: h });
7719
7737
  }, []), i = f((h) => {
@@ -7759,8 +7777,8 @@ const Ti = (e) => ({
7759
7777
  n?.onLog
7760
7778
  ]
7761
7779
  );
7762
- return /* @__PURE__ */ s(Ai.Provider, { value: m, children: /* @__PURE__ */ s(yi.Provider, { value: o, children: e }) });
7763
- }, ce = () => ve(yi), Ot = () => ve(Ai), wn = () => {
7780
+ return /* @__PURE__ */ s(yi.Provider, { value: m, children: /* @__PURE__ */ s(Ti.Provider, { value: o, children: e }) });
7781
+ }, ce = () => ve(Ti), Ot = () => ve(yi), wn = () => {
7764
7782
  const { account: e } = $(), {
7765
7783
  vaultAddress: t,
7766
7784
  vaultChainId: n,
@@ -7788,28 +7806,28 @@ const Ti = (e) => ({
7788
7806
  symbol: r.symbol
7789
7807
  };
7790
7808
  }, [r, o]);
7791
- }, RS = ({
7809
+ }, BS = ({
7792
7810
  userAddress: e,
7793
7811
  vaultAddress: t
7794
7812
  }) => {
7795
- const n = kl(
7813
+ const n = _l(
7796
7814
  ["address", "address"],
7797
7815
  [e, t]
7798
7816
  );
7799
- return Ol(n);
7800
- }, BS = ({
7817
+ return kl(n);
7818
+ }, MS = ({
7801
7819
  price: e,
7802
7820
  markPrice: t
7803
- }) => new E(e).gt(t) ? `+${Yn((+e / +t - 1) * 100, 2)}` : "", MS = ({
7821
+ }) => new E(e).gt(t) ? `+${Yn((+e / +t - 1) * 100, 2)}` : "", FS = ({
7804
7822
  price: e,
7805
7823
  markPrice: t
7806
- }) => new E(e).lt(t) ? `-${Yn((1 - +e / +t) * 100, 2)}` : "", FS = ({
7824
+ }) => new E(e).lt(t) ? `-${Yn((1 - +e / +t) * 100, 2)}` : "", WS = ({
7807
7825
  error: e,
7808
7826
  translationMap: t
7809
- }) => e ? e.title === Nl ? {
7827
+ }) => e ? e.title === Il ? {
7810
7828
  ...e,
7811
7829
  hint: t.invalidLimitOrderPriceError
7812
- } : e : null, WS = () => {
7830
+ } : e : null, zS = () => {
7813
7831
  const e = Te(), {
7814
7832
  form: { upperLimitPrice: t, lowerLimitPrice: n, sellPercentage: o, termsAccepted: r },
7815
7833
  pricingAsset: a,
@@ -7823,10 +7841,10 @@ const Ti = (e) => ({
7823
7841
  address: a.address,
7824
7842
  chainId: i,
7825
7843
  refetchInterval: Qe
7826
- }), m = Number(u) < cf ? df : pf, { formatted: h, symbol: v } = wn(), g = BS({
7844
+ }), m = Number(u) < cf ? df : pf, { formatted: h, symbol: v } = wn(), g = MS({
7827
7845
  price: t,
7828
7846
  markPrice: u
7829
- }), b = MS({
7847
+ }), b = FS({
7830
7848
  price: n,
7831
7849
  markPrice: u
7832
7850
  }), y = f(() => {
@@ -7859,13 +7877,13 @@ const Ti = (e) => ({
7859
7877
  coveredVaultAmount: h,
7860
7878
  vaultSymbol: v
7861
7879
  };
7862
- }, zS = [
7880
+ }, US = [
7863
7881
  "termsPoint1",
7864
7882
  "termsPoint2",
7865
7883
  "termsPoint3",
7866
7884
  "termsPoint4",
7867
7885
  "termsPoint5"
7868
- ], US = ({ className: e }) => {
7886
+ ], GS = ({ className: e }) => {
7869
7887
  const t = Te();
7870
7888
  return /* @__PURE__ */ s(
7871
7889
  "div",
@@ -7874,14 +7892,14 @@ const Ti = (e) => ({
7874
7892
  "dtw-w-full dtw-text-[length:var(--limit-order-font-size-xs)] dtw-max-h-[120px] dtw-overflow-y-auto theme-scrollbar dtw-text-[color:var(--limit-order-secondary-content-color)]",
7875
7893
  e
7876
7894
  ),
7877
- children: /* @__PURE__ */ s("ol", { className: "dtw-list-decimal dtw-list-inside dtw-space-y-2", children: zS.map((n, o) => /* @__PURE__ */ w("li", { className: "dtw-text-pretty", children: [
7895
+ children: /* @__PURE__ */ s("ol", { className: "dtw-list-decimal dtw-list-inside dtw-space-y-2", children: US.map((n, o) => /* @__PURE__ */ w("li", { className: "dtw-text-pretty", children: [
7878
7896
  o + 1,
7879
7897
  ". ",
7880
7898
  t[n]
7881
7899
  ] }, n)) })
7882
7900
  }
7883
7901
  );
7884
- }, xi = ({
7902
+ }, Si = ({
7885
7903
  className: e,
7886
7904
  checked: t,
7887
7905
  label: n,
@@ -7889,7 +7907,7 @@ const Ti = (e) => ({
7889
7907
  ...r
7890
7908
  }) => /* @__PURE__ */ w(Hr, { className: "dtw-flex dtw-items-center dtw-gap-2", children: [
7891
7909
  /* @__PURE__ */ s(
7892
- zi,
7910
+ Wi,
7893
7911
  {
7894
7912
  ...r,
7895
7913
  checked: t,
@@ -7905,7 +7923,7 @@ const Ti = (e) => ({
7905
7923
  }
7906
7924
  ),
7907
7925
  n && /* @__PURE__ */ s(Vr, { className: C("dtw-select-none", o), children: n })
7908
- ] }), GS = () => {
7926
+ ] }), HS = () => {
7909
7927
  const e = Te(), {
7910
7928
  upperLimitPrice: t,
7911
7929
  lowerLimitPrice: n,
@@ -7925,11 +7943,11 @@ const Ti = (e) => ({
7925
7943
  onDisableSellPercentage: b,
7926
7944
  coveredVaultAmount: y,
7927
7945
  vaultSymbol: x
7928
- } = WS();
7946
+ } = zS();
7929
7947
  return /* @__PURE__ */ w(O, { children: [
7930
7948
  /* @__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: [
7931
7949
  /* @__PURE__ */ s(
7932
- NS,
7950
+ _S,
7933
7951
  {
7934
7952
  symbol: m,
7935
7953
  price: d
@@ -7981,7 +7999,7 @@ const Ti = (e) => ({
7981
7999
  defaultEnabled: !!v,
7982
8000
  onDisable: b,
7983
8001
  children: /* @__PURE__ */ s(
7984
- DS,
8002
+ PS,
7985
8003
  {
7986
8004
  inputValue: v,
7987
8005
  onInputChange: g,
@@ -7997,7 +8015,7 @@ const Ti = (e) => ({
7997
8015
  )
7998
8016
  ] }),
7999
8017
  /* @__PURE__ */ s("div", { className: "dtw-mt-3 dtw-px-2 dtw-flex dtw-items-center dtw-gap-1.5", children: /* @__PURE__ */ s(
8000
- xi,
8018
+ Si,
8001
8019
  {
8002
8020
  checked: c,
8003
8021
  onChange: (R) => l(R),
@@ -8005,9 +8023,9 @@ const Ti = (e) => ({
8005
8023
  labelClassName: "dtw-text-[length:var(--limit-order-font-size-xs)] dtw-cursor-pointer"
8006
8024
  }
8007
8025
  ) }),
8008
- /* @__PURE__ */ s(US, { className: "dtw-px-2" })
8026
+ /* @__PURE__ */ s(GS, { className: "dtw-px-2" })
8009
8027
  ] });
8010
- }, HS = () => {
8028
+ }, VS = () => {
8011
8029
  const { account: e = I } = $(), { vaultAddress: t, vaultChainId: n } = ce(), o = j("limitOrder", n), r = wn(), { data: a } = oo({
8012
8030
  tokenAddress: t,
8013
8031
  ownerAddress: e,
@@ -8016,7 +8034,7 @@ const Ti = (e) => ({
8016
8034
  skip: Q(o)
8017
8035
  });
8018
8036
  return a ? new E(r.raw).lte(a.toString()) : !1;
8019
- }, VS = () => {
8037
+ }, jS = () => {
8020
8038
  const { vaultAddress: e, vaultChainId: t } = ce(), { setPendingTransaction: n } = Ot(), [o, r] = q(!1), a = j("limitOrder", t), { send: i } = Se({
8021
8039
  contractId: "erc20",
8022
8040
  dynamicContractAddress: e,
@@ -8031,10 +8049,10 @@ const Ti = (e) => ({
8031
8049
  },
8032
8050
  isApproving: o
8033
8051
  };
8034
- }, jS = ({
8052
+ }, qS = ({
8035
8053
  createLimitOrder: e
8036
8054
  }) => {
8037
- const [t, n] = q("idle"), [o, r] = q(void 0), a = de(!1), i = HS(), { approveLimitOrder: l, isApproving: c } = VS(), { vaultChainId: d, pendingTransaction: p } = ce(), { data: u } = qt({
8055
+ const [t, n] = q("idle"), [o, r] = q(void 0), a = de(!1), i = VS(), { approveLimitOrder: l, isApproving: c } = jS(), { vaultChainId: d, pendingTransaction: p } = ce(), { data: u } = qt({
8038
8056
  hash: o,
8039
8057
  pollingInterval: Kt,
8040
8058
  query: {
@@ -8088,7 +8106,7 @@ const Ti = (e) => ({
8088
8106
  flowState: t,
8089
8107
  needsApproval: !i
8090
8108
  };
8091
- }, Ci = (e) => {
8109
+ }, xi = (e) => {
8092
8110
  const { setIsModalOpen: t, reset: n, setPendingTransaction: o, onTransactionSettled: r } = Ot();
8093
8111
  return f(
8094
8112
  (...a) => {
@@ -8105,7 +8123,7 @@ const Ti = (e) => ({
8105
8123
  n
8106
8124
  ]
8107
8125
  );
8108
- }, qS = ([
8126
+ }, KS = ([
8109
8127
  e,
8110
8128
  t,
8111
8129
  n,
@@ -8132,15 +8150,15 @@ const Ti = (e) => ({
8132
8150
  abi: ca,
8133
8151
  chainId: e,
8134
8152
  functionName: ho,
8135
- args: [RS({ userAddress: t, vaultAddress: n })],
8153
+ args: [BS({ userAddress: t, vaultAddress: n })],
8136
8154
  query: {
8137
8155
  enabled: !Q(o) && !Q(t) && !Q(n),
8138
- select: qS
8156
+ select: KS
8139
8157
  }
8140
8158
  });
8141
- }, KS = ca.filter(
8159
+ }, QS = ca.filter(
8142
8160
  ({ type: e }) => e === "error"
8143
- ).map(({ name: e }) => e), QS = "create", YS = () => {
8161
+ ).map(({ name: e }) => e), YS = "create", XS = () => {
8144
8162
  const { account: e = I } = $(), {
8145
8163
  vaultAddress: t,
8146
8164
  vaultChainId: n,
@@ -8150,7 +8168,7 @@ const Ti = (e) => ({
8150
8168
  userAddress: e,
8151
8169
  vaultAddress: t,
8152
8170
  chainId: n
8153
- }), [c, d] = q(null), p = Ci(QS), u = !!l, { send: m } = Se({
8171
+ }), [c, d] = q(null), p = xi(YS), u = !!l, { send: m } = Se({
8154
8172
  onSettled: p,
8155
8173
  contractId: "limitOrder",
8156
8174
  functionName: u ? "modifyLimitOrder" : "createLimitOrder"
@@ -8178,14 +8196,14 @@ const Ti = (e) => ({
8178
8196
  m
8179
8197
  ]), v = fa({
8180
8198
  errorMessage: c,
8181
- abiErrors: KS
8199
+ abiErrors: QS
8182
8200
  });
8183
8201
  return {
8184
8202
  createLimitOrder: h,
8185
8203
  isModifyTransaction: u,
8186
8204
  error: v ?? null
8187
8205
  };
8188
- }, XS = () => {
8206
+ }, ZS = () => {
8189
8207
  const e = Te(), {
8190
8208
  vaultAddress: t,
8191
8209
  vaultChainId: n,
@@ -8194,9 +8212,9 @@ const Ti = (e) => ({
8194
8212
  } = ce(), a = wn(), i = pe({
8195
8213
  address: t,
8196
8214
  chainId: n
8197
- }), { createLimitOrder: l, isModifyTransaction: c, error: d } = YS(), u = new Ie(a.formatted).multipliedBy(
8215
+ }), { createLimitOrder: l, isModifyTransaction: c, error: d } = XS(), u = new Ie(a.formatted).multipliedBy(
8198
8216
  i ?? "0"
8199
- ).gte(r), m = !o || !u, { approveAndCreate: h, isLoading: v, flowState: g, needsApproval: b } = jS({
8217
+ ).gte(r), m = !o || !u, { approveAndCreate: h, isLoading: v, flowState: g, needsApproval: b } = qS({
8200
8218
  createLimitOrder: l
8201
8219
  }), y = () => {
8202
8220
  switch (g) {
@@ -8212,7 +8230,7 @@ const Ti = (e) => ({
8212
8230
  return {
8213
8231
  handleClick: h,
8214
8232
  disabled: m,
8215
- error: FS({
8233
+ error: WS({
8216
8234
  error: d,
8217
8235
  translationMap: e
8218
8236
  }),
@@ -8225,7 +8243,7 @@ const Ti = (e) => ({
8225
8243
  }),
8226
8244
  buttonText: y()
8227
8245
  };
8228
- }, ZS = ({ disabled: e }) => {
8246
+ }, JS = ({ disabled: e }) => {
8229
8247
  const t = Te(), {
8230
8248
  handleClick: n,
8231
8249
  disabled: o,
@@ -8234,7 +8252,7 @@ const Ti = (e) => ({
8234
8252
  minAmount: i,
8235
8253
  isAmountSufficient: l,
8236
8254
  buttonText: c
8237
- } = XS();
8255
+ } = ZS();
8238
8256
  return /* @__PURE__ */ w("div", { children: [
8239
8257
  r && /* @__PURE__ */ w("div", { className: "dtw-mb-2 dtw-flex dtw-flex-col dtw-gap-1 dtw-text-error", children: [
8240
8258
  /* @__PURE__ */ s("span", { className: "dtw-text-sm", children: r.title }),
@@ -8251,19 +8269,19 @@ const Ti = (e) => ({
8251
8269
  }
8252
8270
  )
8253
8271
  ] });
8254
- }, JS = "remove", ex = () => {
8272
+ }, ex = "remove", tx = () => {
8255
8273
  const { account: e = I } = $(), { vaultAddress: t, vaultChainId: n, pendingTransaction: o } = ce(), { data: r } = hn({
8256
8274
  userAddress: e,
8257
8275
  vaultAddress: t,
8258
8276
  chainId: n
8259
- }), a = Ci(JS), { send: i } = Se({
8277
+ }), a = xi(ex), { send: i } = Se({
8260
8278
  onSettled: a,
8261
8279
  contractId: "limitOrder",
8262
8280
  functionName: "deleteLimitOrder"
8263
8281
  }), l = async () => i(t), c = !!o, d = !!r?.amountD18 && !new E(r.amountD18.toString()).isZero();
8264
8282
  return { deleteLimitOrder: l, isPending: c, displayButton: d };
8265
- }, tx = () => {
8266
- const e = Te(), { deleteLimitOrder: t, isPending: n, displayButton: o } = ex();
8283
+ }, nx = () => {
8284
+ const e = Te(), { deleteLimitOrder: t, isPending: n, displayButton: o } = tx();
8267
8285
  return o ? /* @__PURE__ */ s(
8268
8286
  mn,
8269
8287
  {
@@ -8274,7 +8292,7 @@ const Ti = (e) => ({
8274
8292
  children: e.delete
8275
8293
  }
8276
8294
  ) : null;
8277
- }, nx = () => {
8295
+ }, ox = () => {
8278
8296
  const { chainId: e, switchNetwork: t } = Oe(), { vaultChainId: n } = ce();
8279
8297
  return {
8280
8298
  isWrongNetwork: e !== n,
@@ -8282,31 +8300,31 @@ const Ti = (e) => ({
8282
8300
  t?.({ chainId: n });
8283
8301
  }
8284
8302
  };
8285
- }, ox = ({ children: e }) => {
8286
- const t = Te(), { isWrongNetwork: n, handleNetworkSwitch: o } = nx();
8303
+ }, rx = ({ children: e }) => {
8304
+ const t = Te(), { isWrongNetwork: n, handleNetworkSwitch: o } = ox();
8287
8305
  return n ? /* @__PURE__ */ s(mn, { onClick: o, children: t.switchNetwork }) : e;
8288
8306
  }, $r = (e) => {
8289
8307
  const t = e?.trim();
8290
8308
  return t ? !isNaN(Number(t)) : !1;
8291
- }, rx = () => {
8309
+ }, ax = () => {
8292
8310
  const {
8293
8311
  form: { lowerLimitPrice: e, upperLimitPrice: t }
8294
8312
  } = ce(), n = $r(e) && Number(e) !== 0, o = $r(t);
8295
8313
  return { limitOrderButtonDisabled: !n && !o };
8296
- }, Ei = ({
8314
+ }, Ci = ({
8297
8315
  onClose: e,
8298
8316
  hideDeleteButton: t
8299
8317
  }) => {
8300
- const n = Te(), { limitOrderButtonDisabled: o } = rx();
8318
+ const n = Te(), { limitOrderButtonDisabled: o } = ax();
8301
8319
  return /* @__PURE__ */ w("div", { className: "dtw-flex dtw-flex-col dtw-gap-2", children: [
8302
- /* @__PURE__ */ s(GS, {}),
8303
- /* @__PURE__ */ w(ox, { children: [
8304
- /* @__PURE__ */ s(ZS, { disabled: o }),
8305
- !t && /* @__PURE__ */ s(tx, {})
8320
+ /* @__PURE__ */ s(HS, {}),
8321
+ /* @__PURE__ */ w(rx, { children: [
8322
+ /* @__PURE__ */ s(JS, { disabled: o }),
8323
+ !t && /* @__PURE__ */ s(nx, {})
8306
8324
  ] }),
8307
8325
  !!e && /* @__PURE__ */ s(mn, { highlighted: !1, onClick: e, children: n.cancel })
8308
8326
  ] });
8309
- }, Ii = ({
8327
+ }, Ei = ({
8310
8328
  vaultAddress: e,
8311
8329
  vaultChainId: t
8312
8330
  }) => {
@@ -8316,27 +8334,27 @@ const Ti = (e) => ({
8316
8334
  userAddress: n
8317
8335
  }), a = r && r.takeProfitPriceD18 !== Ye ? r.takeProfitPrice : "", i = r && r.stopLossPriceD18 !== BigInt(0) ? r.stopLossPrice : "";
8318
8336
  return { isFetched: o, upperLimitPrice: a, lowerLimitPrice: i };
8319
- }, ax = [
8337
+ }, sx = [
8320
8338
  ho,
8321
8339
  ss,
8322
8340
  "allowance"
8323
- ], sx = () => {
8341
+ ], ix = () => {
8324
8342
  const e = Zn();
8325
8343
  return f(() => {
8326
8344
  e.invalidateQueries({
8327
8345
  predicate: ({ queryKey: t }) => {
8328
8346
  const n = t[1]?.functionName;
8329
- return t[0] === "readContract" && ax.some((o) => o === n);
8347
+ return t[0] === "readContract" && sx.some((o) => o === n);
8330
8348
  }
8331
8349
  });
8332
8350
  }, [e]);
8333
- }, Ni = () => {
8351
+ }, Ii = () => {
8334
8352
  const { pendingTransaction: e, vaultChainId: t, vaultAddress: n } = ce(), {
8335
8353
  setPendingTransaction: o,
8336
8354
  onTransactionSuccess: r,
8337
8355
  onTransactionError: a,
8338
8356
  onLog: i
8339
- } = Ot(), l = sx(), { data: c, error: d } = qt({
8357
+ } = Ot(), l = ix(), { data: c, error: d } = qt({
8340
8358
  hash: e?.hash ?? void 0,
8341
8359
  chainId: t,
8342
8360
  pollingInterval: Qe
@@ -8392,7 +8410,7 @@ const Ti = (e) => ({
8392
8410
  AMBER: {
8393
8411
  400: "#AFA58D"
8394
8412
  }
8395
- }, _i = ({
8413
+ }, Ni = ({
8396
8414
  children: e,
8397
8415
  config: t
8398
8416
  }) => /* @__PURE__ */ s(
@@ -8549,7 +8567,7 @@ const Ti = (e) => ({
8549
8567
  },
8550
8568
  children: e
8551
8569
  }
8552
- ), ix = ({ themeConfig: e }) => (Ni(), /* @__PURE__ */ s(_i, { config: e, children: /* @__PURE__ */ s(Ei, { hideDeleteButton: !0 }) })), lx = ({
8570
+ ), lx = ({ themeConfig: e }) => (Ii(), /* @__PURE__ */ s(Ni, { config: e, children: /* @__PURE__ */ s(Ci, { hideDeleteButton: !0 }) })), cx = ({
8553
8571
  vaultChainId: e,
8554
8572
  vaultAddress: t,
8555
8573
  pricingAsset: n,
@@ -8558,7 +8576,7 @@ const Ti = (e) => ({
8558
8576
  actions: a,
8559
8577
  themeConfig: i
8560
8578
  }) => {
8561
- const { isFetched: l, upperLimitPrice: c, lowerLimitPrice: d } = Ii({ vaultAddress: t, vaultChainId: e }), p = _(
8579
+ const { isFetched: l, upperLimitPrice: c, lowerLimitPrice: d } = Ei({ vaultAddress: t, vaultChainId: e }), p = _(
8562
8580
  () => ({
8563
8581
  vaultAddress: t,
8564
8582
  vaultChainId: e,
@@ -8578,9 +8596,9 @@ const Ti = (e) => ({
8578
8596
  d
8579
8597
  ]
8580
8598
  );
8581
- return l ? /* @__PURE__ */ s(fi, { config: o, children: /* @__PURE__ */ s(Si, { initialState: p, actions: a, children: /* @__PURE__ */ s(ix, { themeConfig: i }) }) }) : null;
8582
- }, cx = ({ type: e }) => {
8583
- const { minLimitOrderValue: t } = U(), { address: n, chainId: o, pricingAsset: r, symbol: a } = T(), { handleReject: i } = se({ type: e }), l = K()[1], c = te()[1], d = Vb(), p = _(
8599
+ return l ? /* @__PURE__ */ s(vi, { config: o, children: /* @__PURE__ */ s(Ai, { initialState: p, actions: a, children: /* @__PURE__ */ s(lx, { themeConfig: i }) }) }) : null;
8600
+ }, dx = ({ type: e }) => {
8601
+ const { minLimitOrderValue: t } = U(), { address: n, chainId: o, pricingAsset: r, symbol: a } = T(), { handleReject: i } = ie({ type: e }), l = K()[1], c = te()[1], d = Vb(), p = _(
8584
8602
  () => ({
8585
8603
  onTransactionSettled: (m) => {
8586
8604
  m && (i(), c({
@@ -8618,7 +8636,7 @@ const Ti = (e) => ({
8618
8636
  actions: p,
8619
8637
  closeAllOverlays: u
8620
8638
  };
8621
- }, dx = (e) => {
8639
+ }, px = (e) => {
8622
8640
  const { limitOrderThemeConfig: t } = U(), {
8623
8641
  handleReject: n,
8624
8642
  chainId: o,
@@ -8627,7 +8645,7 @@ const Ti = (e) => ({
8627
8645
  minLimitOrderValue: i,
8628
8646
  actions: l,
8629
8647
  closeAllOverlays: c
8630
- } = cx(e);
8648
+ } = dx(e);
8631
8649
  return a ? /* @__PURE__ */ s(
8632
8650
  V.Overlay,
8633
8651
  {
@@ -8636,7 +8654,7 @@ const Ti = (e) => ({
8636
8654
  className: "!dtw-px-2",
8637
8655
  noPadding: !0,
8638
8656
  children: /* @__PURE__ */ s("div", { className: "dtw-mt-10 dtw-px-2 dtw-overflow-y-auto theme-scrollbar", children: /* @__PURE__ */ s(
8639
- lx,
8657
+ cx,
8640
8658
  {
8641
8659
  vaultAddress: r,
8642
8660
  vaultChainId: o,
@@ -8648,11 +8666,11 @@ const Ti = (e) => ({
8648
8666
  ) })
8649
8667
  }
8650
8668
  ) : null;
8651
- }, ki = () => {
8669
+ }, _i = () => {
8652
8670
  const [e] = k();
8653
8671
  return new E(e.value || "0").shiftedBy(e.decimals);
8654
- }, px = () => {
8655
- const { account: e = I } = $(), { address: t, chainId: n } = T(), o = j("limitOrder", n), r = ki(), { data: a } = oo({
8672
+ }, ux = () => {
8673
+ const { account: e = I } = $(), { address: t, chainId: n } = T(), o = j("limitOrder", n), r = _i(), { data: a } = oo({
8656
8674
  tokenAddress: t,
8657
8675
  ownerAddress: e,
8658
8676
  spenderAddress: o,
@@ -8660,7 +8678,7 @@ const Ti = (e) => ({
8660
8678
  skip: Q(o)
8661
8679
  });
8662
8680
  return a ? r.lte(a.toString()) : !1;
8663
- }, Rr = "approve", ux = () => {
8681
+ }, Rr = "approve", mx = () => {
8664
8682
  const { address: e, chainId: t, symbol: n } = T(), [o, r] = q(!1), a = j("limitOrder", t), i = te()[1], l = it({ action: Rr }), { send: c } = Se({
8665
8683
  contractId: "erc20",
8666
8684
  dynamicContractAddress: e,
@@ -8680,19 +8698,19 @@ const Ti = (e) => ({
8680
8698
  },
8681
8699
  isApprovePending: o
8682
8700
  };
8683
- }, mx = () => {
8684
- const e = px(), { approveLimitOrder: t, isApprovePending: n } = ux();
8701
+ }, wx = () => {
8702
+ const e = ux(), { approveLimitOrder: t, isApprovePending: n } = mx();
8685
8703
  return {
8686
8704
  isApproved: e,
8687
8705
  approveLimitOrder: t,
8688
8706
  isApprovePending: n
8689
8707
  };
8690
- }, wx = ({
8708
+ }, hx = ({
8691
8709
  children: e
8692
8710
  }) => {
8693
- const t = S(), { ActionButton: n = G } = D(), { isApproved: o, approveLimitOrder: r, isApprovePending: a } = mx();
8711
+ const t = S(), { ActionButton: n = G } = D(), { isApproved: o, approveLimitOrder: r, isApprovePending: a } = wx();
8694
8712
  return o ? e : /* @__PURE__ */ s(n, { onClick: r, loading: a, children: t.approve });
8695
- }, Br = "limit_order_withdraw", hx = (e) => {
8713
+ }, Br = "limit_order_withdraw", gx = (e) => {
8696
8714
  const { account: t = I } = $(), {
8697
8715
  address: n,
8698
8716
  chainId: o,
@@ -8703,7 +8721,7 @@ const Ti = (e) => ({
8703
8721
  l(...h), e();
8704
8722
  },
8705
8723
  [l, e]
8706
- ), d = ki(), { data: p } = hn({
8724
+ ), d = _i(), { data: p } = hn({
8707
8725
  userAddress: t,
8708
8726
  vaultAddress: n,
8709
8727
  chainId: o
@@ -8738,7 +8756,7 @@ const Ti = (e) => ({
8738
8756
  r?.address,
8739
8757
  m
8740
8758
  ]);
8741
- }, gx = ({
8759
+ }, vx = ({
8742
8760
  limitOrderHandler: e,
8743
8761
  action: t
8744
8762
  }) => {
@@ -8784,24 +8802,24 @@ const Ti = (e) => ({
8784
8802
  label: p ? n.delete : n.withdrawAction,
8785
8803
  handleLimitOrderWithdraw: u
8786
8804
  };
8787
- }, vx = "limit_order_withdraw", fx = () => {
8805
+ }, fx = "limit_order_withdraw", bx = () => {
8788
8806
  const e = ne(), t = Do("limit_order_withdraw"), n = f(
8789
8807
  () => e({
8790
8808
  type: "MERGE_OVERLAY",
8791
8809
  payload: { type: M.LIMIT_ORDER_WITHDRAW, isOpen: !1 }
8792
8810
  }),
8793
8811
  [e]
8794
- ), o = hx(n), { handleLimitOrderWithdraw: r, label: a } = gx({
8812
+ ), o = gx(n), { handleLimitOrderWithdraw: r, label: a } = vx({
8795
8813
  limitOrderHandler: o,
8796
- action: vx
8814
+ action: fx
8797
8815
  });
8798
8816
  return {
8799
8817
  label: a,
8800
8818
  handleLimitOrderWithdraw: r,
8801
8819
  isLoading: t
8802
8820
  };
8803
- }, bx = ({ disabled: e }) => {
8804
- const { ActionButton: t = G } = D(), { label: n, handleLimitOrderWithdraw: o, isLoading: r } = fx();
8821
+ }, Tx = ({ disabled: e }) => {
8822
+ const { ActionButton: t = G } = D(), { label: n, handleLimitOrderWithdraw: o, isLoading: r } = bx();
8805
8823
  return /* @__PURE__ */ s(
8806
8824
  t,
8807
8825
  {
@@ -8811,10 +8829,10 @@ const Ti = (e) => ({
8811
8829
  children: n
8812
8830
  }
8813
8831
  );
8814
- }, Tx = [
8832
+ }, yx = [
8815
8833
  "termOfUseWithdrawPoint1",
8816
8834
  "termOfUseWithdrawPoint2"
8817
- ], yx = ({
8835
+ ], Ax = ({
8818
8836
  className: e
8819
8837
  }) => {
8820
8838
  const t = S();
@@ -8827,7 +8845,7 @@ const Ti = (e) => ({
8827
8845
  "dtw-w-full dtw-text-sm dtw-overflow-y-auto theme-scrollbar dtw-text-[color:var(--panel-secondary-content-color)]",
8828
8846
  e
8829
8847
  ),
8830
- children: /* @__PURE__ */ s("ol", { className: "dtw-list-decimal dtw-list-inside dtw-space-y-2", children: Tx.map((n, o) => /* @__PURE__ */ w("li", { className: "dtw-text-pretty", children: [
8848
+ children: /* @__PURE__ */ s("ol", { className: "dtw-list-decimal dtw-list-inside dtw-space-y-2", children: yx.map((n, o) => /* @__PURE__ */ w("li", { className: "dtw-text-pretty", children: [
8831
8849
  o + 1,
8832
8850
  ". ",
8833
8851
  t[n]
@@ -8835,13 +8853,13 @@ const Ti = (e) => ({
8835
8853
  }
8836
8854
  )
8837
8855
  ] });
8838
- }, Ax = ({ type: e }) => {
8839
- const t = S(), { ActionButton: n = G } = D(), { handleReject: o } = se({ type: e }), [r, a] = q(!1);
8856
+ }, Sx = ({ type: e }) => {
8857
+ const t = S(), { ActionButton: n = G } = D(), { handleReject: o } = ie({ type: e }), [r, a] = q(!1);
8840
8858
  return /* @__PURE__ */ s(V.Overlay, { onClose: o, children: /* @__PURE__ */ w("div", { className: "dtw-flex dtw-flex-col dtw-gap-2 dtw-w-full", children: [
8841
8859
  /* @__PURE__ */ w("div", { className: "dtw-px-2 dtw-flex dtw-flex-col dtw-gap-2", children: [
8842
- /* @__PURE__ */ s(yx, {}),
8860
+ /* @__PURE__ */ s(Ax, {}),
8843
8861
  /* @__PURE__ */ s("div", { className: "dtw-mt-1 dtw-flex dtw-items-center dtw-gap-1.5", children: /* @__PURE__ */ s(
8844
- xi,
8862
+ Si,
8845
8863
  {
8846
8864
  checked: r,
8847
8865
  onChange: (i) => a(i),
@@ -8851,9 +8869,9 @@ const Ti = (e) => ({
8851
8869
  ) })
8852
8870
  ] }),
8853
8871
  /* @__PURE__ */ s(n, { highlighted: !1, onClick: o, children: t.back }),
8854
- /* @__PURE__ */ s(wx, { children: /* @__PURE__ */ s(bx, { disabled: !r }) })
8872
+ /* @__PURE__ */ s(hx, { children: /* @__PURE__ */ s(Tx, { disabled: !r }) })
8855
8873
  ] }) });
8856
- }, Sx = ({
8874
+ }, xx = ({
8857
8875
  isActive: e,
8858
8876
  onError: t
8859
8877
  }) => {
@@ -8929,13 +8947,13 @@ const Ti = (e) => ({
8929
8947
  ] })
8930
8948
  ]
8931
8949
  }
8932
- ), xx = ({
8950
+ ), Cx = ({
8933
8951
  isActive: e,
8934
8952
  onError: t,
8935
8953
  stepNumber: n,
8936
8954
  isFinished: o
8937
8955
  }) => {
8938
- const { label: r, description: a } = Sx({ isActive: e, onError: t });
8956
+ const { label: r, description: a } = xx({ isActive: e, onError: t });
8939
8957
  return /* @__PURE__ */ s(
8940
8958
  vt,
8941
8959
  {
@@ -8946,11 +8964,11 @@ const Ti = (e) => ({
8946
8964
  description: a
8947
8965
  }
8948
8966
  );
8949
- }, Ft = 0, ut = 1, mt = 2, Cx = 1e3, Ex = (e, t, n) => {
8967
+ }, Ft = 0, ut = 1, mt = 2, Ex = 1e3, Ix = (e, t, n) => {
8950
8968
  N(() => {
8951
8969
  t === "Success" && n && la.includes(n) && e();
8952
8970
  }, [t, n, e]);
8953
- }, Ix = (e) => {
8971
+ }, Nx = (e) => {
8954
8972
  const [t, n] = q(!1);
8955
8973
  return N(() => {
8956
8974
  if (!e) {
@@ -8959,18 +8977,18 @@ const Ti = (e) => ({
8959
8977
  }
8960
8978
  const o = setTimeout(() => {
8961
8979
  n(!0);
8962
- }, Cx);
8980
+ }, Ex);
8963
8981
  return () => clearTimeout(o);
8964
8982
  }, [e]), t;
8965
- }, Nx = ({ type: e }) => {
8966
- const { handleReject: t } = se({ type: e }), [n] = Qt(), [{ status: o, action: r }] = K(), { isCompleteWithdrawStep: a } = Ge(), {
8983
+ }, _x = ({ type: e }) => {
8984
+ const { handleReject: t } = ie({ type: e }), [n] = Qt(), [{ status: o, action: r }] = K(), { isCompleteWithdrawStep: a } = Ge(), {
8967
8985
  isUnrollAndClaimTransaction: i,
8968
8986
  isFetching: l,
8969
8987
  isFetched: c
8970
8988
  } = No(), { canSpend: d } = Eo({
8971
8989
  onErrorCallback: t
8972
- }), p = Ix(d);
8973
- Ex(t, o, r);
8990
+ }), p = Nx(d);
8991
+ Ix(t, o, r);
8974
8992
  const u = a ? mt : d ? ut : Ft, m = n?.receiveTokens?.[0], h = n?.receiveTokens?.length === 1 && m?.symbol, v = m?.symbol !== me.symbol ? m?.amount : "";
8975
8993
  return {
8976
8994
  isUnrollAndClaimTransaction: i,
@@ -8985,30 +9003,30 @@ const Ti = (e) => ({
8985
9003
  receiveToken: m,
8986
9004
  receiveTokenAmount: v
8987
9005
  };
8988
- }, _x = ({
9006
+ }, kx = ({
8989
9007
  isActive: e,
8990
9008
  onError: t
8991
9009
  }) => {
8992
9010
  const n = S(), o = xo(e), r = Rs({
8993
9011
  onErrorCallback: t
8994
- }), { handleTrade: a } = Fs({
9012
+ }), { handleTrade: a } = Ms({
8995
9013
  withdraw: r,
8996
9014
  onErrorCallback: t
8997
9015
  });
8998
- return OT({
9016
+ return DT({
8999
9017
  handleTrade: a,
9000
9018
  onError: t
9001
9019
  }), {
9002
9020
  label: n.swapToCompleteSell,
9003
9021
  description: o
9004
9022
  };
9005
- }, kx = ({
9023
+ }, Ox = ({
9006
9024
  stepNumber: e,
9007
9025
  isActive: t,
9008
9026
  isFinished: n,
9009
9027
  onError: o
9010
9028
  }) => {
9011
- const { label: r, description: a } = _x({ isActive: t, onError: o });
9029
+ const { label: r, description: a } = kx({ isActive: t, onError: o });
9012
9030
  return /* @__PURE__ */ s(
9013
9031
  vt,
9014
9032
  {
@@ -9019,14 +9037,14 @@ const Ti = (e) => ({
9019
9037
  description: a
9020
9038
  }
9021
9039
  );
9022
- }, Ox = ({
9040
+ }, Dx = ({
9023
9041
  isActive: e,
9024
9042
  canSpend: t,
9025
9043
  isCompleteWithdrawStep: n,
9026
9044
  isPending: o,
9027
9045
  onError: r
9028
9046
  }) => {
9029
- const a = xo(e), { withdraw: i } = RT({
9047
+ const a = xo(e), { withdraw: i } = BT({
9030
9048
  onErrorCallback: r
9031
9049
  }), { handleTrade: l } = _o({
9032
9050
  trade: i,
@@ -9037,7 +9055,7 @@ const Ti = (e) => ({
9037
9055
  }, [o, t, n, l]), {
9038
9056
  description: a
9039
9057
  };
9040
- }, Dx = ({
9058
+ }, Px = ({
9041
9059
  stepNumber: e,
9042
9060
  isActive: t,
9043
9061
  isFinished: n,
@@ -9047,7 +9065,7 @@ const Ti = (e) => ({
9047
9065
  canSpend: i,
9048
9066
  label: l
9049
9067
  }) => {
9050
- const { description: c } = Ox({
9068
+ const { description: c } = Dx({
9051
9069
  isActive: t,
9052
9070
  canSpend: i,
9053
9071
  isCompleteWithdrawStep: a,
@@ -9064,7 +9082,7 @@ const Ti = (e) => ({
9064
9082
  description: c
9065
9083
  }
9066
9084
  );
9067
- }, Px = ({
9085
+ }, Lx = ({
9068
9086
  canSpend: e,
9069
9087
  isTransactionTypeReady: t,
9070
9088
  isUnrollAndClaimTransaction: n,
@@ -9095,7 +9113,7 @@ const Ti = (e) => ({
9095
9113
  )
9096
9114
  ] }) : /* @__PURE__ */ w(O, { children: [
9097
9115
  /* @__PURE__ */ s(
9098
- Dx,
9116
+ Px,
9099
9117
  {
9100
9118
  stepNumber: ut + 1,
9101
9119
  isFinished: a > ut,
@@ -9108,7 +9126,7 @@ const Ti = (e) => ({
9108
9126
  }
9109
9127
  ),
9110
9128
  !n && !c && /* @__PURE__ */ s(
9111
- kx,
9129
+ Ox,
9112
9130
  {
9113
9131
  stepNumber: mt + 1,
9114
9132
  isFinished: a > mt,
@@ -9117,7 +9135,7 @@ const Ti = (e) => ({
9117
9135
  }
9118
9136
  )
9119
9137
  ] });
9120
- }, Lx = (e) => {
9138
+ }, $x = (e) => {
9121
9139
  const t = S(), { ActionButton: n = G } = D(), {
9122
9140
  isUnrollAndClaimTransaction: o,
9123
9141
  activeStepIndex: r,
@@ -9130,7 +9148,7 @@ const Ti = (e) => ({
9130
9148
  receiveToken: u,
9131
9149
  displayReceiveTokenInfo: m,
9132
9150
  receiveTokenAmount: h
9133
- } = Nx(e);
9151
+ } = _x(e);
9134
9152
  return /* @__PURE__ */ w(V.Overlay, { centered: !1, className: "dtw-gap-4", children: [
9135
9153
  /* @__PURE__ */ s(
9136
9154
  n,
@@ -9167,7 +9185,7 @@ const Ti = (e) => ({
9167
9185
  ] }),
9168
9186
  /* @__PURE__ */ w("div", { className: "dtw-mt-4 dtw-flex dtw-flex-col dtw-gap-2", children: [
9169
9187
  /* @__PURE__ */ s(
9170
- xx,
9188
+ Cx,
9171
9189
  {
9172
9190
  isFinished: r > Ft,
9173
9191
  isActive: r === Ft,
@@ -9176,7 +9194,7 @@ const Ti = (e) => ({
9176
9194
  }
9177
9195
  ),
9178
9196
  /* @__PURE__ */ s(
9179
- Px,
9197
+ Lx,
9180
9198
  {
9181
9199
  canSpend: a,
9182
9200
  isTransactionTypeReady: d,
@@ -9189,7 +9207,7 @@ const Ti = (e) => ({
9189
9207
  )
9190
9208
  ] })
9191
9209
  ] });
9192
- }, $x = () => {
9210
+ }, Rx = () => {
9193
9211
  const e = vo(), t = S();
9194
9212
  return /* @__PURE__ */ w(O, { children: [
9195
9213
  /* @__PURE__ */ s(
@@ -9205,7 +9223,7 @@ const Ti = (e) => ({
9205
9223
  {
9206
9224
  label: t.tokenAllowance,
9207
9225
  tooltipText: t.toggleTokenApprovalAmount,
9208
- children: /* @__PURE__ */ s(Vs, {})
9226
+ children: /* @__PURE__ */ s(Hs, {})
9209
9227
  }
9210
9228
  ),
9211
9229
  e && /* @__PURE__ */ s(
@@ -9213,12 +9231,12 @@ const Ti = (e) => ({
9213
9231
  {
9214
9232
  label: t.batchTransactionsLabel,
9215
9233
  tooltipText: t.batchTransactionsTooltip ?? "",
9216
- children: /* @__PURE__ */ s(js, {})
9234
+ children: /* @__PURE__ */ s(Vs, {})
9217
9235
  }
9218
9236
  ),
9219
- /* @__PURE__ */ s(qs, {})
9237
+ /* @__PURE__ */ s(js, {})
9220
9238
  ] });
9221
- }, Rx = ({ assets: e = [] }) => {
9239
+ }, Bx = ({ assets: e = [] }) => {
9222
9240
  const { stablePrecision: t } = U(), { firstPart: n, secondPart: o } = ua(
9223
9241
  e,
9224
9242
  ia
@@ -9247,10 +9265,10 @@ const Ti = (e) => ({
9247
9265
  );
9248
9266
  return /* @__PURE__ */ w("div", { className: "dtw-text-sm dtw-font-light ", children: [
9249
9267
  /* @__PURE__ */ s(jt, { children: n.map(r) }),
9250
- o.length > 0 && /* @__PURE__ */ s(ei, { children: /* @__PURE__ */ s(jt, { children: o.map(r) }) })
9268
+ o.length > 0 && /* @__PURE__ */ s(Js, { children: /* @__PURE__ */ s(jt, { children: o.map(r) }) })
9251
9269
  ] });
9252
- }, Bx = () => {
9253
- const { chainId: e } = T(), { stablePrecision: t } = U(), { data: n = [] } = ie(), o = Bs(), { data: r = I } = ET();
9270
+ }, Mx = () => {
9271
+ const { chainId: e } = T(), { stablePrecision: t } = U(), { data: n = [] } = oe(), o = IT(), { data: r = I } = ET();
9254
9272
  return {
9255
9273
  assets: n,
9256
9274
  usdAmount: ee({
@@ -9263,8 +9281,8 @@ const Ti = (e) => ({
9263
9281
  e
9264
9282
  )
9265
9283
  };
9266
- }, Mx = () => {
9267
- const e = S(), { assets: t, usdAmount: n, withdrawalVaultLink: o } = Bx();
9284
+ }, Fx = () => {
9285
+ const e = S(), { assets: t, usdAmount: n, withdrawalVaultLink: o } = Mx();
9268
9286
  return /* @__PURE__ */ w(O, { children: [
9269
9287
  /* @__PURE__ */ w("div", { className: "dtw-text-sm dtw-flex dtw-items-center dtw-gap-1", children: [
9270
9288
  /* @__PURE__ */ s("span", { className: "dtw-text-[color:var(--panel-secondary-content-color)]", children: e.total }),
@@ -9277,9 +9295,9 @@ const Ti = (e) => ({
9277
9295
  }
9278
9296
  )
9279
9297
  ] }),
9280
- /* @__PURE__ */ s("div", { className: "dtw-flex dtw-flex-col dtw-gap-[var(--panel-input-group-gap,var(--panel-gap))] dtw-rounded-[var(--panel-input-radius,var(--panel-radius))] dtw-border dtw-bg-[var(--panel-input-bg,var(--panel-neutral-color))] dtw-py-[var(--panel-input-py)] dtw-px-[var(--panel-input-px)] dtw-shadow-md dtw-border-[var(--panel-input-border-color)]", children: /* @__PURE__ */ s(Rx, { assets: t }) })
9298
+ /* @__PURE__ */ s("div", { className: "dtw-flex dtw-flex-col dtw-gap-[var(--panel-input-group-gap,var(--panel-gap))] dtw-rounded-[var(--panel-input-radius,var(--panel-radius))] dtw-border dtw-bg-[var(--panel-input-bg,var(--panel-neutral-color))] dtw-py-[var(--panel-input-py)] dtw-px-[var(--panel-input-px)] dtw-shadow-md dtw-border-[var(--panel-input-border-color)]", children: /* @__PURE__ */ s(Bx, { assets: t }) })
9281
9299
  ] });
9282
- }, Fx = () => {
9300
+ }, Wx = () => {
9283
9301
  const e = ne(), { requiresHighSlippageConfirm: t, confirmHighSlippage: n, slippageToBeUsed: o } = Ao();
9284
9302
  return {
9285
9303
  requiresHighSlippageConfirm: t,
@@ -9295,18 +9313,18 @@ const Ti = (e) => ({
9295
9313
  });
9296
9314
  }
9297
9315
  };
9298
- }, Wx = ({ children: e }) => {
9316
+ }, zx = ({ children: e }) => {
9299
9317
  const { ActionButton: t = G } = D(), n = S(), {
9300
9318
  requiresHighSlippageConfirm: o,
9301
9319
  slippageToBeUsed: r,
9302
9320
  handleHighSlippageClick: a
9303
- } = Fx();
9321
+ } = Wx();
9304
9322
  return o ? /* @__PURE__ */ s(t, { onClick: a, children: n.confirmMaxSlippage.replace(
9305
9323
  "{slippagePercentage}",
9306
9324
  `${Math.abs(r)}`
9307
9325
  ) }) : e;
9308
- }, zx = () => {
9309
- const { chainId: e } = T(), [t] = L(), n = le({ address: t.address, chainId: e }), o = Ws(), r = Ct(Math.min(0, o));
9326
+ }, Ux = () => {
9327
+ const { chainId: e } = T(), [t] = L(), n = le({ address: t.address, chainId: e }), o = Fs(), r = Ct(Math.min(0, o));
9310
9328
  return {
9311
9329
  receiveToken: {
9312
9330
  ...t,
@@ -9315,8 +9333,8 @@ const Ti = (e) => ({
9315
9333
  swapDiff: o,
9316
9334
  themeType: r
9317
9335
  };
9318
- }, Ux = () => {
9319
- const { receiveToken: e, swapDiff: t, themeType: n } = zx();
9336
+ }, Gx = () => {
9337
+ const { receiveToken: e, swapDiff: t, themeType: n } = Ux();
9320
9338
  return /* @__PURE__ */ s(
9321
9339
  gt,
9322
9340
  {
@@ -9331,7 +9349,7 @@ const Ti = (e) => ({
9331
9349
  type: n
9332
9350
  }
9333
9351
  );
9334
- }, Gx = () => {
9352
+ }, Hx = () => {
9335
9353
  const e = S(), { stablePrecision: t } = U(), [n] = L(), o = Nt(), { minExpectedReceiveAmount: r } = Io(), a = Ct(o), i = a === z.DEFAULT ? e.withdrawSlippageWarning : e.highSlippageWarning;
9336
9354
  return {
9337
9355
  themeType: a,
@@ -9345,8 +9363,8 @@ const Ti = (e) => ({
9345
9363
  decimals: t
9346
9364
  })} ${n.symbol}`
9347
9365
  };
9348
- }, Hx = () => {
9349
- const e = S(), { slippageTooltipText: t, slippagePlaceholder: n, minReceive: o } = Gx(), r = _(() => [
9366
+ }, Vx = () => {
9367
+ const e = S(), { slippageTooltipText: t, slippagePlaceholder: n, minReceive: o } = Hx(), r = _(() => [
9350
9368
  {
9351
9369
  tooltipText: e.exchangeRate,
9352
9370
  label: e.rate,
@@ -9376,19 +9394,19 @@ const Ti = (e) => ({
9376
9394
  e.rate
9377
9395
  ]);
9378
9396
  return /* @__PURE__ */ s(Co, { collapseItems: r });
9379
- }, Vx = ({ children: e }) => /* @__PURE__ */ w(V.Meta, { children: [
9380
- /* @__PURE__ */ s(Hx, {}),
9397
+ }, jx = ({ children: e }) => /* @__PURE__ */ w(V.Meta, { children: [
9398
+ /* @__PURE__ */ s(Vx, {}),
9381
9399
  /* @__PURE__ */ s("div", { className: "dtw-sticky dtw-bottom-0 dtw-bg-[var(--panel-meta-action-panel-bg)]", children: e })
9382
- ] }), jx = () => (kT(), /* @__PURE__ */ w(O, { children: [
9400
+ ] }), qx = () => (OT(), /* @__PURE__ */ w(O, { children: [
9383
9401
  /* @__PURE__ */ w(V.InputGroup, { children: [
9384
- /* @__PURE__ */ s(Mx, {}),
9385
- /* @__PURE__ */ s(Ux, {})
9402
+ /* @__PURE__ */ s(Fx, {}),
9403
+ /* @__PURE__ */ s(Gx, {})
9386
9404
  ] }),
9387
- /* @__PURE__ */ s(Vx, { children: /* @__PURE__ */ s(Lo, { children: /* @__PURE__ */ w("div", { className: "tw-flex tw-flex-col tw-gap-2", children: [
9388
- /* @__PURE__ */ s(Wx, { children: /* @__PURE__ */ s(di, {}) }),
9389
- /* @__PURE__ */ s(hi, { highlighted: !1 })
9405
+ /* @__PURE__ */ s(jx, { children: /* @__PURE__ */ s(Lo, { children: /* @__PURE__ */ w("div", { className: "tw-flex tw-flex-col tw-gap-2", children: [
9406
+ /* @__PURE__ */ s(zx, { children: /* @__PURE__ */ s(ci, {}) }),
9407
+ /* @__PURE__ */ s(wi, { highlighted: !1 })
9390
9408
  ] }) }) })
9391
- ] })), qx = () => {
9409
+ ] })), Kx = () => {
9392
9410
  const { chainId: e, address: t } = T(), { exitFeeNumber: n } = bo({
9393
9411
  address: t,
9394
9412
  chainId: e
@@ -9407,7 +9425,7 @@ const Ti = (e) => ({
9407
9425
  }
9408
9426
  const d = new E(o.value).times(i).times(1 - n / 100).dividedBy(l).toFixed(r.decimals);
9409
9427
  a({
9410
- value: Ql(d) ? d : ""
9428
+ value: Kl(d) ? d : ""
9411
9429
  });
9412
9430
  }, [
9413
9431
  n,
@@ -9417,7 +9435,7 @@ const Ti = (e) => ({
9417
9435
  i,
9418
9436
  a
9419
9437
  ]);
9420
- }, Kx = () => {
9438
+ }, Qx = () => {
9421
9439
  const e = S(), t = ne(), n = () => t({
9422
9440
  type: "MERGE_OVERLAY",
9423
9441
  payload: { type: M.LIMIT_ORDER_WITHDRAW, isOpen: !0 }
@@ -9426,8 +9444,8 @@ const Ti = (e) => ({
9426
9444
  label: e.withdrawAction,
9427
9445
  openLimitOrderWithdrawOverlay: n
9428
9446
  };
9429
- }, Qx = () => {
9430
- const { ActionButton: e = G } = D(), { label: t, openLimitOrderWithdrawOverlay: n } = Kx();
9447
+ }, Yx = () => {
9448
+ const { ActionButton: e = G } = D(), { label: t, openLimitOrderWithdrawOverlay: n } = Qx();
9431
9449
  return /* @__PURE__ */ s(e, { onClick: n, children: t });
9432
9450
  }, On = [
9433
9451
  {
@@ -9438,15 +9456,15 @@ const Ti = (e) => ({
9438
9456
  isLentAndBorrowedAsset: Ko
9439
9457
  },
9440
9458
  {
9441
- isLeveragedAsset: Zl,
9442
- getWithdrawAssetByLeverageAddress: Xl,
9443
- getWithdrawAssetByVaultAddress: Yl,
9459
+ isLeveragedAsset: Xl,
9460
+ getWithdrawAssetByLeverageAddress: Yl,
9461
+ getWithdrawAssetByVaultAddress: Ql,
9444
9462
  isLentAndBorrowedAsset: Ko
9445
9463
  }
9446
9464
  ], Dn = {
9447
9465
  requiresLeveragedCollateralLiquidity: !1,
9448
9466
  leveragedCollateralValueFormatted: "$0"
9449
- }, Pn = (e) => E(e.amount).shiftedBy(-e.precision).times(e.rate).shiftedBy(-F).toNumber(), Oi = () => {
9467
+ }, Pn = (e) => E(e.amount).shiftedBy(-e.precision).times(e.rate).shiftedBy(-F).toNumber(), ki = () => {
9450
9468
  const e = T(), t = xt(e), [n] = k(), o = pe(e), r = t.find(
9451
9469
  ({ tokenAddress: u, amount: m }) => On.some(
9452
9470
  (h) => h.isLeveragedAsset(u) && m !== "0"
@@ -9462,7 +9480,7 @@ const Ti = (e) => ({
9462
9480
  const i = a.getWithdrawAssetByVaultAddress(e.address)?.address ?? a.getWithdrawAssetByLeverageAddress(
9463
9481
  r.tokenAddress
9464
9482
  ).address, l = t.find(
9465
- ({ tokenAddress: u }) => J(i, u)
9483
+ ({ tokenAddress: u }) => Z(i, u)
9466
9484
  );
9467
9485
  if (!l)
9468
9486
  return Dn;
@@ -9492,15 +9510,15 @@ const Ti = (e) => ({
9492
9510
  value: d
9493
9511
  })
9494
9512
  };
9495
- }, Di = () => {
9496
- const { chainId: e, pricingAsset: t, onDemandWithdrawalEnabled: n } = T(), { requiresLeveragedCollateralLiquidity: o } = Oi(), r = sn();
9513
+ }, Oi = () => {
9514
+ const { chainId: e, pricingAsset: t, onDemandWithdrawalEnabled: n } = T(), { requiresLeveragedCollateralLiquidity: o } = ki(), r = sn();
9497
9515
  return o && !!t && !!n && (e === Jn.id || !r);
9498
- }, Yx = () => {
9499
- const { address: e, chainId: t, maintenance: n, maintenanceWithdrawals: o, symbol: r } = T(), [a] = k(), i = ne(), l = Di(), c = an(), { data: d = 0 } = Ab({
9516
+ }, Xx = () => {
9517
+ const { address: e, chainId: t, maintenance: n, maintenanceWithdrawals: o, symbol: r } = T(), [a] = k(), i = ne(), l = Oi(), c = an(), { data: d = 0 } = Ab({
9500
9518
  address: e,
9501
9519
  chainId: t
9502
9520
  }), p = d > 0, u = ya(
9503
- rc({ start: 0, end: d })
9521
+ oc({ start: 0, end: d })
9504
9522
  ), { requiresHighSlippageConfirm: m, confirmHighSlippage: h, slippageToBeUsed: v } = Ao(), g = () => {
9505
9523
  i({
9506
9524
  type: "MERGE_OVERLAY",
@@ -9524,7 +9542,7 @@ const Ti = (e) => ({
9524
9542
  isLimitOrderWithdraw: l,
9525
9543
  insufficientBalance: c
9526
9544
  };
9527
- }, Xx = ({
9545
+ }, Zx = ({
9528
9546
  children: e
9529
9547
  }) => {
9530
9548
  const { ActionButton: t = G } = D(), n = S(), o = So("withdraw"), {
@@ -9539,7 +9557,7 @@ const Ti = (e) => ({
9539
9557
  poolSymbol: m,
9540
9558
  isLimitOrderWithdraw: h,
9541
9559
  insufficientBalance: v
9542
- } = Yx();
9560
+ } = Xx();
9543
9561
  return r ? /* @__PURE__ */ s(t, { disabled: !0, children: o }) : u ? /* @__PURE__ */ s(
9544
9562
  Vt,
9545
9563
  {
@@ -9555,11 +9573,11 @@ const Ti = (e) => ({
9555
9573
  promptText: n.withdrawCooldown.replace("{tokenSymbol}", l).replace("{cooldownEndTime}", d),
9556
9574
  children: o
9557
9575
  }
9558
- ) : v ? /* @__PURE__ */ s(t, { disabled: !0, children: n.insufficientBalance }) : h ? /* @__PURE__ */ s(Qx, {}) : i ? /* @__PURE__ */ s(t, { onClick: p, children: n.confirmMaxSlippage.replace(
9576
+ ) : v ? /* @__PURE__ */ s(t, { disabled: !0, children: n.insufficientBalance }) : h ? /* @__PURE__ */ s(Yx, {}) : i ? /* @__PURE__ */ s(t, { onClick: p, children: n.confirmMaxSlippage.replace(
9559
9577
  "{slippagePercentage}",
9560
9578
  `${Math.abs(c)}`
9561
9579
  ) }) : e;
9562
- }, Zx = () => {
9580
+ }, Jx = () => {
9563
9581
  const { address: e, chainId: t } = T(), [n, o] = k(), r = be({
9564
9582
  symbol: n.symbol,
9565
9583
  address: n.address
@@ -9570,15 +9588,16 @@ const Ti = (e) => ({
9570
9588
  balance: r,
9571
9589
  price: a
9572
9590
  };
9573
- }, Jx = () => {
9591
+ }, eC = () => {
9574
9592
  const { chainId: e } = T(), [t, n] = L(), o = le({ address: t.address, chainId: e });
9575
9593
  return {
9576
9594
  ...t,
9577
9595
  updater: n,
9578
- price: o
9596
+ price: o,
9597
+ displayCalculatedValue: t.symbol !== me.symbol
9579
9598
  };
9580
- }, eC = () => {
9581
- const e = Zx(), t = Jx();
9599
+ }, tC = () => {
9600
+ const e = Jx(), t = eC();
9582
9601
  return {
9583
9602
  sendToken: e,
9584
9603
  onInputChange: (o) => {
@@ -9586,8 +9605,8 @@ const Ti = (e) => ({
9586
9605
  },
9587
9606
  receiveToken: t
9588
9607
  };
9589
- }, tC = () => {
9590
- const { sendToken: e, onInputChange: t, receiveToken: n } = eC();
9608
+ }, nC = () => {
9609
+ const { sendToken: e, onInputChange: t, receiveToken: n } = tC();
9591
9610
  return /* @__PURE__ */ w(O, { children: [
9592
9611
  /* @__PURE__ */ s(
9593
9612
  gt,
@@ -9599,7 +9618,7 @@ const Ti = (e) => ({
9599
9618
  displayMax: !0,
9600
9619
  maxBalance: e.balance,
9601
9620
  displayCalculatedValue: !0,
9602
- children: /* @__PURE__ */ s(ni, {})
9621
+ children: /* @__PURE__ */ s(ti, {})
9603
9622
  }
9604
9623
  ),
9605
9624
  /* @__PURE__ */ w(
@@ -9610,16 +9629,16 @@ const Ti = (e) => ({
9610
9629
  disabled: !0,
9611
9630
  assetSymbol: n.symbol,
9612
9631
  assetPrice: n.price,
9613
- displayCalculatedValue: !0,
9632
+ displayCalculatedValue: n.displayCalculatedValue,
9614
9633
  isLoading: n.isLoading,
9615
9634
  children: [
9616
- /* @__PURE__ */ s(ai, {}),
9617
- n.symbol === me.symbol ? null : /* @__PURE__ */ s(oi, {})
9635
+ /* @__PURE__ */ s(ri, {}),
9636
+ n.displayCalculatedValue ? /* @__PURE__ */ s(ni, {}) : null
9618
9637
  ]
9619
9638
  }
9620
9639
  )
9621
9640
  ] });
9622
- }, nC = () => {
9641
+ }, oC = () => {
9623
9642
  const e = S(), { address: t, chainId: n } = T(), [{ isMaxSlippageLoading: o }] = Y(), { exitFeeNumber: r } = bo({
9624
9643
  address: t,
9625
9644
  chainId: n
@@ -9632,7 +9651,7 @@ const Ti = (e) => ({
9632
9651
  minReceivedText: e.estimatedMultiAssetFractions,
9633
9652
  showMinReceivedText: i
9634
9653
  };
9635
- }, oC = () => {
9654
+ }, rC = () => {
9636
9655
  const e = S(), {
9637
9656
  slippageTooltipText: t,
9638
9657
  slippagePlaceholder: n,
@@ -9640,7 +9659,7 @@ const Ti = (e) => ({
9640
9659
  exitFee: r,
9641
9660
  minReceivedText: a,
9642
9661
  showMinReceivedText: i
9643
- } = nC(), l = _(() => {
9662
+ } = oC(), l = _(() => {
9644
9663
  const c = [
9645
9664
  {
9646
9665
  tooltipText: e.exchangeRate,
@@ -9690,11 +9709,11 @@ const Ti = (e) => ({
9690
9709
  a
9691
9710
  ]);
9692
9711
  return /* @__PURE__ */ s(Co, { collapseItems: l });
9693
- }, rC = ({ children: e }) => {
9712
+ }, aC = ({ children: e }) => {
9694
9713
  const { WithdrawMetaInfo: t, AvailableLiquidityAlert: n, OnDemandWithdrawAlert: o } = D(), {
9695
9714
  requiresLeveragedCollateralLiquidity: r,
9696
9715
  leveragedCollateralValueFormatted: a
9697
- } = Oi(), i = Di();
9716
+ } = ki(), i = Oi();
9698
9717
  return /* @__PURE__ */ w(V.Meta, { children: [
9699
9718
  /* @__PURE__ */ s("div", { children: r ? i ? /* @__PURE__ */ s(O, { children: !!o && /* @__PURE__ */ s(o, {}) }) : /* @__PURE__ */ s(O, { children: !!n && /* @__PURE__ */ s(
9700
9719
  n,
@@ -9702,45 +9721,45 @@ const Ti = (e) => ({
9702
9721
  liquidityAmount: a
9703
9722
  }
9704
9723
  ) }) : null }),
9705
- /* @__PURE__ */ s(oC, {}),
9724
+ /* @__PURE__ */ s(rC, {}),
9706
9725
  t && /* @__PURE__ */ s(t, {}),
9707
9726
  /* @__PURE__ */ s("div", { className: "dtw-sticky dtw-bottom-0 dtw-bg-[var(--panel-meta-action-panel-bg)]", children: e })
9708
9727
  ] });
9709
- }, aC = () => {
9728
+ }, sC = () => {
9710
9729
  const e = S();
9711
- return qx(), /* @__PURE__ */ w(O, { children: [
9712
- /* @__PURE__ */ s(V.InputGroup, { children: /* @__PURE__ */ s(tC, {}) }),
9713
- /* @__PURE__ */ s(rC, { children: /* @__PURE__ */ s(Lo, { children: /* @__PURE__ */ w("div", { className: "dtw-flex dtw-flex-col dtw-gap-2 dtw-w-full", children: [
9714
- /* @__PURE__ */ s(Xx, { children: /* @__PURE__ */ s(di, {}) }),
9715
- /* @__PURE__ */ s(li, { highlighted: !1, children: e.stopOrder })
9730
+ return Kx(), /* @__PURE__ */ w(O, { children: [
9731
+ /* @__PURE__ */ s(V.InputGroup, { children: /* @__PURE__ */ s(nC, {}) }),
9732
+ /* @__PURE__ */ s(aC, { children: /* @__PURE__ */ s(Lo, { children: /* @__PURE__ */ w("div", { className: "dtw-flex dtw-flex-col dtw-gap-2 dtw-w-full", children: [
9733
+ /* @__PURE__ */ s(Zx, { children: /* @__PURE__ */ s(ci, {}) }),
9734
+ /* @__PURE__ */ s(ii, { highlighted: !1, children: e.stopOrder })
9716
9735
  ] }) }) })
9717
9736
  ] });
9718
- }, sC = () => {
9737
+ }, iC = () => {
9719
9738
  CT();
9720
9739
  const { isCompleteWithdrawStep: e } = Ge();
9721
9740
  return {
9722
9741
  isCompleteWithdrawStep: e
9723
9742
  };
9724
- }, iC = () => {
9725
- const { isCompleteWithdrawStep: e } = sC();
9726
- return e ? /* @__PURE__ */ s(jx, {}) : /* @__PURE__ */ s(aC, {});
9727
- }, lC = () => /* @__PURE__ */ s(V.Panel, { children: /* @__PURE__ */ s(iC, {}) }), cC = ({ tradingType: e }) => /* @__PURE__ */ w(jr, { selectedIndex: Ke.indexOf(e), children: [
9743
+ }, lC = () => {
9744
+ const { isCompleteWithdrawStep: e } = iC();
9745
+ return e ? /* @__PURE__ */ s(qx, {}) : /* @__PURE__ */ s(sC, {});
9746
+ }, cC = () => /* @__PURE__ */ s(V.Panel, { children: /* @__PURE__ */ s(lC, {}) }), dC = ({ tradingType: e }) => /* @__PURE__ */ w(jr, { selectedIndex: Ke.indexOf(e), children: [
9728
9747
  /* @__PURE__ */ s(qr, { className: "dtw-flex", children: Ke.map((t) => /* @__PURE__ */ s(Mr, { className: "dtw-hidden" }, t)) }),
9729
9748
  /* @__PURE__ */ w(Kr, { children: [
9730
- /* @__PURE__ */ s(V.Settings, { children: /* @__PURE__ */ s(KT, {}) }),
9731
- /* @__PURE__ */ s(V.Settings, { children: /* @__PURE__ */ s($x, {}) })
9749
+ /* @__PURE__ */ s(V.Settings, { children: /* @__PURE__ */ s(QT, {}) }),
9750
+ /* @__PURE__ */ s(V.Settings, { children: /* @__PURE__ */ s(Rx, {}) })
9732
9751
  ] })
9733
- ] }), dC = ({ children: e }) => /* @__PURE__ */ w(qr, { className: "dtw-flex dtw-px-[var(--panel-tab-group-px)] dtw-justify-between dtw-items-center", children: [
9752
+ ] }), pC = ({ children: e }) => /* @__PURE__ */ w(qr, { className: "dtw-flex dtw-px-[var(--panel-tab-group-px)] dtw-justify-between dtw-items-center", children: [
9734
9753
  /* @__PURE__ */ s("div", { className: "dtw-bg-[var(--panel-tab-list-bg)] dtw-rounded-[var(--panel-tab-list-radius)] dtw-px-[var(--panel-tab-list-px)] dtw-py-[var(--panel-tab-list-py)]", children: Ke.map((t) => /* @__PURE__ */ s(Kb, { tradingType: t }, t)) }),
9735
9754
  e
9736
- ] }), pC = Ke.reduce(
9755
+ ] }), uC = Ke.reduce(
9737
9756
  (e, t, n) => (e[n] = t, e),
9738
9757
  {}
9739
- ), uC = () => {
9758
+ ), mC = () => {
9740
9759
  const [e] = fe(), t = T(), { standalone: n } = U();
9741
- vA();
9742
- const o = ri(), r = (a) => {
9743
- const i = pC[a];
9760
+ fA();
9761
+ const o = oi(), r = (a) => {
9762
+ const i = uC[a];
9744
9763
  i && o(i);
9745
9764
  };
9746
9765
  return N(() => {
@@ -9751,8 +9770,8 @@ const Ti = (e) => ({
9751
9770
  type: e,
9752
9771
  onTabChange: r
9753
9772
  };
9754
- }, mC = () => {
9755
- const { type: e, onTabChange: t } = uC();
9773
+ }, wC = () => {
9774
+ const { type: e, onTabChange: t } = mC();
9756
9775
  return /* @__PURE__ */ w("div", { className: "trading-widget dtw-relative dtw-pt-3 dtw-bg-[var(--panel-background-color)] dtw-text-[color:var(--panel-content-color)] dtw-rounded-[var(--widget-radius)] md:dtw-rounded-[var(--widget-radius-md)] dtw-overflow-hidden dtw-h-full", children: [
9757
9776
  /* @__PURE__ */ w(
9758
9777
  jr,
@@ -9761,30 +9780,30 @@ const Ti = (e) => ({
9761
9780
  onChange: t,
9762
9781
  className: "dtw-flex dtw-flex-col dtw-h-full",
9763
9782
  children: [
9764
- /* @__PURE__ */ s(dC, { children: /* @__PURE__ */ w("div", { className: "dtw-flex dtw-gap-2 dtw-items-center dtw-justify-end", children: [
9765
- /* @__PURE__ */ s(DA, {}),
9766
- /* @__PURE__ */ s(cC, { tradingType: e })
9783
+ /* @__PURE__ */ s(pC, { children: /* @__PURE__ */ w("div", { className: "dtw-flex dtw-gap-2 dtw-items-center dtw-justify-end", children: [
9784
+ /* @__PURE__ */ s(PA, {}),
9785
+ /* @__PURE__ */ s(dC, { tradingType: e })
9767
9786
  ] }) }),
9768
9787
  /* @__PURE__ */ w(Kr, { className: "dtw-flex-1 dtw-overflow-y-auto", children: [
9769
- /* @__PURE__ */ s(BA, {}),
9770
- /* @__PURE__ */ s(lC, {})
9788
+ /* @__PURE__ */ s(MA, {}),
9789
+ /* @__PURE__ */ s(cC, {})
9771
9790
  ] })
9772
9791
  ]
9773
9792
  }
9774
9793
  ),
9775
- /* @__PURE__ */ w(FA, { children: [
9776
- /* @__PURE__ */ s(WA, { type: M.TERMS_OF_USE }),
9777
- /* @__PURE__ */ s(zA, { type: M.HIGH_SLIPPAGE }),
9778
- /* @__PURE__ */ s(KA, { type: M.TOKEN_SELECT, searchQuery: "" }),
9779
- /* @__PURE__ */ s(ZA, { type: M.POOL_SELECT, searchQuery: "" }),
9780
- /* @__PURE__ */ s(wS, { type: M.TRADING }),
9781
- /* @__PURE__ */ s(dx, { type: M.LIMIT_SELLS }),
9782
- /* @__PURE__ */ s(Ax, { type: M.LIMIT_ORDER_WITHDRAW }),
9783
- /* @__PURE__ */ s(Lx, { type: M.WITHDRAW_STEPPER }),
9784
- /* @__PURE__ */ s(CS, { type: M.ERROR_NOTIFICATION })
9794
+ /* @__PURE__ */ w(WA, { children: [
9795
+ /* @__PURE__ */ s(zA, { type: M.TERMS_OF_USE }),
9796
+ /* @__PURE__ */ s(UA, { type: M.HIGH_SLIPPAGE }),
9797
+ /* @__PURE__ */ s(QA, { type: M.TOKEN_SELECT, searchQuery: "" }),
9798
+ /* @__PURE__ */ s(JA, { type: M.POOL_SELECT, searchQuery: "" }),
9799
+ /* @__PURE__ */ s(hS, { type: M.TRADING }),
9800
+ /* @__PURE__ */ s(px, { type: M.LIMIT_SELLS }),
9801
+ /* @__PURE__ */ s(Sx, { type: M.LIMIT_ORDER_WITHDRAW }),
9802
+ /* @__PURE__ */ s($x, { type: M.WITHDRAW_STEPPER }),
9803
+ /* @__PURE__ */ s(ES, { type: M.ERROR_NOTIFICATION })
9785
9804
  ] })
9786
9805
  ] });
9787
- }, wC = ({
9806
+ }, hC = ({
9788
9807
  children: e,
9789
9808
  config: t,
9790
9809
  className: n
@@ -10036,14 +10055,14 @@ const Ti = (e) => ({
10036
10055
  },
10037
10056
  children: e
10038
10057
  }
10039
- ), hC = ({
10058
+ ), gC = ({
10040
10059
  children: e,
10041
10060
  config: t,
10042
10061
  theme: n,
10043
10062
  components: o,
10044
10063
  translation: r,
10045
10064
  className: a
10046
- }) => /* @__PURE__ */ s(Wb, { config: r, children: /* @__PURE__ */ s(wC, { config: n, className: a, children: /* @__PURE__ */ s(Pb, { config: t, children: /* @__PURE__ */ s(aT, { config: o, children: /* @__PURE__ */ s(jb, { children: e }) }) }) }) }), rE = (e) => /* @__PURE__ */ s(hC, { ...e, children: /* @__PURE__ */ s(mC, {}) }), gC = "ref", aE = ({
10065
+ }) => /* @__PURE__ */ s(Wb, { config: r, children: /* @__PURE__ */ s(hC, { config: n, className: a, children: /* @__PURE__ */ s(Pb, { config: t, children: /* @__PURE__ */ s(aT, { config: o, children: /* @__PURE__ */ s(jb, { children: e }) }) }) }) }), sE = (e) => /* @__PURE__ */ s(gC, { ...e, children: /* @__PURE__ */ s(wC, {}) }), vC = "ref", iE = ({
10047
10066
  vaultAddress: e,
10048
10067
  userAddress: t,
10049
10068
  query: n,
@@ -10058,7 +10077,7 @@ const Ti = (e) => ({
10058
10077
  "localStorage",
10059
10078
  fn.REF_POOL,
10060
10079
  ""
10061
- ), d = n[gC];
10080
+ ), d = n[vC];
10062
10081
  N(() => {
10063
10082
  !d || typeof d != "string" || Q(e) || localStorage.getItem(fn.REFERRER) || (i(d), c(e), o?.());
10064
10083
  }, [e, d, c, i, o]), N(() => {
@@ -10079,7 +10098,7 @@ const Ti = (e) => ({
10079
10098
  }
10080
10099
  })();
10081
10100
  }, [l, a, r, t, e]);
10082
- }, vC = ({
10101
+ }, fC = ({
10083
10102
  title: e,
10084
10103
  children: t,
10085
10104
  className: n,
@@ -10105,16 +10124,16 @@ const Ti = (e) => ({
10105
10124
  /* @__PURE__ */ s("div", { className: "dtw-w-full", children: t })
10106
10125
  ]
10107
10126
  }
10108
- ), fC = ({
10127
+ ), bC = ({
10109
10128
  isOpen: e,
10110
10129
  onClose: t,
10111
10130
  children: n,
10112
10131
  className: o,
10113
- ThemeProvider: r = al
10132
+ ThemeProvider: r = rl
10114
10133
  }) => {
10115
10134
  const a = de(null);
10116
10135
  return /* @__PURE__ */ s(
10117
- Ui,
10136
+ zi,
10118
10137
  {
10119
10138
  open: e,
10120
10139
  initialFocus: a,
@@ -10125,14 +10144,14 @@ const Ti = (e) => ({
10125
10144
  ),
10126
10145
  onClose: t,
10127
10146
  children: /* @__PURE__ */ s(r, { children: /* @__PURE__ */ w(O, { children: [
10128
- /* @__PURE__ */ s(Gi, { className: "dtw-fixed dtw-inset-0 dtw-backdrop-blur-md dtw-backdrop-brightness-75 dtw-backdrop-filter" }),
10147
+ /* @__PURE__ */ s(Ui, { className: "dtw-fixed dtw-inset-0 dtw-backdrop-blur-md dtw-backdrop-brightness-75 dtw-backdrop-filter" }),
10129
10148
  /* @__PURE__ */ s(
10130
10149
  "div",
10131
10150
  {
10132
10151
  className: "dtw-fixed dtw-inset-0 dtw-flex dtw-w-screen dtw-items-center dtw-justify-center dtw-p-4",
10133
10152
  ref: a,
10134
10153
  children: /* @__PURE__ */ s(
10135
- Hi,
10154
+ Gi,
10136
10155
  {
10137
10156
  transition: !0,
10138
10157
  className: "dtw-inline-block dtw-transform dtw-duration-100 dtw-ease-out dtw-overflow-hidden dtw-rounded-2xl dtw-text-left dtw-align-middle dtw-shadow-xl data-[closed]:dtw-opacity-0 data-[closed]:dtw-scale-75",
@@ -10144,7 +10163,7 @@ const Ti = (e) => ({
10144
10163
  ] }) })
10145
10164
  }
10146
10165
  );
10147
- }, bC = () => {
10166
+ }, TC = () => {
10148
10167
  const e = Xe(), { isModalOpen: t, pendingTransaction: n } = ce(), { setIsModalOpen: o } = Ot(), r = f(() => {
10149
10168
  o(!0), e?.(Fe.OPEN_LIMIT_SELL_VIEW, {
10150
10169
  [qe.SOURCE.NAME]: "modal"
@@ -10156,34 +10175,34 @@ const Ti = (e) => ({
10156
10175
  onClose: a,
10157
10176
  isTransactionPending: !!n
10158
10177
  };
10159
- }, TC = ({ children: e, themeConfig: t }) => {
10160
- const { onOpen: n, isModalOpen: o, onClose: r, isTransactionPending: a } = bC(), i = Te();
10161
- Ni();
10178
+ }, yC = ({ children: e, themeConfig: t }) => {
10179
+ const { onOpen: n, isModalOpen: o, onClose: r, isTransactionPending: a } = TC(), i = Te();
10180
+ Ii();
10162
10181
  const l = f(
10163
- ({ children: c }) => /* @__PURE__ */ s(_i, { config: t, children: c }),
10182
+ ({ children: c }) => /* @__PURE__ */ s(Ni, { config: t, children: c }),
10164
10183
  [t]
10165
10184
  );
10166
10185
  return /* @__PURE__ */ w(O, { children: [
10167
10186
  e({ onClick: n, isTransactionPending: a }),
10168
10187
  /* @__PURE__ */ s(
10169
- fC,
10188
+ bC,
10170
10189
  {
10171
10190
  isOpen: o,
10172
10191
  onClose: r,
10173
10192
  ThemeProvider: l,
10174
10193
  className: "limit-order",
10175
10194
  children: /* @__PURE__ */ s(
10176
- vC,
10195
+ fC,
10177
10196
  {
10178
10197
  title: i.limitOrdersTitle,
10179
10198
  className: "dtw-text-[color:var(--limit-order-content-color)] dtw-text-[length:var(--limit-order-font-size)] dtw-max-w-[430px]",
10180
- children: /* @__PURE__ */ s(Ei, { onClose: r })
10199
+ children: /* @__PURE__ */ s(Ci, { onClose: r })
10181
10200
  }
10182
10201
  )
10183
10202
  }
10184
10203
  )
10185
10204
  ] });
10186
- }, sE = ({
10205
+ }, lE = ({
10187
10206
  children: e,
10188
10207
  vaultChainId: t,
10189
10208
  vaultAddress: n,
@@ -10194,7 +10213,7 @@ const Ti = (e) => ({
10194
10213
  themeConfig: l,
10195
10214
  isModalOpen: c
10196
10215
  }) => {
10197
- const { isFetched: d, upperLimitPrice: p, lowerLimitPrice: u } = Ii({ vaultAddress: n, vaultChainId: t }), m = _(
10216
+ const { isFetched: d, upperLimitPrice: p, lowerLimitPrice: u } = Ei({ vaultAddress: n, vaultChainId: t }), m = _(
10198
10217
  () => ({
10199
10218
  vaultAddress: n,
10200
10219
  vaultChainId: t,
@@ -10216,209 +10235,209 @@ const Ti = (e) => ({
10216
10235
  u
10217
10236
  ]
10218
10237
  );
10219
- return d ? /* @__PURE__ */ s(fi, { config: r, children: /* @__PURE__ */ s(Si, { initialState: m, actions: i, children: /* @__PURE__ */ s(TC, { themeConfig: l, children: e }) }) }) : null;
10238
+ return d ? /* @__PURE__ */ s(vi, { config: r, children: /* @__PURE__ */ s(Ai, { initialState: m, actions: i, children: /* @__PURE__ */ s(yC, { themeConfig: l, children: e }) }) }) : null;
10220
10239
  };
10221
10240
  export {
10222
- TE as ALCHEMY_RPC_URL_MAP,
10223
- yE as AaveLendingPoolAbi,
10241
+ AE as ALCHEMY_RPC_URL_MAP,
10242
+ SE as AaveLendingPoolAbi,
10224
10243
  I as AddressZero,
10225
10244
  Xr as BRIDGED_TOKENS_SYMBOLS,
10226
- AE as BRIDGED_USDC_ARBITRUM,
10227
- SE as BRIDGED_USDC_OPTIMISM,
10228
- xE as BRIDGED_USDC_POLYGON,
10229
- CE as CBBTC_BASE,
10230
- EE as CBETH_BASE,
10231
- IE as CHAIN_MAP,
10245
+ xE as BRIDGED_USDC_ARBITRUM,
10246
+ CE as BRIDGED_USDC_OPTIMISM,
10247
+ EE as BRIDGED_USDC_POLYGON,
10248
+ IE as CBBTC_BASE,
10249
+ NE as CBETH_BASE,
10250
+ _E as CHAIN_MAP,
10232
10251
  Mt as CHAIN_NATIVE_TOKENS,
10233
10252
  la as COMPLETE_WITHDRAW_ACTIONS,
10234
- NE as CURRENCY_SYMBOL_MAP,
10253
+ kE as CURRENCY_SYMBOL_MAP,
10235
10254
  Pb as ConfigProvider,
10236
- _E as DAI_OPTIMISM,
10237
- kE as DAI_POLYGON,
10238
- OE as DEFAULT_DEPOSIT_METHOD,
10255
+ OE as DAI_OPTIMISM,
10256
+ DE as DAI_POLYGON,
10257
+ PE as DEFAULT_DEPOSIT_METHOD,
10239
10258
  Jr as DEFAULT_DEPOSIT_SLIPPAGE,
10240
- DE as DEFAULT_DEPOSIT_SLIPPAGE_SCALE,
10241
- il as DEFAULT_ERROR_MESSAGE,
10242
- vl as DEFAULT_LOCK_TIME,
10243
- yl as DEFAULT_MULTI_ASSET_WITHDRAW_METHOD,
10259
+ LE as DEFAULT_DEPOSIT_SLIPPAGE_SCALE,
10260
+ sl as DEFAULT_ERROR_MESSAGE,
10261
+ gl as DEFAULT_LOCK_TIME,
10262
+ Tl as DEFAULT_MULTI_ASSET_WITHDRAW_METHOD,
10244
10263
  ft as DEFAULT_POLLING_INTERVAL,
10245
10264
  F as DEFAULT_PRECISION,
10246
- cl as DEFAULT_PROMISE_TIMEOUT_MS,
10265
+ ll as DEFAULT_PROMISE_TIMEOUT_MS,
10247
10266
  Ho as DEFAULT_SIMULATION_ERROR,
10248
- fl as DEFAULT_WITHDRAW_SLIPPAGE,
10249
- sl as EMPTY_POOL_CONFIG,
10267
+ vl as DEFAULT_WITHDRAW_SLIPPAGE,
10268
+ al as EMPTY_POOL_CONFIG,
10250
10269
  _e as EasySwapperV2Abi,
10251
10270
  St as EstimationError,
10252
10271
  Go as GAS_ESTIMATION_ERROR,
10253
- ll as GAS_LIMIT_BUFFER_COEFF,
10272
+ il as GAS_LIMIT_BUFFER_COEFF,
10254
10273
  ss as GET_ALL_LIMIT_ORDER_IDS_FUNCTION_NAME,
10255
- PE as GMX_MARKET_ASSETS,
10256
- LE as GMX_MARKET_ASSETS_MAP,
10274
+ $E as GMX_MARKET_ASSETS,
10275
+ RE as GMX_MARKET_ASSETS_MAP,
10257
10276
  ho as LIMIT_ORDER_READ_FUNCTION_NAME,
10258
- $E as LINK_ARBITRUM,
10259
- RE as LINK_OPTIMISM,
10277
+ BE as LINK_ARBITRUM,
10278
+ ME as LINK_OPTIMISM,
10260
10279
  ca as LimitOrderAbi,
10261
- sE as LimitOrderModal,
10280
+ lE as LimitOrderModal,
10262
10281
  ue as MANAGER_FEE_DENOMINATOR,
10263
10282
  gn as MAX_GAS_LIMIT_MAP,
10264
10283
  me as MULTI_ASSET_TOKEN,
10265
10284
  Ye as MaxUint256,
10266
- BE as NATIVE_TOKEN_DEPOSIT_GAS_LIMIT,
10267
- ME as PAXG_POLYGON,
10268
- FE as PYTH_API_LINK,
10285
+ FE as NATIVE_TOKEN_DEPOSIT_GAS_LIMIT,
10286
+ WE as PAXG_POLYGON,
10287
+ zE as PYTH_API_LINK,
10269
10288
  bt as PoolFactoryAbi,
10270
10289
  Ne as PoolLogicAbi,
10271
10290
  Ve as PoolManagerLogicAbi,
10272
- WE as RETH_BASE,
10273
- zE as RewardDistributionAbi,
10274
- UE as SETH_OPTIMISM,
10291
+ UE as RETH_BASE,
10292
+ GE as RewardDistributionAbi,
10293
+ HE as SETH_OPTIMISM,
10275
10294
  Qe as SHORTEN_POLLING_INTERVAL,
10276
- dl as SIMULATION_TIMEOUT_ERROR,
10277
- GE as SUSD_OPTIMISM,
10278
- HE as TBTC_ARBITRUM,
10279
- VE as TBTC_BASE,
10280
- jE as TBTC_OPTIMISM,
10281
- qE as TBTC_POLYGON,
10295
+ cl as SIMULATION_TIMEOUT_ERROR,
10296
+ VE as SUSD_OPTIMISM,
10297
+ jE as TBTC_ARBITRUM,
10298
+ qE as TBTC_BASE,
10299
+ KE as TBTC_OPTIMISM,
10300
+ QE as TBTC_POLYGON,
10282
10301
  qe as TRADING_LOG_EVENT_PARAM,
10283
10302
  Fe as TRADING_PANEL_LOG_EVENT,
10284
- UC as TradingPanelProvider,
10285
- rE as TradingWidget,
10286
- KE as USDCBC_BASE,
10287
- QE as USDC_ARBITRUM,
10288
- YE as USDC_BASE,
10289
- zC as USDC_HYPEREVM,
10290
- XE as USDC_MAINNET,
10291
- ZE as USDC_OPTIMISM,
10292
- JE as USDC_POLYGON,
10293
- eI as USDT_ARBITRUM,
10294
- tI as USDT_MAINNET,
10295
- nI as USDT_OPTIMISM,
10296
- oI as USDT_POLYGON,
10297
- rI as WBNB_ARBITRUM,
10298
- aI as WBTC_ARBITRUM,
10299
- xl as WBTC_BY_CHAIN_ID,
10300
- sI as WBTC_MAINNET,
10301
- iI as WBTC_OPTIMISM,
10302
- lI as WBTC_POLYGON,
10303
- cI as WETH_ARBITRUM,
10304
- dI as WETH_BASE,
10305
- Sl as WETH_BY_CHAIN_ID,
10306
- pI as WETH_MAINNET,
10307
- uI as WETH_OPTIMISM,
10308
- mI as WETH_POLYGON,
10309
- wI as WPOL_POLYGON,
10310
- hI as WSOL_ARBITRUM,
10311
- gI as WSTETH_ARBITRUM,
10312
- vI as WSTETH_BASE,
10313
- fI as WSTETH_OPTIMISM,
10314
- bI as XAUT_MAINNET,
10315
- $I as arbitrum,
10316
- RI as base,
10317
- Hl as clientSide,
10318
- OI as commify,
10319
- TI as contractsAbisMap,
10320
- yI as contractsAddressesMap,
10321
- SI as decodeErrorResult,
10322
- xI as encodeFunctionData,
10323
- CI as erc20Abi,
10303
+ HC as TradingPanelProvider,
10304
+ sE as TradingWidget,
10305
+ YE as USDCBC_BASE,
10306
+ XE as USDC_ARBITRUM,
10307
+ ZE as USDC_BASE,
10308
+ GC as USDC_HYPEREVM,
10309
+ JE as USDC_MAINNET,
10310
+ eI as USDC_OPTIMISM,
10311
+ tI as USDC_POLYGON,
10312
+ nI as USDT_ARBITRUM,
10313
+ oI as USDT_MAINNET,
10314
+ rI as USDT_OPTIMISM,
10315
+ aI as USDT_POLYGON,
10316
+ sI as WBNB_ARBITRUM,
10317
+ iI as WBTC_ARBITRUM,
10318
+ Sl as WBTC_BY_CHAIN_ID,
10319
+ lI as WBTC_MAINNET,
10320
+ cI as WBTC_OPTIMISM,
10321
+ dI as WBTC_POLYGON,
10322
+ pI as WETH_ARBITRUM,
10323
+ uI as WETH_BASE,
10324
+ Al as WETH_BY_CHAIN_ID,
10325
+ mI as WETH_MAINNET,
10326
+ wI as WETH_OPTIMISM,
10327
+ hI as WETH_POLYGON,
10328
+ gI as WPOL_POLYGON,
10329
+ vI as WSOL_ARBITRUM,
10330
+ fI as WSTETH_ARBITRUM,
10331
+ bI as WSTETH_BASE,
10332
+ TI as WSTETH_OPTIMISM,
10333
+ yI as XAUT_MAINNET,
10334
+ BI as arbitrum,
10335
+ MI as base,
10336
+ Gl as clientSide,
10337
+ PI as commify,
10338
+ AI as contractsAbisMap,
10339
+ SI as contractsAddressesMap,
10340
+ CI as decodeErrorResult,
10341
+ EI as encodeFunctionData,
10342
+ II as erc20Abi,
10324
10343
  bn as formatByCurrency,
10325
- EI as formatEther,
10344
+ NI as formatEther,
10326
10345
  ke as formatNumberToLimitedDecimals,
10327
10346
  Pt as formatNumeratorToPercentage,
10328
10347
  Yn as formatPercentage,
10329
10348
  ee as formatToUsd,
10330
- II as formatUnits,
10331
- Ll as getContractAbiById,
10349
+ _I as formatUnits,
10350
+ Pl as getContractAbiById,
10332
10351
  j as getContractAddressById,
10333
10352
  Wt as getConventionalTokenPriceDecimals,
10334
10353
  af as getErrorMessage,
10335
- RS as getLimitOrderId,
10336
- $l as getNativeTokenInvestableBalance,
10354
+ BS as getLimitOrderId,
10355
+ Ll as getNativeTokenInvestableBalance,
10337
10356
  je as getPercent,
10338
10357
  Vo as getPoolFraction,
10339
- NI as hexToString,
10358
+ kI as hexToString,
10340
10359
  Ko as isAaveLendAndBorrowAsset,
10341
- J as isEqualAddress,
10360
+ Z as isEqualAddress,
10342
10361
  of as isErrorWithMessage,
10343
- Ml as isFmpAirdropVaultAddress,
10362
+ Bl as isFmpAirdropVaultAddress,
10344
10363
  Kn as isNativeToken,
10345
10364
  Q as isZeroAddress,
10346
10365
  wt as normalizeNumber,
10347
- BI as optimism,
10348
- MI as polygon,
10349
- DI as removeInsignificantTrailingZeros,
10366
+ FI as optimism,
10367
+ WI as polygon,
10368
+ LI as removeInsignificantTrailingZeros,
10350
10369
  Ln as shiftBy,
10351
- Rl as shortenAddress,
10370
+ $l as shortenAddress,
10352
10371
  rf as toErrorWithMessage,
10353
- jl as transformAddressForAnalytics,
10354
- _I as trim,
10372
+ Vl as transformAddressForAnalytics,
10373
+ OI as trim,
10355
10374
  $ as useAccount,
10356
- YC as useAddPoolConfig,
10375
+ ZC as useAddPoolConfig,
10357
10376
  le as useAssetPrice,
10358
10377
  Ib as useAvailableManagerFee,
10359
10378
  Da as useBalance,
10360
- cE as useBlockNumber,
10379
+ pE as useBlockNumber,
10361
10380
  kr as useBrowserStorage,
10362
10381
  pb as useCheckWhitelist,
10363
10382
  He as useCompleteWithdrawSwapQuotes,
10364
- ie as useCompleteWithdrawTrackedAssets,
10365
- dE as useConnect,
10383
+ oe as useCompleteWithdrawTrackedAssets,
10384
+ uE as useConnect,
10366
10385
  Se as useContractFunction,
10367
10386
  ub as useContractPoolComposition,
10368
10387
  rs as useContractReadErrorLogging,
10369
10388
  wo as useContractReadsErrorLogging,
10370
10389
  Ac as useCustomDepositTokensPerChain,
10371
- Us as useDebounce,
10372
- Vy as useDepositLockTime,
10373
- zT as useDepositProjectedEarnings,
10374
- pE as useDisconnect,
10375
- IT as useEasySwapperTrackedAssets,
10390
+ zs as useDebounce,
10391
+ jy as useDepositLockTime,
10392
+ UT as useDepositProjectedEarnings,
10393
+ mE as useDisconnect,
10394
+ NT as useEasySwapperTrackedAssets,
10376
10395
  vT as useExchangeRate,
10377
- oE as useFlatmoneyPointsUserBalances,
10396
+ aE as useFlatmoneyPointsUserBalances,
10378
10397
  lf as useGasPrice,
10379
10398
  ms as useHasSingleAssetWithdrawBlockers,
10380
- sx as useInvalidateLimitOrderQuery,
10399
+ ix as useInvalidateLimitOrderQuery,
10381
10400
  zn as useInvalidateOnBlock,
10382
10401
  gb as useInvalidatePoolContractData,
10383
10402
  rn as useInvalidateTradingQueries,
10384
10403
  vo as useIsBatchContractWritesSupported,
10385
10404
  Ge as useIsCompleteWithdrawStep,
10386
- tE as useIsDepositBlocked,
10405
+ oE as useIsDepositBlocked,
10387
10406
  We as useIsDepositTradingPanelType,
10388
10407
  sn as useIsDhedgeVaultConnected,
10389
10408
  an as useIsInsufficientBalance,
10390
- ZC as useIsPoolAddress,
10409
+ eE as useIsPoolAddress,
10391
10410
  hT as useIsTradingEnabled,
10392
- JC as useIsWalletConnected,
10411
+ tE as useIsWalletConnected,
10393
10412
  cs as useManagerLogicAddress,
10394
10413
  Oe as useNetwork,
10395
10414
  Tc as useOnSimulateTransaction,
10396
10415
  bc as useOnTokenSelector,
10397
- ri as useOnTradingTypeChange,
10416
+ oi as useOnTradingTypeChange,
10398
10417
  vc as useOnTransactionError,
10399
10418
  eo as useOnTransactionEstimationError,
10400
10419
  fc as useOnTransactionSuccess,
10401
10420
  xt as usePoolComposition,
10402
10421
  hb as usePoolCompositionWithFraction,
10403
- ae as usePoolDynamic,
10422
+ se as usePoolDynamic,
10404
10423
  bo as usePoolFees,
10405
10424
  dn as usePoolManagerDynamic,
10406
10425
  us as usePoolManagerLogicData,
10407
10426
  cn as usePoolManagerStatic,
10408
10427
  ln as usePoolStatic,
10409
10428
  pe as usePoolTokenPrice,
10410
- WT as useProjectedEarningsCore,
10411
- uE as usePublicClient,
10429
+ zT as useProjectedEarningsCore,
10430
+ wE as usePublicClient,
10412
10431
  Ps as useRawAssetPrice,
10413
- mE as useReadContract,
10414
- wE as useReadContracts,
10432
+ hE as useReadContract,
10433
+ gE as useReadContracts,
10415
10434
  L as useReceiveTokenInput,
10416
- aE as useReferralProgram,
10435
+ iE as useReferralProgram,
10417
10436
  k as useSendTokenInput,
10418
- hE as useSendTransaction,
10419
- GC as useSetPoolAddress,
10420
- qC as useSetTradingType,
10421
- eE as useStaticCallQuery,
10437
+ vE as useSendTransaction,
10438
+ VC as useSetPoolAddress,
10439
+ QC as useSetTradingType,
10440
+ nE as useStaticCallQuery,
10422
10441
  oo as useTokenAllowance,
10423
10442
  W as useTradingPanelActions,
10424
10443
  Xe as useTradingPanelLogger,
@@ -10428,30 +10447,30 @@ export {
10428
10447
  yt as useTradingPanelPoolConfigs,
10429
10448
  Ze as useTradingPanelPoolFallbackData,
10430
10449
  Y as useTradingPanelSettings,
10431
- Z as useTradingPanelState,
10450
+ J as useTradingPanelState,
10432
10451
  te as useTradingPanelTransactions,
10433
10452
  fe as useTradingPanelType,
10434
10453
  wT as useTradingResultHandling,
10435
10454
  it as useTradingSettleHandler,
10436
- XC as useUpdateCustomDepositTokensPerChain,
10437
- QC as useUpdatePoolConfig,
10455
+ JC as useUpdateCustomDepositTokensPerChain,
10456
+ XC as useUpdatePoolConfig,
10438
10457
  gc as useUpdatePoolFallbackData,
10439
- VC as useUpdateReceiveTokenInput,
10440
- HC as useUpdateSendTokenInput,
10441
- KC as useUpdateTradingModal,
10442
- jC as useUpdateTradingSettings,
10458
+ qC as useUpdateReceiveTokenInput,
10459
+ jC as useUpdateSendTokenInput,
10460
+ YC as useUpdateTradingModal,
10461
+ KC as useUpdateTradingSettings,
10443
10462
  lb as useUserBalancesDynamic,
10444
10463
  hn as useUserLimitOrder,
10445
10464
  be as useUserTokenBalance,
10446
10465
  Cb as useUserVaultBalance,
10447
10466
  xb as useUserVaultsBalances,
10448
- nE as useVaultContractData,
10467
+ rE as useVaultContractData,
10449
10468
  Oo as useVaultDepositTokens,
10450
10469
  Nb as useVaultSupplyCap,
10451
10470
  fb as useVaultVestedPoints,
10452
- gE as useWaitForTransactionReceipt,
10453
- vE as useWalletClient,
10471
+ fE as useWaitForTransactionReceipt,
10472
+ bE as useWalletClient,
10454
10473
  Qt as useWithdrawAction,
10455
- fE as useWriteContract,
10456
- PI as validateLoggerEventParams
10474
+ TE as useWriteContract,
10475
+ $I as validateLoggerEventParams
10457
10476
  };