@dhedge/trading-widget 4.6.0 → 4.6.1

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.
Files changed (4) hide show
  1. package/index.cjs +1 -1
  2. package/index.d.ts +1 -0
  3. package/index.js +718 -590
  4. package/package.json +2 -1
package/index.js CHANGED
@@ -2,15 +2,15 @@ var gr = Object.defineProperty;
2
2
  var Tr = (t, e, n) => e in t ? gr(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n;
3
3
  var Fe = (t, e, n) => Tr(t, typeof e != "symbol" ? e + "" : e, n);
4
4
  import { jsx as r, jsxs as u, Fragment as _ } from "react/jsx-runtime";
5
- import { Tab as La, Disclosure as Oa, DisclosureButton as Pa, Transition as Ra, DisclosurePanel as Ba, TabPanel as Ma, Popover as br, PopoverButton as fr, PopoverBackdrop as vr, PopoverPanel as Ar, Field as Wa, Label as Fa, Switch as Sr, Checkbox as xr, TabGroup as Ua, TabList as $a, TabPanels as za, Dialog as Dr, DialogBackdrop as Er, DialogPanel as Ir } from "@headlessui/react";
6
- import { useAccount as Va, useConfig as Cr, useSwitchChain as Nr, useReadContract as _e, useBalance as _r, useWalletClient as kr, usePublicClient as fn, useWriteContract as Lr, useEstimateFeesPerGas as Or, useBlockNumber as Pr, useCapabilities as Rr, useReadContracts as le, useConnect as Ha, useWaitForTransactionReceipt as Ga, useWaitForCallsStatus as Br, useSimulateContract as Mr, useSendCalls as Wr } from "wagmi";
7
- import { useBlockNumber as hw, useConnect as gw, useDisconnect as Tw, usePublicClient as bw, useReadContract as fw, useReadContracts as vw, useSendTransaction as Aw, useWaitForTransactionReceipt as Sw, useWalletClient as xw, useWriteContract as Dw } from "wagmi";
8
- import { createContext as Ae, useReducer as vn, useCallback as T, useMemo as I, useContext as Se, useState as ne, useEffect as k, forwardRef as Fr, useRef as Ft, Children as Ur, isValidElement as $r, Fragment as qa } from "react";
9
- import { optimism as q, base as K, arbitrum as Q, polygon as Z, mainnet as X } from "wagmi/chains";
10
- import { arbitrum as Iw, base as Cw, optimism as Nw, polygon as _w } from "wagmi/chains";
5
+ import { Tab as Oa, Disclosure as La, DisclosureButton as Pa, Transition as Ra, DisclosurePanel as Ba, TabPanel as Ma, Popover as br, PopoverButton as fr, PopoverBackdrop as vr, PopoverPanel as Ar, Field as Wa, Label as Fa, Switch as Sr, Checkbox as xr, TabGroup as Ua, TabList as $a, TabPanels as za, Dialog as Dr, DialogBackdrop as Er, DialogPanel as Ir } from "@headlessui/react";
6
+ import { useAccount as Va, useConfig as Cr, useSwitchChain as Nr, useReadContract as _e, useBalance as _r, useWalletClient as kr, usePublicClient as fn, useWriteContract as Or, useEstimateFeesPerGas as Lr, useBlockNumber as Pr, useCapabilities as Rr, useReadContracts as de, useConnect as Ha, useWaitForTransactionReceipt as Ga, useWaitForCallsStatus as Br, useSimulateContract as Mr, useSendCalls as Wr } from "wagmi";
7
+ import { useBlockNumber as Lw, useConnect as Pw, useDisconnect as Rw, usePublicClient as Bw, useReadContract as Mw, useReadContracts as Ww, useSendTransaction as Fw, useWaitForTransactionReceipt as Uw, useWalletClient as $w, useWriteContract as zw } from "wagmi";
8
+ import { createContext as Ae, useReducer as vn, useCallback as T, useMemo as I, useContext as Se, useState as ae, useEffect as k, forwardRef as Fr, useRef as Ft, Children as Ur, isValidElement as $r, Fragment as qa } from "react";
9
+ import { optimism as Y, base as Q, arbitrum as X, polygon as J, mainnet as Z } from "wagmi/chains";
10
+ import { arbitrum as Hw, base as Gw, optimism as qw, polygon as Yw } from "wagmi/chains";
11
11
  import { formatDuration as An, format as zr, intervalToDuration as Vr } from "date-fns";
12
12
  import { erc20Abi as we, stringToHex as Sn, encodeAbiParameters as ia, encodeFunctionData as Ya, formatUnits as fe, formatEther as ja, encodePacked as Hr, keccak256 as Gr } from "viem";
13
- import { decodeErrorResult as Lw, encodeFunctionData as Ow, erc20Abi as Pw, formatEther as Rw, formatUnits as Bw, hexToString as Mw, trim as Ww } from "viem";
13
+ import { decodeErrorResult as Kw, encodeFunctionData as Qw, erc20Abi as Xw, formatEther as Zw, formatUnits as Jw, hexToString as eh, trim as th } from "viem";
14
14
  import b, { BigNumber as Re } from "bignumber.js";
15
15
  import qr from "lodash/invertBy";
16
16
  import { CustomError as Yr } from "ts-custom-error";
@@ -36,62 +36,62 @@ const R = () => {
36
36
  };
37
37
  }, D = "0x0000000000000000000000000000000000000000", Ke = BigInt(
38
38
  "0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff"
39
- ), O = 18, si = "1000000000000000000", ri = 59e3, yt = 3e4, Qe = 15e3, eo = 5e3, to = 400, no = to * 1.2, ii = An({ hours: 24 }), li = {
39
+ ), L = 18, si = "1000000000000000000", ri = 59e3, yt = 3e4, Qe = 15e3, eo = 5e3, to = 400, no = to * 1.2, ii = An({ hours: 24 }), li = {
40
40
  address: D,
41
41
  symbol: "",
42
- chainId: q.id,
42
+ chainId: Y.id,
43
43
  depositParams: { customTokens: [] },
44
44
  withdrawParams: { customTokens: [] },
45
45
  deprecated: !1
46
46
  }, Hy = "deposit", di = 1, In = 0, ci = 0.5, ao = 0.02, pi = 0.75, Gy = [In], ui = "withdrawSafe", oo = "initWithdrawal", mi = "unrollAndClaim", yi = "completeWithdrawal", wi = 3e7, hi = 1.25, $e = 1e4, gi = 13e3, so = 3, Cn = 2e4, Ti = 15e3, qy = {
47
- [X.id]: X,
48
47
  [Z.id]: Z,
49
- [q.id]: q,
50
- [Q.id]: Q,
51
- [K.id]: K
48
+ [J.id]: J,
49
+ [Y.id]: Y,
50
+ [X.id]: X,
51
+ [Q.id]: Q
52
52
  }, ct = {
53
- [X.id]: {
53
+ [Z.id]: {
54
54
  nativeTokenSymbol: "ETH",
55
55
  wrappedNativeTokenName: "WETH",
56
56
  address: "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2",
57
- decimals: O
57
+ decimals: L
58
58
  },
59
- [Z.id]: {
59
+ [J.id]: {
60
60
  nativeTokenSymbol: "POL",
61
61
  wrappedNativeTokenName: "WPOL",
62
62
  address: "0x0d500b1d8e8ef31e21c99d1db9a6444d3adf1270",
63
- decimals: O
63
+ decimals: L
64
64
  },
65
- [q.id]: {
65
+ [Y.id]: {
66
66
  nativeTokenSymbol: "ETH",
67
67
  wrappedNativeTokenName: "WETH",
68
68
  address: "0x4200000000000000000000000000000000000006",
69
- decimals: O
69
+ decimals: L
70
70
  },
71
- [Q.id]: {
71
+ [X.id]: {
72
72
  nativeTokenSymbol: "ETH",
73
73
  wrappedNativeTokenName: "WETH",
74
74
  address: "0x82af49447d8a07e3bd95bd0d56f35241523fbab1",
75
- decimals: O
75
+ decimals: L
76
76
  },
77
- [K.id]: {
77
+ [Q.id]: {
78
78
  nativeTokenSymbol: "ETH",
79
79
  wrappedNativeTokenName: "WETH",
80
80
  address: "0x4200000000000000000000000000000000000006",
81
- decimals: O
81
+ decimals: L
82
82
  }
83
83
  }, Jt = {
84
- [X.id]: 299e5,
85
84
  [Z.id]: 299e5,
86
- [q.id]: 299e5,
87
- [Q.id]: 299e5,
88
- [K.id]: 299e5
85
+ [J.id]: 299e5,
86
+ [Y.id]: 299e5,
87
+ [X.id]: 299e5,
88
+ [Q.id]: 299e5
89
89
  }, Yy = {
90
- [X.id]: "https://eth-mainnet.g.alchemy.com/v2",
91
- [q.id]: "https://opt-mainnet.g.alchemy.com/v2",
92
- [Z.id]: "https://polygon-mainnet.g.alchemy.com/v2",
93
- [Q.id]: "https://arb-mainnet.g.alchemy.com/v2",
94
- [K.id]: "https://base-mainnet.g.alchemy.com/v2"
90
+ [Z.id]: "https://eth-mainnet.g.alchemy.com/v2",
91
+ [Y.id]: "https://opt-mainnet.g.alchemy.com/v2",
92
+ [J.id]: "https://polygon-mainnet.g.alchemy.com/v2",
93
+ [X.id]: "https://arb-mainnet.g.alchemy.com/v2",
94
+ [Q.id]: "https://base-mainnet.g.alchemy.com/v2"
95
95
  }, bi = {
96
96
  USD: "$",
97
97
  ETH: "Ξ",
@@ -100,7 +100,7 @@ const R = () => {
100
100
  USD: 2,
101
101
  ETH: 4,
102
102
  BTC: 6
103
- }, vi = ["USDC", "USDT"], j = {
103
+ }, vi = ["USDC", "USDT"], K = {
104
104
  INVEST_INPUT_FOCUS: "invest_input_focus",
105
105
  APPROVED_TOKEN: "approved_token",
106
106
  DEPOSIT: "deposit",
@@ -118,26 +118,26 @@ const R = () => {
118
118
  LIMIT_ORDER_WITHDRAW: "limit_order_withdraw",
119
119
  LIMIT_ORDER_WITHDRAW_DELETE: "limit_order_withdraw_delete"
120
120
  }, Ai = {
121
- approve: [j.APPROVED_TOKEN],
122
- deposit: [j.DEPOSIT],
121
+ approve: [K.APPROVED_TOKEN],
122
+ deposit: [K.DEPOSIT],
123
123
  multi_withdraw: [
124
- j.WITHDRAWAL,
125
- j.MULTI_ASSET_WITHDRAW
124
+ K.WITHDRAWAL,
125
+ K.MULTI_ASSET_WITHDRAW
126
126
  ],
127
127
  single_withdraw: [
128
- j.WITHDRAWAL,
129
- j.SINGLE_ASSET_WITHDRAW
128
+ K.WITHDRAWAL,
129
+ K.SINGLE_ASSET_WITHDRAW
130
130
  ],
131
131
  single_withdraw_and_claim: [
132
- j.WITHDRAWAL,
133
- j.SINGLE_ASSET_WITHDRAW_AND_CLAIM
132
+ K.WITHDRAWAL,
133
+ K.SINGLE_ASSET_WITHDRAW_AND_CLAIM
134
134
  ],
135
- claim: [j.CLAIM],
136
- swap: [j.SWAP],
137
- create_limit_sell_order: [j.CREATE_LIMIT_SELL_ORDER],
138
- limit_order_withdraw: [j.LIMIT_ORDER_WITHDRAW],
135
+ claim: [K.CLAIM],
136
+ swap: [K.SWAP],
137
+ create_limit_sell_order: [K.CREATE_LIMIT_SELL_ORDER],
138
+ limit_order_withdraw: [K.LIMIT_ORDER_WITHDRAW],
139
139
  delete_limit_order_withdraw: [
140
- j.LIMIT_ORDER_WITHDRAW_DELETE
140
+ K.LIMIT_ORDER_WITHDRAW_DELETE
141
141
  ]
142
142
  }, Ce = {
143
143
  IS_INFINITE: { NAME: "is_infinite", TYPE: "number" },
@@ -149,49 +149,49 @@ const R = () => {
149
149
  };
150
150
  var Ue = /* @__PURE__ */ ((t) => (t.ETH = "ETH", t.MAINNET = "MAINNET", t.POLYGON = "POLYGON", t.OE = "OPTIMISM", t.ARBI = "ARBITRUM", t.BASE = "BASE", t))(Ue || {});
151
151
  const rt = process.env.NEXT_PUBLIC_INFURA_API_KEY;
152
- Q.id + "", `${rt}`, q.id + "", `${rt}`, Z.id + "", `${rt}`, K.id + "", `${rt}`, X.id + "", `${rt}`;
152
+ X.id + "", `${rt}`, Y.id + "", `${rt}`, J.id + "", `${rt}`, Q.id + "", `${rt}`, Z.id + "", `${rt}`;
153
153
  const Si = {
154
- [Q.id]: {
155
- ...Q,
154
+ [X.id]: {
155
+ ...X,
156
156
  name: "Arbitrum",
157
157
  iconPath: "/icons/arbitrum-network.svg",
158
- chainId: Q.id,
158
+ chainId: X.id,
159
159
  shortName: "ARB"
160
160
  },
161
- [q.id]: {
162
- ...q,
161
+ [Y.id]: {
162
+ ...Y,
163
163
  name: "Optimism",
164
164
  iconPath: "/icons/optimism-network.svg",
165
- chainId: q.id,
165
+ chainId: Y.id,
166
166
  shortName: "OP"
167
167
  },
168
- [Z.id]: {
169
- ...Z,
170
- chainId: Z.id,
168
+ [J.id]: {
169
+ ...J,
170
+ chainId: J.id,
171
171
  iconPath: "/icons/polygon-network.svg",
172
172
  shortName: "POLY"
173
173
  },
174
- [K.id]: {
175
- ...K,
176
- chainId: K.id,
174
+ [Q.id]: {
175
+ ...Q,
176
+ chainId: Q.id,
177
177
  iconPath: "/icons/base-network.svg",
178
178
  shortName: "BASE"
179
179
  },
180
- [X.id]: {
181
- ...X,
182
- chainId: X.id,
180
+ [Z.id]: {
181
+ ...Z,
182
+ chainId: Z.id,
183
183
  iconPath: "/icons/ethereum-network.svg",
184
184
  shortName: "ETHEREUM"
185
185
  }
186
186
  };
187
- Ue.ETH + "", X.id, Ue.MAINNET + "", X.id, Ue.POLYGON + "", Z.id, Ue.OE + "", q.id, Ue.ARBI + "", Q.id, Ue.BASE + "", K.id;
188
- X.id + "", q.id + "", Z.id + "", Q.id + "", K.id + "";
187
+ Ue.ETH + "", Z.id, Ue.MAINNET + "", Z.id, Ue.POLYGON + "", J.id, Ue.OE + "", Y.id, Ue.ARBI + "", X.id, Ue.BASE + "", Q.id;
188
+ Z.id + "", Y.id + "", J.id + "", X.id + "", Q.id + "";
189
189
  const Nn = "0x0000000000000000000000000000000000000000";
190
190
  BigInt("0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff");
191
- X.id + "", BigInt(100), q.id + "", BigInt(600), Z.id + "", BigInt(600), K.id + "", BigInt(600), Q.id + "", BigInt(5300);
192
- const xi = "0x96D33bCF84DdE326014248E2896F79bbb9c13D6d", ro = "0xbDd84294bC8299861A2121F749A25EFEb7168a32", Di = "0x87870Bca3F3fD6335C3F4ce8392D69350B4fA4E2", Ei = "0xffFb5fB14606EB3a548C113026355020dDF27535", Ii = "0x794a61358D6845594F94dc1DB02A252b5b4814aD", io = "0xA5679C4272A056Bb83f039961fae7D99C48529F5", lo = "0x26a687e8244f1866E9Aa2D400c8b9957Aa8e6Ad4", Ci = "0x49Afe3abCf66CF09Fab86cb1139D8811C8afe56F", co = "0xf067575Eb60c7587C11e867907AA7284833704d1", Ni = "0x59525b9b23adc475ef91d98dae06b568ba574ce5", _i = "0xa907504d7a4c415b4e6e1d0866d96afe8202f0e5", ki = "0x1849324228d852a67eb7443e42d967e480ffe95d", Li = "0xa238dd80c259a72e81d7e4664a9801593f98d1c5", po = "0xFcBEc28c43E356693971a24bf3F2Fd7D965E2ebA", Oi = "0x07e144e336fcc3fe928a8a2a5714da64354c1aab", Pi = "0x5e61a079A178f0E5784107a4963baAe0c5a680c6", Ri = "0x794a61358D6845594F94dc1DB02A252b5b4814aD", uo = "0x2Ed1bd7f66e47113672f3870308b5E867C5bb743", mo = "0x3bFE2a472d2964Ea4070725b7Fb0A868b3f08b63", Bi = "0xfdc7b8bFe0DD3513Cc669bB8d601Cb83e2F69cB0", Mi = "0x8dFf5E27EA6b7AC08EbFdf9eB090F32ee9a30fcf", Wi = "0x794a61358D6845594F94dc1DB02A252b5b4814aD", yo = "0x45b90480D6F643dE2f128db091A357C3c90399f2", wo = "0xB71410736d2C8F2DAf30dA9D332dA10534d2624d", _n = "0x4F754e0F0924afD74980886b0B479Fa1D7C58D0D";
193
- X.id + "", Q.id + "", K.id + "", q.id + "", Z.id + "";
194
- X.id + "", Q.id + "", K.id + "", q.id + "", Z.id + "";
191
+ Z.id + "", BigInt(100), Y.id + "", BigInt(600), J.id + "", BigInt(600), Q.id + "", BigInt(600), X.id + "", BigInt(5300);
192
+ const xi = "0x96D33bCF84DdE326014248E2896F79bbb9c13D6d", ro = "0xbDd84294bC8299861A2121F749A25EFEb7168a32", Di = "0x87870Bca3F3fD6335C3F4ce8392D69350B4fA4E2", Ei = "0xffFb5fB14606EB3a548C113026355020dDF27535", Ii = "0x794a61358D6845594F94dc1DB02A252b5b4814aD", io = "0xA5679C4272A056Bb83f039961fae7D99C48529F5", lo = "0x26a687e8244f1866E9Aa2D400c8b9957Aa8e6Ad4", Ci = "0x49Afe3abCf66CF09Fab86cb1139D8811C8afe56F", co = "0xf067575Eb60c7587C11e867907AA7284833704d1", Ni = "0x59525b9b23adc475ef91d98dae06b568ba574ce5", _i = "0xa907504d7a4c415b4e6e1d0866d96afe8202f0e5", ki = "0x1849324228d852a67eb7443e42d967e480ffe95d", Oi = "0xa238dd80c259a72e81d7e4664a9801593f98d1c5", po = "0xFcBEc28c43E356693971a24bf3F2Fd7D965E2ebA", Li = "0x07e144e336fcc3fe928a8a2a5714da64354c1aab", Pi = "0x5e61a079A178f0E5784107a4963baAe0c5a680c6", Ri = "0x794a61358D6845594F94dc1DB02A252b5b4814aD", uo = "0x2Ed1bd7f66e47113672f3870308b5E867C5bb743", mo = "0x3bFE2a472d2964Ea4070725b7Fb0A868b3f08b63", Bi = "0xfdc7b8bFe0DD3513Cc669bB8d601Cb83e2F69cB0", Mi = "0x8dFf5E27EA6b7AC08EbFdf9eB090F32ee9a30fcf", Wi = "0x794a61358D6845594F94dc1DB02A252b5b4814aD", yo = "0x45b90480D6F643dE2f128db091A357C3c90399f2", wo = "0xB71410736d2C8F2DAf30dA9D332dA10534d2624d", _n = "0x4F754e0F0924afD74980886b0B479Fa1D7C58D0D";
193
+ Z.id + "", X.id + "", Q.id + "", Y.id + "", J.id + "";
194
+ Z.id + "", X.id + "", Q.id + "", Y.id + "", J.id + "";
195
195
  const la = [
196
196
  {
197
197
  anonymous: !1,
@@ -1823,7 +1823,7 @@ const la = [
1823
1823
  stateMutability: "view",
1824
1824
  type: "function"
1825
1825
  }
1826
- ], Lt = [
1826
+ ], Ot = [
1827
1827
  {
1828
1828
  inputs: [
1829
1829
  {
@@ -4091,36 +4091,36 @@ const la = [
4091
4091
  type: "function"
4092
4092
  }
4093
4093
  ], Hi = {
4094
- [X.id]: {
4094
+ [Z.id]: {
4095
4095
  factory: xi,
4096
4096
  easySwapperV2: ro,
4097
4097
  aaveLendingPoolV3: Di
4098
4098
  },
4099
- [Z.id]: {
4099
+ [J.id]: {
4100
4100
  factory: Bi,
4101
4101
  aaveLendingPoolV2: Mi,
4102
4102
  aaveLendingPoolV3: Wi,
4103
4103
  easySwapperV2: yo,
4104
4104
  limitOrder: wo
4105
4105
  },
4106
- [q.id]: {
4106
+ [Y.id]: {
4107
4107
  factory: Pi,
4108
- rewardDistribution: Oi,
4108
+ rewardDistribution: Li,
4109
4109
  aaveLendingPoolV3: Ri,
4110
4110
  easySwapperV2: uo,
4111
4111
  limitOrder: mo
4112
4112
  },
4113
- [Q.id]: {
4113
+ [X.id]: {
4114
4114
  factory: Ei,
4115
4115
  aaveLendingPoolV3: Ii,
4116
4116
  easySwapperV2: io,
4117
4117
  limitOrder: lo
4118
4118
  },
4119
- [K.id]: {
4119
+ [Q.id]: {
4120
4120
  factory: Ci,
4121
4121
  flatcoinPointsModule: Ni,
4122
4122
  easySwapperV2: co,
4123
- aaveLendingPoolV3: Li,
4123
+ aaveLendingPoolV3: Oi,
4124
4124
  limitOrder: po
4125
4125
  }
4126
4126
  }, Gi = {
@@ -4131,7 +4131,7 @@ const la = [
4131
4131
  poolManagerLogic: ze,
4132
4132
  erc20: we,
4133
4133
  poolLogic: Ne,
4134
- flatcoinPointsModule: Lt,
4134
+ flatcoinPointsModule: Ot,
4135
4135
  easySwapperV2: ve,
4136
4136
  limitOrder: kn
4137
4137
  }, da = "Gas estimate error occurred", qi = "See console logs to report error details.", ca = "Missing simulation params", Yi = "Simulation timeout", ho = "swap_data_deposit_error", go = "swap_data_withdraw_error", it = {
@@ -4294,7 +4294,7 @@ const la = [
4294
4294
  }, ji = [
4295
4295
  ...Object.keys(To),
4296
4296
  ...Object.keys(fo)
4297
- ], de = 18, vo = {
4297
+ ], F = 18, vo = {
4298
4298
  address: "0xff970a61a04b1ca14834a43f5de4533ebddb5cc8",
4299
4299
  symbol: "USDCe",
4300
4300
  decimals: 6,
@@ -4307,22 +4307,62 @@ const la = [
4307
4307
  }, Pt = {
4308
4308
  address: "0x82af49447d8a07e3bd95bd0d56f35241523fbab1",
4309
4309
  symbol: "WETH",
4310
- decimals: de,
4310
+ decimals: F,
4311
4311
  value: ""
4312
4312
  }, He = {
4313
4313
  address: "0x2f2a2543b76a4166549f7aab2e75bef0aefc5b0f",
4314
4314
  symbol: "WBTC",
4315
4315
  decimals: 8,
4316
4316
  value: ""
4317
+ }, jy = {
4318
+ address: "0x6c84a8f1c29108F47a79964b5Fe888D4f4D0dE40",
4319
+ symbol: "tBTC",
4320
+ decimals: F,
4321
+ value: ""
4322
+ }, Ky = {
4323
+ address: "0x5979D7b546E38E414F7E9822514be443A4800529",
4324
+ symbol: "wstETH",
4325
+ decimals: F,
4326
+ value: ""
4327
+ }, Qy = {
4328
+ address: "0xfd086bc7cd5c481dcc9c85ebe478a1c0b69fcbb9",
4329
+ symbol: "USDT",
4330
+ decimals: 6,
4331
+ value: ""
4332
+ }, Xy = {
4333
+ address: "0x2bcC6D6CdBbDC0a4071e48bb3B969b06B3330c07",
4334
+ symbol: "SOL",
4335
+ decimals: 9,
4336
+ value: ""
4337
+ }, Zy = {
4338
+ address: "0xa9004a5421372e1d83fb1f85b0fc986c912f91f3",
4339
+ symbol: "WBNB",
4340
+ decimals: F,
4341
+ value: ""
4342
+ }, Jy = {
4343
+ address: "0xf97f4df75117a78c1a5a0dbb814af92458539fb4",
4344
+ symbol: "LINK",
4345
+ decimals: F,
4346
+ value: ""
4317
4347
  }, Ki = {
4318
4348
  address: "0x833589fcd6edb6e08f4c7c32d4f71b54bda02913",
4319
4349
  symbol: "USDC",
4320
4350
  decimals: 6,
4321
4351
  value: ""
4352
+ }, ew = {
4353
+ address: "0xd9aaec86b65d86f6a7b5b1b0c42ffa531710b6ca",
4354
+ symbol: "USDbC",
4355
+ decimals: 6,
4356
+ value: ""
4322
4357
  }, Ao = {
4323
4358
  address: "0x4200000000000000000000000000000000000006",
4324
4359
  symbol: "WETH",
4325
- decimals: de,
4360
+ decimals: F,
4361
+ value: ""
4362
+ }, tw = {
4363
+ address: "0x2ae3f1ec7f1f5012cfeab0185bfc7aa3cf0dec22",
4364
+ symbol: "cbETH",
4365
+ decimals: F,
4326
4366
  value: ""
4327
4367
  }, Qi = {
4328
4368
  address: "0xcbb7c0000ab88b473b1f5afd9ef808440eed33bf",
@@ -4332,7 +4372,18 @@ const la = [
4332
4372
  }, en = {
4333
4373
  address: "0xb6fe221fe9eef5aba221c348ba20a1bf5e73624c",
4334
4374
  symbol: "rETH",
4335
- decimals: de
4375
+ decimals: F,
4376
+ value: ""
4377
+ }, nw = {
4378
+ address: "0x236aa50979D5f3De3Bd1Eeb40E81137F22ab794b",
4379
+ symbol: "tBTC",
4380
+ decimals: F,
4381
+ value: ""
4382
+ }, aw = {
4383
+ address: "0xc1cba3fcea344f92d9239c08c0568f6f2f0ee452",
4384
+ symbol: "wstETH",
4385
+ decimals: F,
4386
+ value: ""
4336
4387
  }, So = {
4337
4388
  address: "0x7F5c764cBc14f9669B88837ca1490cCa17c31607",
4338
4389
  symbol: "USDCe",
@@ -4351,22 +4402,47 @@ const la = [
4351
4402
  }, xo = {
4352
4403
  address: "0x4200000000000000000000000000000000000006",
4353
4404
  symbol: "WETH",
4354
- decimals: de,
4405
+ decimals: F,
4406
+ value: ""
4407
+ }, ow = {
4408
+ address: "0x8c6f28f2F1A3C87F0f938b96d27520d9751ec8d9",
4409
+ symbol: "sUSD",
4410
+ decimals: F,
4355
4411
  value: ""
4356
4412
  }, Ji = {
4357
4413
  address: "0xda10009cbd5d07dd0cecc66161fc93d7c9000da1",
4358
4414
  symbol: "DAI",
4359
- decimals: de,
4415
+ decimals: F,
4360
4416
  value: ""
4361
4417
  }, pt = {
4362
4418
  address: "0x68f180fcce6836688e9084f035309e29bf0a2095",
4363
4419
  symbol: "WBTC",
4364
4420
  decimals: 8,
4365
4421
  value: ""
4422
+ }, sw = {
4423
+ address: "0xe405de8f52ba7559f9df3c368500b6e6ae6cee49",
4424
+ symbol: "sETH",
4425
+ decimals: F,
4426
+ value: ""
4427
+ }, rw = {
4428
+ address: "0x350a791bfc2c21f9ed5d10980dad2e2638ffa7f6",
4429
+ symbol: "LINK",
4430
+ decimals: F,
4431
+ value: ""
4432
+ }, iw = {
4433
+ address: "0x6c84a8f1c29108F47a79964b5Fe888D4f4D0dE40",
4434
+ symbol: "tBTC",
4435
+ decimals: F,
4436
+ value: ""
4437
+ }, lw = {
4438
+ address: "0x1F32b1c2345538c0c6f582fCB022739c4A194Ebb",
4439
+ symbol: "wstETH",
4440
+ decimals: F,
4441
+ value: ""
4366
4442
  }, Do = {
4367
4443
  address: "0x7ceB23fD6bC0adD59E62ac25578270cFf1b9f619",
4368
4444
  symbol: "WETH",
4369
- decimals: de,
4445
+ decimals: F,
4370
4446
  value: ""
4371
4447
  }, Eo = {
4372
4448
  address: "0x2791Bca1f2de4661ED88A30C99A7a9449Aa84174",
@@ -4378,6 +4454,11 @@ const la = [
4378
4454
  symbol: "USDC",
4379
4455
  decimals: 6,
4380
4456
  value: ""
4457
+ }, dw = {
4458
+ address: "0x553d3d295e0f695b9228246232edf400ed3560b5",
4459
+ symbol: "PAXG",
4460
+ decimals: F,
4461
+ value: ""
4381
4462
  }, Io = {
4382
4463
  address: "0x1BFD67037B42Cf73acF2047067bd4F2C47D9BfD6",
4383
4464
  symbol: "WBTC",
@@ -4386,7 +4467,7 @@ const la = [
4386
4467
  }, tl = {
4387
4468
  address: "0x0d500B1d8E8eF31E21C99d1Db9A6444d3ADf1270",
4388
4469
  symbol: "WPOL",
4389
- decimals: de,
4470
+ decimals: F,
4390
4471
  value: ""
4391
4472
  }, nl = {
4392
4473
  address: "0xc2132d05d31c914a87c6611c10748aeb04b58e8f",
@@ -4396,12 +4477,17 @@ const la = [
4396
4477
  }, al = {
4397
4478
  address: "0x8f3cf7ad23cd3cadbd9735aff958023239c6a063",
4398
4479
  symbol: "DAI",
4399
- decimals: de,
4480
+ decimals: F,
4481
+ value: ""
4482
+ }, cw = {
4483
+ address: "0x236aa50979d5f3de3bd1eeb40e81137f22ab794b",
4484
+ symbol: "tBTC",
4485
+ decimals: F,
4400
4486
  value: ""
4401
4487
  }, Co = {
4402
4488
  address: "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2",
4403
4489
  symbol: "WETH",
4404
- decimals: de,
4490
+ decimals: F,
4405
4491
  value: ""
4406
4492
  }, ol = {
4407
4493
  address: "0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48",
@@ -4421,26 +4507,26 @@ const la = [
4421
4507
  }, yn = {
4422
4508
  address: Nn,
4423
4509
  symbol: "all",
4424
- decimals: de,
4510
+ decimals: F,
4425
4511
  value: ""
4426
4512
  }, _o = {
4427
4513
  [vo.address.toLowerCase()]: "USDCe",
4428
4514
  [So.address.toLowerCase()]: "USDCe",
4429
4515
  [Eo.address.toLowerCase()]: "USDCe"
4430
4516
  }, rl = {
4431
- [X.id]: Co,
4432
- [q.id]: xo,
4433
- [K.id]: Ao,
4434
- [Z.id]: Do,
4435
- [Q.id]: Pt
4517
+ [Z.id]: Co,
4518
+ [Y.id]: xo,
4519
+ [Q.id]: Ao,
4520
+ [J.id]: Do,
4521
+ [X.id]: Pt
4436
4522
  }, il = {
4437
- [q.id]: pt,
4438
- [K.id]: Qi,
4439
- [Z.id]: Io,
4440
- [Q.id]: He,
4441
- [X.id]: No
4523
+ [Y.id]: pt,
4524
+ [Q.id]: Qi,
4525
+ [J.id]: Io,
4526
+ [X.id]: He,
4527
+ [Z.id]: No
4442
4528
  }, ll = {
4443
- [q.id]: {
4529
+ [Y.id]: {
4444
4530
  WETH: xo,
4445
4531
  USDC: Xi,
4446
4532
  WBTC: pt,
@@ -4448,7 +4534,7 @@ const la = [
4448
4534
  USDT: Zi,
4449
4535
  DAI: Ji
4450
4536
  },
4451
- [Z.id]: {
4537
+ [J.id]: {
4452
4538
  WMATIC: tl,
4453
4539
  WETH: Do,
4454
4540
  USDC: el,
@@ -4457,49 +4543,49 @@ const la = [
4457
4543
  USDT: nl,
4458
4544
  DAI: al
4459
4545
  },
4460
- [Q.id]: {
4546
+ [X.id]: {
4461
4547
  WETH: Pt,
4462
4548
  USDC: ue,
4463
4549
  WBTC: He,
4464
4550
  USDCe: vo
4465
4551
  },
4466
- [K.id]: {
4552
+ [Q.id]: {
4467
4553
  WETH: Ao,
4468
4554
  USDC: Ki
4469
4555
  },
4470
- [X.id]: {
4556
+ [Z.id]: {
4471
4557
  WETH: Co,
4472
4558
  USDC: ol,
4473
4559
  WBTC: No,
4474
4560
  USDT: sl
4475
4561
  }
4476
- }, jy = "https://hermes.pyth.network", dl = "https://flat.money/flatcoin", cl = "https://v1.flat.money/flatcoin", Ot = {
4562
+ }, pw = "https://hermes.pyth.network", dl = "https://flat.money/flatcoin", cl = "https://v1.flat.money/flatcoin", Lt = {
4477
4563
  RETH_BASE: "0xdb0cd65dcc7fe07003ce1201f91e1f966fa95768",
4478
4564
  WBTC_OPTIMISM: "0x6d857e9d24a7566bb72a3fb0847a3e0e4e1c2879",
4479
4565
  WBTC_ARBITRUM: "0xb1353d51991e79fefd4bfdba2a03e9f0232814a6"
4480
4566
  }, pl = Object.values(
4481
- Ot
4567
+ Lt
4482
4568
  ), ul = {
4483
- [Ot.RETH_BASE]: {
4569
+ [Lt.RETH_BASE]: {
4484
4570
  symbol: en.symbol,
4485
4571
  decimals: en.decimals,
4486
4572
  address: en.address
4487
4573
  },
4488
- [Ot.WBTC_OPTIMISM]: {
4574
+ [Lt.WBTC_OPTIMISM]: {
4489
4575
  symbol: pt.symbol,
4490
4576
  decimals: pt.decimals,
4491
4577
  address: pt.address
4492
4578
  },
4493
- [Ot.WBTC_ARBITRUM]: {
4579
+ [Lt.WBTC_ARBITRUM]: {
4494
4580
  symbol: He.symbol,
4495
4581
  decimals: He.decimals,
4496
4582
  address: He.address
4497
4583
  }
4498
- }, ko = "0xb95fb324b8a2faf8ec4f76e3df46c718402736e2", Lo = [
4584
+ }, ko = "0xb95fb324b8a2faf8ec4f76e3df46c718402736e2", Oo = [
4499
4585
  ko,
4500
4586
  "0x357cb23571ef7a3d6189b7facfc361ea71f7cab5"
4501
4587
  // WBTC_OPTIMISM
4502
- ], Oe = {
4588
+ ], Le = {
4503
4589
  DEPOSIT: "deposit",
4504
4590
  DEPOSIT_CUSTOM: "depositWithCustomCooldown",
4505
4591
  NATIVE: "nativeDeposit",
@@ -4508,7 +4594,7 @@ const la = [
4508
4594
  ZAP_NATIVE_DEPOSIT_CUSTOM: "zapNativeDepositWithCustomCooldown",
4509
4595
  ZAP_DEPOSIT: "zapDeposit",
4510
4596
  ZAP_DEPOSIT_CUSTOM: "zapDepositWithCustomCooldown"
4511
- }, re = {
4597
+ }, ie = {
4512
4598
  SOL_ARBITRUM: "0x09400d9db990d5ed3f35d7be61dfaeb900af03c9",
4513
4599
  BTC_ARBITRUM: "0x47c031236e19d024b42f8ae6780e44a573170703",
4514
4600
  WETH_WETH_ARBITRUM: "0x70d95587d40a2caf56bd97485ab3eec10bee6336",
@@ -4523,21 +4609,21 @@ const la = [
4523
4609
  LINK_ARBITRUM: "0x7f1fa204bb700853d36994da19f830b6ad18455c",
4524
4610
  PUMP_ARBITRUM: "0x4c0bb704529fa49a26bd854802d70206982c6f1b"
4525
4611
  }, ml = Object.values(
4526
- re
4612
+ ie
4527
4613
  ), yl = {
4528
- [re.SOL_ARBITRUM]: ue,
4529
- [re.BTC_ARBITRUM]: He,
4530
- [re.WETH_WETH_ARBITRUM]: Pt,
4531
- [re.WETH_USDC_ARBITRUM]: Pt,
4532
- [re.SUI_ARBITRUM]: ue,
4533
- [re.DOGE_ARBITRUM]: ue,
4534
- [re.XRP_ARBITRUM]: ue,
4535
- [re.CRV_ARBITRUM]: ue,
4536
- [re.HYPE_ARBITRUM]: ue,
4537
- [re.BNB_ARBITRUM]: ue,
4538
- [re.LINK_ARBITRUM]: ue,
4539
- [re.PUMP_ARBITRUM]: ue,
4540
- [re.BNB_WBTC_USDC_ARBITRUM]: ue
4614
+ [ie.SOL_ARBITRUM]: ue,
4615
+ [ie.BTC_ARBITRUM]: He,
4616
+ [ie.WETH_WETH_ARBITRUM]: Pt,
4617
+ [ie.WETH_USDC_ARBITRUM]: Pt,
4618
+ [ie.SUI_ARBITRUM]: ue,
4619
+ [ie.DOGE_ARBITRUM]: ue,
4620
+ [ie.XRP_ARBITRUM]: ue,
4621
+ [ie.CRV_ARBITRUM]: ue,
4622
+ [ie.HYPE_ARBITRUM]: ue,
4623
+ [ie.BNB_ARBITRUM]: ue,
4624
+ [ie.LINK_ARBITRUM]: ue,
4625
+ [ie.PUMP_ARBITRUM]: ue,
4626
+ [ie.BNB_WBTC_USDC_ARBITRUM]: ue
4541
4627
  }, wl = {
4542
4628
  "0x9a916e55f5b67226734cd7b465d51bce1d11a89a": ue
4543
4629
  // USDmny Arbitrum
@@ -4545,25 +4631,25 @@ const la = [
4545
4631
  IS_BATCH_TRANSACTIONS_ENABLED: "isBatchTransactionsEnabled",
4546
4632
  REFERRER: "referrer",
4547
4633
  REF_POOL: "ref_pool"
4548
- }, V = (t, e) => t?.toLowerCase() === e?.toLowerCase(), oe = (t) => V(t, Nn), z = (t, e) => Hi[e]?.[t] ?? D, hl = (t) => Gi[t], gl = (t) => t && `${t.substring(0, 6)}...${t.substring(
4634
+ }, H = (t, e) => t?.toLowerCase() === e?.toLowerCase(), se = (t) => H(t, Nn), V = (t, e) => Hi[e]?.[t] ?? D, hl = (t) => Gi[t], gl = (t) => t && `${t.substring(0, 6)}...${t.substring(
4549
4635
  t.length - 4,
4550
4636
  t.length
4551
4637
  )}`, pa = ({
4552
4638
  address: t,
4553
4639
  chainId: e
4554
4640
  }) => {
4555
- const n = z(
4641
+ const n = V(
4556
4642
  "aaveLendingPoolV3",
4557
4643
  e
4558
4644
  );
4559
- return V(t, n);
4560
- }, Oo = ({
4645
+ return H(t, n);
4646
+ }, Lo = ({
4561
4647
  sourceAddress: t,
4562
4648
  amount: e
4563
4649
  }) => `${t}_${e}`, Po = (t, e) => {
4564
4650
  const n = t.slice(0, e), a = t.slice(e);
4565
4651
  return { firstPart: n, secondPart: a };
4566
- }, $t = (t, e) => t / e * 100, Rt = (t) => t < 1 ? 4 : t < 10 ? 3 : 2, wn = (t, e = O) => new b(t.toString()).shiftedBy(e).toFixed(0), ua = (t, e, n, a) => new b(e).dividedBy(n).multipliedBy(t).shiftedBy(-(a || O)).toNumber(), Ln = (t) => {
4652
+ }, $t = (t, e) => t / e * 100, Rt = (t) => t < 1 ? 4 : t < 10 ? 3 : 2, wn = (t, e = L) => new b(t.toString()).shiftedBy(e).toFixed(0), ua = (t, e, n, a) => new b(e).dividedBy(n).multipliedBy(t).shiftedBy(-(a || L)).toNumber(), On = (t) => {
4567
4653
  const e = new b(0.01), n = new b(t), a = !n.isZero() && n.lt(e) ? e : n;
4568
4654
  return BigInt(a.multipliedBy(100).toFixed(0));
4569
4655
  }, Tl = ({
@@ -4622,7 +4708,7 @@ const la = [
4622
4708
  slippageTolerance: BigInt(0)
4623
4709
  };
4624
4710
  const { srcData: o, dstData: s } = n, i = o.map(({ asset: c, amount: p }) => {
4625
- const m = e?.[Oo({
4711
+ const m = e?.[Lo({
4626
4712
  sourceAddress: c,
4627
4713
  amount: p.toString()
4628
4714
  })];
@@ -4652,7 +4738,7 @@ const la = [
4652
4738
  withdrawData: d,
4653
4739
  slippageTolerance: a
4654
4740
  };
4655
- }, On = (t, e) => ct[e]?.nativeTokenSymbol === t, vl = ({
4741
+ }, Ln = (t, e) => ct[e]?.nativeTokenSymbol === t, vl = ({
4656
4742
  nativeTokenBalance: t,
4657
4743
  tokenDecimals: e,
4658
4744
  gasPrice: n
@@ -4661,7 +4747,7 @@ const la = [
4661
4747
  a
4662
4748
  );
4663
4749
  return o.gt("0") ? o : new b("0");
4664
- }, Ro = (t) => vi.includes(t), Ky = (t) => {
4750
+ }, Ro = (t) => vi.includes(t), uw = (t) => {
4665
4751
  const e = Object.values(t).reduce(
4666
4752
  (n, { type: a }) => (n[a] = n[a] + 1, n),
4667
4753
  { string: 0, number: 0 }
@@ -4691,7 +4777,7 @@ const la = [
4691
4777
  title: "Transaction failed",
4692
4778
  hint: `${Al(o ?? "")} ${n ? `: ${n}` : ""}`
4693
4779
  };
4694
- }, Sl = (t) => typeof t == "bigint" && t !== BigInt(0), qe = (t, e = de) => new b(t).shiftedBy(-e).toNumber(), Mo = (t) => !isNaN(parseFloat(t)) && !isNaN(t), se = ({
4780
+ }, Sl = (t) => typeof t == "bigint" && t !== BigInt(0), qe = (t, e = F) => new b(t).shiftedBy(-e).toNumber(), Mo = (t) => !isNaN(parseFloat(t)) && !isNaN(t), re = ({
4695
4781
  value: t,
4696
4782
  minimumFractionDigits: e = 2,
4697
4783
  maximumFractionDigits: n = 2,
@@ -4710,7 +4796,7 @@ const la = [
4710
4796
  const n = new b(t);
4711
4797
  if (n.isGreaterThan(1) || n.isZero())
4712
4798
  return wa(n.toFixed(e));
4713
- const o = (/e/i.test(t.toString()) ? parseFloat(t.toString()).toFixed(de) : t.toString()).match(/^0\.(0+)(\d+)$/);
4799
+ const o = (/e/i.test(t.toString()) ? parseFloat(t.toString()).toFixed(F) : t.toString()).match(/^0\.(0+)(\d+)$/);
4714
4800
  if (o) {
4715
4801
  const [, s, i] = o;
4716
4802
  if (s.length >= e && s.length < ha.length)
@@ -4723,7 +4809,7 @@ const la = [
4723
4809
  }, tn = ({
4724
4810
  currency: t,
4725
4811
  value: e
4726
- }) => t === "USD" ? se({ value: e }) : `${bi[t]} ${Be({
4812
+ }) => t === "USD" ? re({ value: e }) : `${bi[t]} ${Be({
4727
4813
  value: e,
4728
4814
  decimals: fi[t]
4729
4815
  })}`, Dl = (t, e) => new b(
@@ -4738,13 +4824,13 @@ const la = [
4738
4824
  symbol: e,
4739
4825
  precision: n,
4740
4826
  truncateSymbol: a
4741
- }) => `${Dl(t, n)} ${El(e)}`, Pn = typeof window < "u", Fo = (t) => V(_i, t) || V(ki, t), Uo = (t) => pl.some(
4742
- (e) => V(e, t)
4827
+ }) => `${Dl(t, n)} ${El(e)}`, Pn = typeof window < "u", Fo = (t) => H(_i, t) || H(ki, t), Uo = (t) => pl.some(
4828
+ (e) => H(e, t)
4743
4829
  ), $o = (t) => ul[t.toLowerCase()] ?? {
4744
4830
  symbol: "",
4745
4831
  decimals: 18,
4746
4832
  address: D
4747
- }, Il = (t) => V(t, ko) ? cl : dl, zo = (t) => `eth_${t}`, Cl = ({
4833
+ }, Il = (t) => H(t, ko) ? cl : dl, zo = (t) => `eth_${t}`, Cl = ({
4748
4834
  action: t,
4749
4835
  log: e,
4750
4836
  symbol: n,
@@ -4759,12 +4845,12 @@ const la = [
4759
4845
  Ai[t].forEach((i) => {
4760
4846
  e?.(i, s);
4761
4847
  });
4762
- }, Nl = (t) => ml.some((e) => V(e, t)), _l = (t) => yl[t.toLowerCase()] ?? {
4848
+ }, Nl = (t) => ml.some((e) => H(e, t)), _l = (t) => yl[t.toLowerCase()] ?? {
4763
4849
  symbol: "",
4764
4850
  decimals: 18,
4765
4851
  address: D
4766
4852
  }, kl = (t) => wl[t.toLowerCase()];
4767
- function Ll() {
4853
+ function Ol() {
4768
4854
  if (Pn)
4769
4855
  try {
4770
4856
  const t = localStorage.getItem(
@@ -4775,7 +4861,7 @@ function Ll() {
4775
4861
  return;
4776
4862
  }
4777
4863
  }
4778
- function Ol(t) {
4864
+ function Ll(t) {
4779
4865
  if (Pn)
4780
4866
  try {
4781
4867
  localStorage.setItem(
@@ -4786,18 +4872,18 @@ function Ol(t) {
4786
4872
  console.error("[core-kit]: Failed to persist batch transactions setting", e);
4787
4873
  }
4788
4874
  }
4789
- function te() {
4875
+ function ne() {
4790
4876
  }
4791
4877
  const ga = {
4792
4878
  address: D,
4793
4879
  symbol: "",
4794
- decimals: O,
4880
+ decimals: L,
4795
4881
  value: ""
4796
4882
  }, Vo = (t) => {
4797
4883
  const e = t?.poolAddress ?? D, n = {
4798
4884
  address: e,
4799
4885
  symbol: t?.poolConfigMap?.[e]?.symbol ?? "",
4800
- decimals: O,
4886
+ decimals: L,
4801
4887
  value: ""
4802
4888
  }, a = t?.type ?? "deposit", o = a === "deposit" ? ga : n, s = a === "deposit" ? n : ga;
4803
4889
  return {
@@ -4812,7 +4898,7 @@ const ga = {
4812
4898
  isMaxSlippageLoading: !1,
4813
4899
  availableAggregators: [],
4814
4900
  ...t?.settings,
4815
- isBatchTransactionsEnabled: Ll() ?? t?.settings?.isBatchTransactionsEnabled ?? !1,
4901
+ isBatchTransactionsEnabled: Ol() ?? t?.settings?.isBatchTransactionsEnabled ?? !1,
4816
4902
  selectedAggregators: t?.settings?.selectedAggregators ?? t?.settings?.availableAggregators ?? []
4817
4903
  },
4818
4904
  type: a,
@@ -4844,26 +4930,26 @@ const ga = {
4844
4930
  poolConfigMap: {}
4845
4931
  })
4846
4932
  }), Go = Ae({
4847
- setPoolAddress: te,
4848
- setTradingType: te,
4849
- updateSendTokenInput: te,
4850
- updateReceiveTokenInput: te,
4851
- updateTradingSettings: te,
4852
- updateTradingModal: te,
4853
- updateTransactions: te,
4854
- updatePoolFallbackData: te,
4855
- updateCustomDepositTokensPerChain: te,
4856
- onTradingSettleError: te,
4857
- onTransactionError: te,
4858
- onTransactionSuccess: te,
4859
- onTransactionEstimationError: te,
4860
- onTokenSelector: te,
4861
- onLog: te,
4933
+ setPoolAddress: ne,
4934
+ setTradingType: ne,
4935
+ updateSendTokenInput: ne,
4936
+ updateReceiveTokenInput: ne,
4937
+ updateTradingSettings: ne,
4938
+ updateTradingModal: ne,
4939
+ updateTransactions: ne,
4940
+ updatePoolFallbackData: ne,
4941
+ updateCustomDepositTokensPerChain: ne,
4942
+ onTradingSettleError: ne,
4943
+ onTransactionError: ne,
4944
+ onTransactionSuccess: ne,
4945
+ onTransactionEstimationError: ne,
4946
+ onTokenSelector: ne,
4947
+ onLog: ne,
4862
4948
  onSimulateTransaction: () => Promise.resolve(null),
4863
4949
  getSwapData: () => Promise.resolve(null),
4864
4950
  getSwapQuotes: () => Promise.resolve(null),
4865
- updatePoolConfig: te,
4866
- addPoolConfig: te
4951
+ updatePoolConfig: ne,
4952
+ addPoolConfig: ne
4867
4953
  }), Pl = (t) => (e, n) => {
4868
4954
  switch (n.type) {
4869
4955
  case "SET_POOL_ADDRESS":
@@ -4998,7 +5084,7 @@ const ga = {
4998
5084
  default:
4999
5085
  return e;
5000
5086
  }
5001
- }, Qy = ({
5087
+ }, mw = ({
5002
5088
  children: t,
5003
5089
  initialState: e,
5004
5090
  actions: {
@@ -5020,10 +5106,10 @@ const ga = {
5020
5106
  getSwapQuotes: E
5021
5107
  }
5022
5108
  }) => {
5023
- const [$, C] = vn(
5109
+ const [z, C] = vn(
5024
5110
  Pl(w),
5025
5111
  Vo(e)
5026
- ), ee = T(
5112
+ ), te = T(
5027
5113
  (B) => {
5028
5114
  C({ type: "SET_POOL_ADDRESS", payload: B }), n?.(B);
5029
5115
  },
@@ -5074,7 +5160,7 @@ const ga = {
5074
5160
  C({ type: "ADD_POOL_CONFIG", payload: B });
5075
5161
  }, []), hr = I(
5076
5162
  () => ({
5077
- setPoolAddress: ee,
5163
+ setPoolAddress: te,
5078
5164
  setTradingType: It,
5079
5165
  updateTradingSettings: Et,
5080
5166
  updateSendTokenInput: be,
@@ -5096,7 +5182,7 @@ const ga = {
5096
5182
  addPoolConfig: ra
5097
5183
  }),
5098
5184
  [
5099
- ee,
5185
+ te,
5100
5186
  It,
5101
5187
  Et,
5102
5188
  be,
@@ -5118,11 +5204,11 @@ const ga = {
5118
5204
  ra
5119
5205
  ]
5120
5206
  );
5121
- return /* @__PURE__ */ r(Go.Provider, { value: hr, children: /* @__PURE__ */ r(Ho.Provider, { value: $, children: t }) });
5122
- }, ae = () => Se(Ho), F = () => Se(Go), Xy = () => F().setPoolAddress, Zy = () => F().updateSendTokenInput, Jy = () => F().updateReceiveTokenInput, ew = () => F().updateTradingSettings, tw = () => F().setTradingType, nw = () => F().updateTradingModal, Rl = () => F().updatePoolFallbackData, Bl = () => F().onTransactionError, qo = () => F().onTradingSettleError, Ml = () => F().onTransactionSuccess, Rn = () => F().onTransactionEstimationError, Wl = () => F().onTokenSelector, Ze = () => F().onLog, Fl = () => F().onSimulateTransaction, Yo = () => {
5123
- const t = F().getSwapData, {
5207
+ return /* @__PURE__ */ r(Go.Provider, { value: hr, children: /* @__PURE__ */ r(Ho.Provider, { value: z, children: t }) });
5208
+ }, oe = () => Se(Ho), U = () => Se(Go), yw = () => U().setPoolAddress, ww = () => U().updateSendTokenInput, hw = () => U().updateReceiveTokenInput, gw = () => U().updateTradingSettings, Tw = () => U().setTradingType, bw = () => U().updateTradingModal, Rl = () => U().updatePoolFallbackData, Bl = () => U().onTransactionError, qo = () => U().onTradingSettleError, Ml = () => U().onTransactionSuccess, Rn = () => U().onTransactionEstimationError, Wl = () => U().onTokenSelector, Ze = () => U().onLog, Fl = () => U().onSimulateTransaction, Yo = () => {
5209
+ const t = U().getSwapData, {
5124
5210
  settings: { selectedAggregators: e }
5125
- } = ae();
5211
+ } = oe();
5126
5212
  return T(
5127
5213
  ({
5128
5214
  signal: n,
@@ -5139,9 +5225,9 @@ const ga = {
5139
5225
  [t, e]
5140
5226
  );
5141
5227
  }, Ul = () => {
5142
- const t = F().getSwapQuotes, {
5228
+ const t = U().getSwapQuotes, {
5143
5229
  settings: { selectedAggregators: e }
5144
- } = ae();
5230
+ } = oe();
5145
5231
  return T(
5146
5232
  ({
5147
5233
  signal: n,
@@ -5157,43 +5243,43 @@ const ga = {
5157
5243
  }),
5158
5244
  [t, e]
5159
5245
  );
5160
- }, aw = () => F().updatePoolConfig, ow = () => F().addPoolConfig, sw = () => F().updateCustomDepositTokensPerChain, $l = () => [
5161
- ae().poolAddress,
5162
- F().setPoolAddress
5246
+ }, fw = () => U().updatePoolConfig, vw = () => U().addPoolConfig, Aw = () => U().updateCustomDepositTokensPerChain, $l = () => [
5247
+ oe().poolAddress,
5248
+ U().setPoolAddress
5163
5249
  ], v = () => {
5164
- const { poolAddress: t, poolConfigMap: e } = ae();
5250
+ const { poolAddress: t, poolConfigMap: e } = oe();
5165
5251
  return e[t] ?? li;
5166
5252
  }, wt = () => {
5167
- const { poolConfigMap: t } = ae();
5253
+ const { poolConfigMap: t } = oe();
5168
5254
  return I(() => Object.values(t), [t]);
5169
- }, rw = (t) => {
5255
+ }, Sw = (t) => {
5170
5256
  const e = wt();
5171
5257
  return I(
5172
5258
  () => e.some((n) => n.address === t),
5173
5259
  [e, t]
5174
5260
  );
5175
5261
  }, Je = () => {
5176
- const { poolFallbackData: t, poolAddress: e } = ae(), n = Rl();
5262
+ const { poolFallbackData: t, poolAddress: e } = oe(), n = Rl();
5177
5263
  return [
5178
5264
  t.address === e ? t : { address: e },
5179
5265
  n
5180
5266
  ];
5181
- }, jo = () => ae().input, N = () => [
5267
+ }, jo = () => oe().input, N = () => [
5182
5268
  jo().sendToken,
5183
- F().updateSendTokenInput
5269
+ U().updateSendTokenInput
5184
5270
  ], P = () => [
5185
5271
  jo().receiveToken,
5186
- F().updateReceiveTokenInput
5187
- ], Y = () => [
5188
- ae().settings,
5189
- F().updateTradingSettings
5272
+ U().updateReceiveTokenInput
5273
+ ], j = () => [
5274
+ oe().settings,
5275
+ U().updateTradingSettings
5190
5276
  ], zl = () => [
5191
- ae().customDepositTokensPerChain,
5192
- F().updateCustomDepositTokensPerChain
5193
- ], J = () => [ae().modal, F().updateTradingModal], xe = () => [ae().type, F().setTradingType], et = () => ae().type === "deposit", ce = () => [
5194
- ae().transactions,
5195
- F().updateTransactions
5196
- ], Vl = () => ae().defaultChainId, nn = (t, e) => e.some(({ id: n }) => n === t), Me = () => {
5277
+ oe().customDepositTokensPerChain,
5278
+ U().updateCustomDepositTokensPerChain
5279
+ ], ee = () => [oe().modal, U().updateTradingModal], xe = () => [oe().type, U().setTradingType], et = () => oe().type === "deposit", ce = () => [
5280
+ oe().transactions,
5281
+ U().updateTransactions
5282
+ ], Vl = () => oe().defaultChainId, nn = (t, e) => e.some(({ id: n }) => n === t), Me = () => {
5197
5283
  const { chain: t } = Va(), { chains: e } = Cr(), { switchChain: n, switchChainAsync: a } = Nr(), o = Vl(), s = t?.id, i = nn(s, e), l = o && nn(o, e) ? o : e[0].id;
5198
5284
  return {
5199
5285
  chain: t,
@@ -5220,8 +5306,8 @@ const ga = {
5220
5306
  enabled: !o,
5221
5307
  refetchInterval: yt
5222
5308
  }
5223
- }), iw = () => {
5224
- const { account: t } = R(), [e, n] = ne(!1);
5309
+ }), xw = () => {
5310
+ const { account: t } = R(), [e, n] = ae(!1);
5225
5311
  return k(() => {
5226
5312
  n(!!t);
5227
5313
  }, [t]), e;
@@ -5277,27 +5363,27 @@ const jl = async () => {
5277
5363
  contractId: n,
5278
5364
  onSettled: a
5279
5365
  }) => {
5280
- const { account: o } = R(), { chainId: s, supportedChainId: i } = Me(), l = kr({ chainId: s }), d = fn({ chainId: s }), c = hl(n), p = e ?? z(n, s ?? i), m = Fl(), { writeContract: y } = Lr({
5366
+ const { account: o } = R(), { chainId: s, supportedChainId: i } = Me(), l = kr({ chainId: s }), d = fn({ chainId: s }), c = hl(n), p = e ?? V(n, s ?? i), m = Fl(), { writeContract: y } = Or({
5281
5367
  mutation: {
5282
5368
  onSettled: a
5283
5369
  }
5284
5370
  }), w = T(
5285
5371
  async (...A) => {
5286
5372
  try {
5287
- const { argumentsWithoutOverrides: E, transactionOverrides: $ } = an(A), C = await d?.estimateContractGas({
5373
+ const { argumentsWithoutOverrides: E, transactionOverrides: z } = an(A), C = await d?.estimateContractGas({
5288
5374
  address: p,
5289
5375
  abi: c,
5290
5376
  functionName: t,
5291
5377
  args: E,
5292
5378
  account: o ?? D,
5293
- gas: $.gas,
5294
- value: $.value
5379
+ gas: z.gas,
5380
+ value: z.value
5295
5381
  });
5296
5382
  if (!C || !s || C === BigInt(0))
5297
5383
  return { error: da, value: BigInt(0) };
5298
- const ee = Math.round(
5384
+ const te = Math.round(
5299
5385
  Number(C) * hi
5300
- ), be = Jt[s] ?? ee, Ie = BigInt(Math.min(be, ee));
5386
+ ), be = Jt[s] ?? te, Ie = BigInt(Math.min(be, te));
5301
5387
  return console.debug(
5302
5388
  `[core-ui-kit]: estimated gas limit: ${Number(C)}`
5303
5389
  ), { error: "", value: Ie };
@@ -5323,21 +5409,21 @@ const jl = async () => {
5323
5409
  return { data: null, error: ca };
5324
5410
  if (!d)
5325
5411
  return { data: null, error: "Client is not defined" };
5326
- const { argumentsWithoutOverrides: E, transactionOverrides: $ } = an(A), C = Ya({
5412
+ const { argumentsWithoutOverrides: E, transactionOverrides: z } = an(A), C = Ya({
5327
5413
  abi: c,
5328
5414
  functionName: t,
5329
5415
  args: E
5330
5416
  });
5331
5417
  if (o && C) {
5332
- const ee = await m({
5418
+ const te = await m({
5333
5419
  chainId: s ?? i,
5334
5420
  from: o,
5335
5421
  to: p,
5336
5422
  input: C,
5337
5423
  gas: Jt[s ?? i] ?? 0,
5338
- value: $.value?.toString()
5424
+ value: z.value?.toString()
5339
5425
  });
5340
- return { data: ee, error: ee?.simulation.error_message };
5426
+ return { data: te, error: te?.simulation.error_message };
5341
5427
  }
5342
5428
  return { data: null, error: ca };
5343
5429
  } catch (E) {
@@ -5356,18 +5442,18 @@ const jl = async () => {
5356
5442
  ]
5357
5443
  ), g = T(
5358
5444
  async (...A) => {
5359
- const { argumentsWithoutOverrides: E, transactionOverrides: $ } = an(A);
5360
- if ($.gas)
5445
+ const { argumentsWithoutOverrides: E, transactionOverrides: z } = an(A);
5446
+ if (z.gas)
5361
5447
  return y({
5362
5448
  address: p,
5363
5449
  abi: c,
5364
5450
  functionName: t,
5365
5451
  chainId: s,
5366
5452
  args: E,
5367
- ...$
5453
+ ...z
5368
5454
  });
5369
- const { value: C, error: ee } = await w(...A);
5370
- if (ee) {
5455
+ const { value: C, error: te } = await w(...A);
5456
+ if (te) {
5371
5457
  const { data: be } = await Promise.race([
5372
5458
  h(...A),
5373
5459
  new Promise(
@@ -5378,7 +5464,7 @@ const jl = async () => {
5378
5464
  )
5379
5465
  ]);
5380
5466
  throw new ht({
5381
- message: ee,
5467
+ message: te,
5382
5468
  link: be?.link,
5383
5469
  txArgs: A,
5384
5470
  account: o,
@@ -5390,7 +5476,7 @@ const jl = async () => {
5390
5476
  account: o,
5391
5477
  chainId: s,
5392
5478
  args: E,
5393
- ...$,
5479
+ ...z,
5394
5480
  gas: BigInt(Jt[s ?? i] ?? 0)
5395
5481
  })
5396
5482
  });
@@ -5401,7 +5487,7 @@ const jl = async () => {
5401
5487
  functionName: t,
5402
5488
  chainId: s,
5403
5489
  args: E,
5404
- ...$,
5490
+ ...z,
5405
5491
  gas: C
5406
5492
  });
5407
5493
  },
@@ -5422,7 +5508,7 @@ const jl = async () => {
5422
5508
  send: s && d ? g : jl,
5423
5509
  estimate: w
5424
5510
  };
5425
- }, Kl = (t) => Or({
5511
+ }, Kl = (t) => Lr({
5426
5512
  ...t,
5427
5513
  query: {
5428
5514
  ...t?.query,
@@ -5452,7 +5538,7 @@ const jl = async () => {
5452
5538
  abi: n,
5453
5539
  functionName: t,
5454
5540
  args: a
5455
- }))?.result, lw = ({
5541
+ }))?.result, Dw = ({
5456
5542
  disabled: t,
5457
5543
  functionName: e,
5458
5544
  address: n,
@@ -5474,7 +5560,7 @@ const jl = async () => {
5474
5560
  publicClient: l
5475
5561
  });
5476
5562
  },
5477
- enabled: !t && !!s && !oe(n) && !!e,
5563
+ enabled: !t && !!s && !se(n) && !!e,
5478
5564
  refetchInterval: i
5479
5565
  });
5480
5566
  }, hn = ({
@@ -5586,7 +5672,7 @@ const jl = async () => {
5586
5672
  address: e,
5587
5673
  watch: n = !1
5588
5674
  }) => {
5589
- const { account: a } = R(), o = v(), s = On(t, o.chainId), { data: i } = Kl({
5675
+ const { account: a } = R(), o = v(), s = Ln(t, o.chainId), { data: i } = Kl({
5590
5676
  chainId: o.chainId,
5591
5677
  query: {
5592
5678
  enabled: s
@@ -5597,7 +5683,7 @@ const jl = async () => {
5597
5683
  query: {
5598
5684
  enabled: s && !!a
5599
5685
  }
5600
- }), { data: c, queryKey: p } = le({
5686
+ }), { data: c, queryKey: p } = de({
5601
5687
  contracts: [
5602
5688
  {
5603
5689
  address: e,
@@ -5626,27 +5712,27 @@ const jl = async () => {
5626
5712
  }), s ? vl({
5627
5713
  nativeTokenBalance: fe(
5628
5714
  l?.value ?? BigInt(0),
5629
- l?.decimals ?? O
5715
+ l?.decimals ?? L
5630
5716
  ),
5631
5717
  gasPrice: Number(i?.maxFeePerGas ?? 0),
5632
- tokenDecimals: l?.decimals ?? O
5718
+ tokenDecimals: l?.decimals ?? L
5633
5719
  }).toString() : fe(
5634
5720
  c?.[0]?.result ?? BigInt(0),
5635
- c?.[1]?.result ?? O
5721
+ c?.[1]?.result ?? L
5636
5722
  );
5637
5723
  }, Vt = () => {
5638
5724
  const [{ value: t, symbol: e, address: n }] = N(), a = De({ symbol: e, address: n });
5639
5725
  return new b(t || 0).gt(a ?? 0);
5640
5726
  }, nd = ({ address: t, chainId: e }) => [
5641
5727
  {
5642
- address: z("factory", e),
5728
+ address: V("factory", e),
5643
5729
  abi: Xe,
5644
5730
  functionName: "isPool",
5645
5731
  chainId: e,
5646
5732
  args: [t]
5647
5733
  },
5648
5734
  {
5649
- address: z("easySwapperV2", e),
5735
+ address: V("easySwapperV2", e),
5650
5736
  abi: ve,
5651
5737
  functionName: "withdrawalContracts",
5652
5738
  args: [t]
@@ -5657,10 +5743,10 @@ const jl = async () => {
5657
5743
  }), od = ({
5658
5744
  address: t,
5659
5745
  chainId: e
5660
- }) => le({
5746
+ }) => de({
5661
5747
  contracts: nd({ address: t, chainId: e }),
5662
5748
  query: {
5663
- enabled: !oe(t),
5749
+ enabled: !se(t),
5664
5750
  select: ad
5665
5751
  }
5666
5752
  }), Ht = () => {
@@ -5677,35 +5763,35 @@ const jl = async () => {
5677
5763
  chainId: e
5678
5764
  },
5679
5765
  {
5680
- address: z("easySwapperV2", e),
5766
+ address: V("easySwapperV2", e),
5681
5767
  abi: ve,
5682
5768
  functionName: "customCooldownDepositsWhitelist",
5683
5769
  args: [t],
5684
5770
  chainId: e
5685
5771
  },
5686
5772
  {
5687
- address: z("easySwapperV2", e),
5773
+ address: V("easySwapperV2", e),
5688
5774
  abi: ve,
5689
5775
  functionName: "customCooldown",
5690
5776
  args: [],
5691
5777
  chainId: e
5692
5778
  },
5693
5779
  {
5694
- address: z("factory", e),
5780
+ address: V("factory", e),
5695
5781
  chainId: e,
5696
5782
  abi: Xe,
5697
5783
  functionName: "getAssetGuard",
5698
- args: [z("aaveLendingPoolV3", e)]
5784
+ args: [V("aaveLendingPoolV3", e)]
5699
5785
  }
5700
5786
  ], rd = (t) => ({
5701
5787
  poolManagerLogic: t[0].result,
5702
5788
  isCustomCooldownDepositAllowed: t[1].result,
5703
5789
  customCooldown: t[2].result,
5704
5790
  aaveAssetGuardAddress: t[3].result
5705
- }), Gt = ({ address: t, chainId: e }) => le({
5791
+ }), Gt = ({ address: t, chainId: e }) => de({
5706
5792
  contracts: sd({ address: t, chainId: e }),
5707
5793
  query: {
5708
- enabled: !!t && !oe(t),
5794
+ enabled: !!t && !se(t),
5709
5795
  staleTime: 1 / 0,
5710
5796
  select: rd
5711
5797
  }
@@ -5758,14 +5844,14 @@ const jl = async () => {
5758
5844
  address: t,
5759
5845
  chainId: e
5760
5846
  }) => {
5761
- const n = es({ address: t, chainId: e }), { account: a = D } = R(), o = le({
5847
+ const n = es({ address: t, chainId: e }), { account: a = D } = R(), o = de({
5762
5848
  contracts: id({
5763
5849
  address: n ?? D,
5764
5850
  chainId: e,
5765
5851
  account: a
5766
5852
  }),
5767
5853
  query: {
5768
- enabled: !!n && !oe(n),
5854
+ enabled: !!n && !se(n),
5769
5855
  staleTime: 1 / 0,
5770
5856
  select: ld
5771
5857
  }
@@ -5795,13 +5881,13 @@ const jl = async () => {
5795
5881
  chainId: e
5796
5882
  }) => {
5797
5883
  const n = es({ address: t, chainId: e });
5798
- return le({
5884
+ return de({
5799
5885
  contracts: dd({
5800
5886
  address: n ?? D,
5801
5887
  chainId: e
5802
5888
  }),
5803
5889
  query: {
5804
- enabled: !!n && !oe(n),
5890
+ enabled: !!n && !se(n),
5805
5891
  select: cd,
5806
5892
  refetchInterval: yt
5807
5893
  }
@@ -5827,13 +5913,13 @@ const jl = async () => {
5827
5913
  }
5828
5914
  ], pd = (t) => t.flatMap(ts), ud = ts({
5829
5915
  account: D,
5830
- chainId: q.id,
5916
+ chainId: Y.id,
5831
5917
  address: D
5832
5918
  }).length, md = ({
5833
5919
  account: t
5834
5920
  }) => {
5835
5921
  const { chainId: e } = Me(), n = wt();
5836
- return le({
5922
+ return de({
5837
5923
  contracts: pd(n.map((a) => ({ ...a, account: t }))),
5838
5924
  query: {
5839
5925
  select: (a) => Qa(a, ud).reduce(
@@ -5854,7 +5940,7 @@ const jl = async () => {
5854
5940
  return a;
5855
5941
  },
5856
5942
  refetchInterval: yt,
5857
- enabled: !oe(t)
5943
+ enabled: !se(t)
5858
5944
  }
5859
5945
  });
5860
5946
  }, yd = ({ chainId: t, address: e }) => [
@@ -5889,10 +5975,10 @@ const jl = async () => {
5889
5975
  chainId: e,
5890
5976
  refetchInterval: n,
5891
5977
  enabled: a = !0
5892
- }) => le({
5978
+ }) => de({
5893
5979
  contracts: yd({ address: t, chainId: e }),
5894
5980
  query: {
5895
- enabled: a && !!t && !oe(t),
5981
+ enabled: a && !!t && !se(t),
5896
5982
  refetchInterval: n,
5897
5983
  select: wd
5898
5984
  }
@@ -5904,7 +5990,7 @@ const jl = async () => {
5904
5990
  address: t,
5905
5991
  chainId: e
5906
5992
  });
5907
- return n ? o || V(n, a) : !1;
5993
+ return n ? o || H(n, a) : !1;
5908
5994
  }, gd = ({
5909
5995
  address: t,
5910
5996
  chainId: e
@@ -5926,7 +6012,7 @@ const jl = async () => {
5926
6012
  } = Yt({ address: t, chainId: e }), d = I(
5927
6013
  () => o?.map(({ asset: p }) => p) ?? [],
5928
6014
  [o]
5929
- ), { data: c } = le({
6015
+ ), { data: c } = de({
5930
6016
  contracts: d.flatMap((p) => [
5931
6017
  {
5932
6018
  address: p,
@@ -5960,7 +6046,7 @@ const jl = async () => {
5960
6046
  rate: i?.[w]?.toString() ?? "0",
5961
6047
  amount: s?.[w]?.toString() ?? "0",
5962
6048
  tokenName: E,
5963
- precision: A?.result ? Number(A.result) : a?.[h]?.precision ?? O,
6049
+ precision: A?.result ? Number(A.result) : a?.[h]?.precision ?? L,
5964
6050
  asset: {
5965
6051
  iconSymbols: a?.[h]?.asset.iconSymbols ?? [
5966
6052
  E
@@ -5988,7 +6074,7 @@ const jl = async () => {
5988
6074
  const { data: { getFeeIncreaseInfo: n, minDepositUSD: a } = {} } = qt({ address: t, chainId: e });
5989
6075
  return {
5990
6076
  ...Td(n),
5991
- minDepositUSD: +fe(a ?? BigInt(0), O)
6077
+ minDepositUSD: +fe(a ?? BigInt(0), L)
5992
6078
  };
5993
6079
  }, bd = ({
5994
6080
  composition: t,
@@ -6021,7 +6107,7 @@ const jl = async () => {
6021
6107
  return {
6022
6108
  ...a,
6023
6109
  fraction: o.toFixed(Rt(o)),
6024
- fractionUsd: se({ value: s }),
6110
+ fractionUsd: re({ value: s }),
6025
6111
  fractionUsdNumber: s
6026
6112
  };
6027
6113
  }).filter(({ amount: a }) => a !== "0").sort((a, o) => o.fractionUsdNumber - a.fractionUsdNumber), fd = ({
@@ -6049,7 +6135,7 @@ const jl = async () => {
6049
6135
  BigInt(o?.tokenPrice ?? a?.tokenPrice ?? "0")
6050
6136
  );
6051
6137
  }, Vn = ({ address: t, chainId: e }) => {
6052
- const [n] = Je(), a = V(n.address, t) ? n : null, {
6138
+ const [n] = Je(), a = H(n.address, t) ? n : null, {
6053
6139
  data: {
6054
6140
  performanceFee: o,
6055
6141
  streamingFee: s,
@@ -6091,8 +6177,8 @@ const jl = async () => {
6091
6177
  chainId: e
6092
6178
  });
6093
6179
  hn({ queryKey: n });
6094
- }, _t = K.id, Ad = (t) => {
6095
- const e = z(
6180
+ }, _t = Q.id, Ad = (t) => {
6181
+ const e = V(
6096
6182
  "flatcoinPointsModule",
6097
6183
  _t
6098
6184
  );
@@ -6100,21 +6186,21 @@ const jl = async () => {
6100
6186
  {
6101
6187
  address: e,
6102
6188
  chainId: _t,
6103
- abi: Lt,
6189
+ abi: Ot,
6104
6190
  functionName: "lockedBalance",
6105
6191
  args: [t]
6106
6192
  },
6107
6193
  {
6108
6194
  address: e,
6109
6195
  chainId: _t,
6110
- abi: Lt,
6196
+ abi: Ot,
6111
6197
  functionName: "getUnlockTax",
6112
6198
  args: [t]
6113
6199
  },
6114
6200
  {
6115
6201
  address: e,
6116
6202
  chainId: _t,
6117
- abi: Lt,
6203
+ abi: Ot,
6118
6204
  functionName: "unlockTime",
6119
6205
  args: [t]
6120
6206
  }
@@ -6122,7 +6208,7 @@ const jl = async () => {
6122
6208
  }, Sd = ({
6123
6209
  enabled: t,
6124
6210
  address: e
6125
- }) => le({
6211
+ }) => de({
6126
6212
  contracts: Ad(e),
6127
6213
  query: {
6128
6214
  enabled: t,
@@ -6135,15 +6221,15 @@ const jl = async () => {
6135
6221
  };
6136
6222
  }
6137
6223
  }
6138
- }), xd = [...Lo], as = ({
6224
+ }), xd = [...Oo], as = ({
6139
6225
  address: t,
6140
6226
  chainId: e
6141
6227
  }) => {
6142
6228
  const n = gt({
6143
6229
  address: t,
6144
6230
  chainId: e
6145
- }), a = z("factory", e);
6146
- return le({
6231
+ }), a = V("factory", e);
6232
+ return de({
6147
6233
  contracts: n.map(({ tokenAddress: o }) => ({
6148
6234
  address: a,
6149
6235
  abi: Xe,
@@ -6153,7 +6239,7 @@ const jl = async () => {
6153
6239
  })),
6154
6240
  query: {
6155
6241
  select: (o) => n.some(({ amount: s, tokenAddress: i }, l) => (!!o[l]?.result || xd.some(
6156
- (p) => V(p, i)
6242
+ (p) => H(p, i)
6157
6243
  )) && s !== "0"),
6158
6244
  staleTime: 1 / 0
6159
6245
  }
@@ -6196,7 +6282,7 @@ function Cd(t, e, n) {
6196
6282
  };
6197
6283
  const a = +t * qe(e);
6198
6284
  return {
6199
- balanceInUsd: se({
6285
+ balanceInUsd: re({
6200
6286
  value: a,
6201
6287
  maximumFractionDigits: n
6202
6288
  }),
@@ -6205,7 +6291,7 @@ function Cd(t, e, n) {
6205
6291
  }
6206
6292
  const os = (t, e) => Sl(t) ? {
6207
6293
  rawBalance: t?.toString() ?? "",
6208
- ...Cd(fe(t, de), e?.toString())
6294
+ ...Cd(fe(t, F), e?.toString())
6209
6295
  } : {
6210
6296
  rawBalance: "",
6211
6297
  balanceInUsd: "",
@@ -6216,7 +6302,7 @@ const os = (t, e) => Sl(t) ? {
6216
6302
  const { account: e } = R(), n = t ?? e ?? D, { data: a } = md({
6217
6303
  account: n
6218
6304
  });
6219
- return I(() => oe(n) ? {} : Object.entries(a ?? {}).reduce(
6305
+ return I(() => se(n) ? {} : Object.entries(a ?? {}).reduce(
6220
6306
  (o, [s, i]) => {
6221
6307
  const l = os(
6222
6308
  BigInt(i.balance ?? "0"),
@@ -6231,7 +6317,7 @@ const os = (t, e) => Sl(t) ? {
6231
6317
  chainId: e,
6232
6318
  address: n
6233
6319
  }) => {
6234
- const { data: a, isFetched: o } = pe({ address: n, chainId: e }), { poolFallbackData: s } = ae(), i = V(s.address, n) ? s.tokenPrice ?? "0" : "0";
6320
+ const { data: a, isFetched: o } = pe({ address: n, chainId: e }), { poolFallbackData: s } = oe(), i = H(s.address, n) ? s.tokenPrice ?? "0" : "0";
6235
6321
  return _e({
6236
6322
  address: t ? n : void 0,
6237
6323
  abi: Ne,
@@ -6239,14 +6325,14 @@ const os = (t, e) => Sl(t) ? {
6239
6325
  chainId: e,
6240
6326
  args: [t],
6241
6327
  query: {
6242
- enabled: !oe(t) && o,
6328
+ enabled: !se(t) && o,
6243
6329
  select: (l) => os(
6244
6330
  l,
6245
6331
  BigInt(a?.tokenPrice ?? i)
6246
6332
  )
6247
6333
  }
6248
6334
  });
6249
- }, kd = (t) => Math.ceil(qe(t)), Ld = ({
6335
+ }, kd = (t) => Math.ceil(qe(t)), Od = ({
6250
6336
  address: t,
6251
6337
  chainId: e,
6252
6338
  select: n = kd
@@ -6266,14 +6352,14 @@ const os = (t, e) => Sl(t) ? {
6266
6352
  select: n
6267
6353
  }
6268
6354
  });
6269
- }, Od = ({
6355
+ }, Ld = ({
6270
6356
  address: t,
6271
6357
  chainId: e
6272
6358
  }) => {
6273
6359
  const { data: { maxSupplyCapD18: n } = {} } = qt({
6274
6360
  address: t,
6275
6361
  chainId: e
6276
- }), { data: { totalSupplyD18: a } = {} } = pe({ address: t, chainId: e }), o = me({ address: t, chainId: e }), { data: s = 0 } = Ld({
6362
+ }), { data: { totalSupplyD18: a } = {} } = pe({ address: t, chainId: e }), o = me({ address: t, chainId: e }), { data: s = 0 } = Od({
6277
6363
  address: t,
6278
6364
  chainId: e
6279
6365
  });
@@ -6292,7 +6378,7 @@ const os = (t, e) => Sl(t) ? {
6292
6378
  remainingSupplyCapNumber: c,
6293
6379
  remainingSupplyCapInUsd: p
6294
6380
  };
6295
- }, dw = ({
6381
+ }, Ew = ({
6296
6382
  address: t,
6297
6383
  chainId: e
6298
6384
  }) => {
@@ -6300,10 +6386,10 @@ const os = (t, e) => Sl(t) ? {
6300
6386
  address: t,
6301
6387
  chainId: e
6302
6388
  }), o = wt().find(
6303
- (i) => V(t, i.address) && i.chainId === e
6389
+ (i) => H(t, i.address) && i.chainId === e
6304
6390
  ), s = !!(o?.maintenance || o?.maintenanceDeposits);
6305
6391
  return n || s;
6306
- }, cw = (t) => pe(t), Pd = () => {
6392
+ }, Iw = (t) => pe(t), Pd = () => {
6307
6393
  const {
6308
6394
  address: t,
6309
6395
  symbol: e,
@@ -6311,7 +6397,7 @@ const os = (t, e) => Sl(t) ? {
6311
6397
  } = v(), { account: a = D } = R(), o = De({ symbol: e, address: t }), { data: { totalSupplyD18: s } = {} } = pe({
6312
6398
  address: t,
6313
6399
  chainId: n
6314
- }), l = Fo(t) && !V(a, D), {
6400
+ }), l = Fo(t) && !H(a, D), {
6315
6401
  data: { lockedVaultPointsBalance: d, unlockTaxInPercents: c, unlockTime: p } = {},
6316
6402
  isLoading: m
6317
6403
  } = Sd({
@@ -6319,7 +6405,7 @@ const os = (t, e) => Sl(t) ? {
6319
6405
  address: t
6320
6406
  });
6321
6407
  return I(() => {
6322
- const y = s ? new Re(o).shiftedBy(O).dividedBy(s) : new Re(0), w = d ? new Re(d.toString()).multipliedBy(y).shiftedBy(-18) : new Re(0), h = c ? w.multipliedBy(c.toString()).shiftedBy(-18) : new Re(0), g = p ? Number(p) * 1e3 : null;
6408
+ const y = s ? new Re(o).shiftedBy(L).dividedBy(s) : new Re(0), w = d ? new Re(d.toString()).multipliedBy(y).shiftedBy(-18) : new Re(0), h = c ? w.multipliedBy(c.toString()).shiftedBy(-18) : new Re(0), g = p ? Number(p) * 1e3 : null;
6323
6409
  return {
6324
6410
  userPortionOfLockedPointsBalance: w.toFixed(),
6325
6411
  unlockTaxAmount: h.toFixed(),
@@ -6367,23 +6453,23 @@ const ss = (t) => t ? `https://raw.githubusercontent.com/dhedge/crypto-icons/mai
6367
6453
  standalone: !0,
6368
6454
  isAllAssetsWithdrawOptionDefault: !1,
6369
6455
  chainConfig: {
6370
- [X.id]: {
6456
+ [Z.id]: {
6371
6457
  name: "Ethereum",
6372
6458
  iconPath: ""
6373
6459
  },
6374
- [Q.id]: {
6460
+ [X.id]: {
6375
6461
  name: "Arbitrum",
6376
6462
  iconPath: ""
6377
6463
  },
6378
- [q.id]: {
6464
+ [Y.id]: {
6379
6465
  name: "Optimism",
6380
6466
  iconPath: ""
6381
6467
  },
6382
- [Z.id]: {
6468
+ [J.id]: {
6383
6469
  name: "Polygon",
6384
6470
  iconPath: ""
6385
6471
  },
6386
- [K.id]: {
6472
+ [Q.id]: {
6387
6473
  name: "Base",
6388
6474
  iconPath: ""
6389
6475
  }
@@ -6435,8 +6521,8 @@ const ss = (t) => t ? `https://raw.githubusercontent.com/dhedge/crypto-icons/mai
6435
6521
  if (!t)
6436
6522
  throw new Error("ConfigContext is used out of Provider");
6437
6523
  return t;
6438
- }, U = () => ls().params, ds = () => ls().actions, Hn = () => {
6439
- const { depositQuoteDiffErrorThreshold: t } = U(), [e, n] = ne(!1), [{ slippage: a, minSlippage: o }] = Y(), s = a === "auto" ? o ?? 0 : a, l = !Vt() && s > t && !e, d = T(() => {
6524
+ }, $ = () => ls().params, ds = () => ls().actions, Hn = () => {
6525
+ const { depositQuoteDiffErrorThreshold: t } = $(), [e, n] = ae(!1), [{ slippage: a, minSlippage: o }] = j(), s = a === "auto" ? o ?? 0 : a, l = !Vt() && s > t && !e, d = T(() => {
6440
6526
  n(!0);
6441
6527
  }, []);
6442
6528
  return { requiresHighSlippageConfirm: l, confirmHighSlippage: d, slippageToBeUsed: s };
@@ -6457,14 +6543,14 @@ const ss = (t) => t ? `https://raw.githubusercontent.com/dhedge/crypto-icons/mai
6457
6543
  LIMIT_SELLS: "LIMIT_SELLS",
6458
6544
  LIMIT_ORDER_WITHDRAW: "LIMIT_ORDER_WITHDRAW"
6459
6545
  }, Tt = (t) => {
6460
- const { depositQuoteDiffErrorThreshold: e, depositQuoteDiffWarningThreshold: n } = U(), a = Math.abs(t);
6546
+ const { depositQuoteDiffErrorThreshold: e, depositQuoteDiffWarningThreshold: n } = $(), a = Math.abs(t);
6461
6547
  return a > e ? W.ERROR : a > n ? W.WARNING : W.DEFAULT;
6462
6548
  }, cs = ({
6463
6549
  tradingType: t,
6464
6550
  slippage: e,
6465
6551
  minSlippage: n
6466
6552
  }) => {
6467
- const { defaultWithdrawSlippage: a } = U();
6553
+ const { defaultWithdrawSlippage: a } = $();
6468
6554
  return e !== "auto" ? e.toString() : Zr(n) ? n.toString() : t === "deposit" ? In.toString() : a.toString();
6469
6555
  }, ps = {
6470
6556
  depositSlippageWarning: "Excludes entry fee.",
@@ -6608,7 +6694,7 @@ const ss = (t) => t ? `https://raw.githubusercontent.com/dhedge/crypto-icons/mai
6608
6694
  return e(t);
6609
6695
  }
6610
6696
  }, zd = (t = []) => {
6611
- const { getFallbackIconPath: e } = U(), [n, a] = ne([]), [o, s] = ne([]);
6697
+ const { getFallbackIconPath: e } = $(), [n, a] = ae([]), [o, s] = ae([]);
6612
6698
  return k(() => {
6613
6699
  if (t.every((l) => o.includes(l))) return;
6614
6700
  (async () => {
@@ -6646,13 +6732,13 @@ const ss = (t) => t ? `https://raw.githubusercontent.com/dhedge/crypto-icons/mai
6646
6732
  if (!t)
6647
6733
  throw new Error("OverlayStateContext is used out of Provider");
6648
6734
  return t;
6649
- }, ie = () => {
6735
+ }, le = () => {
6650
6736
  const t = Se(ws);
6651
6737
  if (!t)
6652
6738
  throw new Error("OverlayDispatchContext is used out of Provider");
6653
6739
  return t;
6654
6740
  }, ye = ({ type: t }) => {
6655
- const e = hs(), n = ie(), a = () => {
6741
+ const e = hs(), n = le(), a = () => {
6656
6742
  n({
6657
6743
  type: "MERGE_OVERLAY",
6658
6744
  payload: { type: t, isOpen: !1, isPending: !1 }
@@ -6672,7 +6758,7 @@ const ss = (t) => t ? `https://raw.githubusercontent.com/dhedge/crypto-icons/mai
6672
6758
  meta: i
6673
6759
  };
6674
6760
  }, Gd = () => {
6675
- const t = ie();
6761
+ const t = le();
6676
6762
  return () => {
6677
6763
  Object.values(M).forEach((e) => {
6678
6764
  t({
@@ -6682,7 +6768,7 @@ const ss = (t) => t ? `https://raw.githubusercontent.com/dhedge/crypto-icons/mai
6682
6768
  });
6683
6769
  };
6684
6770
  }, qd = ({ children: t }) => {
6685
- const [e, n] = Hd(), [{ isOpen: a }] = J();
6771
+ const [e, n] = Hd(), [{ isOpen: a }] = ee();
6686
6772
  return k(() => {
6687
6773
  a && !e.TRADING.isOpen && n({
6688
6774
  type: "MERGE_OVERLAY",
@@ -6695,14 +6781,14 @@ const ss = (t) => t ? `https://raw.githubusercontent.com/dhedge/crypto-icons/mai
6695
6781
  });
6696
6782
  }, [a, e.TRADING.isOpen, n]), /* @__PURE__ */ r(ws.Provider, { value: n, children: /* @__PURE__ */ r(ys.Provider, { value: e, children: t }) });
6697
6783
  }, Yd = () => {
6698
- const t = Ze(), { pricingAsset: e, symbol: n, chainId: a, address: o } = v(), { minLimitOrderValue: s } = U(), i = ie(), l = De({ symbol: n, address: o }), d = me({ address: o, chainId: a }), m = Number(l) * Number(d) >= s && !!e, y = T(() => {
6784
+ const t = Ze(), { pricingAsset: e, symbol: n, chainId: a, address: o } = v(), { minLimitOrderValue: s } = $(), i = le(), l = De({ symbol: n, address: o }), d = me({ address: o, chainId: a }), m = Number(l) * Number(d) >= s && !!e, y = T(() => {
6699
6785
  m && (i({
6700
6786
  type: "MERGE_OVERLAY",
6701
6787
  payload: {
6702
6788
  type: M.LIMIT_SELLS,
6703
6789
  isOpen: !0
6704
6790
  }
6705
- }), t?.(j.OPEN_LIMIT_SELL_VIEW, {
6791
+ }), t?.(K.OPEN_LIMIT_SELL_VIEW, {
6706
6792
  [Ce.SOURCE.NAME]: "overlay"
6707
6793
  }));
6708
6794
  }, [i, m, t]);
@@ -6710,7 +6796,7 @@ const ss = (t) => t ? `https://raw.githubusercontent.com/dhedge/crypto-icons/mai
6710
6796
  }, jd = ({ tradingType: t }) => {
6711
6797
  const e = Gn(t);
6712
6798
  return /* @__PURE__ */ r(
6713
- La,
6799
+ Oa,
6714
6800
  {
6715
6801
  className: ({ selected: n }) => S(
6716
6802
  "dtw-relative dtw-text-[length:var(--panel-tab-font-size,var(--panel-font-size-sm))] dtw-px-[var(--panel-tab-px)] dtw-py-[var(--panel-tab-py)] dtw-font-[var(--panel-tab-font-weight,var(--panel-font-weight-bold))] !dtw-leading-[var(--panel-tab-line-height,var(--panel-line-height))] dtw-outline-0",
@@ -6798,7 +6884,7 @@ const ss = (t) => t ? `https://raw.githubusercontent.com/dhedge/crypto-icons/mai
6798
6884
  buttonItemChildren: o
6799
6885
  }) => {
6800
6886
  const s = x();
6801
- return /* @__PURE__ */ r("div", { className: "dtw-w-full dtw-flex dtw-flex-col dtw-gap-1", children: /* @__PURE__ */ r(Oa, { children: ({ open: i }) => /* @__PURE__ */ u(_, { children: [
6887
+ return /* @__PURE__ */ r("div", { className: "dtw-w-full dtw-flex dtw-flex-col dtw-gap-1", children: /* @__PURE__ */ r(La, { children: ({ open: i }) => /* @__PURE__ */ u(_, { children: [
6802
6888
  e?.map((l) => /* @__PURE__ */ r(sn, { ...l }, l.label)),
6803
6889
  /* @__PURE__ */ r(Pa, { className: "dtw-p-0 dtw-flex dtw-w-full dtw-justify-between dtw-rounded-[var(--panel-radius-secondary,var(--panel-radius))] hover:dtw-bg-[var(--panel-meta-hover-bg,var(--panel-neutral-color))] focus:dtw-outline-none", children: /* @__PURE__ */ u(
6804
6890
  sn,
@@ -6827,7 +6913,7 @@ const ss = (t) => t ? `https://raw.githubusercontent.com/dhedge/crypto-icons/mai
6827
6913
  t
6828
6914
  ] }) })
6829
6915
  ] }) }) });
6830
- }, Le = ({ className: t }) => /* @__PURE__ */ r(
6916
+ }, Oe = ({ className: t }) => /* @__PURE__ */ r(
6831
6917
  "svg",
6832
6918
  {
6833
6919
  className: S(
@@ -6876,7 +6962,7 @@ const ss = (t) => t ? `https://raw.githubusercontent.com/dhedge/crypto-icons/mai
6876
6962
  children: t,
6877
6963
  onClose: e
6878
6964
  }) => {
6879
- const { defaultNotificationDuration: n } = U();
6965
+ const { defaultNotificationDuration: n } = $();
6880
6966
  return k(() => {
6881
6967
  const a = (o) => {
6882
6968
  o.key === "Escape" && e?.();
@@ -6953,7 +7039,7 @@ const ss = (t) => t ? `https://raw.githubusercontent.com/dhedge/crypto-icons/mai
6953
7039
  children: a
6954
7040
  }) => {
6955
7041
  const o = Ze(), s = () => {
6956
- n?.(), o?.(j.TRADING_SETTINGS_OPENED);
7042
+ n?.(), o?.(K.TRADING_SETTINGS_OPENED);
6957
7043
  };
6958
7044
  return /* @__PURE__ */ u(
6959
7045
  br,
@@ -6984,7 +7070,7 @@ const ss = (t) => t ? `https://raw.githubusercontent.com/dhedge/crypto-icons/mai
6984
7070
  ]
6985
7071
  }
6986
7072
  );
6987
- }, nc = ({ children: t }) => /* @__PURE__ */ r(Ma, { children: /* @__PURE__ */ r(tc, { children: t }) }), H = {
7073
+ }, nc = ({ children: t }) => /* @__PURE__ */ r(Ma, { children: /* @__PURE__ */ r(tc, { children: t }) }), G = {
6988
7074
  InputGroup: Qd,
6989
7075
  Meta: Xd,
6990
7076
  Settings: nc,
@@ -7006,7 +7092,7 @@ const ss = (t) => t ? `https://raw.githubusercontent.com/dhedge/crypto-icons/mai
7006
7092
  "dtw-border-[length:var(--panel-action-accent-button-border-width)]",
7007
7093
  "hover:enabled:dtw-from-[var(--panel-action-accent-button-hover-bg-from,var(--panel-accent-hover-from-color))]",
7008
7094
  "hover:enabled:dtw-to-[var(--panel-action-accent-button-hover-bg-to,var(--panel-accent-hover-to-color))]"
7009
- ], G = ({
7095
+ ], q = ({
7010
7096
  children: t,
7011
7097
  onClick: e,
7012
7098
  highlighted: n = !0,
@@ -7039,7 +7125,7 @@ const ss = (t) => t ? `https://raw.githubusercontent.com/dhedge/crypto-icons/mai
7039
7125
  disabled: a || i,
7040
7126
  type: s,
7041
7127
  children: [
7042
- i && /* @__PURE__ */ r(Le, { className: "dtw-h-4 dtw-w-4" }),
7128
+ i && /* @__PURE__ */ r(Oe, { className: "dtw-h-4 dtw-w-4" }),
7043
7129
  t
7044
7130
  ]
7045
7131
  }
@@ -7071,13 +7157,13 @@ const ss = (t) => t ? `https://raw.githubusercontent.com/dhedge/crypto-icons/mai
7071
7157
  [e]
7072
7158
  );
7073
7159
  return /* @__PURE__ */ r(Ts.Provider, { value: n, children: t });
7074
- }, L = () => {
7160
+ }, O = () => {
7075
7161
  const t = Se(Ts);
7076
7162
  if (!t)
7077
7163
  throw new Error("ComponentContext is used out of Provider");
7078
7164
  return t;
7079
7165
  }, gn = ({ children: t, promptText: e }) => {
7080
- const { ActionButton: n = G } = L();
7166
+ const { ActionButton: n = q } = O();
7081
7167
  return /* @__PURE__ */ u("div", { children: [
7082
7168
  /* @__PURE__ */ u("div", { className: "md:dtw-hidden dtw-mb-4 dtw-flex dtw-items-center dtw-justify-center dtw-space-x-1 dtw-text-[var(--panel-warning-content-color)]", children: [
7083
7169
  /* @__PURE__ */ r(Ge, { className: "dtw-h-5 dtw-w-5" }),
@@ -7116,7 +7202,7 @@ const ss = (t) => t ? `https://raw.githubusercontent.com/dhedge/crypto-icons/mai
7116
7202
  label: a,
7117
7203
  vertical: o = !1
7118
7204
  }) => {
7119
- const [s, i] = ne(t);
7205
+ const [s, i] = ae(t);
7120
7206
  k(() => {
7121
7207
  i(t);
7122
7208
  }, [t]);
@@ -7226,7 +7312,7 @@ const ss = (t) => t ? `https://raw.githubusercontent.com/dhedge/crypto-icons/mai
7226
7312
  size: e = "m",
7227
7313
  className: n = ""
7228
7314
  }) => {
7229
- const { Image: a = vs } = L(), o = t.join(""), [s, i] = ne({
7315
+ const { Image: a = vs } = O(), o = t.join(""), [s, i] = ae({
7230
7316
  [o]: !1
7231
7317
  }), { height: l, width: d, diameter: c } = lc(e), p = zd(t);
7232
7318
  if (!p?.length || !p[0] || s[o]) return null;
@@ -7295,8 +7381,8 @@ const ss = (t) => t ? `https://raw.githubusercontent.com/dhedge/crypto-icons/mai
7295
7381
  }
7296
7382
  );
7297
7383
  }, dc = ({ title: t, text: e }) => {
7298
- const { LogoSpinner: n = Le } = L();
7299
- return /* @__PURE__ */ r(H.Overlay, { transparent: !0, children: /* @__PURE__ */ u("div", { className: "dtw-flex dtw-flex-col dtw-items-center dtw-rounded-xl dtw-px-5 dtw-py-5", children: [
7384
+ const { LogoSpinner: n = Oe } = O();
7385
+ return /* @__PURE__ */ r(G.Overlay, { transparent: !0, children: /* @__PURE__ */ u("div", { className: "dtw-flex dtw-flex-col dtw-items-center dtw-rounded-xl dtw-px-5 dtw-py-5", children: [
7300
7386
  t && /* @__PURE__ */ r("span", { className: "dtw-mb-8 dtw-font-medium dtw-text-[color:var(--panel-secondary-content-color)]", children: t }),
7301
7387
  /* @__PURE__ */ r(n, { className: "dtw-h-[80px] dtw-w-[60px]" }),
7302
7388
  e && /* @__PURE__ */ r("p", { className: "dtw-mt-6 dtw-text-xl dtw-font-light", children: e })
@@ -7372,7 +7458,7 @@ const kt = ({ className: t }) => /* @__PURE__ */ r(
7372
7458
  )
7373
7459
  }
7374
7460
  ), pc = () => {
7375
- const [t] = xe(), [e, n] = Y(), [a, o] = ne(!1), s = e.slippage !== "auto";
7461
+ const [t] = xe(), [e, n] = j(), [a, o] = ae(!1), s = e.slippage !== "auto";
7376
7462
  return {
7377
7463
  settings: e,
7378
7464
  tradingType: t,
@@ -7453,7 +7539,7 @@ const kt = ({ className: t }) => /* @__PURE__ */ r(
7453
7539
  ] });
7454
7540
  };
7455
7541
  function Kt(t, e, n) {
7456
- const a = Si[n ?? Q.id]?.blockExplorers?.default?.url;
7542
+ const a = Si[n ?? X.id]?.blockExplorers?.default?.url;
7457
7543
  if (a)
7458
7544
  switch (e) {
7459
7545
  case "transaction":
@@ -7475,7 +7561,7 @@ const yc = ({
7475
7561
  a && e({ type: "update", txHash: a });
7476
7562
  }, [a, e]);
7477
7563
  }, wc = () => {
7478
- const [t, e] = ce(), n = J()[1], a = Bl(), o = Ml(), [s] = t, i = s?.batchId, l = s?.txHash, d = s?.action, c = d === "approve", p = s?.chainId, { invalidateTradingQueries: m, invalidateAllowanceQueries: y } = Un();
7564
+ const [t, e] = ce(), n = ee()[1], a = Bl(), o = Ml(), [s] = t, i = s?.batchId, l = s?.txHash, d = s?.action, c = d === "approve", p = s?.chainId, { invalidateTradingQueries: m, invalidateAllowanceQueries: y } = Un();
7479
7565
  yc({ batchId: i, updatePendingTransactions: e });
7480
7566
  const { data: w, error: h } = Ga({
7481
7567
  hash: l,
@@ -7522,7 +7608,7 @@ const yc = ({
7522
7608
  a
7523
7609
  ]);
7524
7610
  }, nt = (t) => {
7525
- const [, e] = J(), [, n] = ce(), [, a] = N(), o = qo();
7611
+ const [, e] = ee(), [, n] = ce(), [, a] = N(), o = qo();
7526
7612
  return T(
7527
7613
  (s, i, l) => {
7528
7614
  if (i) {
@@ -7555,10 +7641,10 @@ const yc = ({
7555
7641
  refetchInterval: n,
7556
7642
  disabled: a = !1
7557
7643
  }) => {
7558
- const { supportedChainId: o } = Me(), { data: s } = le({
7644
+ const { supportedChainId: o } = Me(), { data: s } = de({
7559
7645
  contracts: [
7560
7646
  {
7561
- address: z("factory", e ?? o),
7647
+ address: V("factory", e ?? o),
7562
7648
  abi: Xe,
7563
7649
  functionName: "getAssetPrice",
7564
7650
  args: [t],
@@ -7566,7 +7652,7 @@ const yc = ({
7566
7652
  }
7567
7653
  ],
7568
7654
  query: {
7569
- enabled: !oe(t) && !a,
7655
+ enabled: !se(t) && !a,
7570
7656
  refetchInterval: n
7571
7657
  }
7572
7658
  });
@@ -7583,7 +7669,7 @@ const yc = ({
7583
7669
  refetchInterval: n,
7584
7670
  disabled: a
7585
7671
  });
7586
- return fe(o ?? BigInt(0), O);
7672
+ return fe(o ?? BigInt(0), L);
7587
7673
  }, xs = () => {
7588
7674
  const [t] = N(), [e] = P(), n = De({
7589
7675
  address: t.address,
@@ -7617,17 +7703,17 @@ const gc = () => {
7617
7703
  isLoading: !!e.isLoading
7618
7704
  };
7619
7705
  }, We = () => {
7620
- const t = !et(), [{ symbol: e }] = P(), [{ isMultiAssetWithdrawalEnabled: n }] = Y();
7706
+ const t = !et(), [{ symbol: e }] = P(), [{ isMultiAssetWithdrawalEnabled: n }] = j();
7621
7707
  return t && n && e === "all";
7622
7708
  }, Yn = () => {
7623
- const { account: t } = R(), { chainId: e } = v(), n = We(), [a] = N(), o = new b(a.value || "0").shiftedBy(a.decimals).toFixed(0, b.ROUND_UP), s = z("easySwapperV2", e), i = Os({
7709
+ const { account: t } = R(), { chainId: e } = v(), n = We(), [a] = N(), o = new b(a.value || "0").shiftedBy(a.decimals).toFixed(0, b.ROUND_UP), s = V("easySwapperV2", e), i = Ls({
7624
7710
  tokenAddress: a.address,
7625
7711
  ownerAddress: t ?? D,
7626
7712
  spenderAddress: s,
7627
7713
  rawAmountToSpend: o,
7628
7714
  chainId: e,
7629
7715
  skip: n || o === "0"
7630
- }), l = Ls({
7716
+ }), l = Os({
7631
7717
  token: a,
7632
7718
  rawTokenAmount: o,
7633
7719
  spenderAddress: s
@@ -7652,7 +7738,7 @@ const gc = () => {
7652
7738
  args: [
7653
7739
  t,
7654
7740
  o,
7655
- Ln(s)
7741
+ On(s)
7656
7742
  ],
7657
7743
  publicClient: n
7658
7744
  }),
@@ -7708,7 +7794,7 @@ const gc = () => {
7708
7794
  assets: t,
7709
7795
  getSwapData: e,
7710
7796
  signal: n,
7711
- buildKey: Oo
7797
+ buildKey: Lo
7712
7798
  }), Ac = new AbortController(), Sc = Ac.signal, xc = ({
7713
7799
  chainId: t
7714
7800
  }) => {
@@ -7738,10 +7824,10 @@ const gc = () => {
7738
7824
  address: t,
7739
7825
  chainId: e
7740
7826
  }) => {
7741
- const n = z(
7827
+ const n = V(
7742
7828
  "aaveLendingPoolV3",
7743
7829
  e
7744
- ), { aaveOffchainWithdrawMinValue: a } = U(), { data: { getSupportedAssets: o } = {} } = Yt({
7830
+ ), { aaveOffchainWithdrawMinValue: a } = $(), { data: { getSupportedAssets: o } = {} } = Yt({
7745
7831
  address: t,
7746
7832
  chainId: e
7747
7833
  }), s = Tc({ address: t, chainId: e }), i = xc({ chainId: e });
@@ -7756,7 +7842,7 @@ const gc = () => {
7756
7842
  ).shiftedBy(-18).times(d).gt(a);
7757
7843
  return await Promise.all(
7758
7844
  (o ?? []).map(async (m) => {
7759
- const y = V(m, n), w = Ln(c);
7845
+ const y = H(m, n), w = On(c);
7760
7846
  if (p && y)
7761
7847
  try {
7762
7848
  const h = await s({
@@ -7795,7 +7881,7 @@ const gc = () => {
7795
7881
  ]
7796
7882
  );
7797
7883
  }, Ec = () => {
7798
- const { defaultWithdrawSlippage: t, defaultSwapTransactionSlippage: e } = U(), n = !et(), { isCompleteWithdrawStep: a, isFetching: o } = ft(), [s] = P(), [, i] = Y(), l = Ns();
7884
+ const { defaultWithdrawSlippage: t, defaultSwapTransactionSlippage: e } = $(), n = !et(), { isCompleteWithdrawStep: a, isFetching: o } = ft(), [s] = P(), [, i] = j(), l = Ns();
7799
7885
  k(() => {
7800
7886
  if (!(!n || s.isLoading || o)) {
7801
7887
  if (a) {
@@ -7820,15 +7906,15 @@ const gc = () => {
7820
7906
  }, Ic = () => {
7821
7907
  const { account: t = D } = R(), { chainId: e } = v();
7822
7908
  return _e({
7823
- address: z("easySwapperV2", e),
7909
+ address: V("easySwapperV2", e),
7824
7910
  abi: ve,
7825
7911
  functionName: "withdrawalContracts",
7826
7912
  chainId: e,
7827
7913
  args: [t],
7828
- query: { enabled: !oe(t) }
7914
+ query: { enabled: !se(t) }
7829
7915
  });
7830
7916
  }, jn = () => {
7831
- const { chainId: t } = v(), [e] = P(), n = Ss({ address: e.address, chainId: t }), a = At(), o = Es(), s = new b(o).shiftedBy(O).div(n?.toString() ?? "1").shiftedBy(e.decimals).toFixed(0, b.ROUND_DOWN), i = new b(s).times(1 - ao / 100).times(1 - a / 100).toFixed(0, b.ROUND_DOWN);
7917
+ const { chainId: t } = v(), [e] = P(), n = Ss({ address: e.address, chainId: t }), a = At(), o = Es(), s = new b(o).shiftedBy(L).div(n?.toString() ?? "1").shiftedBy(e.decimals).toFixed(0, b.ROUND_DOWN), i = new b(s).times(1 - ao / 100).times(1 - a / 100).toFixed(0, b.ROUND_DOWN);
7832
7918
  return { expectedReceiveAmount: s, minExpectedReceiveAmount: i };
7833
7919
  }, Ds = ({
7834
7920
  isClaim: t
@@ -7847,11 +7933,11 @@ const gc = () => {
7847
7933
  return console.warn("[Complete Withdraw] No available routers found for swap"), [];
7848
7934
  for (const h of w) {
7849
7935
  const g = Object.entries(a).reduce(
7850
- ($, [C, ee]) => {
7851
- const be = ee?.find(
7936
+ (z, [C, te]) => {
7937
+ const be = te?.find(
7852
7938
  (Ie) => Ie.routerKey === h
7853
7939
  );
7854
- return { ...$, [C]: be };
7940
+ return { ...z, [C]: be };
7855
7941
  },
7856
7942
  {}
7857
7943
  ), A = bl({
@@ -7899,12 +7985,12 @@ const gc = () => {
7899
7985
  account: t,
7900
7986
  chainId: e
7901
7987
  }) => _e({
7902
- address: z("easySwapperV2", e),
7988
+ address: V("easySwapperV2", e),
7903
7989
  abi: ve,
7904
7990
  functionName: "getTrackedAssets",
7905
7991
  chainId: e,
7906
7992
  args: [t],
7907
- query: { enabled: !oe(t) }
7993
+ query: { enabled: !se(t) }
7908
7994
  }), Nc = ({
7909
7995
  assets: t,
7910
7996
  chainId: e
@@ -7924,7 +8010,7 @@ const gc = () => {
7924
8010
  args: []
7925
8011
  },
7926
8012
  {
7927
- address: z("factory", e),
8013
+ address: V("factory", e),
7928
8014
  abi: Xe,
7929
8015
  functionName: "getAssetPrice",
7930
8016
  chainId: e,
@@ -7937,7 +8023,7 @@ const gc = () => {
7937
8023
  const n = T(
7938
8024
  (a) => t.map(({ token: o, balance: s }, i) => {
7939
8025
  const l = i * _c, d = l + 1, c = d + 1, p = Number(
7940
- a[d]?.result ?? O
8026
+ a[d]?.result ?? L
7941
8027
  ), m = _o[o.toLowerCase()] ?? a[l]?.result?.toString() ?? "";
7942
8028
  return {
7943
8029
  address: o,
@@ -7950,7 +8036,7 @@ const gc = () => {
7950
8036
  }),
7951
8037
  [t]
7952
8038
  );
7953
- return le({
8039
+ return de({
7954
8040
  contracts: Nc({ assets: t, chainId: e }),
7955
8041
  query: {
7956
8042
  enabled: t.length > 0,
@@ -7969,7 +8055,7 @@ const gc = () => {
7969
8055
  }, kc = (t, e) => {
7970
8056
  const n = Ul(), {
7971
8057
  settings: { selectedAggregators: a }
7972
- } = ae();
8058
+ } = oe();
7973
8059
  return xn({
7974
8060
  queryKey: ["getSwapsQuotes", t, a],
7975
8061
  queryFn: async ({ signal: o, queryKey: [, s] }) => await fc({
@@ -7981,8 +8067,8 @@ const gc = () => {
7981
8067
  ...e
7982
8068
  });
7983
8069
  }, vt = () => {
7984
- const { defaultSwapTransactionSlippage: t } = U(), { chainId: e } = v(), { account: n = D } = R(), [{ slippage: a }] = Y(), [o] = P(), { data: s = [] } = Ee(), i = Kn(), l = I(
7985
- () => s.filter(({ address: d }) => !V(d, o.address)).map(({ address: d, rawBalance: c }) => ({
8070
+ const { defaultSwapTransactionSlippage: t } = $(), { chainId: e } = v(), { account: n = D } = R(), [{ slippage: a }] = j(), [o] = P(), { data: s = [] } = Ee(), i = Kn(), l = I(
8071
+ () => s.filter(({ address: d }) => !H(d, o.address)).map(({ address: d, rawBalance: c }) => ({
7986
8072
  chainId: e,
7987
8073
  sourceAddress: d,
7988
8074
  destinationAddress: o.address,
@@ -8003,7 +8089,7 @@ const gc = () => {
8003
8089
  enabled: i,
8004
8090
  refetchInterval: Cn
8005
8091
  });
8006
- }, Lc = () => {
8092
+ }, Oc = () => {
8007
8093
  const [t, e] = P(), { data: n = [] } = Ee(), {
8008
8094
  data: a,
8009
8095
  isFetching: o,
@@ -8015,7 +8101,7 @@ const gc = () => {
8015
8101
  if (n.length === 0 || o || s)
8016
8102
  return;
8017
8103
  const i = n.reduce((l, d) => {
8018
- if (V(d.address, t.address))
8104
+ if (H(d.address, t.address))
8019
8105
  return l.plus(d.rawBalance.toString());
8020
8106
  const p = a?.[d.address]?.[0]?.destinationAmount ?? "0";
8021
8107
  return l.plus(p);
@@ -8039,16 +8125,16 @@ const gc = () => {
8039
8125
  withdraw: t,
8040
8126
  isClaim: e
8041
8127
  }) => {
8042
- const n = x(), a = ie(), { account: o } = R(), s = v(), [i] = P(), l = J()[1], d = ce()[1], c = Rn(), { data: p = [] } = Ee(), { isFetching: m } = vt(), y = async () => {
8128
+ const n = x(), a = le(), { account: o } = R(), s = v(), [i] = P(), l = ee()[1], d = ce()[1], c = Rn(), { data: p = [] } = Ee(), { isFetching: m } = vt(), y = async () => {
8043
8129
  const w = s.chainId, h = p.map(
8044
- ({ address: A, decimals: E, symbol: $, balance: C }) => ({
8130
+ ({ address: A, decimals: E, symbol: z, balance: C }) => ({
8045
8131
  address: A,
8046
8132
  decimals: E,
8047
- symbol: $,
8133
+ symbol: z,
8048
8134
  value: C.toString()
8049
8135
  })
8050
8136
  ), g = e ? null : h.filter(
8051
- (A) => !V(A.address, i.address)
8137
+ (A) => !H(A.address, i.address)
8052
8138
  );
8053
8139
  l({
8054
8140
  isOpen: !0,
@@ -8096,13 +8182,13 @@ const gc = () => {
8096
8182
  return t === "0" || n.isZero() ? 0 : n.dividedBy(t).minus(1).times(100).decimalPlaces(2, b.ROUND_DOWN).toNumber();
8097
8183
  }, Kn = () => {
8098
8184
  const [t] = P(), { data: e = [] } = Ee();
8099
- return e.length > 0 && e.some(({ address: n }) => !V(n, t.address));
8185
+ return e.length > 0 && e.some(({ address: n }) => !H(n, t.address));
8100
8186
  }, At = () => {
8101
- const { defaultWithdrawSlippage: t } = U(), { isCompleteWithdrawStep: e } = ft(), [{ slippage: n, minSlippage: a }] = Y();
8187
+ const { defaultWithdrawSlippage: t } = $(), { isCompleteWithdrawStep: e } = ft(), [{ slippage: n, minSlippage: a }] = j();
8102
8188
  return n === "auto" ? e ? a ?? t : t : n;
8103
8189
  };
8104
8190
  function fa(t, e, n) {
8105
- const [a, o] = ne(n), s = Pn ? t === "sessionStorage" ? sessionStorage : localStorage : null, i = T(
8191
+ const [a, o] = ae(n), s = Pn ? t === "sessionStorage" ? sessionStorage : localStorage : null, i = T(
8106
8192
  (l) => {
8107
8193
  try {
8108
8194
  o(l), s?.setItem(e, JSON.stringify(l));
@@ -8122,7 +8208,7 @@ function fa(t, e, n) {
8122
8208
  }, [e, s]), [a, i];
8123
8209
  }
8124
8210
  const _s = (t, e) => {
8125
- const [n, a] = ne(t);
8211
+ const [n, a] = ae(t);
8126
8212
  return k(() => {
8127
8213
  const o = setTimeout(() => {
8128
8214
  a(t);
@@ -8131,15 +8217,15 @@ const _s = (t, e) => {
8131
8217
  clearTimeout(o);
8132
8218
  };
8133
8219
  }, [t, e]), n;
8134
- }, Oc = (t) => Be({ value: ja(t), decimals: 2 }), Pc = () => {
8220
+ }, Lc = (t) => Be({ value: ja(t), decimals: 2 }), Pc = () => {
8135
8221
  const t = v(), [e] = N(), n = We(), a = At(), o = Dc(t), s = me({
8136
8222
  address: t.address,
8137
- formatter: Oc,
8223
+ formatter: Lc,
8138
8224
  chainId: t.chainId
8139
8225
  });
8140
8226
  return T(async () => {
8141
8227
  const i = BigInt(
8142
- new b(e.value || "0").shiftedBy(O).toFixed(0, b.ROUND_DOWN)
8228
+ new b(e.value || "0").shiftedBy(L).toFixed(0, b.ROUND_DOWN)
8143
8229
  ), l = await o({
8144
8230
  withdrawAmountD18: i,
8145
8231
  vaultTokenPrice: s,
@@ -8158,11 +8244,11 @@ const _s = (t, e) => {
8158
8244
  debounceTime: t
8159
8245
  } = {}) => {
8160
8246
  const e = v(), n = We(), [a] = N(), o = At(), { data: { getSupportedAssets: s } = {} } = Yt(e), i = _s(
8161
- new b(a.value || "0").shiftedBy(O).toFixed(0, b.ROUND_DOWN),
8247
+ new b(a.value || "0").shiftedBy(L).toFixed(0, b.ROUND_DOWN),
8162
8248
  t ?? 0
8163
8249
  );
8164
8250
  return I(() => {
8165
- const l = Ln(o), d = BigInt(i), c = (s ?? []).map((p) => ({
8251
+ const l = On(o), d = BigInt(i), c = (s ?? []).map((p) => ({
8166
8252
  supportedAsset: p,
8167
8253
  withdrawData: "",
8168
8254
  slippageTolerance: l
@@ -8180,7 +8266,7 @@ const _s = (t, e) => {
8180
8266
  debounceTime: no
8181
8267
  }), o = Bc(a) && a[1] !== BigInt(0) && !e && n, { data: s } = Mr({
8182
8268
  abi: ve,
8183
- address: z("easySwapperV2", t.chainId),
8269
+ address: V("easySwapperV2", t.chainId),
8184
8270
  functionName: oo,
8185
8271
  args: a,
8186
8272
  query: {
@@ -8193,7 +8279,7 @@ const _s = (t, e) => {
8193
8279
  });
8194
8280
  }, Qn = () => {
8195
8281
  const [t] = P(), { data: e = [] } = Mc(), n = Ht();
8196
- return e?.length === 1 && V(e[0]?.address, t.address) && !n;
8282
+ return e?.length === 1 && H(e[0]?.address, t.address) && !n;
8197
8283
  }, Wc = () => {
8198
8284
  const t = v(), e = We(), n = Qn(), a = Pc(), o = ce()[1], s = e ? "multi_withdraw" : n ? "single_withdraw_and_claim" : "single_withdraw", i = nt(s), l = e ? ui : n ? mi : oo, { send: d } = ke({
8199
8285
  contractId: e ? "poolLogic" : "easySwapperV2",
@@ -8222,11 +8308,11 @@ const _s = (t, e) => {
8222
8308
  action: s
8223
8309
  };
8224
8310
  }, ks = (t) => {
8225
- const e = x(), n = ie(), { account: a } = R(), o = v(), [s] = N(), [i] = P(), [l] = xe(), d = J()[1], c = ce()[1], p = Rn(), m = We(), y = Qn(), w = De({
8311
+ const e = x(), n = le(), { account: a } = R(), o = v(), [s] = N(), [i] = P(), [l] = xe(), d = ee()[1], c = ce()[1], p = Rn(), m = We(), y = Qn(), w = De({
8226
8312
  symbol: s.symbol,
8227
8313
  address: s.address
8228
8314
  }), h = l === "deposit", g = xs(), A = h ? "deposit" : m ? "multi_withdraw" : y ? "single_withdraw_and_claim" : "single_withdraw", E = async () => {
8229
- const $ = o.chainId;
8315
+ const z = o.chainId;
8230
8316
  d({
8231
8317
  isOpen: !0,
8232
8318
  status: "Wallet",
@@ -8253,7 +8339,7 @@ const _s = (t, e) => {
8253
8339
  }), p?.(
8254
8340
  C,
8255
8341
  o.address,
8256
- $,
8342
+ z,
8257
8343
  a
8258
8344
  )), d({
8259
8345
  isOpen: !1,
@@ -8333,7 +8419,7 @@ const _s = (t, e) => {
8333
8419
  }, Hc = (t, e) => {
8334
8420
  const {
8335
8421
  settings: { selectedAggregators: n }
8336
- } = ae(), a = Yo();
8422
+ } = oe(), a = Yo();
8337
8423
  return xn({
8338
8424
  queryKey: [
8339
8425
  "getSwapData",
@@ -8353,14 +8439,14 @@ const _s = (t, e) => {
8353
8439
  isDebouncing: n.value !== a
8354
8440
  };
8355
8441
  }, Gc = () => {
8356
- const t = $n(), [{ isBatchTransactionsEnabled: e }] = Y();
8442
+ const t = $n(), [{ isBatchTransactionsEnabled: e }] = j();
8357
8443
  return t && e;
8358
- }, Ls = ({
8444
+ }, Os = ({
8359
8445
  token: t,
8360
8446
  rawTokenAmount: e,
8361
8447
  spenderAddress: n
8362
8448
  }) => {
8363
- const a = v(), [{ isInfiniteAllowance: o }] = Y(), s = ce()[1], i = J()[1], l = nt("approve"), { send: d } = ke({
8449
+ const a = v(), [{ isInfiniteAllowance: o }] = j(), s = ce()[1], i = ee()[1], l = nt("approve"), { send: d } = ke({
8364
8450
  contractId: "erc20",
8365
8451
  dynamicContractAddress: t.address,
8366
8452
  functionName: "approve",
@@ -8401,7 +8487,7 @@ const _s = (t, e) => {
8401
8487
  s,
8402
8488
  i
8403
8489
  ]);
8404
- }, Os = ({
8490
+ }, Ls = ({
8405
8491
  rawAmountToSpend: t,
8406
8492
  tokenAddress: e,
8407
8493
  ownerAddress: n,
@@ -8418,9 +8504,9 @@ const _s = (t, e) => {
8418
8504
  });
8419
8505
  return I(() => s ? !0 : !i || i === BigInt(0) ? !1 : !t || t === "0" ? !0 : new b(i.toString()).gte(t), [t, i, s]);
8420
8506
  }, qc = () => {
8421
- const [{ isInfiniteAllowance: t }, e] = Y(), n = Ze(), a = T(
8507
+ const [{ isInfiniteAllowance: t }, e] = j(), n = Ze(), a = T(
8422
8508
  (o) => {
8423
- e({ isInfiniteAllowance: o }), n?.(j.INFINITE_ALLOWANCE_CHANGE, {
8509
+ e({ isInfiniteAllowance: o }), n?.(K.INFINITE_ALLOWANCE_CHANGE, {
8424
8510
  [Ce.IS_INFINITE.NAME]: o ? 1 : 0
8425
8511
  });
8426
8512
  },
@@ -8441,9 +8527,9 @@ const _s = (t, e) => {
8441
8527
  }
8442
8528
  );
8443
8529
  }, Yc = () => {
8444
- const [{ isBatchTransactionsEnabled: t }, e] = Y(), n = Ze(), a = T(
8530
+ const [{ isBatchTransactionsEnabled: t }, e] = j(), n = Ze(), a = T(
8445
8531
  (o) => {
8446
- e({ isBatchTransactionsEnabled: o }), Ol(o), n?.(j.BATCH_TRANSACTIONS_CHANGE, {
8532
+ e({ isBatchTransactionsEnabled: o }), Ll(o), n?.(K.BATCH_TRANSACTIONS_CHANGE, {
8447
8533
  [Ce.IS_BATCH_TRANSACTIONS_ENABLED.NAME]: o ? 1 : 0
8448
8534
  });
8449
8535
  },
@@ -8464,7 +8550,7 @@ const _s = (t, e) => {
8464
8550
  }
8465
8551
  );
8466
8552
  }, jc = () => {
8467
- const [{ availableAggregators: t, selectedAggregators: e }, n] = Y(), a = T(
8553
+ const [{ availableAggregators: t, selectedAggregators: e }, n] = j(), a = T(
8468
8554
  (o) => {
8469
8555
  const s = e.includes(o) ? e.filter((i) => i !== o) : [...e, o];
8470
8556
  n({ selectedAggregators: s });
@@ -8533,7 +8619,7 @@ const _s = (t, e) => {
8533
8619
  /* @__PURE__ */ r(Bs, {})
8534
8620
  ] });
8535
8621
  }, Qc = () => {
8536
- const { chainId: t } = v(), [e] = N(), n = z("easySwapperV2", t), a = new b(e.value || "0").shiftedBy(e.decimals).toFixed(0, b.ROUND_UP);
8622
+ const { chainId: t } = v(), [e] = N(), n = V("easySwapperV2", t), a = new b(e.value || "0").shiftedBy(e.decimals).toFixed(0, b.ROUND_UP);
8537
8623
  return I(
8538
8624
  () => ({
8539
8625
  address: e.address,
@@ -8552,7 +8638,7 @@ const _s = (t, e) => {
8552
8638
  return n !== !1;
8553
8639
  }, va = (t, e) => t.length ? t.find(
8554
8640
  ({ tokenAddress: a }) => Object.values(ll[e] ?? {}).some(
8555
- (o) => V(o.address, a)
8641
+ (o) => H(o.address, a)
8556
8642
  )
8557
8643
  )?.tokenAddress ?? t[0]?.tokenAddress : null, at = () => {
8558
8644
  const [t] = N(), { chainId: e, address: n } = v(), a = gt({
@@ -8563,26 +8649,26 @@ const _s = (t, e) => {
8563
8649
  const s = a.filter(
8564
8650
  ({ isDeposit: d }) => d
8565
8651
  );
8566
- if (On(t.symbol, e)) {
8652
+ if (Ln(t.symbol, e)) {
8567
8653
  const d = s.find(
8568
8654
  ({ tokenName: c }) => ct[e]?.wrappedNativeTokenName === c
8569
8655
  );
8570
8656
  return d ? {
8571
- depositMethod: o ? Oe.NATIVE_CUSTOM : Oe.NATIVE,
8657
+ depositMethod: o ? Le.NATIVE_CUSTOM : Le.NATIVE,
8572
8658
  vaultDepositTokenAddress: d.tokenAddress
8573
8659
  } : {
8574
- depositMethod: o ? Oe.ZAP_NATIVE_DEPOSIT_CUSTOM : Oe.ZAP_NATIVE_DEPOSIT,
8660
+ depositMethod: o ? Le.ZAP_NATIVE_DEPOSIT_CUSTOM : Le.ZAP_NATIVE_DEPOSIT,
8575
8661
  vaultDepositTokenAddress: va(s, e) ?? t.address
8576
8662
  };
8577
8663
  }
8578
8664
  const l = s.find(
8579
- ({ tokenAddress: d }) => V(d, t.address)
8665
+ ({ tokenAddress: d }) => H(d, t.address)
8580
8666
  );
8581
8667
  return l ? {
8582
- depositMethod: o ? Oe.DEPOSIT_CUSTOM : Oe.DEPOSIT,
8668
+ depositMethod: o ? Le.DEPOSIT_CUSTOM : Le.DEPOSIT,
8583
8669
  vaultDepositTokenAddress: l.tokenAddress
8584
8670
  } : {
8585
- depositMethod: o ? Oe.ZAP_DEPOSIT_CUSTOM : Oe.ZAP_DEPOSIT,
8671
+ depositMethod: o ? Le.ZAP_DEPOSIT_CUSTOM : Le.ZAP_DEPOSIT,
8586
8672
  vaultDepositTokenAddress: va(s, e) ?? t.address
8587
8673
  };
8588
8674
  }, [
@@ -8594,15 +8680,15 @@ const _s = (t, e) => {
8594
8680
  ]);
8595
8681
  }, St = () => {
8596
8682
  const [t] = N(), { vaultDepositTokenAddress: e } = at();
8597
- return !V(t.address, e);
8683
+ return !H(t.address, e);
8598
8684
  }, Xn = () => {
8599
- const { defaultSwapTransactionSlippage: t } = U(), [{ slippage: e }] = Y(), n = St();
8685
+ const { defaultSwapTransactionSlippage: t } = $(), [{ slippage: e }] = j(), n = St();
8600
8686
  return e === "auto" ? n ? t : In : e;
8601
8687
  }, Ms = () => {
8602
- const { defaultNoSwapMinDepositAmountGap: t } = U(), { address: e, chainId: n } = v(), [a] = N(), [o] = P(), { data: { entryFee: s } = {} } = pe({ address: e, chainId: n }), i = $t(
8688
+ const { defaultNoSwapMinDepositAmountGap: t } = $(), { address: e, chainId: n } = v(), [a] = N(), [o] = P(), { data: { entryFee: s } = {} } = pe({ address: e, chainId: n }), i = $t(
8603
8689
  Number(s ?? "0"),
8604
8690
  $e
8605
- ), [{ slippage: l }] = Y(), d = l === "auto", c = Xn(), p = St(), m = +he({
8691
+ ), [{ slippage: l }] = j(), d = l === "auto", c = Xn(), p = St(), m = +he({
8606
8692
  address: a.address,
8607
8693
  chainId: n
8608
8694
  }), y = +me({ address: e, chainId: n });
@@ -8726,7 +8812,7 @@ const _s = (t, e) => {
8726
8812
  addPendingTransaction: i
8727
8813
  };
8728
8814
  }, ep = (t) => {
8729
- const [, e] = J(), [, n] = ce(), [, a] = N(), [, o] = Y(), s = qo();
8815
+ const [, e] = ee(), [, n] = ce(), [, a] = N(), [, o] = j(), s = qo();
8730
8816
  return T(
8731
8817
  (i, l) => {
8732
8818
  if (l) {
@@ -8783,7 +8869,7 @@ const _s = (t, e) => {
8783
8869
  return T(async () => {
8784
8870
  a();
8785
8871
  const l = {
8786
- address: z("easySwapperV2", t),
8872
+ address: V("easySwapperV2", t),
8787
8873
  abi: ve,
8788
8874
  functionName: e,
8789
8875
  args: n
@@ -8805,15 +8891,15 @@ const _s = (t, e) => {
8805
8891
  });
8806
8892
  return T(async () => (n(), o(...e)), [n, o, e]);
8807
8893
  }, ip = () => {
8808
- const { account: t = D } = R(), { chainId: e } = v(), [n] = N(), a = z("easySwapperV2", e), o = new b(n.value || "0").shiftedBy(n.decimals).toFixed(0, b.ROUND_UP), s = Os({
8894
+ const { account: t = D } = R(), { chainId: e } = v(), [n] = N(), a = V("easySwapperV2", e), o = new b(n.value || "0").shiftedBy(n.decimals).toFixed(0, b.ROUND_UP), s = Ls({
8809
8895
  tokenAddress: n.address,
8810
8896
  ownerAddress: t,
8811
8897
  spenderAddress: a,
8812
8898
  rawAmountToSpend: o,
8813
8899
  chainId: e,
8814
- skip: On(n.symbol, e) || o === "0"
8900
+ skip: Ln(n.symbol, e) || o === "0"
8815
8901
  });
8816
- return { approve: Ls({
8902
+ return { approve: Os({
8817
8903
  token: n,
8818
8904
  rawTokenAmount: o,
8819
8905
  spenderAddress: a
@@ -8823,7 +8909,7 @@ const _s = (t, e) => {
8823
8909
  chainId: e
8824
8910
  }) => {
8825
8911
  const [n] = N(), a = et(), { vaultDepositTokenAddress: o } = at(), s = Ws(), i = !!(s && +s > 0), l = _e({
8826
- address: z("easySwapperV2", e),
8912
+ address: V("easySwapperV2", e),
8827
8913
  abi: ve,
8828
8914
  functionName: "depositQuote",
8829
8915
  args: [t, o, BigInt(s ?? 0)],
@@ -8835,7 +8921,7 @@ const _s = (t, e) => {
8835
8921
  });
8836
8922
  return Qo(l), l;
8837
8923
  }, dp = () => {
8838
- const { address: t, chainId: e } = v(), n = et(), [a] = N(), [o, s] = P(), [, i] = Y(), { isDebouncing: l, debouncedSendTokenValue: d } = Qt(), { isFetching: c } = Xt(), { data: p, isFetching: m } = lp({
8924
+ const { address: t, chainId: e } = v(), n = et(), [a] = N(), [o, s] = P(), [, i] = j(), { isDebouncing: l, debouncedSendTokenValue: d } = Qt(), { isFetching: c } = Xt(), { data: p, isFetching: m } = lp({
8839
8925
  address: t,
8840
8926
  chainId: e
8841
8927
  }), y = c || m || l;
@@ -8883,7 +8969,7 @@ const _s = (t, e) => {
8883
8969
  l
8884
8970
  ]);
8885
8971
  }, cp = () => {
8886
- const t = et(), [e] = P(), [, n] = Y(), { isDebouncing: a } = Qt({
8972
+ const t = et(), [e] = P(), [, n] = j(), { isDebouncing: a } = Qt({
8887
8973
  extendedDebounceTime: !0
8888
8974
  }), o = Xn(), s = Us({ includesEntryFee: !0 });
8889
8975
  k(() => {
@@ -8900,7 +8986,7 @@ const _s = (t, e) => {
8900
8986
  a
8901
8987
  ]);
8902
8988
  }, Zn = () => {
8903
- const { address: t, chainId: e, depositParams: n } = v(), { account: a } = R(), o = gt({ address: t, chainId: e }), s = Ht(), [{ isCustomDepositOptionsDisabled: i }] = Y(), [l] = zl(), d = I(
8989
+ const { address: t, chainId: e, depositParams: n } = v(), { account: a } = R(), o = gt({ address: t, chainId: e }), s = Ht(), [{ isCustomDepositOptionsDisabled: i }] = j(), [l] = zl(), d = I(
8904
8990
  () => ni(
8905
8991
  [
8906
8992
  ...o.filter(({ isDeposit: y }) => y).map(({ tokenAddress: y, tokenName: w, precision: h }) => ({
@@ -8925,7 +9011,7 @@ const _s = (t, e) => {
8925
9011
  l,
8926
9012
  e
8927
9013
  ]
8928
- ), c = !!d.length, p = !!a && c, { data: m } = le({
9014
+ ), c = !!d.length, p = !!a && c, { data: m } = de({
8929
9015
  contracts: d.map(({ address: y }) => ({
8930
9016
  address: y,
8931
9017
  abi: we,
@@ -8948,9 +9034,9 @@ const _s = (t, e) => {
8948
9034
  symbol: d[g]?.symbol ?? d[g]?.address ?? D,
8949
9035
  balance: m?.[g]?.result ? qe(
8950
9036
  (m?.[g]?.result).toString() ?? "0",
8951
- d[g]?.decimals ?? O
9037
+ d[g]?.decimals ?? L
8952
9038
  ) : 0,
8953
- decimals: d[g]?.decimals ?? O
9039
+ decimals: d[g]?.decimals ?? L
8954
9040
  };
8955
9041
  const w = y.slice().sort(
8956
9042
  (g, A) => g.balance && A.balance ? A.balance - g.balance : 0
@@ -8968,7 +9054,7 @@ const _s = (t, e) => {
8968
9054
  value: "",
8969
9055
  address: ct[e]?.address ?? D,
8970
9056
  symbol: ct[e]?.nativeTokenSymbol ?? "",
8971
- decimals: ct[e]?.decimals ?? O
9057
+ decimals: ct[e]?.decimals ?? L
8972
9058
  }
8973
9059
  ]
8974
9060
  ];
@@ -9009,7 +9095,7 @@ const _s = (t, e) => {
9009
9095
  });
9010
9096
  return { isVaultDepositLocked: o, isAccountWhitelisted: s };
9011
9097
  }, mp = () => {
9012
- const { defaultLockTime: t } = U(), { chainId: e, address: n } = v(), { data: { customCooldown: a } = {} } = Gt({
9098
+ const { defaultLockTime: t } = $(), { chainId: e, address: n } = v(), { data: { customCooldown: a } = {} } = Gt({
9013
9099
  address: n,
9014
9100
  chainId: e
9015
9101
  }), { depositMethod: o } = at(), s = a ? An({ minutes: Number(a) / 60 }) : t;
@@ -9032,13 +9118,13 @@ const _s = (t, e) => {
9032
9118
  ).multipliedBy(d);
9033
9119
  return {
9034
9120
  requiresMinDeposit: p.isZero() ? !1 : p.lte(c),
9035
- requiredMinDepositAmount: se({ value: c })
9121
+ requiredMinDepositAmount: re({ value: c })
9036
9122
  };
9037
9123
  }, ot = (t) => {
9038
- const [{ action: e, status: n }] = J();
9124
+ const [{ action: e, status: n }] = ee();
9039
9125
  return e === t && (n === "Wallet" || n === "Mining");
9040
9126
  }, $s = (t) => {
9041
- const e = ie(), { onAcceptTermsOfUse: n } = ds(), { termsOfUseAccepted: a } = U(), {
9127
+ const e = le(), { onAcceptTermsOfUse: n } = ds(), { termsOfUseAccepted: a } = $(), {
9042
9128
  disabled: o,
9043
9129
  label: s,
9044
9130
  handleTrade: i
@@ -9080,10 +9166,10 @@ const _s = (t, e) => {
9080
9166
  isLoading: c
9081
9167
  };
9082
9168
  }, hp = () => {
9083
- const { ActionButton: t = G } = L(), e = op(), { handleClick: n, label: a, disabled: o, isLoading: s } = $s(e);
9169
+ const { ActionButton: t = q } = O(), e = op(), { handleClick: n, label: a, disabled: o, isLoading: s } = $s(e);
9084
9170
  return /* @__PURE__ */ r(t, { onClick: n, disabled: o, loading: s, children: a });
9085
9171
  }, gp = () => {
9086
- const { ActionButton: t = G } = L(), e = rp(), { handleClick: n, label: a, disabled: o, isLoading: s } = $s(e);
9172
+ const { ActionButton: t = q } = O(), e = rp(), { handleClick: n, label: a, disabled: o, isLoading: s } = $s(e);
9087
9173
  return /* @__PURE__ */ r(t, { onClick: n, disabled: o, loading: s, children: a });
9088
9174
  }, Tp = () => {
9089
9175
  const t = Gc(), { deprecated: e, symbol: n, maintenance: a, maintenanceDeposits: o } = v(), [s] = N(), i = Vt(), { isVaultDepositLocked: l, isAccountWhitelisted: d } = up(), { approve: c, canSpend: p } = ip(), { requiresHighSlippageConfirm: m, confirmHighSlippage: y, slippageToBeUsed: w } = Hn(), { requiresMinDeposit: h, requiredMinDepositAmount: g } = wp();
@@ -9104,7 +9190,7 @@ const _s = (t, e) => {
9104
9190
  insufficientBalance: i
9105
9191
  };
9106
9192
  }, bp = () => {
9107
- const { ActionButton: t = G } = L(), e = x(), { status: n } = Ha(), { onConnect: a } = ds();
9193
+ const { ActionButton: t = q } = O(), e = x(), { status: n } = Ha(), { onConnect: a } = ds();
9108
9194
  return /* @__PURE__ */ r(
9109
9195
  t,
9110
9196
  {
@@ -9115,7 +9201,7 @@ const _s = (t, e) => {
9115
9201
  }
9116
9202
  );
9117
9203
  }, fp = () => {
9118
- const { ActionButton: t = G } = L(), { switchNetwork: e } = Me(), { chainId: n } = v(), a = x();
9204
+ const { ActionButton: t = q } = O(), { switchNetwork: e } = Me(), { chainId: n } = v(), a = x();
9119
9205
  return /* @__PURE__ */ r(t, { onClick: () => {
9120
9206
  e?.({ chainId: n });
9121
9207
  }, children: a.switchNetwork });
@@ -9138,7 +9224,7 @@ const _s = (t, e) => {
9138
9224
  onApprove: t,
9139
9225
  symbol: e
9140
9226
  }) => {
9141
- const { ActionButton: n = G } = L(), a = x(), { disabled: o, isLoading: s } = vp();
9227
+ const { ActionButton: n = q } = O(), a = x(), { disabled: o, isLoading: s } = vp();
9142
9228
  return /* @__PURE__ */ r(n, { disabled: o, onClick: t, loading: s, children: /* @__PURE__ */ u("span", { children: [
9143
9229
  a.approve,
9144
9230
  " ",
@@ -9149,7 +9235,7 @@ const _s = (t, e) => {
9149
9235
  tooltipText: e,
9150
9236
  disabled: n
9151
9237
  }) => {
9152
- const [a, o] = ne(!1), s = () => {
9238
+ const [a, o] = ae(!1), s = () => {
9153
9239
  t(), o(!0);
9154
9240
  };
9155
9241
  return k(() => {
@@ -9208,10 +9294,10 @@ const _s = (t, e) => {
9208
9294
  children: t,
9209
9295
  ...e
9210
9296
  }) => {
9211
- const { ActionButton: n = G } = L(), { openLimitSellOverlay: a, displayLimitSellOverlay: o } = Yd();
9297
+ const { ActionButton: n = q } = O(), { openLimitSellOverlay: a, displayLimitSellOverlay: o } = Yd();
9212
9298
  return o ? /* @__PURE__ */ r(n, { ...e, onClick: a, children: t }) : null;
9213
9299
  }, Cp = () => {
9214
- const { ActionButton: t = G } = L(), e = x(), n = Gn("deposit"), {
9300
+ const { ActionButton: t = q } = O(), e = x(), n = Gn("deposit"), {
9215
9301
  requiresMinDeposit: a,
9216
9302
  requiredMinDepositAmount: o,
9217
9303
  requiresApprove: s,
@@ -9255,7 +9341,7 @@ const _s = (t, e) => {
9255
9341
  price: a
9256
9342
  };
9257
9343
  }, kp = () => {
9258
- const t = Np(), e = _p(), n = Ze(), a = Us(), [{ minSlippage: o }] = Y();
9344
+ const t = Np(), e = _p(), n = Ze(), a = Us(), [{ minSlippage: o }] = j();
9259
9345
  return {
9260
9346
  autoFocus: !1,
9261
9347
  sendToken: t,
@@ -9263,7 +9349,7 @@ const _s = (t, e) => {
9263
9349
  tradingPriceDiff: a,
9264
9350
  minSlippage: o,
9265
9351
  onInputFocus: () => {
9266
- n?.(j.INVEST_INPUT_FOCUS, {
9352
+ n?.(K.INVEST_INPUT_FOCUS, {
9267
9353
  symbol: t.symbol,
9268
9354
  address: zo(t.address)
9269
9355
  });
@@ -9283,7 +9369,7 @@ const _s = (t, e) => {
9283
9369
  children: t
9284
9370
  }) => {
9285
9371
  const e = x();
9286
- return /* @__PURE__ */ r(Oa, { children: ({ open: n }) => /* @__PURE__ */ u(_, { children: [
9372
+ return /* @__PURE__ */ r(La, { children: ({ open: n }) => /* @__PURE__ */ u(_, { children: [
9287
9373
  /* @__PURE__ */ u(Pa, { className: "dtw-px-1.5 dtw-w-[100px] dtw-flex dtw-justify-between dtw-rounded-[var(--panel-radius-secondary,var(--panel-radius))] hover:dtw-bg-[var(--panel-meta-hover-bg,var(--panel-neutral-color))] focus:dtw-outline-none", children: [
9288
9374
  n ? e.hide : e.showAll,
9289
9375
  /* @__PURE__ */ r(
@@ -9298,14 +9384,14 @@ const _s = (t, e) => {
9298
9384
  ] }),
9299
9385
  /* @__PURE__ */ r(Ra, { show: n, children: /* @__PURE__ */ r(Ba, { 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: t }) })
9300
9386
  ] }) });
9301
- }, Lp = (t) => {
9387
+ }, Op = (t) => {
9302
9388
  const { address: e, chainId: n } = v(), [{ value: a }] = N(), o = fd({
9303
9389
  vaultTokensAmount: a,
9304
9390
  address: e,
9305
9391
  chainId: n
9306
9392
  }), s = t ? o.length : so, i = o.find(
9307
- ({ tokenAddress: p }) => Lo.some(
9308
- (m) => V(p, m)
9393
+ ({ tokenAddress: p }) => Oo.some(
9394
+ (m) => H(p, m)
9309
9395
  )
9310
9396
  ), l = !!i && i.amount !== "0", { firstPart: d, secondPart: c } = Po(
9311
9397
  o,
@@ -9318,7 +9404,7 @@ const _s = (t, e) => {
9318
9404
  unitSymbol: i?.tokenName,
9319
9405
  unitAddress: i?.tokenAddress ?? D
9320
9406
  };
9321
- }, Op = ({ symbol: t }) => {
9407
+ }, Lp = ({ symbol: t }) => {
9322
9408
  const e = x();
9323
9409
  return /* @__PURE__ */ u("div", { className: "dtw-flex dtw-gap-1 dtw-items-center dtw-text-xs dtw-text-[color:var(--panel-secondary-content-color)]", children: [
9324
9410
  e.as,
@@ -9339,7 +9425,7 @@ const _s = (t, e) => {
9339
9425
  showUnitWithdrawalTip: i,
9340
9426
  unitSymbol: l,
9341
9427
  unitAddress: d
9342
- } = Lp(a), c = T(
9428
+ } = Op(a), c = T(
9343
9429
  ({
9344
9430
  fraction: p,
9345
9431
  fractionUsd: m,
@@ -9367,7 +9453,7 @@ const _s = (t, e) => {
9367
9453
  }
9368
9454
  ),
9369
9455
  g && /* @__PURE__ */ r(
9370
- Op,
9456
+ Lp,
9371
9457
  {
9372
9458
  symbol: $o(h).symbol
9373
9459
  }
@@ -9415,7 +9501,7 @@ const _s = (t, e) => {
9415
9501
  ] })
9416
9502
  ] }) : /* @__PURE__ */ r(fs, {}) });
9417
9503
  }, Pp = ({ symbol: t }) => {
9418
- const e = wt(), n = ie(), { standalone: a } = U(), o = e.some((p) => p.symbol === t), s = t === "all", i = Wl(), l = o && e.length === 1;
9504
+ const e = wt(), n = le(), { standalone: a } = $(), o = e.some((p) => p.symbol === t), s = t === "all", i = Wl(), l = o && e.length === 1;
9419
9505
  return {
9420
9506
  isAllSymbol: s,
9421
9507
  onClick: () => {
@@ -9486,7 +9572,7 @@ const Mp = (t) => {
9486
9572
  const h = Number(e || 0) * Number(n || 0);
9487
9573
  if (!t || isNaN(h))
9488
9574
  return "";
9489
- const g = se({
9575
+ const g = re({
9490
9576
  value: h,
9491
9577
  maximumFractionDigits: Rt(h)
9492
9578
  });
@@ -9584,7 +9670,7 @@ const Mp = (t) => {
9584
9670
  }
9585
9671
  ),
9586
9672
  /* @__PURE__ */ u("div", { className: "dtw-flex dtw-items-center dtw-justify-between dtw-gap-x-2", children: [
9587
- /* @__PURE__ */ r("div", { className: "dtw-flex dtw-items-center dtw-gap-[var(--panel-input-price-gap,var(--panel-gap))] dtw-flex-1 dtw-overflow-x-auto transparent-scrollbar", children: w && /* @__PURE__ */ r(_, { children: g ? /* @__PURE__ */ r("div", { className: "dtw-h-[18px]", children: /* @__PURE__ */ r(Le, { className: "dtw-stroke-[color:var(--panel-accent-from-color)] dtw-h-[var(--panel-icon-secondary-size)] sm:dtw-h-[var(--panel-icon-secondary-size-sm)] dtw-w-[var(--panel-icon-secondary-size)] sm:dtw-w-[var(--panel-icon-secondary-size-sm)]" }) }) : /* @__PURE__ */ r(
9673
+ /* @__PURE__ */ r("div", { className: "dtw-flex dtw-items-center dtw-gap-[var(--panel-input-price-gap,var(--panel-gap))] dtw-flex-1 dtw-overflow-x-auto transparent-scrollbar", children: w && /* @__PURE__ */ r(_, { children: g ? /* @__PURE__ */ r("div", { className: "dtw-h-[18px]", children: /* @__PURE__ */ r(Oe, { className: "dtw-stroke-[color:var(--panel-accent-from-color)] dtw-h-[var(--panel-icon-secondary-size)] sm:dtw-h-[var(--panel-icon-secondary-size-sm)] dtw-w-[var(--panel-icon-secondary-size)] sm:dtw-w-[var(--panel-icon-secondary-size-sm)]" }) }) : /* @__PURE__ */ r(
9588
9674
  "input",
9589
9675
  {
9590
9676
  className: S(
@@ -9606,7 +9692,7 @@ const Mp = (t) => {
9606
9692
  }
9607
9693
  );
9608
9694
  }, Fp = () => {
9609
- const { stablePrecision: t, defaultPrecision: e } = U(), [{ symbol: n, address: a }] = N(), o = De({ symbol: n, address: a, watch: !0 });
9695
+ const { stablePrecision: t, defaultPrecision: e } = $(), [{ symbol: n, address: a }] = N(), o = De({ symbol: n, address: a, watch: !0 });
9610
9696
  return {
9611
9697
  formattedBalance: Wo({
9612
9698
  balance: o,
@@ -9620,7 +9706,7 @@ const Mp = (t) => {
9620
9706
  const { formattedBalance: t, symbol: e } = Fp();
9621
9707
  return /* @__PURE__ */ r(bs, { balance: t, symbol: e });
9622
9708
  }, Up = () => {
9623
- const { stablePrecision: t, defaultPrecision: e } = U(), [{ symbol: n, address: a }] = P(), o = De({ symbol: n, address: a, watch: !0 });
9709
+ const { stablePrecision: t, defaultPrecision: e } = $(), [{ symbol: n, address: a }] = P(), o = De({ symbol: n, address: a, watch: !0 });
9624
9710
  return {
9625
9711
  formattedBalance: Wo({
9626
9712
  balance: o,
@@ -9634,7 +9720,7 @@ const Mp = (t) => {
9634
9720
  const { formattedBalance: t, symbol: e } = Up();
9635
9721
  return /* @__PURE__ */ r(bs, { balance: t, symbol: e });
9636
9722
  }, Qs = () => {
9637
- const t = v(), [e] = Zn(), { isAllAssetsWithdrawOptionDefault: n } = U(), { data: a = [] } = Ee(), o = a.length > 0, { data: s } = as(t), i = xe()[1], l = N()[1], d = P()[1], c = () => {
9723
+ const t = v(), [e] = Zn(), { isAllAssetsWithdrawOptionDefault: n } = $(), { data: a = [] } = Ee(), o = a.length > 0, { data: s } = as(t), i = xe()[1], l = N()[1], d = P()[1], c = () => {
9638
9724
  l({
9639
9725
  ...e,
9640
9726
  value: "",
@@ -9642,7 +9728,7 @@ const Mp = (t) => {
9642
9728
  }), d({
9643
9729
  address: t.address,
9644
9730
  symbol: t.symbol,
9645
- decimals: O,
9731
+ decimals: L,
9646
9732
  value: ""
9647
9733
  });
9648
9734
  }, p = () => {
@@ -9652,7 +9738,7 @@ const Mp = (t) => {
9652
9738
  l({
9653
9739
  address: t.address,
9654
9740
  symbol: t.symbol,
9655
- decimals: O,
9741
+ decimals: L,
9656
9742
  value: ""
9657
9743
  }), d({
9658
9744
  ...h,
@@ -9736,10 +9822,10 @@ const Mp = (t) => {
9736
9822
  )
9737
9823
  ] });
9738
9824
  }, Hp = () => {
9739
- const { address: t, chainId: e } = v(), n = Od({ address: t, chainId: e }), [a] = P();
9825
+ const { address: t, chainId: e } = v(), n = Ld({ address: t, chainId: e }), [a] = P();
9740
9826
  if (!n)
9741
9827
  return { isMaxSupplyCapReached: !1, supplyCapInUsd: "" };
9742
- const { totalSupplyNumber: o, maxSupplyCapNumber: s, remainingSupplyCapInUsd: i } = n, l = Number(a.value || "0"), d = o + l > s, c = se({
9828
+ const { totalSupplyNumber: o, maxSupplyCapNumber: s, remainingSupplyCapInUsd: i } = n, l = Number(a.value || "0"), d = o + l > s, c = re({
9743
9829
  value: i,
9744
9830
  maximumFractionDigits: 0,
9745
9831
  minimumFractionDigits: 0
@@ -9749,13 +9835,13 @@ const Mp = (t) => {
9749
9835
  supplyCapInUsd: c
9750
9836
  };
9751
9837
  }, Gp = () => {
9752
- const t = x(), [{ slippage: e, minSlippage: n, isMaxSlippageLoading: a }] = Y(), o = e === "auto", s = Ms(), [i] = P(), { address: l, chainId: d } = v(), { entryFee: c } = Vn({ address: l, chainId: d }), { minDepositUSD: p } = ns(l, d), m = Vc(), y = mp(), w = St(), h = p ? se({ value: p, minimumFractionDigits: 0 }) : "", g = Tt(
9838
+ const t = x(), [{ slippage: e, minSlippage: n, isMaxSlippageLoading: a }] = j(), o = e === "auto", s = Ms(), [i] = P(), { address: l, chainId: d } = v(), { entryFee: c } = Vn({ address: l, chainId: d }), { minDepositUSD: p } = ns(l, d), m = Vc(), y = mp(), w = St(), h = p ? re({ value: p, minimumFractionDigits: 0 }) : "", g = Tt(
9753
9839
  o ? n ?? 0 : e
9754
9840
  ), A = cs({
9755
9841
  tradingType: "deposit",
9756
9842
  slippage: e,
9757
9843
  minSlippage: n
9758
- }), E = g === W.DEFAULT ? t.depositSlippageWarning : t.highSlippageWarning, $ = Be({
9844
+ }), E = g === W.DEFAULT ? t.depositSlippageWarning : t.highSlippageWarning, z = Be({
9759
9845
  value: new b(s).shiftedBy(-18).toFixed(),
9760
9846
  decimals: 4
9761
9847
  });
@@ -9765,7 +9851,7 @@ const Mp = (t) => {
9765
9851
  slippageTooltipText: E,
9766
9852
  isMaxSlippageLoading: a,
9767
9853
  slippagePlaceholder: A,
9768
- minReceive: `${$} ${i.symbol.toUpperCase()}`,
9854
+ minReceive: `${z} ${i.symbol.toUpperCase()}`,
9769
9855
  entryFee: c,
9770
9856
  entryFeeTooltipText: t.entryFeeExplanation,
9771
9857
  minDeposit: h,
@@ -9782,7 +9868,7 @@ const Mp = (t) => {
9782
9868
  t
9783
9869
  ),
9784
9870
  children: [
9785
- n && /* @__PURE__ */ r(Le, { className: "dtw-stroke-[color:var(--panel-accent-from-color)] dtw-h-[var(--panel-icon-secondary-size)] dtw-w-[var(--panel-icon-secondary-size)]" }),
9871
+ n && /* @__PURE__ */ r(Oe, { className: "dtw-stroke-[color:var(--panel-accent-from-color)] dtw-h-[var(--panel-icon-secondary-size)] dtw-w-[var(--panel-icon-secondary-size)]" }),
9786
9872
  /* @__PURE__ */ r(
9787
9873
  "p",
9788
9874
  {
@@ -9835,7 +9921,7 @@ const Mp = (t) => {
9835
9921
  tooltipText: o,
9836
9922
  label: t.maxSlippage,
9837
9923
  value: /* @__PURE__ */ u("div", { className: "dtw-flex dtw-gap-1", children: [
9838
- i && /* @__PURE__ */ r(Le, { className: "dtw-stroke-[color:var(--panel-accent-from-color)] dtw-h-[var(--panel-icon-secondary-size)] sm:dtw-h-[var(--panel-icon-secondary-size-sm)] dtw-w-[var(--panel-icon-secondary-size)] sm:dtw-w-[var(--panel-icon-secondary-size-sm)]" }),
9924
+ i && /* @__PURE__ */ r(Oe, { className: "dtw-stroke-[color:var(--panel-accent-from-color)] dtw-h-[var(--panel-icon-secondary-size)] sm:dtw-h-[var(--panel-icon-secondary-size-sm)] dtw-w-[var(--panel-icon-secondary-size)] sm:dtw-w-[var(--panel-icon-secondary-size-sm)]" }),
9839
9925
  /* @__PURE__ */ u(
9840
9926
  "span",
9841
9927
  {
@@ -9898,8 +9984,8 @@ const Mp = (t) => {
9898
9984
  }
9899
9985
  );
9900
9986
  }, Yp = ({ children: t }) => {
9901
- const { DepositMetaInfo: e, MaxSupplyReachedAlert: n } = L(), { isMaxSupplyCapReached: a, supplyCapInUsd: o } = Hp();
9902
- return /* @__PURE__ */ u(H.Meta, { children: [
9987
+ const { DepositMetaInfo: e, MaxSupplyReachedAlert: n } = O(), { isMaxSupplyCapReached: a, supplyCapInUsd: o } = Hp();
9988
+ return /* @__PURE__ */ u(G.Meta, { children: [
9903
9989
  a && !!n && /* @__PURE__ */ r(n, { supplyCapInUsd: o }),
9904
9990
  /* @__PURE__ */ r(qp, {}),
9905
9991
  e && /* @__PURE__ */ r(e, {}),
@@ -9909,7 +9995,7 @@ const Mp = (t) => {
9909
9995
  dp(), cp();
9910
9996
  }, Kp = () => {
9911
9997
  jp();
9912
- const { isGeoBlocked: t, isSanctioned: e } = U(), { GeoBlockAlert: n, SanctionedAlert: a, CustomDepositMeta: o } = L(), s = t || e, i = [
9998
+ const { isGeoBlocked: t, isSanctioned: e } = $(), { GeoBlockAlert: n, SanctionedAlert: a, CustomDepositMeta: o } = O(), s = t || e, i = [
9913
9999
  {
9914
10000
  Component: n,
9915
10001
  value: t,
@@ -9922,13 +10008,13 @@ const Mp = (t) => {
9922
10008
  }
9923
10009
  ].filter(({ value: l }) => l);
9924
10010
  return /* @__PURE__ */ u(_, { children: [
9925
- /* @__PURE__ */ r(H.InputGroup, { children: /* @__PURE__ */ r(Vp, {}) }),
10011
+ /* @__PURE__ */ r(G.InputGroup, { children: /* @__PURE__ */ r(Vp, {}) }),
9926
10012
  o && /* @__PURE__ */ r(o, {}),
9927
10013
  /* @__PURE__ */ r(Yp, { children: s ? i.map(
9928
10014
  ({ Component: l, key: d }) => l && /* @__PURE__ */ r(l, {}, d)
9929
10015
  ) : /* @__PURE__ */ r(_, { children: /* @__PURE__ */ r(Jn, { children: /* @__PURE__ */ r(Cp, {}) }) }) })
9930
10016
  ] });
9931
- }, Qp = () => /* @__PURE__ */ r(H.Panel, { children: /* @__PURE__ */ r(Kp, {}) }), Xp = (t) => Object.keys(M).some((e) => e === t), Zp = ({ children: t }) => {
10017
+ }, Qp = () => /* @__PURE__ */ r(G.Panel, { children: /* @__PURE__ */ r(Kp, {}) }), Xp = (t) => Object.keys(M).some((e) => e === t), Zp = ({ children: t }) => {
9932
10018
  const e = hs();
9933
10019
  let n = null;
9934
10020
  return Ur.forEach(t, (a) => {
@@ -9938,10 +10024,10 @@ const Mp = (t) => {
9938
10024
  }
9939
10025
  }), n;
9940
10026
  }, Jp = ({ type: t }) => {
9941
- const e = x(), { DepositTermsOfUse: n, ActionButton: a = G } = L(), { handleReject: o, handleConfirm: s, isPending: i } = ye({
10027
+ const e = x(), { DepositTermsOfUse: n, ActionButton: a = q } = O(), { handleReject: o, handleConfirm: s, isPending: i } = ye({
9942
10028
  type: t
9943
10029
  });
9944
- return /* @__PURE__ */ u(H.Overlay, { className: "dtw-justify-between dtw-gap-y-1 dtw-overflow-y-auto theme-scrollbar", children: [
10030
+ return /* @__PURE__ */ u(G.Overlay, { className: "dtw-justify-between dtw-gap-y-1 dtw-overflow-y-auto theme-scrollbar", children: [
9945
10031
  /* @__PURE__ */ u("div", { className: "dtw-flex dtw-gap-1 dtw-items-center dtw-text-warning", children: [
9946
10032
  /* @__PURE__ */ r(Ge, { className: "dtw-h-5 dtw-w-5" }),
9947
10033
  /* @__PURE__ */ r("p", { children: e.termsOfUse })
@@ -9973,8 +10059,8 @@ const Mp = (t) => {
9973
10059
  ] })
9974
10060
  ] });
9975
10061
  }, eu = ({ type: t }) => {
9976
- const e = x(), { ActionButton: n = G } = L(), { handleReject: a, handleConfirm: o } = ye({ type: t });
9977
- return /* @__PURE__ */ u(H.Overlay, { className: "dtw-justify-between dtw-gap-y-1", children: [
10062
+ const e = x(), { ActionButton: n = q } = O(), { handleReject: a, handleConfirm: o } = ye({ type: t });
10063
+ return /* @__PURE__ */ u(G.Overlay, { className: "dtw-justify-between dtw-gap-y-1", children: [
9978
10064
  /* @__PURE__ */ u("div", { className: "dtw-flex dtw-gap-1 dtw-items-center dtw-text-warning", children: [
9979
10065
  /* @__PURE__ */ r(Ge, { className: "dtw-h-5 dtw-w-5" }),
9980
10066
  /* @__PURE__ */ r("p", { children: e.highSlippage })
@@ -10009,7 +10095,7 @@ const Mp = (t) => {
10009
10095
  handleConfirm: n
10010
10096
  };
10011
10097
  }, nu = (t) => {
10012
- const { ActionButton: e = G } = L(), {
10098
+ const { ActionButton: e = q } = O(), {
10013
10099
  isLoading: n,
10014
10100
  showUnlockTaxTip: a,
10015
10101
  showUnlockTaxAmount: o,
@@ -10018,7 +10104,7 @@ const Mp = (t) => {
10018
10104
  handleReject: l,
10019
10105
  handleConfirm: d
10020
10106
  } = tu(t);
10021
- return n ? /* @__PURE__ */ r(dc, {}) : /* @__PURE__ */ u(H.Overlay, { className: "dtw-justify-between dtw-gap-y-1", children: [
10107
+ return n ? /* @__PURE__ */ r(dc, {}) : /* @__PURE__ */ u(G.Overlay, { className: "dtw-justify-between dtw-gap-y-1", children: [
10022
10108
  /* @__PURE__ */ u("div", { className: "dtw-flex dtw-gap-1 dtw-items-center dtw-text-warning", children: [
10023
10109
  /* @__PURE__ */ r(Ge, { className: "dtw-h-5 dtw-w-5" }),
10024
10110
  /* @__PURE__ */ r("p", { children: "Withdraw Alert" })
@@ -10094,7 +10180,7 @@ const Mp = (t) => {
10094
10180
  const o = De({
10095
10181
  symbol: t.symbol,
10096
10182
  address: t.address
10097
- }), { defaultPrecision: s } = U();
10183
+ }), { defaultPrecision: s } = $();
10098
10184
  return {
10099
10185
  formattedBalance: new Re(o).toFixed(
10100
10186
  s,
@@ -10177,7 +10263,7 @@ const Mp = (t) => {
10177
10263
  searchQuery: t,
10178
10264
  type: e
10179
10265
  }) => {
10180
- const [{ isMultiAssetWithdrawalEnabled: n }] = Y(), { isCompleteWithdrawStep: a } = ft(), o = Ht(), [s] = xe(), { handleReject: i } = ye({ type: e }), { tokens: l, updater: d, activeTokens: c } = iu(), p = I(
10266
+ const [{ isMultiAssetWithdrawalEnabled: n }] = j(), { isCompleteWithdrawStep: a } = ft(), o = Ht(), [s] = xe(), { handleReject: i } = ye({ type: e }), { tokens: l, updater: d, activeTokens: c } = iu(), p = I(
10181
10267
  () => t ? l.filter(
10182
10268
  ({ symbol: y }) => y.toLowerCase().includes(t)
10183
10269
  ) : l,
@@ -10207,7 +10293,7 @@ const Mp = (t) => {
10207
10293
  onClose: l
10208
10294
  } = lu({ type: t, searchQuery: e });
10209
10295
  return /* @__PURE__ */ u(
10210
- H.Overlay,
10296
+ G.Overlay,
10211
10297
  {
10212
10298
  onClose: l,
10213
10299
  centered: !1,
@@ -10251,7 +10337,7 @@ const Mp = (t) => {
10251
10337
  children: t,
10252
10338
  chainId: e
10253
10339
  }) => {
10254
- const { chainConfig: n } = U(), { Image: a = vs } = L(), o = n[e]?.iconPath, s = n[e]?.name;
10340
+ const { chainConfig: n } = $(), { Image: a = vs } = O(), o = n[e]?.iconPath, s = n[e]?.name;
10255
10341
  return /* @__PURE__ */ u("div", { children: [
10256
10342
  /* @__PURE__ */ u("div", { className: "dtw-sticky dtw-top-0 dtw-z-10 dtw-flex dtw-items-center dtw-space-x-3 dtw-bg-[color:var(--panel-popup-list-header-bg)] dtw-drop-shadow-md dtw-p-3", children: [
10257
10343
  o && /* @__PURE__ */ r("div", { className: "dtw-h-6 dtw-w-6", children: /* @__PURE__ */ r(
@@ -10269,9 +10355,9 @@ const Mp = (t) => {
10269
10355
  t
10270
10356
  ] });
10271
10357
  }, Tn = (t, e) => t.address in e ? {
10272
- balanceInUsd: e[t.address]?.balanceInUsd ?? se({ value: 0 }),
10358
+ balanceInUsd: e[t.address]?.balanceInUsd ?? re({ value: 0 }),
10273
10359
  balanceInUsdNumber: e[t.address]?.balanceInUsdNumber ?? 0
10274
- } : { balanceInUsd: se({ value: 0 }), balanceInUsdNumber: 0 }, pu = (t) => (e, n) => Tn(n, t).balanceInUsdNumber - Tn(e, t).balanceInUsdNumber, uu = ({
10360
+ } : { balanceInUsd: re({ value: 0 }), balanceInUsdNumber: 0 }, pu = (t) => (e, n) => Tn(n, t).balanceInUsdNumber - Tn(e, t).balanceInUsdNumber, uu = ({
10275
10361
  searchQuery: t,
10276
10362
  type: e
10277
10363
  }) => {
@@ -10319,7 +10405,7 @@ const Mp = (t) => {
10319
10405
  searchQuery: e
10320
10406
  });
10321
10407
  return /* @__PURE__ */ u(
10322
- H.Overlay,
10408
+ G.Overlay,
10323
10409
  {
10324
10410
  onClose: o,
10325
10411
  centered: !1,
@@ -10342,7 +10428,7 @@ const Mp = (t) => {
10342
10428
  symbol: c,
10343
10429
  address: p,
10344
10430
  value: "",
10345
- decimals: O
10431
+ decimals: L
10346
10432
  },
10347
10433
  onSelect: s,
10348
10434
  isActive: d,
@@ -10364,7 +10450,7 @@ const Mp = (t) => {
10364
10450
  const n = e[0];
10365
10451
  return `${n.slice(0, 4)}...${n.slice(-3)}`;
10366
10452
  }, wu = ({ type: t }) => {
10367
- const { address: e, symbol: n, chainId: a } = v(), [{ link: o, sendTokens: s }, i] = J(), { handleReject: l } = ye({ type: t }), d = s?.[0], c = yu(o), p = me({
10453
+ const { address: e, symbol: n, chainId: a } = v(), [{ link: o, sendTokens: s }, i] = ee(), { handleReject: l } = ye({ type: t }), d = s?.[0], c = yu(o), p = me({
10368
10454
  address: e,
10369
10455
  chainId: a
10370
10456
  });
@@ -10376,11 +10462,11 @@ const Mp = (t) => {
10376
10462
  vaultSymbol: n,
10377
10463
  paidToken: d,
10378
10464
  txHash: c,
10379
- vaultTokenPrice: se({ value: p })
10465
+ vaultTokenPrice: re({ value: p })
10380
10466
  };
10381
10467
  }, hu = (t) => {
10382
- const e = x(), { link: n, onClose: a, vaultSymbol: o, paidToken: s, txHash: i, vaultTokenPrice: l } = wu(t), { ActionButton: d = G } = L();
10383
- return /* @__PURE__ */ u(H.Overlay, { className: "dtw-justify-between dtw-gap-y-4", noPadding: !0, children: [
10468
+ const e = x(), { link: n, onClose: a, vaultSymbol: o, paidToken: s, txHash: i, vaultTokenPrice: l } = wu(t), { ActionButton: d = q } = O();
10469
+ return /* @__PURE__ */ u(G.Overlay, { className: "dtw-justify-between dtw-gap-y-4", noPadding: !0, children: [
10384
10470
  /* @__PURE__ */ u("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", children: [
10385
10471
  /* @__PURE__ */ u("div", { className: "dtw-text-[color:var(--panel-success-content-color)] dtw-mb-2", children: [
10386
10472
  /* @__PURE__ */ r(Ut, { className: "dtw-h-16 dtw-w-16 lg:dtw-h-24 lg:dtw-w-24 dtw-shrink-0" }),
@@ -10424,7 +10510,7 @@ const Mp = (t) => {
10424
10510
  ] })
10425
10511
  ] });
10426
10512
  }, gu = () => {
10427
- const t = x(), { LogoSpinner: e = Le } = L(), [{ link: n }] = J();
10513
+ const t = x(), { LogoSpinner: e = Oe } = O(), [{ link: n }] = ee();
10428
10514
  return /* @__PURE__ */ u("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: [
10429
10515
  /* @__PURE__ */ r(e, { className: "dtw-h-16 dtw-w-16 lg:dtw-h-24 lg:dtw-w-24 dtw-shrink-0" }),
10430
10516
  t.miningTx,
@@ -10441,7 +10527,7 @@ const Mp = (t) => {
10441
10527
  }, Tu = ({
10442
10528
  onClose: t
10443
10529
  }) => {
10444
- const e = x(), { ActionButton: n = G } = L(), [{ link: a }] = J();
10530
+ const e = x(), { ActionButton: n = q } = O(), [{ link: a }] = ee();
10445
10531
  return /* @__PURE__ */ u(_, { children: [
10446
10532
  /* @__PURE__ */ u("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: [
10447
10533
  /* @__PURE__ */ u("div", { className: "dtw-flex dtw-flex-col dtw-items-center dtw-gap-2 dtw-text-[color:var(--panel-success-content-color)]", children: [
@@ -10461,14 +10547,14 @@ const Mp = (t) => {
10461
10547
  /* @__PURE__ */ r("div", { className: "dtw-flex dtw-flex-col dtw-gap-2 dtw-w-full", children: /* @__PURE__ */ r(n, { highlighted: !1, onClick: t, children: e.done }) })
10462
10548
  ] });
10463
10549
  }, bu = ({ type: t }) => {
10464
- const [{ status: e }, n] = J(), { handleReject: a } = ye({ type: t }), o = e === "Mining";
10550
+ const [{ status: e }, n] = ee(), { handleReject: a } = ye({ type: t }), o = e === "Mining";
10465
10551
  return { onClose: T(() => {
10466
10552
  n({ isOpen: !1 }), a();
10467
10553
  }, [a, n]), isProcessing: o };
10468
10554
  }, fu = (t) => {
10469
10555
  const { onClose: e, isProcessing: n } = bu(t);
10470
10556
  return /* @__PURE__ */ r(
10471
- H.Overlay,
10557
+ G.Overlay,
10472
10558
  {
10473
10559
  className: "dtw-justify-between dtw-gap-y-4",
10474
10560
  onClose: e,
@@ -10477,7 +10563,7 @@ const Mp = (t) => {
10477
10563
  }
10478
10564
  );
10479
10565
  }, vu = ({ type: t }) => {
10480
- const e = x(), [{ status: n, link: a, action: o }, s] = J(), i = n == "Success", { handleReject: l } = ye({ type: t }), d = o === "single_withdraw" && i, c = i && o === "deposit", p = o === "create_limit_sell_order", m = o === "limit_order_withdraw", y = I(
10566
+ const e = x(), [{ status: n, link: a, action: o }, s] = ee(), i = n == "Success", { handleReject: l } = ye({ type: t }), d = o === "single_withdraw" && i, c = i && o === "deposit", p = o === "create_limit_sell_order", m = o === "limit_order_withdraw", y = I(
10481
10567
  () => ({
10482
10568
  Wallet: e.sendingOrderToWallet,
10483
10569
  None: e.settingUpTx,
@@ -10533,7 +10619,7 @@ const Mp = (t) => {
10533
10619
  ] }) : /* @__PURE__ */ r(_, { children: n === "multi_withdraw" ? a.multiAssetFractions : a.swappableAssets }) })
10534
10620
  ] }) : null;
10535
10621
  }, Du = () => {
10536
- const t = x(), [{ action: e, receiveTokens: n, sendTokens: a }] = J();
10622
+ const t = x(), [{ action: e, receiveTokens: n, sendTokens: a }] = ee();
10537
10623
  return e === "approve" ? /* @__PURE__ */ r(Au, { sendTokens: a }) : e === "swap" ? /* @__PURE__ */ r(Su, { receiveTokens: n }) : e === "claim" ? /* @__PURE__ */ r(_, { children: t.claimLabel }) : e === "create_limit_sell_order" ? /* @__PURE__ */ r(_, { children: t.createLimitSellOrder }) : e === "delete_limit_order_withdraw" ? /* @__PURE__ */ r(_, { children: t.deleteWithdrawalRequest }) : /* @__PURE__ */ r(
10538
10624
  xu,
10539
10625
  {
@@ -10543,14 +10629,14 @@ const Mp = (t) => {
10543
10629
  }
10544
10630
  );
10545
10631
  }, Eu = ({ type: t }) => {
10546
- const [, e] = J(), { handleReject: n } = ye({ type: t }), [{ link: a, status: o }] = J(), s = o == "Success";
10632
+ const [, e] = ee(), { handleReject: n } = ye({ type: t }), [{ link: a, status: o }] = ee(), s = o == "Success";
10547
10633
  return { onClose: T(() => {
10548
10634
  e({ isOpen: !1 }), n();
10549
10635
  }, [n, e]), link: a, isSuccessTx: s };
10550
10636
  }, Iu = (t) => {
10551
- const e = x(), { ActionButton: n = G } = L(), { onClose: a, link: o, isSuccessTx: s } = Eu(t);
10637
+ const e = x(), { ActionButton: n = q } = O(), { onClose: a, link: o, isSuccessTx: s } = Eu(t);
10552
10638
  return s ? /* @__PURE__ */ u(
10553
- H.Overlay,
10639
+ G.Overlay,
10554
10640
  {
10555
10641
  className: "dtw-justify-between dtw-gap-y-4",
10556
10642
  onClose: a,
@@ -10584,8 +10670,8 @@ const Mp = (t) => {
10584
10670
  displaySuccessDepositOverlay: i,
10585
10671
  displayLimitOrderTransactionOverlay: l,
10586
10672
  displayWithdrawLimitOrderOverlay: d
10587
- } = vu({ type: t }), { LogoSpinner: c = Le } = L(), p = x();
10588
- return l ? /* @__PURE__ */ r(fu, { type: t }) : i ? /* @__PURE__ */ r(hu, { type: t }) : d ? /* @__PURE__ */ r(Iu, { type: t }) : /* @__PURE__ */ u(H.Notification, { onClose: a, children: [
10673
+ } = vu({ type: t }), { LogoSpinner: c = Oe } = O(), p = x();
10674
+ return l ? /* @__PURE__ */ r(fu, { type: t }) : i ? /* @__PURE__ */ r(hu, { type: t }) : d ? /* @__PURE__ */ r(Iu, { type: t }) : /* @__PURE__ */ u(G.Notification, { onClose: a, children: [
10589
10675
  /* @__PURE__ */ u("div", { className: "dtw-flex dtw-items-center dtw-gap-1.5", children: [
10590
10676
  /* @__PURE__ */ r("span", { className: "dtw-font-semibold dtw-drop-shadow-md", children: n }),
10591
10677
  o ? /* @__PURE__ */ r(En, { className: "dtw-h-6 dtw-w-6 dtw-text-[color:var(--panel-success-content-color)]" }) : /* @__PURE__ */ r(c, { className: "dtw-h-5 dtw-w-5 " })
@@ -10615,17 +10701,17 @@ const Mp = (t) => {
10615
10701
  };
10616
10702
  }, ku = (t) => {
10617
10703
  const { handleReject: e, error: n } = _u(t);
10618
- return n ? /* @__PURE__ */ u(H.Notification, { onClose: e, children: [
10704
+ return n ? /* @__PURE__ */ u(G.Notification, { onClose: e, children: [
10619
10705
  /* @__PURE__ */ r("p", { className: "dtw-text-sm", children: n.title }),
10620
10706
  n.hint && /* @__PURE__ */ r("p", { className: "dtw-text-xs", children: n.hint })
10621
10707
  ] }) : null;
10622
- }, Lu = [
10708
+ }, Ou = [
10623
10709
  "dtw-bg-transparent",
10624
10710
  "dtw-border-[var(--limit-order-action-outline-button-border-color,var(--limit-order-border-color))]",
10625
10711
  "!dtw-text-[color:var(--limit-order-action-outline-button-color,var(--limit-order-content-color))]",
10626
10712
  "active:dtw-border-opacity-100",
10627
10713
  "hover:enabled:dtw-border-[var(--limit-order-action-outline-button-border-hover-color)]"
10628
- ], Ou = [
10714
+ ], Lu = [
10629
10715
  "!dtw-text-[color:var(--limit-order-action-accent-button-color,var(--limit-order-accent-content-color))]",
10630
10716
  "dtw-bg-gradient-to-r",
10631
10717
  "dtw-from-[var(--limit-order-action-accent-button-bg-from,var(--limit-order-accent-from-color))]",
@@ -10657,8 +10743,8 @@ const Mp = (t) => {
10657
10743
  "dtw-px-5",
10658
10744
  "dtw-w-full",
10659
10745
  {
10660
- [Ou.join(" ")]: n,
10661
- [Lu.join(" ")]: !n,
10746
+ [Lu.join(" ")]: n,
10747
+ [Ou.join(" ")]: !n,
10662
10748
  "dtw-flex dtw-items-center dtw-justify-center dtw-gap-1": i
10663
10749
  },
10664
10750
  o
@@ -10667,7 +10753,7 @@ const Mp = (t) => {
10667
10753
  disabled: a || i,
10668
10754
  type: s,
10669
10755
  children: [
10670
- i && /* @__PURE__ */ r(Le, { className: "dtw-h-4 dtw-w-4 dtw-stroke-[var(--limit-order-accent-content-color)]" }),
10756
+ i && /* @__PURE__ */ r(Oe, { className: "dtw-h-4 dtw-w-4 dtw-stroke-[var(--limit-order-accent-content-color)]" }),
10671
10757
  t
10672
10758
  ]
10673
10759
  }
@@ -10723,7 +10809,7 @@ const Mp = (t) => {
10723
10809
  onInputChange: e,
10724
10810
  autoFocus: n = !1
10725
10811
  }) => {
10726
- const [a, o] = ne(t), s = Ft(null);
10812
+ const [a, o] = ae(t), s = Ft(null);
10727
10813
  return {
10728
10814
  inputRef: s,
10729
10815
  value: a,
@@ -10775,7 +10861,7 @@ const Mp = (t) => {
10775
10861
  onInputChange: e,
10776
10862
  autoFocus: n = !1
10777
10863
  }) => {
10778
- const [a, o] = ne(Aa(t)), s = Ft(null);
10864
+ const [a, o] = ae(Aa(t)), s = Ft(null);
10779
10865
  return {
10780
10866
  inputRef: s,
10781
10867
  value: a,
@@ -10823,7 +10909,7 @@ const Mp = (t) => {
10823
10909
  onDisable: a,
10824
10910
  children: o
10825
10911
  }) => {
10826
- const [s, i] = ne(n);
10912
+ const [s, i] = ae(n);
10827
10913
  return /* @__PURE__ */ u("div", { className: "dtw-px-3 dtw-py-2 dtw-flex dtw-flex-col dtw-gap-2 dtw-border dtw-border-[var(--limit-order-switch-panel-border-color)] dtw-rounded-[var(--limit-order-switch-panel-radius,var(--limit-order-radius))]", children: [
10828
10914
  /* @__PURE__ */ u("div", { className: "dtw-flex dtw-justify-between dtw-text-[length:var(--limit-order-input-label-font-size,var(--limit-order-font-size))] dtw-leading-[var(--limit-order-input-label-line-height,var(--limit-order-line-height))] dtw-font-[var(--limit-order-input-label-font-weight,var(--limit-order-font-weight-light))] dtw-gap-x-2", children: [
10829
10915
  /* @__PURE__ */ u("div", { className: "dtw-flex dtw-flex-col dtw-gap-0.5 dtw-text-[color:var(--limit-order-secondary-content-color)]", children: [
@@ -11039,11 +11125,11 @@ const ar = (t) => ({
11039
11125
  markPrice: m
11040
11126
  }), E = T(() => {
11041
11127
  l("");
11042
- }, [l]), $ = T(() => {
11128
+ }, [l]), z = T(() => {
11043
11129
  d("");
11044
11130
  }, [d]), C = T(() => {
11045
11131
  c("");
11046
- }, [c]), ee = `${s.symbol} ${t.price}`;
11132
+ }, [c]), te = `${s.symbol} ${t.price}`;
11047
11133
  return {
11048
11134
  upperLimitPrice: e,
11049
11135
  lowerLimitPrice: n,
@@ -11052,18 +11138,18 @@ const ar = (t) => ({
11052
11138
  setLowerLimitPrice: d,
11053
11139
  setSellPercentage: c,
11054
11140
  onDisableUpperLimitPrice: E,
11055
- onDisableLowerLimitPrice: $,
11141
+ onDisableLowerLimitPrice: z,
11056
11142
  onDisableSellPercentage: C,
11057
11143
  termsAccepted: o,
11058
11144
  setTermsAccepted: p,
11059
- pricingAssetPrice: m === "0" ? null : se({
11145
+ pricingAssetPrice: m === "0" ? null : re({
11060
11146
  value: m,
11061
11147
  maximumFractionDigits: y
11062
11148
  }),
11063
11149
  upperLimitPriceDifference: g,
11064
11150
  lowerLimitPriceDifference: A,
11065
11151
  pricingAssetSymbol: s.symbol,
11066
- inputSuffix: ee,
11152
+ inputSuffix: te,
11067
11153
  coveredVaultAmount: w,
11068
11154
  vaultSymbol: h
11069
11155
  };
@@ -11132,7 +11218,7 @@ const ar = (t) => ({
11132
11218
  setSellPercentage: g,
11133
11219
  onDisableSellPercentage: A,
11134
11220
  coveredVaultAmount: E,
11135
- vaultSymbol: $
11221
+ vaultSymbol: z
11136
11222
  } = qu();
11137
11223
  return /* @__PURE__ */ u(_, { children: [
11138
11224
  /* @__PURE__ */ u("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: [
@@ -11197,7 +11283,7 @@ const ar = (t) => ({
11197
11283
  placeholder: Jo,
11198
11284
  postfix: /* @__PURE__ */ u("div", { className: "dtw-flex dtw-flex-col dtw-items-end dtw-justify-center", children: [
11199
11285
  /* @__PURE__ */ r("span", { className: "dtw-text-[color:var(--limit-order-primary-content-color)]", children: E }),
11200
- /* @__PURE__ */ r("span", { className: "dtw-text-[color:var(--limit-order-secondary-content-color)]", children: $ })
11286
+ /* @__PURE__ */ r("span", { className: "dtw-text-[color:var(--limit-order-secondary-content-color)]", children: z })
11201
11287
  ] })
11202
11288
  }
11203
11289
  )
@@ -11216,7 +11302,7 @@ const ar = (t) => ({
11216
11302
  /* @__PURE__ */ r(ju, { className: "dtw-px-2" })
11217
11303
  ] });
11218
11304
  }, Qu = () => {
11219
- const { account: t = D } = R(), { vaultAddress: e, vaultChainId: n } = Te(), a = z("limitOrder", n), o = ta(), { data: s } = Bn({
11305
+ const { account: t = D } = R(), { vaultAddress: e, vaultChainId: n } = Te(), a = V("limitOrder", n), o = ta(), { data: s } = Bn({
11220
11306
  tokenAddress: e,
11221
11307
  ownerAddress: t,
11222
11308
  spenderAddress: a,
@@ -11224,7 +11310,7 @@ const ar = (t) => ({
11224
11310
  });
11225
11311
  return s ? new b(o.raw).lte(s.toString()) : !1;
11226
11312
  }, Xu = () => {
11227
- const { vaultAddress: t, vaultChainId: e, pendingTransaction: n } = Te(), { setPendingTransaction: a } = Dt(), [o, s] = ne(!1), i = z("limitOrder", e), { send: l } = ke({
11313
+ const { vaultAddress: t, vaultChainId: e, pendingTransaction: n } = Te(), { setPendingTransaction: a } = Dt(), [o, s] = ae(!1), i = V("limitOrder", e), { send: l } = ke({
11228
11314
  contractId: "erc20",
11229
11315
  dynamicContractAddress: t,
11230
11316
  functionName: "approve",
@@ -11285,9 +11371,9 @@ const ar = (t) => ({
11285
11371
  a,
11286
11372
  o,
11287
11373
  s
11288
- ]) => oe(o) ? null : {
11289
- takeProfitPrice: fe(n, O),
11290
- stopLossPrice: fe(e, O),
11374
+ ]) => se(o) ? null : {
11375
+ takeProfitPrice: fe(n, L),
11376
+ stopLossPrice: fe(e, L),
11291
11377
  takeProfitPriceD18: n,
11292
11378
  stopLossPriceD18: e,
11293
11379
  amountD18: t,
@@ -11299,13 +11385,13 @@ const ar = (t) => ({
11299
11385
  userAddress: e,
11300
11386
  vaultAddress: n
11301
11387
  }) => _e({
11302
- address: z("limitOrder", t),
11388
+ address: V("limitOrder", t),
11303
11389
  abi: kn,
11304
11390
  chainId: t,
11305
11391
  functionName: Wn,
11306
11392
  args: [zu({ userAddress: e, vaultAddress: n })],
11307
11393
  query: {
11308
- enabled: !oe(e) && !oe(n),
11394
+ enabled: !se(e) && !se(n),
11309
11395
  select: em
11310
11396
  }
11311
11397
  }), tm = kn.filter(
@@ -11325,16 +11411,16 @@ const ar = (t) => ({
11325
11411
  }), y = me({
11326
11412
  address: n,
11327
11413
  chainId: a
11328
- }), [w, h] = ne(null), g = lr(nm), A = !!m, { send: E } = ke({
11414
+ }), [w, h] = ae(null), g = lr(nm), A = !!m, { send: E } = ke({
11329
11415
  onSettled: g,
11330
11416
  contractId: "limitOrder",
11331
11417
  functionName: A ? "modifyLimitOrder" : "createLimitOrder"
11332
11418
  }), C = new Re(p.formatted).multipliedBy(
11333
11419
  y ?? "0"
11334
- ).gte(c), ee = !i || !C, be = !!d;
11420
+ ).gte(c), te = !i || !C, be = !!d;
11335
11421
  return {
11336
11422
  modifyLimitOrder: async () => {
11337
- const Et = BigInt(o ? wn(o, O) : 0), It = s ? BigInt(wn(s, O)) : Ke, Ct = [
11423
+ const Et = BigInt(o ? wn(o, L) : 0), It = s ? BigInt(wn(s, L)) : Ke, Ct = [
11338
11424
  p.raw,
11339
11425
  Et,
11340
11426
  It,
@@ -11348,7 +11434,7 @@ const ar = (t) => ({
11348
11434
  st instanceof ht && h(st.message);
11349
11435
  }
11350
11436
  },
11351
- disabled: ee,
11437
+ disabled: te,
11352
11438
  error: Gu({
11353
11439
  error: Bo({
11354
11440
  errorMessage: w,
@@ -11358,7 +11444,7 @@ const ar = (t) => ({
11358
11444
  }),
11359
11445
  isPending: be,
11360
11446
  isAmountSufficient: C,
11361
- minAmount: se({
11447
+ minAmount: re({
11362
11448
  value: c.toString(),
11363
11449
  maximumFractionDigits: 0,
11364
11450
  minimumFractionDigits: 0
@@ -11482,7 +11568,7 @@ const ar = (t) => ({
11482
11568
  pollingInterval: Qe
11483
11569
  });
11484
11570
  k(() => {
11485
- d && (t?.action === "create" && i?.(j.CREATE_LIMIT_SELL_ORDER, {
11571
+ d && (t?.action === "create" && i?.(K.CREATE_LIMIT_SELL_ORDER, {
11486
11572
  [Ce.ADDRESS.NAME]: n,
11487
11573
  [Ce.CHAIN_ID.NAME]: e
11488
11574
  }), l(), a(null), o?.(d.transactionHash));
@@ -11720,7 +11806,7 @@ const ar = (t) => ({
11720
11806
  );
11721
11807
  return l ? /* @__PURE__ */ r(tr, { config: a, children: /* @__PURE__ */ r(rr, { initialState: p, actions: s, children: /* @__PURE__ */ r(mm, { themeConfig: i }) }) }) : null;
11722
11808
  }, wm = ({ type: t }) => {
11723
- const { minLimitOrderValue: e } = U(), { address: n, chainId: a, pricingAsset: o, symbol: s } = v(), { handleReject: i } = ye({ type: t }), l = J()[1], d = ce()[1], c = Gd(), p = I(
11809
+ const { minLimitOrderValue: e } = $(), { address: n, chainId: a, pricingAsset: o, symbol: s } = v(), { handleReject: i } = ye({ type: t }), l = ee()[1], d = ce()[1], c = Gd(), p = I(
11724
11810
  () => ({
11725
11811
  onTransactionSettled: (y) => {
11726
11812
  y && (i(), d({
@@ -11759,7 +11845,7 @@ const ar = (t) => ({
11759
11845
  closeAllOverlays: m
11760
11846
  };
11761
11847
  }, hm = (t) => {
11762
- const { limitOrderThemeConfig: e } = U(), {
11848
+ const { limitOrderThemeConfig: e } = $(), {
11763
11849
  handleReject: n,
11764
11850
  chainId: a,
11765
11851
  address: o,
@@ -11769,7 +11855,7 @@ const ar = (t) => ({
11769
11855
  closeAllOverlays: d
11770
11856
  } = wm(t);
11771
11857
  return s ? /* @__PURE__ */ r(
11772
- H.Overlay,
11858
+ G.Overlay,
11773
11859
  {
11774
11860
  onClose: d,
11775
11861
  onBack: n,
@@ -11792,7 +11878,7 @@ const ar = (t) => ({
11792
11878
  const [t] = N();
11793
11879
  return new b(t.value || "0").shiftedBy(t.decimals);
11794
11880
  }, gm = () => {
11795
- const { account: t = D } = R(), { address: e, chainId: n } = v(), a = z("limitOrder", n), o = mr(), { data: s } = Bn({
11881
+ const { account: t = D } = R(), { address: e, chainId: n } = v(), a = V("limitOrder", n), o = mr(), { data: s } = Bn({
11796
11882
  tokenAddress: e,
11797
11883
  ownerAddress: t,
11798
11884
  spenderAddress: a,
@@ -11800,7 +11886,7 @@ const ar = (t) => ({
11800
11886
  });
11801
11887
  return s ? o.lte(s.toString()) : !1;
11802
11888
  }, Da = "approve", Tm = () => {
11803
- const { address: t, chainId: e, symbol: n } = v(), [a, o] = ne(!1), s = z("limitOrder", e), i = ce()[1], l = nt(Da), { send: d } = ke({
11889
+ const { address: t, chainId: e, symbol: n } = v(), [a, o] = ae(!1), s = V("limitOrder", e), i = ce()[1], l = nt(Da), { send: d } = ke({
11804
11890
  contractId: "erc20",
11805
11891
  dynamicContractAddress: t,
11806
11892
  functionName: "approve",
@@ -11829,7 +11915,7 @@ const ar = (t) => ({
11829
11915
  }, fm = ({
11830
11916
  children: t
11831
11917
  }) => {
11832
- const e = x(), { ActionButton: n = G } = L(), { isApproved: a, approveLimitOrder: o, isApprovePending: s } = bm();
11918
+ const e = x(), { ActionButton: n = q } = O(), { isApproved: a, approveLimitOrder: o, isApprovePending: s } = bm();
11833
11919
  return a ? t : /* @__PURE__ */ r(n, { onClick: o, loading: s, children: e.approve });
11834
11920
  }, Ea = "limit_order_withdraw", vm = (t) => {
11835
11921
  const { account: e = D } = R(), {
@@ -11881,7 +11967,7 @@ const ar = (t) => ({
11881
11967
  limitOrderHandler: t,
11882
11968
  action: e
11883
11969
  }) => {
11884
- const n = x(), a = ie(), { account: o } = R(), s = v(), [i] = N(), l = J()[1], d = ce()[1], c = Rn(), p = e === "delete_limit_order_withdraw", m = async () => {
11970
+ const n = x(), a = le(), { account: o } = R(), s = v(), [i] = N(), l = ee()[1], d = ce()[1], c = Rn(), p = e === "delete_limit_order_withdraw", m = async () => {
11885
11971
  const y = s.chainId;
11886
11972
  l({
11887
11973
  isOpen: !0,
@@ -11924,7 +12010,7 @@ const ar = (t) => ({
11924
12010
  handleLimitOrderWithdraw: m
11925
12011
  };
11926
12012
  }, Sm = "limit_order_withdraw", xm = () => {
11927
- const t = ie(), e = ot("limit_order_withdraw"), n = T(
12013
+ const t = le(), e = ot("limit_order_withdraw"), n = T(
11928
12014
  () => t({
11929
12015
  type: "MERGE_OVERLAY",
11930
12016
  payload: { type: M.LIMIT_ORDER_WITHDRAW, isOpen: !1 }
@@ -11940,7 +12026,7 @@ const ar = (t) => ({
11940
12026
  isLoading: e
11941
12027
  };
11942
12028
  }, Dm = ({ disabled: t }) => {
11943
- const { ActionButton: e = G } = L(), { label: n, handleLimitOrderWithdraw: a, isLoading: o } = xm();
12029
+ const { ActionButton: e = q } = O(), { label: n, handleLimitOrderWithdraw: a, isLoading: o } = xm();
11944
12030
  return /* @__PURE__ */ r(
11945
12031
  e,
11946
12032
  {
@@ -11975,8 +12061,8 @@ const ar = (t) => ({
11975
12061
  )
11976
12062
  ] });
11977
12063
  }, Cm = ({ type: t }) => {
11978
- const e = x(), { ActionButton: n = G } = L(), { handleReject: a } = ye({ type: t }), [o, s] = ne(!1);
11979
- return /* @__PURE__ */ r(H.Overlay, { onClose: a, children: /* @__PURE__ */ u("div", { className: "dtw-flex dtw-flex-col dtw-gap-2 dtw-w-full", children: [
12064
+ const e = x(), { ActionButton: n = q } = O(), { handleReject: a } = ye({ type: t }), [o, s] = ae(!1);
12065
+ return /* @__PURE__ */ r(G.Overlay, { onClose: a, children: /* @__PURE__ */ u("div", { className: "dtw-flex dtw-flex-col dtw-gap-2 dtw-w-full", children: [
11980
12066
  /* @__PURE__ */ u("div", { className: "dtw-px-2 dtw-flex dtw-flex-col dtw-gap-2", children: [
11981
12067
  /* @__PURE__ */ r(Im, {}),
11982
12068
  /* @__PURE__ */ r("div", { className: "dtw-mt-1 dtw-flex dtw-items-center dtw-gap-1.5", children: /* @__PURE__ */ r(
@@ -12022,7 +12108,7 @@ const ar = (t) => ({
12022
12108
  /* @__PURE__ */ r(Bs, {})
12023
12109
  ] });
12024
12110
  }, _m = ({ assets: t = [] }) => {
12025
- const { stablePrecision: e } = U(), { firstPart: n, secondPart: a } = Po(
12111
+ const { stablePrecision: e } = $(), { firstPart: n, secondPart: a } = Po(
12026
12112
  t,
12027
12113
  so
12028
12114
  ), o = T(
@@ -12037,7 +12123,7 @@ const ar = (t) => ({
12037
12123
  size: "sm"
12038
12124
  }
12039
12125
  ),
12040
- /* @__PURE__ */ r("p", { className: "dtw-truncate dtw-text-xs dtw-text-[color:var(--panel-secondary-content-color)]", children: se({
12126
+ /* @__PURE__ */ r("p", { className: "dtw-truncate dtw-text-xs dtw-text-[color:var(--panel-secondary-content-color)]", children: re({
12041
12127
  value: p * c
12042
12128
  }) })
12043
12129
  ] }),
@@ -12053,10 +12139,10 @@ const ar = (t) => ({
12053
12139
  a.length > 0 && /* @__PURE__ */ r(qs, { children: /* @__PURE__ */ r(Wt, { children: a.map(o) }) })
12054
12140
  ] });
12055
12141
  }, km = () => {
12056
- const { chainId: t } = v(), { stablePrecision: e } = U(), { data: n = [] } = Ee(), a = Es(), { data: o = D } = Ic();
12142
+ const { chainId: t } = v(), { stablePrecision: e } = $(), { data: n = [] } = Ee(), a = Es(), { data: o = D } = Ic();
12057
12143
  return {
12058
12144
  assets: n,
12059
- usdAmount: se({
12145
+ usdAmount: re({
12060
12146
  value: a,
12061
12147
  maximumFractionDigits: e
12062
12148
  }),
@@ -12066,7 +12152,7 @@ const ar = (t) => ({
12066
12152
  t
12067
12153
  )
12068
12154
  };
12069
- }, Lm = () => {
12155
+ }, Om = () => {
12070
12156
  const t = x(), { assets: e, usdAmount: n, withdrawalVaultLink: a } = km();
12071
12157
  return /* @__PURE__ */ u(_, { children: [
12072
12158
  /* @__PURE__ */ u("div", { className: "dtw-text-sm dtw-flex dtw-items-center dtw-gap-1", children: [
@@ -12082,7 +12168,7 @@ const ar = (t) => ({
12082
12168
  ] }),
12083
12169
  /* @__PURE__ */ r("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__ */ r(_m, { assets: e }) })
12084
12170
  ] });
12085
- }, Ia = !0, Om = () => {
12171
+ }, Ia = !0, Lm = () => {
12086
12172
  const { isWrongNetwork: t } = zs(), e = Ds({ isClaim: Ia }), { disabled: n, label: a, handleTrade: o } = Cs({
12087
12173
  withdraw: e,
12088
12174
  isClaim: Ia
@@ -12092,7 +12178,7 @@ const ar = (t) => ({
12092
12178
  highlighted: t,
12093
12179
  className: e
12094
12180
  }) => {
12095
- const { ActionButton: n = G } = L(), { handleTrade: a, disabled: o, label: s, isWrongNetwork: i, isLoading: l } = Om();
12181
+ const { ActionButton: n = q } = O(), { handleTrade: a, disabled: o, label: s, isWrongNetwork: i, isLoading: l } = Lm();
12096
12182
  return i ? null : /* @__PURE__ */ r(
12097
12183
  n,
12098
12184
  {
@@ -12105,7 +12191,7 @@ const ar = (t) => ({
12105
12191
  }
12106
12192
  );
12107
12193
  }, Pm = () => {
12108
- const t = ie(), e = Ds(), { isError: n } = vt(), { disabled: a, label: o, handleTrade: s } = Cs({
12194
+ const t = le(), e = Ds(), { isError: n } = vt(), { disabled: a, label: o, handleTrade: s } = Cs({
12109
12195
  withdraw: e
12110
12196
  }), i = ot("swap");
12111
12197
  return {
@@ -12130,10 +12216,10 @@ const ar = (t) => ({
12130
12216
  isLoading: i
12131
12217
  };
12132
12218
  }, Rm = () => {
12133
- const { ActionButton: t = G } = L(), { handleClick: e, disabled: n, label: a, isLoading: o } = Pm();
12219
+ const { ActionButton: t = q } = O(), { handleClick: e, disabled: n, label: a, isLoading: o } = Pm();
12134
12220
  return /* @__PURE__ */ r(t, { onClick: e, disabled: n, loading: o, children: a });
12135
12221
  }, Bm = () => {
12136
- const t = ie(), { requiresHighSlippageConfirm: e, confirmHighSlippage: n, slippageToBeUsed: a } = Hn();
12222
+ const t = le(), { requiresHighSlippageConfirm: e, confirmHighSlippage: n, slippageToBeUsed: a } = Hn();
12137
12223
  return {
12138
12224
  requiresHighSlippageConfirm: e,
12139
12225
  slippageToBeUsed: a,
@@ -12149,7 +12235,7 @@ const ar = (t) => ({
12149
12235
  }
12150
12236
  };
12151
12237
  }, Mm = ({ children: t }) => {
12152
- const { ActionButton: e = G } = L(), n = x(), {
12238
+ const { ActionButton: e = q } = O(), n = x(), {
12153
12239
  requiresHighSlippageConfirm: a,
12154
12240
  slippageToBeUsed: o,
12155
12241
  handleHighSlippageClick: s
@@ -12159,7 +12245,7 @@ const ar = (t) => ({
12159
12245
  `${Math.abs(o)}`
12160
12246
  ) }) : t;
12161
12247
  }, Wm = () => {
12162
- Lc();
12248
+ Oc();
12163
12249
  const t = Kn(), e = We();
12164
12250
  return { showSwapButton: t && !e };
12165
12251
  }, Fm = () => {
@@ -12190,7 +12276,7 @@ const ar = (t) => ({
12190
12276
  }
12191
12277
  );
12192
12278
  }, $m = () => {
12193
- const t = x(), { stablePrecision: e } = U(), [n] = P(), a = At(), { minExpectedReceiveAmount: o } = jn(), s = Tt(a), i = s === W.DEFAULT ? t.withdrawSlippageWarning : t.highSlippageWarning;
12279
+ const t = x(), { stablePrecision: e } = $(), [n] = P(), a = At(), { minExpectedReceiveAmount: o } = jn(), s = Tt(a), i = s === W.DEFAULT ? t.withdrawSlippageWarning : t.highSlippageWarning;
12194
12280
  return {
12195
12281
  themeType: s,
12196
12282
  slippageTooltipText: i,
@@ -12234,7 +12320,7 @@ const ar = (t) => ({
12234
12320
  t.rate
12235
12321
  ]);
12236
12322
  return /* @__PURE__ */ r(qn, { collapseItems: o });
12237
- }, Vm = ({ children: t }) => /* @__PURE__ */ u(H.Meta, { children: [
12323
+ }, Vm = ({ children: t }) => /* @__PURE__ */ u(G.Meta, { children: [
12238
12324
  /* @__PURE__ */ r(zm, {}),
12239
12325
  /* @__PURE__ */ r("div", { className: "dtw-sticky dtw-bottom-0 dtw-bg-[var(--panel-meta-action-panel-bg)]", children: t })
12240
12326
  ] }), cn = [
@@ -12270,7 +12356,7 @@ const ar = (t) => ({
12270
12356
  const i = s.getWithdrawAssetByVaultAddress(t.address)?.address ?? s.getWithdrawAssetByLeverageAddress(
12271
12357
  o.tokenAddress
12272
12358
  ).address, l = e.find(
12273
- ({ tokenAddress: m }) => V(i, m)
12359
+ ({ tokenAddress: m }) => H(i, m)
12274
12360
  );
12275
12361
  if (!l)
12276
12362
  return pn;
@@ -12284,19 +12370,19 @@ const ar = (t) => ({
12284
12370
  )
12285
12371
  )) {
12286
12372
  const m = un(o), y = e.reduce(
12287
- (E, $) => E + un($),
12373
+ (E, z) => E + un(z),
12288
12374
  0
12289
12375
  ), w = c / y, h = m / y, A = w / (w + h) * y;
12290
12376
  return {
12291
12377
  requiresLeveragedCollateralLiquidity: d > A,
12292
- leveragedCollateralValueFormatted: se({
12378
+ leveragedCollateralValueFormatted: re({
12293
12379
  value: A
12294
12380
  })
12295
12381
  };
12296
12382
  }
12297
12383
  return {
12298
12384
  requiresLeveragedCollateralLiquidity: d > c,
12299
- leveragedCollateralValueFormatted: se({
12385
+ leveragedCollateralValueFormatted: re({
12300
12386
  value: c
12301
12387
  })
12302
12388
  };
@@ -12422,8 +12508,8 @@ const ar = (t) => ({
12422
12508
  }, Gm = () => {
12423
12509
  const { showSwapButton: t } = Wm();
12424
12510
  return /* @__PURE__ */ u(_, { children: [
12425
- /* @__PURE__ */ u(H.InputGroup, { children: [
12426
- /* @__PURE__ */ r(Lm, {}),
12511
+ /* @__PURE__ */ u(G.InputGroup, { children: [
12512
+ /* @__PURE__ */ r(Om, {}),
12427
12513
  /* @__PURE__ */ r(Um, {})
12428
12514
  ] }),
12429
12515
  /* @__PURE__ */ r(Vm, { children: /* @__PURE__ */ r(wr, { children: /* @__PURE__ */ r(Jn, { children: t ? /* @__PURE__ */ u(_, { children: [
@@ -12463,7 +12549,7 @@ const ar = (t) => ({
12463
12549
  s
12464
12550
  ]);
12465
12551
  }, Ym = () => {
12466
- const { withdraw: t, action: e } = Wc(), { disabled: n, label: a, handleTrade: o } = ks(t), s = ie(), { address: i } = v(), l = Fo(i);
12552
+ const { withdraw: t, action: e } = Wc(), { disabled: n, label: a, handleTrade: o } = ks(t), s = le(), { address: i } = v(), l = Fo(i);
12467
12553
  return {
12468
12554
  isLoading: ot(e),
12469
12555
  disabled: n,
@@ -12482,10 +12568,10 @@ const ar = (t) => ({
12482
12568
  }
12483
12569
  };
12484
12570
  }, jm = () => {
12485
- const { ActionButton: t = G } = L(), { handleTrade: e, disabled: n, label: a, isLoading: o } = Ym();
12571
+ const { ActionButton: t = q } = O(), { handleTrade: e, disabled: n, label: a, isLoading: o } = Ym();
12486
12572
  return /* @__PURE__ */ r(t, { onClick: e, disabled: n, loading: o, children: a });
12487
12573
  }, Km = () => {
12488
- const t = x(), e = ie(), n = () => e({
12574
+ const t = x(), e = le(), n = () => e({
12489
12575
  type: "MERGE_OVERLAY",
12490
12576
  payload: { type: M.LIMIT_ORDER_WITHDRAW, isOpen: !0 }
12491
12577
  });
@@ -12494,10 +12580,10 @@ const ar = (t) => ({
12494
12580
  openLimitOrderWithdrawOverlay: n
12495
12581
  };
12496
12582
  }, Qm = () => {
12497
- const { ActionButton: t = G } = L(), { label: e, openLimitOrderWithdrawOverlay: n } = Km();
12583
+ const { ActionButton: t = q } = O(), { label: e, openLimitOrderWithdrawOverlay: n } = Km();
12498
12584
  return /* @__PURE__ */ r(t, { onClick: n, children: e });
12499
12585
  }, Xm = () => {
12500
- const { address: t, chainId: e, maintenance: n, maintenanceWithdrawals: a, symbol: o } = v(), [s] = N(), i = ie(), l = na(), d = Vt(), { data: c = 0 } = Id({
12586
+ const { address: t, chainId: e, maintenance: n, maintenanceWithdrawals: a, symbol: o } = v(), [s] = N(), i = le(), l = na(), d = Vt(), { data: c = 0 } = Id({
12501
12587
  address: t,
12502
12588
  chainId: e
12503
12589
  }), p = c > 0, m = An(
@@ -12529,7 +12615,7 @@ const ar = (t) => ({
12529
12615
  }, Zm = ({
12530
12616
  children: t
12531
12617
  }) => {
12532
- const { ActionButton: e = G } = L(), n = x(), a = Gn("withdraw"), {
12618
+ const { ActionButton: e = q } = O(), n = x(), a = Gn("withdraw"), {
12533
12619
  requiresEndOfCooldown: o,
12534
12620
  requiresApprove: s,
12535
12621
  requiresHighSlippageConfirm: i,
@@ -12625,7 +12711,7 @@ const ar = (t) => ({
12625
12711
  )
12626
12712
  ] });
12627
12713
  }, ay = () => {
12628
- const t = x(), { address: e, chainId: n } = v(), [{ isMaxSlippageLoading: a }] = Y(), { exitFeeNumber: o } = Vn({
12714
+ const t = x(), { address: e, chainId: n } = v(), [{ isMaxSlippageLoading: a }] = j(), { exitFeeNumber: o } = Vn({
12629
12715
  address: e,
12630
12716
  chainId: n
12631
12717
  }), s = At(), i = We();
@@ -12656,7 +12742,7 @@ const ar = (t) => ({
12656
12742
  tooltipText: e,
12657
12743
  label: t.maxSlippage,
12658
12744
  value: /* @__PURE__ */ u("div", { className: "dtw-flex dtw-gap-1", children: [
12659
- a && /* @__PURE__ */ r(Le, { className: "dtw-stroke-[color:var(--panel-accent-from-color)] dtw-h-[var(--panel-icon-secondary-size)] sm:dtw-h-[var(--panel-icon-secondary-size-sm)] dtw-w-[var(--panel-icon-secondary-size)] sm:dtw-w-[var(--panel-icon-secondary-size-sm)]" }),
12745
+ a && /* @__PURE__ */ r(Oe, { className: "dtw-stroke-[color:var(--panel-accent-from-color)] dtw-h-[var(--panel-icon-secondary-size)] sm:dtw-h-[var(--panel-icon-secondary-size-sm)] dtw-w-[var(--panel-icon-secondary-size)] sm:dtw-w-[var(--panel-icon-secondary-size-sm)]" }),
12660
12746
  /* @__PURE__ */ r(
12661
12747
  "span",
12662
12748
  {
@@ -12696,11 +12782,11 @@ const ar = (t) => ({
12696
12782
  ]);
12697
12783
  return /* @__PURE__ */ r(qn, { collapseItems: l });
12698
12784
  }, sy = ({ children: t }) => {
12699
- const { WithdrawMetaInfo: e, AvailableLiquidityAlert: n, OnDemandWithdrawAlert: a } = L(), {
12785
+ const { WithdrawMetaInfo: e, AvailableLiquidityAlert: n, OnDemandWithdrawAlert: a } = O(), {
12700
12786
  requiresLeveragedCollateralLiquidity: o,
12701
12787
  leveragedCollateralValueFormatted: s
12702
12788
  } = yr(), i = na();
12703
- return /* @__PURE__ */ u(H.Meta, { children: [
12789
+ return /* @__PURE__ */ u(G.Meta, { children: [
12704
12790
  /* @__PURE__ */ r("div", { children: o ? i ? /* @__PURE__ */ r(_, { children: !!a && /* @__PURE__ */ r(a, {}) }) : /* @__PURE__ */ r(_, { children: !!n && /* @__PURE__ */ r(
12705
12791
  n,
12706
12792
  {
@@ -12714,7 +12800,7 @@ const ar = (t) => ({
12714
12800
  }, ry = () => {
12715
12801
  const t = x();
12716
12802
  return qm(), /* @__PURE__ */ u(_, { children: [
12717
- /* @__PURE__ */ r(H.InputGroup, { children: /* @__PURE__ */ r(ny, {}) }),
12803
+ /* @__PURE__ */ r(G.InputGroup, { children: /* @__PURE__ */ r(ny, {}) }),
12718
12804
  /* @__PURE__ */ r(sy, { children: /* @__PURE__ */ r(wr, { children: /* @__PURE__ */ r(Jn, { children: /* @__PURE__ */ r(Zm, { children: /* @__PURE__ */ u("div", { className: "dtw-flex dtw-flex-col dtw-gap-2 dtw-w-full", children: [
12719
12805
  /* @__PURE__ */ r(jm, {}),
12720
12806
  /* @__PURE__ */ r(Gs, { highlighted: !1, children: t.stopOrder })
@@ -12729,11 +12815,11 @@ const ar = (t) => ({
12729
12815
  }, ly = () => {
12730
12816
  const { isCompleteWithdrawStep: t } = iy();
12731
12817
  return t ? /* @__PURE__ */ r(Gm, {}) : /* @__PURE__ */ r(ry, {});
12732
- }, dy = () => /* @__PURE__ */ r(H.Panel, { children: /* @__PURE__ */ r(ly, {}) }), cy = ({ tradingType: t }) => /* @__PURE__ */ u(Ua, { selectedIndex: je.indexOf(t), children: [
12733
- /* @__PURE__ */ r($a, { className: "dtw-flex", children: je.map((e) => /* @__PURE__ */ r(La, { className: "dtw-hidden" }, e)) }),
12818
+ }, dy = () => /* @__PURE__ */ r(G.Panel, { children: /* @__PURE__ */ r(ly, {}) }), cy = ({ tradingType: t }) => /* @__PURE__ */ u(Ua, { selectedIndex: je.indexOf(t), children: [
12819
+ /* @__PURE__ */ r($a, { className: "dtw-flex", children: je.map((e) => /* @__PURE__ */ r(Oa, { className: "dtw-hidden" }, e)) }),
12734
12820
  /* @__PURE__ */ u(za, { children: [
12735
- /* @__PURE__ */ r(H.Settings, { children: /* @__PURE__ */ r(Kc, {}) }),
12736
- /* @__PURE__ */ r(H.Settings, { children: /* @__PURE__ */ r(Nm, {}) })
12821
+ /* @__PURE__ */ r(G.Settings, { children: /* @__PURE__ */ r(Kc, {}) }),
12822
+ /* @__PURE__ */ r(G.Settings, { children: /* @__PURE__ */ r(Nm, {}) })
12737
12823
  ] })
12738
12824
  ] }), py = ({ children: t }) => /* @__PURE__ */ u($a, { className: "dtw-flex dtw-px-[var(--panel-tab-group-px)] dtw-justify-between dtw-items-center", children: [
12739
12825
  /* @__PURE__ */ r("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: je.map((e) => /* @__PURE__ */ r(jd, { tradingType: e }, e)) }),
@@ -12742,7 +12828,7 @@ const ar = (t) => ({
12742
12828
  (t, e, n) => (t[n] = e, t),
12743
12829
  {}
12744
12830
  ), my = () => {
12745
- const [t] = xe(), e = v(), { standalone: n } = U();
12831
+ const [t] = xe(), e = v(), { standalone: n } = $();
12746
12832
  $p();
12747
12833
  const a = Qs(), o = (s) => {
12748
12834
  const i = uy[s];
@@ -13044,7 +13130,7 @@ const ar = (t) => ({
13044
13130
  components: a,
13045
13131
  translation: o,
13046
13132
  className: s
13047
- }) => /* @__PURE__ */ r(Ud, { config: o, children: /* @__PURE__ */ r(wy, { config: n, className: s, children: /* @__PURE__ */ r(Fd, { config: e, children: /* @__PURE__ */ r(sc, { config: a, children: /* @__PURE__ */ r(qd, { children: t }) }) }) }) }), pw = (t) => /* @__PURE__ */ r(hy, { ...t, children: /* @__PURE__ */ r(yy, {}) }), gy = "ref", uw = ({
13133
+ }) => /* @__PURE__ */ r(Ud, { config: o, children: /* @__PURE__ */ r(wy, { config: n, className: s, children: /* @__PURE__ */ r(Fd, { config: e, children: /* @__PURE__ */ r(sc, { config: a, children: /* @__PURE__ */ r(qd, { children: t }) }) }) }) }), Cw = (t) => /* @__PURE__ */ r(hy, { ...t, children: /* @__PURE__ */ r(yy, {}) }), gy = "ref", Nw = ({
13048
13134
  vaultAddress: t,
13049
13135
  userAddress: e,
13050
13136
  query: n,
@@ -13061,7 +13147,7 @@ const ar = (t) => ({
13061
13147
  ""
13062
13148
  ), c = n[gy];
13063
13149
  k(() => {
13064
- !c || typeof c != "string" || oe(t) || localStorage.getItem(ut.REFERRER) || (i(c), d(t), a?.());
13150
+ !c || typeof c != "string" || se(t) || localStorage.getItem(ut.REFERRER) || (i(c), d(t), a?.());
13065
13151
  }, [t, c, d, i, a]), k(() => {
13066
13152
  if (!e || !s || l.toLowerCase() !== t.toLowerCase())
13067
13153
  return;
@@ -13147,7 +13233,7 @@ const ar = (t) => ({
13147
13233
  );
13148
13234
  }, fy = () => {
13149
13235
  const t = Ze(), { isModalOpen: e, pendingTransaction: n } = Te(), { setIsModalOpen: a } = Dt(), o = T(() => {
13150
- a(!0), t?.(j.OPEN_LIMIT_SELL_VIEW, {
13236
+ a(!0), t?.(K.OPEN_LIMIT_SELL_VIEW, {
13151
13237
  [Ce.SOURCE.NAME]: "modal"
13152
13238
  });
13153
13239
  }, [t, a]), s = T(() => a(!1), [a]);
@@ -13184,7 +13270,7 @@ const ar = (t) => ({
13184
13270
  }
13185
13271
  )
13186
13272
  ] });
13187
- }, mw = ({
13273
+ }, _w = ({
13188
13274
  children: t,
13189
13275
  vaultChainId: e,
13190
13276
  vaultAddress: n,
@@ -13224,10 +13310,17 @@ export {
13224
13310
  la as AaveLendingPoolAbi,
13225
13311
  D as AddressZero,
13226
13312
  _o as BRIDGED_TOKENS_SYMBOLS,
13313
+ vo as BRIDGED_USDC_ARBITRUM,
13314
+ So as BRIDGED_USDC_OPTIMISM,
13315
+ Eo as BRIDGED_USDC_POLYGON,
13316
+ Qi as CBBTC_BASE,
13317
+ tw as CBETH_BASE,
13227
13318
  qy as CHAIN_MAP,
13228
13319
  ct as CHAIN_NATIVE_TOKENS,
13229
13320
  bi as CURRENCY_SYMBOL_MAP,
13230
13321
  Fd as ConfigProvider,
13322
+ Ji as DAI_OPTIMISM,
13323
+ al as DAI_POLYGON,
13231
13324
  Hy as DEFAULT_DEPOSIT_METHOD,
13232
13325
  In as DEFAULT_DEPOSIT_SLIPPAGE,
13233
13326
  Gy as DEFAULT_DEPOSIT_SLIPPAGE_SCALE,
@@ -13235,7 +13328,7 @@ export {
13235
13328
  ii as DEFAULT_LOCK_TIME,
13236
13329
  ui as DEFAULT_MULTI_ASSET_WITHDRAW_METHOD,
13237
13330
  yt as DEFAULT_POLLING_INTERVAL,
13238
- O as DEFAULT_PRECISION,
13331
+ L as DEFAULT_PRECISION,
13239
13332
  gi as DEFAULT_PROMISE_TIMEOUT_MS,
13240
13333
  ca as DEFAULT_SIMULATION_ERROR,
13241
13334
  di as DEFAULT_WITHDRAW_SLIPPAGE,
@@ -13246,79 +13339,114 @@ export {
13246
13339
  hi as GAS_LIMIT_BUFFER_COEFF,
13247
13340
  Zo as GET_ALL_LIMIT_ORDER_IDS_FUNCTION_NAME,
13248
13341
  ml as GMX_MARKET_ASSETS,
13249
- re as GMX_MARKET_ASSETS_MAP,
13342
+ ie as GMX_MARKET_ASSETS_MAP,
13250
13343
  Wn as LIMIT_ORDER_READ_FUNCTION_NAME,
13344
+ Jy as LINK_ARBITRUM,
13345
+ rw as LINK_OPTIMISM,
13251
13346
  kn as LimitOrderAbi,
13252
- mw as LimitOrderModal,
13347
+ _w as LimitOrderModal,
13253
13348
  $e as MANAGER_FEE_DENOMINATOR,
13254
13349
  Jt as MAX_GAS_LIMIT_MAP,
13255
13350
  yn as MULTI_ASSET_TOKEN,
13256
13351
  Ke as MaxUint256,
13257
13352
  wi as NATIVE_TOKEN_DEPOSIT_GAS_LIMIT,
13258
- jy as PYTH_API_LINK,
13353
+ dw as PAXG_POLYGON,
13354
+ pw as PYTH_API_LINK,
13259
13355
  Xe as PoolFactoryAbi,
13260
13356
  Ne as PoolLogicAbi,
13261
13357
  ze as PoolManagerLogicAbi,
13358
+ en as RETH_BASE,
13262
13359
  zi as RewardDistributionAbi,
13360
+ sw as SETH_OPTIMISM,
13263
13361
  Qe as SHORTEN_POLLING_INTERVAL,
13264
13362
  Yi as SIMULATION_TIMEOUT_ERROR,
13363
+ ow as SUSD_OPTIMISM,
13364
+ jy as TBTC_ARBITRUM,
13365
+ nw as TBTC_BASE,
13366
+ iw as TBTC_OPTIMISM,
13367
+ cw as TBTC_POLYGON,
13265
13368
  Ce as TRADING_LOG_EVENT_PARAM,
13266
- j as TRADING_PANEL_LOG_EVENT,
13267
- Qy as TradingPanelProvider,
13268
- pw as TradingWidget,
13369
+ K as TRADING_PANEL_LOG_EVENT,
13370
+ mw as TradingPanelProvider,
13371
+ Cw as TradingWidget,
13372
+ ew as USDCBC_BASE,
13373
+ ue as USDC_ARBITRUM,
13374
+ Ki as USDC_BASE,
13375
+ ol as USDC_MAINNET,
13376
+ Xi as USDC_OPTIMISM,
13377
+ el as USDC_POLYGON,
13378
+ Qy as USDT_ARBITRUM,
13379
+ sl as USDT_MAINNET,
13380
+ Zi as USDT_OPTIMISM,
13381
+ nl as USDT_POLYGON,
13382
+ Zy as WBNB_ARBITRUM,
13383
+ He as WBTC_ARBITRUM,
13269
13384
  il as WBTC_BY_CHAIN_ID,
13385
+ No as WBTC_MAINNET,
13386
+ pt as WBTC_OPTIMISM,
13387
+ Io as WBTC_POLYGON,
13388
+ Pt as WETH_ARBITRUM,
13389
+ Ao as WETH_BASE,
13270
13390
  rl as WETH_BY_CHAIN_ID,
13271
- Iw as arbitrum,
13272
- Cw as base,
13391
+ Co as WETH_MAINNET,
13392
+ xo as WETH_OPTIMISM,
13393
+ Do as WETH_POLYGON,
13394
+ tl as WPOL_POLYGON,
13395
+ Xy as WSOL_ARBITRUM,
13396
+ Ky as WSTETH_ARBITRUM,
13397
+ aw as WSTETH_BASE,
13398
+ lw as WSTETH_OPTIMISM,
13399
+ Hw as arbitrum,
13400
+ Gw as base,
13273
13401
  Pn as clientSide,
13274
13402
  xl as commify,
13275
13403
  Gi as contractsAbisMap,
13276
13404
  Hi as contractsAddressesMap,
13277
- Lw as decodeErrorResult,
13278
- Ow as encodeFunctionData,
13279
- Pw as erc20Abi,
13405
+ Kw as decodeErrorResult,
13406
+ Qw as encodeFunctionData,
13407
+ Xw as erc20Abi,
13280
13408
  tn as formatByCurrency,
13281
- Rw as formatEther,
13409
+ Zw as formatEther,
13282
13410
  Be as formatNumberToLimitedDecimals,
13283
13411
  Nt as formatNumeratorToPercentage,
13284
13412
  zt as formatPercentage,
13285
- se as formatToUsd,
13286
- Bw as formatUnits,
13413
+ re as formatToUsd,
13414
+ Jw as formatUnits,
13287
13415
  hl as getContractAbiById,
13288
- z as getContractAddressById,
13416
+ V as getContractAddressById,
13289
13417
  Rt as getConventionalTokenPriceDecimals,
13290
13418
  Yl as getErrorMessage,
13291
13419
  zu as getLimitOrderId,
13292
13420
  vl as getNativeTokenInvestableBalance,
13293
13421
  $t as getPercent,
13294
13422
  ua as getPoolFraction,
13295
- Mw as hexToString,
13423
+ eh as hexToString,
13296
13424
  pa as isAaveLendAndBorrowAsset,
13297
- V as isEqualAddress,
13425
+ H as isEqualAddress,
13298
13426
  Gl as isErrorWithMessage,
13299
13427
  Fo as isFmpAirdropVaultAddress,
13300
- On as isNativeToken,
13301
- oe as isZeroAddress,
13428
+ Ln as isNativeToken,
13429
+ se as isZeroAddress,
13302
13430
  qe as normalizeNumber,
13303
- Nw as optimism,
13304
- _w as polygon,
13431
+ qw as optimism,
13432
+ Yw as polygon,
13305
13433
  wa as removeInsignificantTrailingZeros,
13306
13434
  wn as shiftBy,
13307
13435
  gl as shortenAddress,
13308
13436
  ql as toErrorWithMessage,
13309
13437
  zo as transformAddressForAnalytics,
13310
- Ww as trim,
13438
+ th as trim,
13311
13439
  R as useAccount,
13312
- ow as useAddPoolConfig,
13440
+ vw as useAddPoolConfig,
13313
13441
  he as useAssetPrice,
13314
- Ld as useAvailableManagerFee,
13442
+ Od as useAvailableManagerFee,
13315
13443
  Ko as useBalance,
13316
- hw as useBlockNumber,
13444
+ Lw as useBlockNumber,
13317
13445
  fa as useBrowserStorage,
13318
13446
  hd as useCheckWhitelist,
13319
13447
  vt as useCompleteWithdrawSwapQuotes,
13320
13448
  Ee as useCompleteWithdrawTrackedAssets,
13321
- gw as useConnect,
13449
+ Pw as useConnect,
13322
13450
  ke as useContractFunction,
13323
13451
  gd as useContractPoolComposition,
13324
13452
  Qo as useContractReadErrorLogging,
@@ -13327,7 +13455,7 @@ export {
13327
13455
  _s as useDebounce,
13328
13456
  mp as useDepositLockTime,
13329
13457
  Vc as useDepositProjectedEarnings,
13330
- Tw as useDisconnect,
13458
+ Rw as useDisconnect,
13331
13459
  Cc as useEasySwapperTrackedAssets,
13332
13460
  gc as useExchangeRate,
13333
13461
  Pd as useFlatmoneyPointsUserBalances,
@@ -13339,13 +13467,13 @@ export {
13339
13467
  Un as useInvalidateTradingQueries,
13340
13468
  $n as useIsBatchContractWritesSupported,
13341
13469
  ft as useIsCompleteWithdrawStep,
13342
- dw as useIsDepositBlocked,
13470
+ Ew as useIsDepositBlocked,
13343
13471
  et as useIsDepositTradingPanelType,
13344
13472
  Ht as useIsDhedgeVaultConnected,
13345
13473
  Vt as useIsInsufficientBalance,
13346
- rw as useIsPoolAddress,
13474
+ Sw as useIsPoolAddress,
13347
13475
  xs as useIsTradingEnabled,
13348
- iw as useIsWalletConnected,
13476
+ xw as useIsWalletConnected,
13349
13477
  es as useManagerLogicAddress,
13350
13478
  Me as useNetwork,
13351
13479
  Fl as useOnSimulateTransaction,
@@ -13364,49 +13492,49 @@ export {
13364
13492
  Gt as usePoolStatic,
13365
13493
  me as usePoolTokenPrice,
13366
13494
  zc as useProjectedEarningsCore,
13367
- bw as usePublicClient,
13495
+ Bw as usePublicClient,
13368
13496
  Ss as useRawAssetPrice,
13369
- fw as useReadContract,
13370
- vw as useReadContracts,
13497
+ Mw as useReadContract,
13498
+ Ww as useReadContracts,
13371
13499
  P as useReceiveTokenInput,
13372
- uw as useReferralProgram,
13500
+ Nw as useReferralProgram,
13373
13501
  N as useSendTokenInput,
13374
- Aw as useSendTransaction,
13375
- Xy as useSetPoolAddress,
13376
- tw as useSetTradingType,
13377
- lw as useStaticCallQuery,
13502
+ Fw as useSendTransaction,
13503
+ yw as useSetPoolAddress,
13504
+ Tw as useSetTradingType,
13505
+ Dw as useStaticCallQuery,
13378
13506
  Bn as useTokenAllowance,
13379
- F as useTradingPanelActions,
13507
+ U as useTradingPanelActions,
13380
13508
  Ze as useTradingPanelLogger,
13381
- J as useTradingPanelModal,
13509
+ ee as useTradingPanelModal,
13382
13510
  $l as useTradingPanelPoolAddress,
13383
13511
  v as useTradingPanelPoolConfig,
13384
13512
  wt as useTradingPanelPoolConfigs,
13385
13513
  Je as useTradingPanelPoolFallbackData,
13386
- Y as useTradingPanelSettings,
13387
- ae as useTradingPanelState,
13514
+ j as useTradingPanelSettings,
13515
+ oe as useTradingPanelState,
13388
13516
  ce as useTradingPanelTransactions,
13389
13517
  xe as useTradingPanelType,
13390
13518
  wc as useTradingResultHandling,
13391
13519
  nt as useTradingSettleHandler,
13392
- sw as useUpdateCustomDepositTokensPerChain,
13393
- aw as useUpdatePoolConfig,
13520
+ Aw as useUpdateCustomDepositTokensPerChain,
13521
+ fw as useUpdatePoolConfig,
13394
13522
  Rl as useUpdatePoolFallbackData,
13395
- Jy as useUpdateReceiveTokenInput,
13396
- Zy as useUpdateSendTokenInput,
13397
- nw as useUpdateTradingModal,
13398
- ew as useUpdateTradingSettings,
13523
+ hw as useUpdateReceiveTokenInput,
13524
+ ww as useUpdateSendTokenInput,
13525
+ bw as useUpdateTradingModal,
13526
+ gw as useUpdateTradingSettings,
13399
13527
  md as useUserBalancesDynamic,
13400
13528
  Zt as useUserLimitOrder,
13401
13529
  De as useUserTokenBalance,
13402
13530
  _d as useUserVaultBalance,
13403
13531
  Nd as useUserVaultsBalances,
13404
- cw as useVaultContractData,
13532
+ Iw as useVaultContractData,
13405
13533
  Zn as useVaultDepositTokens,
13406
- Od as useVaultSupplyCap,
13534
+ Ld as useVaultSupplyCap,
13407
13535
  Sd as useVaultVestedPoints,
13408
- Sw as useWaitForTransactionReceipt,
13409
- xw as useWalletClient,
13410
- Dw as useWriteContract,
13411
- Ky as validateLoggerEventParams
13536
+ Uw as useWaitForTransactionReceipt,
13537
+ $w as useWalletClient,
13538
+ zw as useWriteContract,
13539
+ uw as validateLoggerEventParams
13412
13540
  };