@dhedge/trading-widget 5.12.1 → 5.12.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/const.cjs +1 -1
- package/const.js +1 -1
- package/core-kit/hooks/trading/allowance/use-reset-allowance.d.ts +14 -0
- package/gmx-BcxW9SG1.cjs +1 -0
- package/{gmx-CKRd5jcU.js → gmx-CIlAygig.js} +186 -179
- package/index.cjs +1 -1
- package/index.js +2257 -2222
- package/package.json +1 -1
- package/{slippage-auto-simulation-CI3FlyW_.js → slippage-auto-simulation-BBO4ghQV.js} +1 -1
- package/{slippage-auto-simulation-Cy2F0kyJ.cjs → slippage-auto-simulation-CkoihDpY.cjs} +1 -1
- package/utils.cjs +1 -1
- package/utils.js +1 -1
- package/gmx-C0ZAKA5h.cjs +0 -1
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { optimism as t, hyperEvm as
|
|
2
|
-
import { formatDuration as
|
|
3
|
-
import { erc20Abi as
|
|
4
|
-
const
|
|
1
|
+
import { optimism as t, hyperEvm as r, base as n, arbitrum as s, polygon as i, mainnet as a } from "wagmi/chains";
|
|
2
|
+
import { formatDuration as ee } from "date-fns";
|
|
3
|
+
import { erc20Abi as te } from "viem";
|
|
4
|
+
const ae = "0x0000000000000000000000000000000000000000", Ue = BigInt(
|
|
5
5
|
"0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff"
|
|
6
|
-
), l = 18, We = "1000000000000000000", Fe = 59e3, ke = 3e4, Ve = 15e3, He = 5e3,
|
|
7
|
-
address:
|
|
6
|
+
), l = 18, We = "1000000000000000000", Fe = 59e3, ke = 3e4, Ve = 15e3, He = 5e3, ne = 400, Ye = ne * 1.2, Ge = ee({ hours: 24 }), Ke = {
|
|
7
|
+
address: ae,
|
|
8
8
|
symbol: "",
|
|
9
9
|
chainId: t.id,
|
|
10
10
|
depositParams: { customTokens: [] },
|
|
11
11
|
withdrawParams: { customTokens: [] },
|
|
12
12
|
deprecated: !1
|
|
13
|
-
}, ze = "deposit", Xe = 0.5,
|
|
13
|
+
}, ze = "deposit", Xe = 0.5, se = 0, qe = 0.5, $e = 0.02, Ze = 0.5, je = [se], Qe = [
|
|
14
14
|
0.05,
|
|
15
15
|
0.1,
|
|
16
16
|
0.3,
|
|
@@ -27,7 +27,7 @@ const J = "0x0000000000000000000000000000000000000000", Ue = BigInt(
|
|
|
27
27
|
[t.id]: t,
|
|
28
28
|
[s.id]: s,
|
|
29
29
|
[n.id]: n,
|
|
30
|
-
[
|
|
30
|
+
[r.id]: r
|
|
31
31
|
}, ut = {
|
|
32
32
|
[a.id]: {
|
|
33
33
|
nativeTokenSymbol: "ETH",
|
|
@@ -59,7 +59,7 @@ const J = "0x0000000000000000000000000000000000000000", Ue = BigInt(
|
|
|
59
59
|
address: "0x4200000000000000000000000000000000000006",
|
|
60
60
|
decimals: l
|
|
61
61
|
},
|
|
62
|
-
[
|
|
62
|
+
[r.id]: {
|
|
63
63
|
nativeTokenSymbol: "HYPE",
|
|
64
64
|
wrappedNativeTokenName: "WHYPE",
|
|
65
65
|
address: "0x5555555555555555555555555555555555555555",
|
|
@@ -71,14 +71,14 @@ const J = "0x0000000000000000000000000000000000000000", Ue = BigInt(
|
|
|
71
71
|
[t.id]: m,
|
|
72
72
|
[s.id]: m,
|
|
73
73
|
[n.id]: m,
|
|
74
|
-
[
|
|
74
|
+
[r.id]: m
|
|
75
75
|
}, mt = {
|
|
76
76
|
[a.id]: "https://eth-mainnet.g.alchemy.com/v2",
|
|
77
77
|
[t.id]: "https://opt-mainnet.g.alchemy.com/v2",
|
|
78
78
|
[i.id]: "https://polygon-mainnet.g.alchemy.com/v2",
|
|
79
79
|
[s.id]: "https://arb-mainnet.g.alchemy.com/v2",
|
|
80
80
|
[n.id]: "https://base-mainnet.g.alchemy.com/v2",
|
|
81
|
-
[
|
|
81
|
+
[r.id]: "https://hyperliquid-mainnet.g.alchemy.com/v2"
|
|
82
82
|
}, ct = {
|
|
83
83
|
USD: "$",
|
|
84
84
|
ETH: "Ξ",
|
|
@@ -87,7 +87,7 @@ const J = "0x0000000000000000000000000000000000000000", Ue = BigInt(
|
|
|
87
87
|
USD: 2,
|
|
88
88
|
ETH: 4,
|
|
89
89
|
BTC: 6
|
|
90
|
-
}, bt = ["USDC", "USDT"],
|
|
90
|
+
}, bt = ["USDC", "USDT"], d = {
|
|
91
91
|
INVEST_INPUT_FOCUS: "invest_input_focus",
|
|
92
92
|
APPROVED_TOKEN: "approved_token",
|
|
93
93
|
DEPOSIT: "deposit",
|
|
@@ -106,27 +106,27 @@ const J = "0x0000000000000000000000000000000000000000", Ue = BigInt(
|
|
|
106
106
|
LIMIT_ORDER_WITHDRAW: "limit_order_withdraw",
|
|
107
107
|
LIMIT_ORDER_WITHDRAW_DELETE: "limit_order_withdraw_delete"
|
|
108
108
|
}, ft = {
|
|
109
|
-
approve: [
|
|
110
|
-
deposit: [
|
|
109
|
+
approve: [d.APPROVED_TOKEN],
|
|
110
|
+
deposit: [d.DEPOSIT],
|
|
111
111
|
multi_withdraw: [
|
|
112
|
-
|
|
113
|
-
|
|
112
|
+
d.WITHDRAWAL,
|
|
113
|
+
d.MULTI_ASSET_WITHDRAW
|
|
114
114
|
],
|
|
115
115
|
single_withdraw: [
|
|
116
|
-
|
|
117
|
-
|
|
116
|
+
d.WITHDRAWAL,
|
|
117
|
+
d.SINGLE_ASSET_WITHDRAW
|
|
118
118
|
],
|
|
119
119
|
single_withdraw_and_claim: [
|
|
120
|
-
|
|
121
|
-
|
|
120
|
+
d.WITHDRAWAL,
|
|
121
|
+
d.SINGLE_ASSET_WITHDRAW_AND_CLAIM
|
|
122
122
|
],
|
|
123
|
-
claim: [
|
|
124
|
-
swap: [
|
|
125
|
-
create_limit_sell_order: [
|
|
126
|
-
create_limit_buy_order: [
|
|
127
|
-
limit_order_withdraw: [
|
|
123
|
+
claim: [d.CLAIM],
|
|
124
|
+
swap: [d.SWAP],
|
|
125
|
+
create_limit_sell_order: [d.CREATE_LIMIT_SELL_ORDER],
|
|
126
|
+
create_limit_buy_order: [d.CREATE_LIMIT_BUY_ORDER],
|
|
127
|
+
limit_order_withdraw: [d.LIMIT_ORDER_WITHDRAW],
|
|
128
128
|
delete_limit_order_withdraw: [
|
|
129
|
-
|
|
129
|
+
d.LIMIT_ORDER_WITHDRAW_DELETE
|
|
130
130
|
]
|
|
131
131
|
}, _t = {
|
|
132
132
|
IS_INFINITE: { NAME: "is_infinite", TYPE: "number" },
|
|
@@ -135,9 +135,9 @@ const J = "0x0000000000000000000000000000000000000000", Ue = BigInt(
|
|
|
135
135
|
ADDRESS: { NAME: "address", TYPE: "string" },
|
|
136
136
|
SOURCE: { NAME: "source", TYPE: "string" }
|
|
137
137
|
};
|
|
138
|
-
var
|
|
139
|
-
const
|
|
140
|
-
s.id + "", `${
|
|
138
|
+
var y = /* @__PURE__ */ ((u) => (u.ETH = "ETH", u.MAINNET = "MAINNET", u.POLYGON = "POLYGON", u.OE = "OPTIMISM", u.ARBI = "ARBITRUM", u.BASE = "BASE", u.HYPEREVM = "HYPEREVM", u))(y || {});
|
|
139
|
+
const c = process.env.NEXT_PUBLIC_INFURA_API_KEY;
|
|
140
|
+
s.id + "", `${c}`, t.id + "", `${c}`, i.id + "", `${c}`, n.id + "", `${c}`, a.id + "", `${c}`, r.id + "", `${c}`;
|
|
141
141
|
const At = {
|
|
142
142
|
[s.id]: {
|
|
143
143
|
...s,
|
|
@@ -145,7 +145,7 @@ const At = {
|
|
|
145
145
|
iconPath: "/icons/arbitrum-network.svg",
|
|
146
146
|
chainId: s.id,
|
|
147
147
|
shortName: "ARB",
|
|
148
|
-
blockchainCode:
|
|
148
|
+
blockchainCode: y.ARBI
|
|
149
149
|
},
|
|
150
150
|
[t.id]: {
|
|
151
151
|
...t,
|
|
@@ -153,41 +153,48 @@ const At = {
|
|
|
153
153
|
iconPath: "/icons/optimism-network.svg",
|
|
154
154
|
chainId: t.id,
|
|
155
155
|
shortName: "OP",
|
|
156
|
-
blockchainCode:
|
|
156
|
+
blockchainCode: y.OE
|
|
157
157
|
},
|
|
158
158
|
[i.id]: {
|
|
159
159
|
...i,
|
|
160
160
|
chainId: i.id,
|
|
161
161
|
iconPath: "/icons/polygon-network.svg",
|
|
162
162
|
shortName: "POLY",
|
|
163
|
-
blockchainCode:
|
|
163
|
+
blockchainCode: y.POLYGON
|
|
164
164
|
},
|
|
165
165
|
[n.id]: {
|
|
166
166
|
...n,
|
|
167
167
|
chainId: n.id,
|
|
168
168
|
iconPath: "/icons/base-network.svg",
|
|
169
169
|
shortName: "BASE",
|
|
170
|
-
blockchainCode:
|
|
170
|
+
blockchainCode: y.BASE
|
|
171
171
|
},
|
|
172
172
|
[a.id]: {
|
|
173
173
|
...a,
|
|
174
174
|
chainId: a.id,
|
|
175
175
|
iconPath: "/icons/ethereum-network.svg",
|
|
176
176
|
shortName: "ETHEREUM",
|
|
177
|
-
blockchainCode:
|
|
177
|
+
blockchainCode: y.MAINNET
|
|
178
|
+
},
|
|
179
|
+
[r.id]: {
|
|
180
|
+
...r,
|
|
181
|
+
chainId: r.id,
|
|
182
|
+
shortName: "HyperEVM",
|
|
183
|
+
iconPath: "/icons/hyperevm-network.svg",
|
|
184
|
+
blockchainCode: y.HYPEREVM
|
|
178
185
|
}
|
|
179
186
|
};
|
|
180
|
-
|
|
181
|
-
a.id + "", t.id + "", i.id + "", s.id + "", n.id + "",
|
|
182
|
-
const
|
|
187
|
+
y.ETH + "", a.id, y.MAINNET + "", a.id, y.POLYGON + "", i.id, y.OE + "", t.id, y.ARBI + "", s.id, y.BASE + "", n.id, y.HYPEREVM + "", r.id;
|
|
188
|
+
a.id + "", t.id + "", i.id + "", s.id + "", n.id + "", r.id + "";
|
|
189
|
+
const E = "0x0000000000000000000000000000000000000000";
|
|
183
190
|
BigInt("0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff");
|
|
184
|
-
a.id + "", BigInt(100), t.id + "", BigInt(600), i.id + "", BigInt(600), n.id + "", BigInt(600), s.id + "", BigInt(5300);
|
|
185
|
-
const
|
|
186
|
-
a.id + "", s.id + "", n.id + "", t.id + "", i.id + "";
|
|
187
|
-
a.id + "", s.id + "", n.id + "", t.id + "", i.id + "";
|
|
188
|
-
a.id + "", s.id + "", n.id + "", t.id + "", i.id + "";
|
|
189
|
-
a.id + "", s.id + "", n.id + "", t.id + "", i.id + "";
|
|
190
|
-
const
|
|
191
|
+
a.id + "", BigInt(100), t.id + "", BigInt(600), i.id + "", BigInt(600), n.id + "", BigInt(600), s.id + "", BigInt(5300), r.id + "", BigInt(6e3);
|
|
192
|
+
const S = "0x96D33bCF84DdE326014248E2896F79bbb9c13D6d", R = "0xbDd84294bC8299861A2121F749A25EFEb7168a32", w = "0x87870Bca3F3fD6335C3F4ce8392D69350B4fA4E2", M = "0x95B19De479bc693721cab39Da98FfECE062f5Ea4", h = "0xffFb5fB14606EB3a548C113026355020dDF27535", O = "0x794a61358D6845594F94dc1DB02A252b5b4814aD", g = "0xA5679C4272A056Bb83f039961fae7D99C48529F5", v = "0x26a687e8244f1866E9Aa2D400c8b9957Aa8e6Ad4", C = "0x49Afe3abCf66CF09Fab86cb1139D8811C8afe56F", L = "0xf067575Eb60c7587C11e867907AA7284833704d1", ie = "0x59525b9b23adc475ef91d98dae06b568ba574ce5", Dt = "0xa907504d7a4c415b4e6e1d0866d96afe8202f0e5", Et = "0x1849324228d852a67eb7443e42d967e480ffe95d", P = "0xa238dd80c259a72e81d7e4664a9801593f98d1c5", x = "0xFcBEc28c43E356693971a24bf3F2Fd7D965E2ebA", re = "0x07e144e336fcc3fe928a8a2a5714da64354c1aab", N = "0x5e61a079A178f0E5784107a4963baAe0c5a680c6", B = "0x794a61358D6845594F94dc1DB02A252b5b4814aD", U = "0x2Ed1bd7f66e47113672f3870308b5E867C5bb743", W = "0x3bFE2a472d2964Ea4070725b7Fb0A868b3f08b63", F = "0xfdc7b8bFe0DD3513Cc669bB8d601Cb83e2F69cB0", pe = "0x8dFf5E27EA6b7AC08EbFdf9eB090F32ee9a30fcf", k = "0x794a61358D6845594F94dc1DB02A252b5b4814aD", V = "0x45b90480D6F643dE2f128db091A357C3c90399f2", H = "0xB71410736d2C8F2DAf30dA9D332dA10534d2624d", Y = "0x615037C2Df6FA97634c5aD2d8144708b9dd3B176", G = "0x47065E508433E22d73Be3c5B61EB9abafD450364", It = "0x4F754e0F0924afD74980886b0B479Fa1D7C58D0D";
|
|
193
|
+
a.id + "", s.id + "", n.id + "", t.id + "", i.id + "", r.id + "";
|
|
194
|
+
a.id + "", s.id + "", n.id + "", t.id + "", i.id + "", r.id + "";
|
|
195
|
+
a.id + "", s.id + "", n.id + "", t.id + "", i.id + "", r.id + "";
|
|
196
|
+
a.id + "", s.id + "", n.id + "", t.id + "", i.id + "", r.id + "";
|
|
197
|
+
const I = [
|
|
191
198
|
{
|
|
192
199
|
anonymous: !1,
|
|
193
200
|
inputs: [
|
|
@@ -4102,49 +4109,49 @@ const E = [
|
|
|
4102
4109
|
}
|
|
4103
4110
|
], wt = {
|
|
4104
4111
|
[a.id]: {
|
|
4105
|
-
factory:
|
|
4106
|
-
easySwapperV2:
|
|
4107
|
-
aaveLendingPoolV3:
|
|
4108
|
-
limitOrder:
|
|
4112
|
+
factory: S,
|
|
4113
|
+
easySwapperV2: R,
|
|
4114
|
+
aaveLendingPoolV3: w,
|
|
4115
|
+
limitOrder: M
|
|
4109
4116
|
},
|
|
4110
4117
|
[i.id]: {
|
|
4111
|
-
factory:
|
|
4112
|
-
aaveLendingPoolV2:
|
|
4113
|
-
aaveLendingPoolV3:
|
|
4114
|
-
easySwapperV2:
|
|
4115
|
-
limitOrder:
|
|
4118
|
+
factory: F,
|
|
4119
|
+
aaveLendingPoolV2: pe,
|
|
4120
|
+
aaveLendingPoolV3: k,
|
|
4121
|
+
easySwapperV2: V,
|
|
4122
|
+
limitOrder: H
|
|
4116
4123
|
},
|
|
4117
4124
|
[t.id]: {
|
|
4118
|
-
factory:
|
|
4119
|
-
rewardDistribution:
|
|
4120
|
-
aaveLendingPoolV3:
|
|
4121
|
-
easySwapperV2:
|
|
4122
|
-
limitOrder:
|
|
4125
|
+
factory: N,
|
|
4126
|
+
rewardDistribution: re,
|
|
4127
|
+
aaveLendingPoolV3: B,
|
|
4128
|
+
easySwapperV2: U,
|
|
4129
|
+
limitOrder: W
|
|
4123
4130
|
},
|
|
4124
4131
|
[s.id]: {
|
|
4125
|
-
factory:
|
|
4126
|
-
aaveLendingPoolV3:
|
|
4127
|
-
easySwapperV2:
|
|
4128
|
-
limitOrder:
|
|
4132
|
+
factory: h,
|
|
4133
|
+
aaveLendingPoolV3: O,
|
|
4134
|
+
easySwapperV2: g,
|
|
4135
|
+
limitOrder: v
|
|
4129
4136
|
},
|
|
4130
4137
|
[n.id]: {
|
|
4131
|
-
factory:
|
|
4132
|
-
flatcoinPointsModule:
|
|
4133
|
-
easySwapperV2:
|
|
4134
|
-
aaveLendingPoolV3:
|
|
4135
|
-
limitOrder:
|
|
4136
|
-
},
|
|
4137
|
-
[
|
|
4138
|
-
factory:
|
|
4139
|
-
easySwapperV2:
|
|
4138
|
+
factory: C,
|
|
4139
|
+
flatcoinPointsModule: ie,
|
|
4140
|
+
easySwapperV2: L,
|
|
4141
|
+
aaveLendingPoolV3: P,
|
|
4142
|
+
limitOrder: x
|
|
4143
|
+
},
|
|
4144
|
+
[r.id]: {
|
|
4145
|
+
factory: Y,
|
|
4146
|
+
easySwapperV2: G
|
|
4140
4147
|
}
|
|
4141
4148
|
}, Mt = {
|
|
4142
4149
|
factory: de,
|
|
4143
|
-
aaveLendingPoolV2:
|
|
4144
|
-
aaveLendingPoolV3:
|
|
4150
|
+
aaveLendingPoolV2: I,
|
|
4151
|
+
aaveLendingPoolV3: I,
|
|
4145
4152
|
rewardDistribution: ue,
|
|
4146
4153
|
poolManagerLogic: ye,
|
|
4147
|
-
erc20:
|
|
4154
|
+
erc20: te,
|
|
4148
4155
|
poolLogic: oe,
|
|
4149
4156
|
flatcoinPointsModule: le,
|
|
4150
4157
|
easySwapperV2: ce,
|
|
@@ -4309,12 +4316,12 @@ const E = [
|
|
|
4309
4316
|
}, Ct = [
|
|
4310
4317
|
...Object.keys(Ae),
|
|
4311
4318
|
...Object.keys(Ee)
|
|
4312
|
-
], e = 18,
|
|
4319
|
+
], e = 18, K = {
|
|
4313
4320
|
address: "0xff970a61a04b1ca14834a43f5de4533ebddb5cc8",
|
|
4314
4321
|
symbol: "USDCe",
|
|
4315
4322
|
decimals: 6,
|
|
4316
4323
|
value: ""
|
|
4317
|
-
},
|
|
4324
|
+
}, o = {
|
|
4318
4325
|
address: "0xaf88d065e77c8cC2239327C5EDb3A432268e5831",
|
|
4319
4326
|
symbol: "USDC",
|
|
4320
4327
|
decimals: 6,
|
|
@@ -4324,7 +4331,7 @@ const E = [
|
|
|
4324
4331
|
symbol: "WETH",
|
|
4325
4332
|
decimals: e,
|
|
4326
4333
|
value: ""
|
|
4327
|
-
},
|
|
4334
|
+
}, T = {
|
|
4328
4335
|
address: "0x2f2a2543b76a4166549f7aab2e75bef0aefc5b0f",
|
|
4329
4336
|
symbol: "WBTC",
|
|
4330
4337
|
decimals: 8,
|
|
@@ -4369,7 +4376,7 @@ const E = [
|
|
|
4369
4376
|
symbol: "USDbC",
|
|
4370
4377
|
decimals: 6,
|
|
4371
4378
|
value: ""
|
|
4372
|
-
},
|
|
4379
|
+
}, z = {
|
|
4373
4380
|
address: "0x4200000000000000000000000000000000000006",
|
|
4374
4381
|
symbol: "WETH",
|
|
4375
4382
|
decimals: e,
|
|
@@ -4399,7 +4406,7 @@ const E = [
|
|
|
4399
4406
|
symbol: "wstETH",
|
|
4400
4407
|
decimals: e,
|
|
4401
4408
|
value: ""
|
|
4402
|
-
},
|
|
4409
|
+
}, X = {
|
|
4403
4410
|
address: "0x7F5c764cBc14f9669B88837ca1490cCa17c31607",
|
|
4404
4411
|
symbol: "USDCe",
|
|
4405
4412
|
decimals: 6,
|
|
@@ -4414,7 +4421,7 @@ const E = [
|
|
|
4414
4421
|
symbol: "USDT",
|
|
4415
4422
|
decimals: 6,
|
|
4416
4423
|
value: ""
|
|
4417
|
-
},
|
|
4424
|
+
}, q = {
|
|
4418
4425
|
address: "0x4200000000000000000000000000000000000006",
|
|
4419
4426
|
symbol: "WETH",
|
|
4420
4427
|
decimals: e,
|
|
@@ -4434,12 +4441,12 @@ const E = [
|
|
|
4434
4441
|
symbol: "WBTC",
|
|
4435
4442
|
decimals: 8,
|
|
4436
4443
|
value: ""
|
|
4437
|
-
},
|
|
4444
|
+
}, Yt = {
|
|
4438
4445
|
address: "0xe405de8f52ba7559f9df3c368500b6e6ae6cee49",
|
|
4439
4446
|
symbol: "sETH",
|
|
4440
4447
|
decimals: e,
|
|
4441
4448
|
value: ""
|
|
4442
|
-
},
|
|
4449
|
+
}, Gt = {
|
|
4443
4450
|
address: "0x350a791bfc2c21f9ed5d10980dad2e2638ffa7f6",
|
|
4444
4451
|
symbol: "LINK",
|
|
4445
4452
|
decimals: e,
|
|
@@ -4454,12 +4461,12 @@ const E = [
|
|
|
4454
4461
|
symbol: "wstETH",
|
|
4455
4462
|
decimals: e,
|
|
4456
4463
|
value: ""
|
|
4457
|
-
},
|
|
4464
|
+
}, $ = {
|
|
4458
4465
|
address: "0x7ceB23fD6bC0adD59E62ac25578270cFf1b9f619",
|
|
4459
4466
|
symbol: "WETH",
|
|
4460
4467
|
decimals: e,
|
|
4461
4468
|
value: ""
|
|
4462
|
-
},
|
|
4469
|
+
}, Z = {
|
|
4463
4470
|
address: "0x2791Bca1f2de4661ED88A30C99A7a9449Aa84174",
|
|
4464
4471
|
symbol: "USDCe",
|
|
4465
4472
|
decimals: 6,
|
|
@@ -4474,7 +4481,7 @@ const E = [
|
|
|
4474
4481
|
symbol: "PAXG",
|
|
4475
4482
|
decimals: e,
|
|
4476
4483
|
value: ""
|
|
4477
|
-
},
|
|
4484
|
+
}, j = {
|
|
4478
4485
|
address: "0x1BFD67037B42Cf73acF2047067bd4F2C47D9BfD6",
|
|
4479
4486
|
symbol: "WBTC",
|
|
4480
4487
|
decimals: 8,
|
|
@@ -4499,7 +4506,7 @@ const E = [
|
|
|
4499
4506
|
symbol: "tBTC",
|
|
4500
4507
|
decimals: e,
|
|
4501
4508
|
value: ""
|
|
4502
|
-
},
|
|
4509
|
+
}, Q = {
|
|
4503
4510
|
address: "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2",
|
|
4504
4511
|
symbol: "WETH",
|
|
4505
4512
|
decimals: e,
|
|
@@ -4509,7 +4516,7 @@ const E = [
|
|
|
4509
4516
|
symbol: "USDC",
|
|
4510
4517
|
decimals: 6,
|
|
4511
4518
|
value: ""
|
|
4512
|
-
},
|
|
4519
|
+
}, J = {
|
|
4513
4520
|
address: "0x2260fac5e5542a773aa44fbcfedf7c193bc2c599",
|
|
4514
4521
|
symbol: "WBTC",
|
|
4515
4522
|
decimals: 8,
|
|
@@ -4519,64 +4526,64 @@ const E = [
|
|
|
4519
4526
|
symbol: "USDT",
|
|
4520
4527
|
decimals: 6,
|
|
4521
4528
|
value: ""
|
|
4522
|
-
},
|
|
4529
|
+
}, $t = {
|
|
4523
4530
|
address: "0x68749665ff8d2d112fa859aa293f07a622782f38",
|
|
4524
4531
|
symbol: "XAUt",
|
|
4525
4532
|
decimals: 6,
|
|
4526
4533
|
value: ""
|
|
4527
|
-
},
|
|
4528
|
-
address:
|
|
4534
|
+
}, Zt = {
|
|
4535
|
+
address: E,
|
|
4529
4536
|
symbol: "all",
|
|
4530
4537
|
decimals: e,
|
|
4531
4538
|
value: ""
|
|
4532
4539
|
}, jt = {
|
|
4533
|
-
[
|
|
4534
|
-
[
|
|
4535
|
-
[
|
|
4540
|
+
[K.address.toLowerCase()]: "USDCe",
|
|
4541
|
+
[X.address.toLowerCase()]: "USDCe",
|
|
4542
|
+
[Z.address.toLowerCase()]: "USDCe"
|
|
4536
4543
|
}, Qt = {
|
|
4537
|
-
[a.id]:
|
|
4538
|
-
[t.id]:
|
|
4539
|
-
[n.id]:
|
|
4540
|
-
[i.id]:
|
|
4544
|
+
[a.id]: Q,
|
|
4545
|
+
[t.id]: q,
|
|
4546
|
+
[n.id]: z,
|
|
4547
|
+
[i.id]: $,
|
|
4541
4548
|
[s.id]: A
|
|
4542
4549
|
}, Jt = {
|
|
4543
4550
|
[t.id]: f,
|
|
4544
4551
|
[n.id]: Se,
|
|
4545
|
-
[i.id]:
|
|
4546
|
-
[s.id]:
|
|
4547
|
-
[a.id]:
|
|
4552
|
+
[i.id]: j,
|
|
4553
|
+
[s.id]: T,
|
|
4554
|
+
[a.id]: J
|
|
4548
4555
|
}, ea = {
|
|
4549
4556
|
[t.id]: {
|
|
4550
|
-
WETH:
|
|
4557
|
+
WETH: q,
|
|
4551
4558
|
USDC: Re,
|
|
4552
4559
|
WBTC: f,
|
|
4553
|
-
USDCe:
|
|
4560
|
+
USDCe: X,
|
|
4554
4561
|
USDT: we,
|
|
4555
4562
|
DAI: Me
|
|
4556
4563
|
},
|
|
4557
4564
|
[i.id]: {
|
|
4558
4565
|
WMATIC: Oe,
|
|
4559
|
-
WETH:
|
|
4566
|
+
WETH: $,
|
|
4560
4567
|
USDC: he,
|
|
4561
|
-
WBTC:
|
|
4562
|
-
USDCe:
|
|
4568
|
+
WBTC: j,
|
|
4569
|
+
USDCe: Z,
|
|
4563
4570
|
USDT: ge,
|
|
4564
4571
|
DAI: ve
|
|
4565
4572
|
},
|
|
4566
4573
|
[s.id]: {
|
|
4567
4574
|
WETH: A,
|
|
4568
|
-
USDC:
|
|
4569
|
-
WBTC:
|
|
4570
|
-
USDCe:
|
|
4575
|
+
USDC: o,
|
|
4576
|
+
WBTC: T,
|
|
4577
|
+
USDCe: K
|
|
4571
4578
|
},
|
|
4572
4579
|
[n.id]: {
|
|
4573
|
-
WETH:
|
|
4580
|
+
WETH: z,
|
|
4574
4581
|
USDC: Ie
|
|
4575
4582
|
},
|
|
4576
4583
|
[a.id]: {
|
|
4577
|
-
WETH:
|
|
4584
|
+
WETH: Q,
|
|
4578
4585
|
USDC: Ce,
|
|
4579
|
-
WBTC:
|
|
4586
|
+
WBTC: J,
|
|
4580
4587
|
USDT: Le
|
|
4581
4588
|
}
|
|
4582
4589
|
}, ta = "https://hermes.pyth.network", aa = "https://flat.money/flatcoin", na = "https://v1.flat.money/flatcoin", _ = {
|
|
@@ -4597,9 +4604,9 @@ const E = [
|
|
|
4597
4604
|
address: f.address
|
|
4598
4605
|
},
|
|
4599
4606
|
[_.WBTC_ARBITRUM]: {
|
|
4600
|
-
symbol:
|
|
4601
|
-
decimals:
|
|
4602
|
-
address:
|
|
4607
|
+
symbol: T.symbol,
|
|
4608
|
+
decimals: T.decimals,
|
|
4609
|
+
address: T.address
|
|
4603
4610
|
}
|
|
4604
4611
|
}, Pe = "0xb95fb324b8a2faf8ec4f76e3df46c718402736e2", ra = [
|
|
4605
4612
|
Pe,
|
|
@@ -4612,7 +4619,7 @@ const E = [
|
|
|
4612
4619
|
[t.id]: 300,
|
|
4613
4620
|
[s.id]: 300,
|
|
4614
4621
|
[i.id]: 300,
|
|
4615
|
-
[
|
|
4622
|
+
[r.id]: 300
|
|
4616
4623
|
}, da = {
|
|
4617
4624
|
DEPOSIT: "deposit",
|
|
4618
4625
|
DEPOSIT_CUSTOM: "depositWithCustomCooldown",
|
|
@@ -4627,7 +4634,7 @@ const E = [
|
|
|
4627
4634
|
"swap",
|
|
4628
4635
|
"claim",
|
|
4629
4636
|
"single_withdraw_and_claim"
|
|
4630
|
-
],
|
|
4637
|
+
], p = {
|
|
4631
4638
|
SOL_ARBITRUM: "0x09400d9db990d5ed3f35d7be61dfaeb900af03c9",
|
|
4632
4639
|
BTC_ARBITRUM: "0x47c031236e19d024b42f8ae6780e44a573170703",
|
|
4633
4640
|
WETH_WETH_ARBITRUM: "0x70d95587d40a2caf56bd97485ab3eec10bee6336",
|
|
@@ -4644,25 +4651,25 @@ const E = [
|
|
|
4644
4651
|
GOLD_ARBITRUM: "0xeb28ad1a2e497f4acc5d9b87e7b496623c93061e",
|
|
4645
4652
|
AAVE_ARBITRUM: "0x1cbba6346f110c8a5ea739ef2d1eb182990e4eb2"
|
|
4646
4653
|
}, ya = Object.values(
|
|
4647
|
-
|
|
4654
|
+
p
|
|
4648
4655
|
), ua = {
|
|
4649
|
-
[
|
|
4650
|
-
[
|
|
4651
|
-
[
|
|
4652
|
-
[
|
|
4653
|
-
[
|
|
4654
|
-
[
|
|
4655
|
-
[
|
|
4656
|
-
[
|
|
4657
|
-
[
|
|
4658
|
-
[
|
|
4659
|
-
[
|
|
4660
|
-
[
|
|
4661
|
-
[
|
|
4662
|
-
[
|
|
4663
|
-
[
|
|
4656
|
+
[p.SOL_ARBITRUM]: o,
|
|
4657
|
+
[p.BTC_ARBITRUM]: T,
|
|
4658
|
+
[p.WETH_WETH_ARBITRUM]: A,
|
|
4659
|
+
[p.WETH_USDC_ARBITRUM]: A,
|
|
4660
|
+
[p.SUI_ARBITRUM]: o,
|
|
4661
|
+
[p.DOGE_ARBITRUM]: o,
|
|
4662
|
+
[p.XRP_ARBITRUM]: o,
|
|
4663
|
+
[p.CRV_ARBITRUM]: o,
|
|
4664
|
+
[p.HYPE_ARBITRUM]: o,
|
|
4665
|
+
[p.BNB_ARBITRUM]: o,
|
|
4666
|
+
[p.LINK_ARBITRUM]: o,
|
|
4667
|
+
[p.PUMP_ARBITRUM]: o,
|
|
4668
|
+
[p.BNB_WBTC_USDC_ARBITRUM]: o,
|
|
4669
|
+
[p.GOLD_ARBITRUM]: o,
|
|
4670
|
+
[p.AAVE_ARBITRUM]: o
|
|
4664
4671
|
}, la = {
|
|
4665
|
-
"0x9a916e55f5b67226734cd7b465d51bce1d11a89a":
|
|
4672
|
+
"0x9a916e55f5b67226734cd7b465d51bce1d11a89a": o
|
|
4666
4673
|
// USDmny Arbitrum
|
|
4667
4674
|
};
|
|
4668
4675
|
export {
|
|
@@ -4670,12 +4677,12 @@ export {
|
|
|
4670
4677
|
mt as A,
|
|
4671
4678
|
jt as B,
|
|
4672
4679
|
yt as C,
|
|
4673
|
-
|
|
4680
|
+
ne as D,
|
|
4674
4681
|
at as E,
|
|
4675
4682
|
et as F,
|
|
4676
4683
|
tt as G,
|
|
4677
4684
|
Ke as H,
|
|
4678
|
-
|
|
4685
|
+
Ye as I,
|
|
4679
4686
|
Fe as J,
|
|
4680
4687
|
He as K,
|
|
4681
4688
|
ea as L,
|
|
@@ -4688,7 +4695,7 @@ export {
|
|
|
4688
4695
|
ht as S,
|
|
4689
4696
|
st as T,
|
|
4690
4697
|
ya as U,
|
|
4691
|
-
|
|
4698
|
+
p as V,
|
|
4692
4699
|
ua as W,
|
|
4693
4700
|
la as X,
|
|
4694
4701
|
De as Y,
|
|
@@ -4697,7 +4704,7 @@ export {
|
|
|
4697
4704
|
pa as a,
|
|
4698
4705
|
Bt as a$,
|
|
4699
4706
|
lt as a0,
|
|
4700
|
-
|
|
4707
|
+
Zt as a1,
|
|
4701
4708
|
Ue as a2,
|
|
4702
4709
|
nt as a3,
|
|
4703
4710
|
ta as a4,
|
|
@@ -4706,36 +4713,36 @@ export {
|
|
|
4706
4713
|
Qe as a7,
|
|
4707
4714
|
bt as a8,
|
|
4708
4715
|
_e as a9,
|
|
4709
|
-
|
|
4716
|
+
K as aA,
|
|
4710
4717
|
X as aB,
|
|
4711
|
-
|
|
4712
|
-
|
|
4713
|
-
|
|
4714
|
-
|
|
4715
|
-
|
|
4716
|
-
|
|
4717
|
-
|
|
4718
|
-
|
|
4719
|
-
|
|
4720
|
-
|
|
4721
|
-
|
|
4722
|
-
|
|
4723
|
-
|
|
4724
|
-
|
|
4725
|
-
|
|
4726
|
-
|
|
4727
|
-
|
|
4728
|
-
|
|
4729
|
-
|
|
4730
|
-
|
|
4731
|
-
|
|
4732
|
-
|
|
4733
|
-
|
|
4718
|
+
Z as aC,
|
|
4719
|
+
Se as aD,
|
|
4720
|
+
Ft as aE,
|
|
4721
|
+
Me as aF,
|
|
4722
|
+
ve as aG,
|
|
4723
|
+
Ut as aH,
|
|
4724
|
+
Gt as aI,
|
|
4725
|
+
Xt as aJ,
|
|
4726
|
+
D as aK,
|
|
4727
|
+
ue as aL,
|
|
4728
|
+
Yt as aM,
|
|
4729
|
+
Ht as aN,
|
|
4730
|
+
Lt as aO,
|
|
4731
|
+
kt as aP,
|
|
4732
|
+
Kt as aQ,
|
|
4733
|
+
qt as aR,
|
|
4734
|
+
Wt as aS,
|
|
4735
|
+
o as aT,
|
|
4736
|
+
Ie as aU,
|
|
4737
|
+
Ce as aV,
|
|
4738
|
+
Re as aW,
|
|
4739
|
+
he as aX,
|
|
4740
|
+
xt as aY,
|
|
4734
4741
|
we as aZ,
|
|
4735
4742
|
ge as a_,
|
|
4736
4743
|
dt as aa,
|
|
4737
4744
|
_t as ab,
|
|
4738
|
-
|
|
4745
|
+
d as ac,
|
|
4739
4746
|
Ae as ad,
|
|
4740
4747
|
Ct as ae,
|
|
4741
4748
|
Jt as af,
|
|
@@ -4743,7 +4750,7 @@ export {
|
|
|
4743
4750
|
fe as ah,
|
|
4744
4751
|
Mt as ai,
|
|
4745
4752
|
wt as aj,
|
|
4746
|
-
|
|
4753
|
+
E as ak,
|
|
4747
4754
|
St as al,
|
|
4748
4755
|
Rt as am,
|
|
4749
4756
|
e as an,
|
|
@@ -4756,34 +4763,34 @@ export {
|
|
|
4756
4763
|
le as au,
|
|
4757
4764
|
At as av,
|
|
4758
4765
|
It as aw,
|
|
4759
|
-
|
|
4760
|
-
|
|
4761
|
-
|
|
4762
|
-
|
|
4763
|
-
|
|
4764
|
-
|
|
4766
|
+
Le as ax,
|
|
4767
|
+
Te as ay,
|
|
4768
|
+
I as az,
|
|
4769
|
+
ae as b,
|
|
4770
|
+
T as b0,
|
|
4771
|
+
J as b1,
|
|
4765
4772
|
f as b2,
|
|
4766
|
-
|
|
4773
|
+
j as b3,
|
|
4767
4774
|
A as b4,
|
|
4768
|
-
|
|
4769
|
-
|
|
4770
|
-
|
|
4771
|
-
|
|
4775
|
+
z as b5,
|
|
4776
|
+
Q as b6,
|
|
4777
|
+
q as b7,
|
|
4778
|
+
$ as b8,
|
|
4772
4779
|
Oe as b9,
|
|
4773
4780
|
Nt as ba,
|
|
4774
4781
|
Pt as bb,
|
|
4775
4782
|
Vt as bc,
|
|
4776
4783
|
zt as bd,
|
|
4777
|
-
|
|
4784
|
+
$t as be,
|
|
4778
4785
|
ut as c,
|
|
4779
4786
|
oa as d,
|
|
4780
4787
|
Tt as e,
|
|
4781
4788
|
ct as f,
|
|
4782
4789
|
ze as g,
|
|
4783
|
-
|
|
4790
|
+
se as h,
|
|
4784
4791
|
je as i,
|
|
4785
4792
|
Ot as j,
|
|
4786
|
-
|
|
4793
|
+
Ge as k,
|
|
4787
4794
|
m as l,
|
|
4788
4795
|
Je as m,
|
|
4789
4796
|
ot as n,
|
|
@@ -4791,9 +4798,9 @@ export {
|
|
|
4791
4798
|
ke as p,
|
|
4792
4799
|
l as q,
|
|
4793
4800
|
rt as r,
|
|
4794
|
-
|
|
4801
|
+
$e as s,
|
|
4795
4802
|
gt as t,
|
|
4796
|
-
|
|
4803
|
+
Ze as u,
|
|
4797
4804
|
We as v,
|
|
4798
4805
|
pt as w,
|
|
4799
4806
|
Xe as x,
|