@dhedge/trading-widget 5.11.0 → 5.12.0
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/README.md +51 -22
- package/const.cjs +1 -1
- package/const.js +30 -29
- package/core-kit/const/default-data.d.ts +1 -0
- package/core-kit/hooks/trading/withdraw-v2/init-step/use-fetch-init-withdraw-complex-asset-data.d.ts +2 -1
- package/core-kit/utils/complex-withdraw-asset-data.d.ts +6 -0
- package/core-kit/utils/deposit.d.ts +3 -1
- package/core-kit/utils/index.d.ts +1 -0
- package/core-kit/utils/slippage-auto-simulation.d.ts +8 -0
- package/core-kit/utils/transaction.d.ts +2 -1
- package/{gmx-BroDb_q_.js → gmx-3UudxpaT.js} +175 -163
- package/gmx-Bmop5mtI.cjs +1 -0
- package/index.cjs +1 -1
- package/index.js +3193 -3130
- package/package.json +1 -1
- package/slippage-auto-simulation-B0sf5jE_.js +400 -0
- package/slippage-auto-simulation-yZX7Qmre.cjs +1 -0
- package/trading-widget/providers/config-provider/config-provider.types.d.ts +1 -1
- package/trading-widget/providers/config-provider/index.d.ts +1 -0
- package/trading-widget/providers/config-provider/use-resolved-default-swap-transaction-slippage.d.ts +1 -0
- package/utils.cjs +1 -1
- package/utils.js +30 -28
- package/complex-withdraw-asset-data-DKDPznHy.cjs +0 -1
- package/complex-withdraw-asset-data-DzhKTztw.js +0 -366
- package/gmx-CLiWBUH_.cjs +0 -1
|
@@ -3,21 +3,32 @@ import { formatDuration as j } from "date-fns";
|
|
|
3
3
|
import { erc20Abi as Q } from "viem";
|
|
4
4
|
const J = "0x0000000000000000000000000000000000000000", Be = BigInt(
|
|
5
5
|
"0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff"
|
|
6
|
-
), l = 18, Ue = "1000000000000000000", We = 59e3, Fe = 3e4, ke = 15e3, Ve = 5e3, ee = 400, He = ee * 1.2,
|
|
6
|
+
), l = 18, Ue = "1000000000000000000", We = 59e3, Fe = 3e4, ke = 15e3, Ve = 5e3, ee = 400, He = ee * 1.2, Ge = j({ hours: 24 }), Ye = {
|
|
7
7
|
address: J,
|
|
8
8
|
symbol: "",
|
|
9
9
|
chainId: t.id,
|
|
10
10
|
depositParams: { customTokens: [] },
|
|
11
11
|
withdrawParams: { customTokens: [] },
|
|
12
12
|
deprecated: !1
|
|
13
|
-
}, Ke = "deposit", ze = 0.5, te = 0, Xe = 0.5, qe = 0.02, Ze = 0.5, $e = [te], je =
|
|
13
|
+
}, Ke = "deposit", ze = 0.5, te = 0, Xe = 0.5, qe = 0.02, Ze = 0.5, $e = [te], je = [
|
|
14
|
+
0.05,
|
|
15
|
+
0.1,
|
|
16
|
+
0.3,
|
|
17
|
+
0.5,
|
|
18
|
+
0.75,
|
|
19
|
+
1,
|
|
20
|
+
1.5,
|
|
21
|
+
2,
|
|
22
|
+
3,
|
|
23
|
+
5
|
|
24
|
+
], Qe = "withdrawSafe", Je = "initWithdrawal", et = "unrollAndClaim", tt = "completeWithdrawal", at = 3e7, nt = 1.25, st = 1e4, it = 13e3, pt = 3, rt = 2e4, dt = 15e3, ot = {
|
|
14
25
|
[a.id]: a,
|
|
15
26
|
[i.id]: i,
|
|
16
27
|
[t.id]: t,
|
|
17
28
|
[s.id]: s,
|
|
18
29
|
[n.id]: n,
|
|
19
30
|
[y.id]: y
|
|
20
|
-
},
|
|
31
|
+
}, yt = {
|
|
21
32
|
[a.id]: {
|
|
22
33
|
nativeTokenSymbol: "ETH",
|
|
23
34
|
wrappedNativeTokenName: "WETH",
|
|
@@ -54,29 +65,29 @@ const J = "0x0000000000000000000000000000000000000000", Be = BigInt(
|
|
|
54
65
|
address: "0x5555555555555555555555555555555555555555",
|
|
55
66
|
decimals: l
|
|
56
67
|
}
|
|
57
|
-
}, m = 299e5,
|
|
68
|
+
}, m = 299e5, ut = {
|
|
58
69
|
[a.id]: m,
|
|
59
70
|
[i.id]: m,
|
|
60
71
|
[t.id]: m,
|
|
61
72
|
[s.id]: m,
|
|
62
73
|
[n.id]: m,
|
|
63
74
|
[y.id]: m
|
|
64
|
-
},
|
|
75
|
+
}, lt = {
|
|
65
76
|
[a.id]: "https://eth-mainnet.g.alchemy.com/v2",
|
|
66
77
|
[t.id]: "https://opt-mainnet.g.alchemy.com/v2",
|
|
67
78
|
[i.id]: "https://polygon-mainnet.g.alchemy.com/v2",
|
|
68
79
|
[s.id]: "https://arb-mainnet.g.alchemy.com/v2",
|
|
69
80
|
[n.id]: "https://base-mainnet.g.alchemy.com/v2",
|
|
70
81
|
[y.id]: "https://hyperliquid-mainnet.g.alchemy.com/v2"
|
|
71
|
-
},
|
|
82
|
+
}, mt = {
|
|
72
83
|
USD: "$",
|
|
73
84
|
ETH: "Ξ",
|
|
74
85
|
BTC: "₿"
|
|
75
|
-
},
|
|
86
|
+
}, ct = {
|
|
76
87
|
USD: 2,
|
|
77
88
|
ETH: 4,
|
|
78
89
|
BTC: 6
|
|
79
|
-
},
|
|
90
|
+
}, Tt = ["USDC", "USDT"], r = {
|
|
80
91
|
INVEST_INPUT_FOCUS: "invest_input_focus",
|
|
81
92
|
APPROVED_TOKEN: "approved_token",
|
|
82
93
|
DEPOSIT: "deposit",
|
|
@@ -94,7 +105,7 @@ const J = "0x0000000000000000000000000000000000000000", Be = BigInt(
|
|
|
94
105
|
OPEN_LIMIT_BUY_VIEW: "open_limit_buy_view",
|
|
95
106
|
LIMIT_ORDER_WITHDRAW: "limit_order_withdraw",
|
|
96
107
|
LIMIT_ORDER_WITHDRAW_DELETE: "limit_order_withdraw_delete"
|
|
97
|
-
},
|
|
108
|
+
}, bt = {
|
|
98
109
|
approve: [r.APPROVED_TOKEN],
|
|
99
110
|
deposit: [r.DEPOSIT],
|
|
100
111
|
multi_withdraw: [
|
|
@@ -117,7 +128,7 @@ const J = "0x0000000000000000000000000000000000000000", Be = BigInt(
|
|
|
117
128
|
delete_limit_order_withdraw: [
|
|
118
129
|
r.LIMIT_ORDER_WITHDRAW_DELETE
|
|
119
130
|
]
|
|
120
|
-
},
|
|
131
|
+
}, ft = {
|
|
121
132
|
IS_INFINITE: { NAME: "is_infinite", TYPE: "number" },
|
|
122
133
|
SYMBOL: { NAME: "symbol", TYPE: "string" },
|
|
123
134
|
CHAIN_ID: { NAME: "chain_id", TYPE: "number" },
|
|
@@ -127,7 +138,7 @@ const J = "0x0000000000000000000000000000000000000000", Be = BigInt(
|
|
|
127
138
|
var o = /* @__PURE__ */ ((u) => (u.ETH = "ETH", u.MAINNET = "MAINNET", u.POLYGON = "POLYGON", u.OE = "OPTIMISM", u.ARBI = "ARBITRUM", u.BASE = "BASE", u))(o || {});
|
|
128
139
|
const T = process.env.NEXT_PUBLIC_INFURA_API_KEY;
|
|
129
140
|
s.id + "", `${T}`, t.id + "", `${T}`, i.id + "", `${T}`, n.id + "", `${T}`, a.id + "", `${T}`;
|
|
130
|
-
const
|
|
141
|
+
const _t = {
|
|
131
142
|
[s.id]: {
|
|
132
143
|
...s,
|
|
133
144
|
name: "Arbitrum",
|
|
@@ -171,7 +182,7 @@ a.id + "", t.id + "", i.id + "", s.id + "", n.id + "", y.id + "";
|
|
|
171
182
|
const I = "0x0000000000000000000000000000000000000000";
|
|
172
183
|
BigInt("0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff");
|
|
173
184
|
a.id + "", BigInt(100), t.id + "", BigInt(600), i.id + "", BigInt(600), n.id + "", BigInt(600), s.id + "", BigInt(5300);
|
|
174
|
-
const S = "0x96D33bCF84DdE326014248E2896F79bbb9c13D6d", R = "0xbDd84294bC8299861A2121F749A25EFEb7168a32", w = "0x87870Bca3F3fD6335C3F4ce8392D69350B4fA4E2", M = "0xffFb5fB14606EB3a548C113026355020dDF27535", h = "0x794a61358D6845594F94dc1DB02A252b5b4814aD", O = "0xA5679C4272A056Bb83f039961fae7D99C48529F5", g = "0x26a687e8244f1866E9Aa2D400c8b9957Aa8e6Ad4", v = "0x49Afe3abCf66CF09Fab86cb1139D8811C8afe56F", C = "0xf067575Eb60c7587C11e867907AA7284833704d1", ae = "0x59525b9b23adc475ef91d98dae06b568ba574ce5",
|
|
185
|
+
const S = "0x96D33bCF84DdE326014248E2896F79bbb9c13D6d", R = "0xbDd84294bC8299861A2121F749A25EFEb7168a32", w = "0x87870Bca3F3fD6335C3F4ce8392D69350B4fA4E2", M = "0xffFb5fB14606EB3a548C113026355020dDF27535", h = "0x794a61358D6845594F94dc1DB02A252b5b4814aD", O = "0xA5679C4272A056Bb83f039961fae7D99C48529F5", g = "0x26a687e8244f1866E9Aa2D400c8b9957Aa8e6Ad4", v = "0x49Afe3abCf66CF09Fab86cb1139D8811C8afe56F", C = "0xf067575Eb60c7587C11e867907AA7284833704d1", ae = "0x59525b9b23adc475ef91d98dae06b568ba574ce5", At = "0xa907504d7a4c415b4e6e1d0866d96afe8202f0e5", Dt = "0x1849324228d852a67eb7443e42d967e480ffe95d", L = "0xa238dd80c259a72e81d7e4664a9801593f98d1c5", P = "0xFcBEc28c43E356693971a24bf3F2Fd7D965E2ebA", ne = "0x07e144e336fcc3fe928a8a2a5714da64354c1aab", x = "0x5e61a079A178f0E5784107a4963baAe0c5a680c6", N = "0x794a61358D6845594F94dc1DB02A252b5b4814aD", B = "0x2Ed1bd7f66e47113672f3870308b5E867C5bb743", U = "0x3bFE2a472d2964Ea4070725b7Fb0A868b3f08b63", W = "0xfdc7b8bFe0DD3513Cc669bB8d601Cb83e2F69cB0", se = "0x8dFf5E27EA6b7AC08EbFdf9eB090F32ee9a30fcf", F = "0x794a61358D6845594F94dc1DB02A252b5b4814aD", k = "0x45b90480D6F643dE2f128db091A357C3c90399f2", V = "0xB71410736d2C8F2DAf30dA9D332dA10534d2624d", ie = "0x615037C2Df6FA97634c5aD2d8144708b9dd3B176", pe = "0x47065E508433E22d73Be3c5B61EB9abafD450364", Et = "0x4F754e0F0924afD74980886b0B479Fa1D7C58D0D";
|
|
175
186
|
a.id + "", s.id + "", n.id + "", t.id + "", i.id + "";
|
|
176
187
|
a.id + "", s.id + "", n.id + "", t.id + "", i.id + "";
|
|
177
188
|
a.id + "", s.id + "", n.id + "", t.id + "", i.id + "";
|
|
@@ -1404,7 +1415,7 @@ const E = [
|
|
|
1404
1415
|
stateMutability: "nonpayable",
|
|
1405
1416
|
type: "function"
|
|
1406
1417
|
}
|
|
1407
|
-
],
|
|
1418
|
+
], It = [
|
|
1408
1419
|
{
|
|
1409
1420
|
type: "tuple[]",
|
|
1410
1421
|
components: [
|
|
@@ -1432,7 +1443,7 @@ const E = [
|
|
|
1432
1443
|
}
|
|
1433
1444
|
]
|
|
1434
1445
|
}
|
|
1435
|
-
],
|
|
1446
|
+
], St = [
|
|
1436
1447
|
{
|
|
1437
1448
|
type: "tuple",
|
|
1438
1449
|
components: [
|
|
@@ -4089,7 +4100,7 @@ const E = [
|
|
|
4089
4100
|
stateMutability: "nonpayable",
|
|
4090
4101
|
type: "function"
|
|
4091
4102
|
}
|
|
4092
|
-
],
|
|
4103
|
+
], Rt = {
|
|
4093
4104
|
[a.id]: {
|
|
4094
4105
|
factory: S,
|
|
4095
4106
|
easySwapperV2: R,
|
|
@@ -4126,7 +4137,7 @@ const E = [
|
|
|
4126
4137
|
factory: ie,
|
|
4127
4138
|
easySwapperV2: pe
|
|
4128
4139
|
}
|
|
4129
|
-
},
|
|
4140
|
+
}, wt = {
|
|
4130
4141
|
factory: re,
|
|
4131
4142
|
aaveLendingPoolV2: E,
|
|
4132
4143
|
aaveLendingPoolV3: E,
|
|
@@ -4137,7 +4148,7 @@ const E = [
|
|
|
4137
4148
|
flatcoinPointsModule: ue,
|
|
4138
4149
|
easySwapperV2: me,
|
|
4139
4150
|
limitOrder: ce
|
|
4140
|
-
},
|
|
4151
|
+
}, Mt = "Gas estimate error occurred", ht = "See console logs to report error details.", Ot = "Missing simulation params", gt = "Simulation timeout", Te = "swap_data_deposit_error", be = "swap_data_withdraw_error", fe = "SwapFailed", b = {
|
|
4141
4152
|
title: "Low Slippage",
|
|
4142
4153
|
hint: "Please increase slippage tolerance and try again."
|
|
4143
4154
|
}, _e = {
|
|
@@ -4294,7 +4305,7 @@ const E = [
|
|
|
4294
4305
|
InvalidPrices: {
|
|
4295
4306
|
title: Ae
|
|
4296
4307
|
}
|
|
4297
|
-
},
|
|
4308
|
+
}, vt = [
|
|
4298
4309
|
...Object.keys(_e),
|
|
4299
4310
|
...Object.keys(De)
|
|
4300
4311
|
], e = 18, H = {
|
|
@@ -4317,32 +4328,32 @@ const E = [
|
|
|
4317
4328
|
symbol: "WBTC",
|
|
4318
4329
|
decimals: 8,
|
|
4319
4330
|
value: ""
|
|
4320
|
-
},
|
|
4331
|
+
}, Ct = {
|
|
4321
4332
|
address: "0x6c84a8f1c29108F47a79964b5Fe888D4f4D0dE40",
|
|
4322
4333
|
symbol: "tBTC",
|
|
4323
4334
|
decimals: e,
|
|
4324
4335
|
value: ""
|
|
4325
|
-
},
|
|
4336
|
+
}, Lt = {
|
|
4326
4337
|
address: "0x5979D7b546E38E414F7E9822514be443A4800529",
|
|
4327
4338
|
symbol: "wstETH",
|
|
4328
4339
|
decimals: e,
|
|
4329
4340
|
value: ""
|
|
4330
|
-
},
|
|
4341
|
+
}, Pt = {
|
|
4331
4342
|
address: "0xfd086bc7cd5c481dcc9c85ebe478a1c0b69fcbb9",
|
|
4332
4343
|
symbol: "USDT",
|
|
4333
4344
|
decimals: 6,
|
|
4334
4345
|
value: ""
|
|
4335
|
-
},
|
|
4346
|
+
}, xt = {
|
|
4336
4347
|
address: "0x2bcC6D6CdBbDC0a4071e48bb3B969b06B3330c07",
|
|
4337
4348
|
symbol: "SOL",
|
|
4338
4349
|
decimals: 9,
|
|
4339
4350
|
value: ""
|
|
4340
|
-
},
|
|
4351
|
+
}, Nt = {
|
|
4341
4352
|
address: "0xa9004a5421372e1d83fb1f85b0fc986c912f91f3",
|
|
4342
4353
|
symbol: "WBNB",
|
|
4343
4354
|
decimals: e,
|
|
4344
4355
|
value: ""
|
|
4345
|
-
},
|
|
4356
|
+
}, Bt = {
|
|
4346
4357
|
address: "0xf97f4df75117a78c1a5a0dbb814af92458539fb4",
|
|
4347
4358
|
symbol: "LINK",
|
|
4348
4359
|
decimals: e,
|
|
@@ -4352,17 +4363,17 @@ const E = [
|
|
|
4352
4363
|
symbol: "USDC",
|
|
4353
4364
|
decimals: 6,
|
|
4354
4365
|
value: ""
|
|
4355
|
-
},
|
|
4366
|
+
}, Ut = {
|
|
4356
4367
|
address: "0xd9aaec86b65d86f6a7b5b1b0c42ffa531710b6ca",
|
|
4357
4368
|
symbol: "USDbC",
|
|
4358
4369
|
decimals: 6,
|
|
4359
4370
|
value: ""
|
|
4360
|
-
},
|
|
4371
|
+
}, G = {
|
|
4361
4372
|
address: "0x4200000000000000000000000000000000000006",
|
|
4362
4373
|
symbol: "WETH",
|
|
4363
4374
|
decimals: e,
|
|
4364
4375
|
value: ""
|
|
4365
|
-
},
|
|
4376
|
+
}, Wt = {
|
|
4366
4377
|
address: "0x2ae3f1ec7f1f5012cfeab0185bfc7aa3cf0dec22",
|
|
4367
4378
|
symbol: "cbETH",
|
|
4368
4379
|
decimals: e,
|
|
@@ -4377,17 +4388,17 @@ const E = [
|
|
|
4377
4388
|
symbol: "rETH",
|
|
4378
4389
|
decimals: e,
|
|
4379
4390
|
value: ""
|
|
4380
|
-
},
|
|
4391
|
+
}, Ft = {
|
|
4381
4392
|
address: "0x236aa50979D5f3De3Bd1Eeb40E81137F22ab794b",
|
|
4382
4393
|
symbol: "tBTC",
|
|
4383
4394
|
decimals: e,
|
|
4384
4395
|
value: ""
|
|
4385
|
-
},
|
|
4396
|
+
}, kt = {
|
|
4386
4397
|
address: "0xc1cba3fcea344f92d9239c08c0568f6f2f0ee452",
|
|
4387
4398
|
symbol: "wstETH",
|
|
4388
4399
|
decimals: e,
|
|
4389
4400
|
value: ""
|
|
4390
|
-
},
|
|
4401
|
+
}, Y = {
|
|
4391
4402
|
address: "0x7F5c764cBc14f9669B88837ca1490cCa17c31607",
|
|
4392
4403
|
symbol: "USDCe",
|
|
4393
4404
|
decimals: 6,
|
|
@@ -4407,7 +4418,7 @@ const E = [
|
|
|
4407
4418
|
symbol: "WETH",
|
|
4408
4419
|
decimals: e,
|
|
4409
4420
|
value: ""
|
|
4410
|
-
},
|
|
4421
|
+
}, Vt = {
|
|
4411
4422
|
address: "0x8c6f28f2F1A3C87F0f938b96d27520d9751ec8d9",
|
|
4412
4423
|
symbol: "sUSD",
|
|
4413
4424
|
decimals: e,
|
|
@@ -4422,12 +4433,12 @@ const E = [
|
|
|
4422
4433
|
symbol: "WBTC",
|
|
4423
4434
|
decimals: 8,
|
|
4424
4435
|
value: ""
|
|
4425
|
-
},
|
|
4436
|
+
}, Ht = {
|
|
4426
4437
|
address: "0xe405de8f52ba7559f9df3c368500b6e6ae6cee49",
|
|
4427
4438
|
symbol: "sETH",
|
|
4428
4439
|
decimals: e,
|
|
4429
4440
|
value: ""
|
|
4430
|
-
},
|
|
4441
|
+
}, Gt = {
|
|
4431
4442
|
address: "0x350a791bfc2c21f9ed5d10980dad2e2638ffa7f6",
|
|
4432
4443
|
symbol: "LINK",
|
|
4433
4444
|
decimals: e,
|
|
@@ -4437,7 +4448,7 @@ const E = [
|
|
|
4437
4448
|
symbol: "tBTC",
|
|
4438
4449
|
decimals: e,
|
|
4439
4450
|
value: ""
|
|
4440
|
-
},
|
|
4451
|
+
}, Kt = {
|
|
4441
4452
|
address: "0x1F32b1c2345538c0c6f582fCB022739c4A194Ebb",
|
|
4442
4453
|
symbol: "wstETH",
|
|
4443
4454
|
decimals: e,
|
|
@@ -4457,7 +4468,7 @@ const E = [
|
|
|
4457
4468
|
symbol: "USDC",
|
|
4458
4469
|
decimals: 6,
|
|
4459
4470
|
value: ""
|
|
4460
|
-
},
|
|
4471
|
+
}, zt = {
|
|
4461
4472
|
address: "0x553d3d295e0f695b9228246232edf400ed3560b5",
|
|
4462
4473
|
symbol: "PAXG",
|
|
4463
4474
|
decimals: e,
|
|
@@ -4482,7 +4493,7 @@ const E = [
|
|
|
4482
4493
|
symbol: "DAI",
|
|
4483
4494
|
decimals: e,
|
|
4484
4495
|
value: ""
|
|
4485
|
-
},
|
|
4496
|
+
}, Xt = {
|
|
4486
4497
|
address: "0x236aa50979d5f3de3bd1eeb40e81137f22ab794b",
|
|
4487
4498
|
symbol: "tBTC",
|
|
4488
4499
|
decimals: e,
|
|
@@ -4507,38 +4518,38 @@ const E = [
|
|
|
4507
4518
|
symbol: "USDT",
|
|
4508
4519
|
decimals: 6,
|
|
4509
4520
|
value: ""
|
|
4510
|
-
},
|
|
4521
|
+
}, qt = {
|
|
4511
4522
|
address: "0x68749665ff8d2d112fa859aa293f07a622782f38",
|
|
4512
4523
|
symbol: "XAUt",
|
|
4513
4524
|
decimals: 6,
|
|
4514
4525
|
value: ""
|
|
4515
|
-
},
|
|
4526
|
+
}, Zt = {
|
|
4516
4527
|
address: I,
|
|
4517
4528
|
symbol: "all",
|
|
4518
4529
|
decimals: e,
|
|
4519
4530
|
value: ""
|
|
4520
|
-
},
|
|
4531
|
+
}, $t = {
|
|
4521
4532
|
[H.address.toLowerCase()]: "USDCe",
|
|
4522
|
-
[
|
|
4533
|
+
[Y.address.toLowerCase()]: "USDCe",
|
|
4523
4534
|
[X.address.toLowerCase()]: "USDCe"
|
|
4524
|
-
},
|
|
4535
|
+
}, jt = {
|
|
4525
4536
|
[a.id]: Z,
|
|
4526
4537
|
[t.id]: K,
|
|
4527
|
-
[n.id]:
|
|
4538
|
+
[n.id]: G,
|
|
4528
4539
|
[i.id]: z,
|
|
4529
4540
|
[s.id]: A
|
|
4530
|
-
},
|
|
4541
|
+
}, Qt = {
|
|
4531
4542
|
[t.id]: f,
|
|
4532
4543
|
[n.id]: Ie,
|
|
4533
4544
|
[i.id]: q,
|
|
4534
4545
|
[s.id]: c,
|
|
4535
4546
|
[a.id]: $
|
|
4536
|
-
},
|
|
4547
|
+
}, Jt = {
|
|
4537
4548
|
[t.id]: {
|
|
4538
4549
|
WETH: K,
|
|
4539
4550
|
USDC: Se,
|
|
4540
4551
|
WBTC: f,
|
|
4541
|
-
USDCe:
|
|
4552
|
+
USDCe: Y,
|
|
4542
4553
|
USDT: Re,
|
|
4543
4554
|
DAI: we
|
|
4544
4555
|
},
|
|
@@ -4558,7 +4569,7 @@ const E = [
|
|
|
4558
4569
|
USDCe: H
|
|
4559
4570
|
},
|
|
4560
4571
|
[n.id]: {
|
|
4561
|
-
WETH:
|
|
4572
|
+
WETH: G,
|
|
4562
4573
|
USDC: Ee
|
|
4563
4574
|
},
|
|
4564
4575
|
[a.id]: {
|
|
@@ -4567,13 +4578,13 @@ const E = [
|
|
|
4567
4578
|
WBTC: $,
|
|
4568
4579
|
USDT: Ce
|
|
4569
4580
|
}
|
|
4570
|
-
},
|
|
4581
|
+
}, ea = "https://hermes.pyth.network", ta = "https://flat.money/flatcoin", aa = "https://v1.flat.money/flatcoin", _ = {
|
|
4571
4582
|
RETH_BASE: "0xdb0cd65dcc7fe07003ce1201f91e1f966fa95768",
|
|
4572
4583
|
WBTC_OPTIMISM: "0x6d857e9d24a7566bb72a3fb0847a3e0e4e1c2879",
|
|
4573
4584
|
WBTC_ARBITRUM: "0xb1353d51991e79fefd4bfdba2a03e9f0232814a6"
|
|
4574
|
-
},
|
|
4585
|
+
}, na = Object.values(
|
|
4575
4586
|
_
|
|
4576
|
-
),
|
|
4587
|
+
), sa = {
|
|
4577
4588
|
[_.RETH_BASE]: {
|
|
4578
4589
|
symbol: D.symbol,
|
|
4579
4590
|
decimals: D.decimals,
|
|
@@ -4589,11 +4600,11 @@ const E = [
|
|
|
4589
4600
|
decimals: c.decimals,
|
|
4590
4601
|
address: c.address
|
|
4591
4602
|
}
|
|
4592
|
-
}, Le = "0xb95fb324b8a2faf8ec4f76e3df46c718402736e2",
|
|
4603
|
+
}, Le = "0xb95fb324b8a2faf8ec4f76e3df46c718402736e2", ia = [
|
|
4593
4604
|
Le,
|
|
4594
4605
|
"0x357cb23571ef7a3d6189b7facfc361ea71f7cab5"
|
|
4595
4606
|
// WBTC_OPTIMISM
|
|
4596
|
-
],
|
|
4607
|
+
], pa = {
|
|
4597
4608
|
[n.id]: 2e3,
|
|
4598
4609
|
// Base network requires a longer delay according to manual testing
|
|
4599
4610
|
[a.id]: 300,
|
|
@@ -4601,7 +4612,7 @@ const E = [
|
|
|
4601
4612
|
[s.id]: 300,
|
|
4602
4613
|
[i.id]: 300,
|
|
4603
4614
|
[y.id]: 300
|
|
4604
|
-
},
|
|
4615
|
+
}, ra = {
|
|
4605
4616
|
DEPOSIT: "deposit",
|
|
4606
4617
|
DEPOSIT_CUSTOM: "depositWithCustomCooldown",
|
|
4607
4618
|
NATIVE: "nativeDeposit",
|
|
@@ -4610,7 +4621,7 @@ const E = [
|
|
|
4610
4621
|
ZAP_NATIVE_DEPOSIT_CUSTOM: "zapNativeDepositWithCustomCooldown",
|
|
4611
4622
|
ZAP_DEPOSIT: "zapDeposit",
|
|
4612
4623
|
ZAP_DEPOSIT_CUSTOM: "zapDepositWithCustomCooldown"
|
|
4613
|
-
},
|
|
4624
|
+
}, da = [
|
|
4614
4625
|
"multi_withdraw",
|
|
4615
4626
|
"swap",
|
|
4616
4627
|
"claim",
|
|
@@ -4631,9 +4642,9 @@ const E = [
|
|
|
4631
4642
|
PUMP_ARBITRUM: "0x4c0bb704529fa49a26bd854802d70206982c6f1b",
|
|
4632
4643
|
GOLD_ARBITRUM: "0xeb28ad1a2e497f4acc5d9b87e7b496623c93061e",
|
|
4633
4644
|
AAVE_ARBITRUM: "0x1cbba6346f110c8a5ea739ef2d1eb182990e4eb2"
|
|
4634
|
-
},
|
|
4645
|
+
}, oa = Object.values(
|
|
4635
4646
|
p
|
|
4636
|
-
),
|
|
4647
|
+
), ya = {
|
|
4637
4648
|
[p.SOL_ARBITRUM]: d,
|
|
4638
4649
|
[p.BTC_ARBITRUM]: c,
|
|
4639
4650
|
[p.WETH_WETH_ARBITRUM]: A,
|
|
@@ -4649,141 +4660,142 @@ const E = [
|
|
|
4649
4660
|
[p.BNB_WBTC_USDC_ARBITRUM]: d,
|
|
4650
4661
|
[p.GOLD_ARBITRUM]: d,
|
|
4651
4662
|
[p.AAVE_ARBITRUM]: d
|
|
4652
|
-
},
|
|
4663
|
+
}, ua = {
|
|
4653
4664
|
"0x9a916e55f5b67226734cd7b465d51bce1d11a89a": d
|
|
4654
4665
|
// USDmny Arbitrum
|
|
4655
4666
|
};
|
|
4656
4667
|
export {
|
|
4657
|
-
|
|
4658
|
-
|
|
4659
|
-
|
|
4660
|
-
|
|
4668
|
+
st as $,
|
|
4669
|
+
lt as A,
|
|
4670
|
+
$t as B,
|
|
4671
|
+
ot as C,
|
|
4661
4672
|
ee as D,
|
|
4662
|
-
|
|
4663
|
-
|
|
4664
|
-
|
|
4665
|
-
|
|
4673
|
+
tt as E,
|
|
4674
|
+
Je as F,
|
|
4675
|
+
et as G,
|
|
4676
|
+
Ye as H,
|
|
4666
4677
|
He as I,
|
|
4667
4678
|
We as J,
|
|
4668
4679
|
Ve as K,
|
|
4669
|
-
|
|
4670
|
-
|
|
4671
|
-
|
|
4672
|
-
|
|
4673
|
-
|
|
4680
|
+
Jt as L,
|
|
4681
|
+
sa as M,
|
|
4682
|
+
na as N,
|
|
4683
|
+
ia as O,
|
|
4684
|
+
ta as P,
|
|
4674
4685
|
Le as Q,
|
|
4675
|
-
|
|
4676
|
-
|
|
4677
|
-
|
|
4678
|
-
|
|
4686
|
+
aa as R,
|
|
4687
|
+
Mt as S,
|
|
4688
|
+
nt as T,
|
|
4689
|
+
oa as U,
|
|
4679
4690
|
p as V,
|
|
4680
|
-
|
|
4681
|
-
|
|
4691
|
+
ya as W,
|
|
4692
|
+
ua as X,
|
|
4682
4693
|
Ae as Y,
|
|
4683
4694
|
De as Z,
|
|
4684
|
-
|
|
4685
|
-
|
|
4686
|
-
|
|
4687
|
-
|
|
4688
|
-
|
|
4695
|
+
bt as _,
|
|
4696
|
+
pa as a,
|
|
4697
|
+
Nt as a$,
|
|
4698
|
+
ut as a0,
|
|
4699
|
+
Zt as a1,
|
|
4689
4700
|
Be as a2,
|
|
4690
|
-
|
|
4691
|
-
|
|
4701
|
+
at as a3,
|
|
4702
|
+
ea as a4,
|
|
4692
4703
|
ke as a5,
|
|
4693
|
-
|
|
4694
|
-
|
|
4695
|
-
|
|
4696
|
-
|
|
4697
|
-
|
|
4698
|
-
|
|
4699
|
-
|
|
4700
|
-
|
|
4701
|
-
|
|
4702
|
-
|
|
4703
|
-
|
|
4704
|
-
|
|
4705
|
-
|
|
4706
|
-
|
|
4707
|
-
|
|
4708
|
-
|
|
4709
|
-
|
|
4710
|
-
|
|
4711
|
-
|
|
4712
|
-
|
|
4713
|
-
|
|
4714
|
-
|
|
4715
|
-
|
|
4716
|
-
|
|
4717
|
-
|
|
4718
|
-
|
|
4719
|
-
|
|
4720
|
-
|
|
4721
|
-
|
|
4722
|
-
|
|
4723
|
-
|
|
4724
|
-
|
|
4725
|
-
|
|
4726
|
-
|
|
4727
|
-
|
|
4728
|
-
|
|
4729
|
-
|
|
4730
|
-
|
|
4731
|
-
|
|
4732
|
-
|
|
4733
|
-
|
|
4734
|
-
|
|
4704
|
+
gt as a6,
|
|
4705
|
+
je as a7,
|
|
4706
|
+
Tt as a8,
|
|
4707
|
+
fe as a9,
|
|
4708
|
+
Y as aA,
|
|
4709
|
+
X as aB,
|
|
4710
|
+
Ie as aC,
|
|
4711
|
+
Wt as aD,
|
|
4712
|
+
we as aE,
|
|
4713
|
+
ge as aF,
|
|
4714
|
+
Bt as aG,
|
|
4715
|
+
Gt as aH,
|
|
4716
|
+
zt as aI,
|
|
4717
|
+
D as aJ,
|
|
4718
|
+
ye as aK,
|
|
4719
|
+
Ht as aL,
|
|
4720
|
+
Vt as aM,
|
|
4721
|
+
Ct as aN,
|
|
4722
|
+
Ft as aO,
|
|
4723
|
+
Yt as aP,
|
|
4724
|
+
Xt as aQ,
|
|
4725
|
+
Ut as aR,
|
|
4726
|
+
d as aS,
|
|
4727
|
+
Ee as aT,
|
|
4728
|
+
ve as aU,
|
|
4729
|
+
Se as aV,
|
|
4730
|
+
Me as aW,
|
|
4731
|
+
Pt as aX,
|
|
4732
|
+
Ce as aY,
|
|
4733
|
+
Re as aZ,
|
|
4734
|
+
Oe as a_,
|
|
4735
|
+
rt as aa,
|
|
4736
|
+
ft as ab,
|
|
4737
|
+
r as ac,
|
|
4738
|
+
_e as ad,
|
|
4739
|
+
vt as ae,
|
|
4740
|
+
Qt as af,
|
|
4741
|
+
jt as ag,
|
|
4742
|
+
be as ah,
|
|
4743
|
+
wt as ai,
|
|
4744
|
+
Rt as aj,
|
|
4745
|
+
I as ak,
|
|
4735
4746
|
It as al,
|
|
4736
|
-
|
|
4737
|
-
|
|
4747
|
+
St as am,
|
|
4748
|
+
e as an,
|
|
4738
4749
|
At as ao,
|
|
4739
|
-
|
|
4740
|
-
|
|
4741
|
-
|
|
4742
|
-
|
|
4743
|
-
|
|
4744
|
-
|
|
4745
|
-
|
|
4746
|
-
|
|
4747
|
-
|
|
4748
|
-
|
|
4749
|
-
|
|
4750
|
+
Dt as ap,
|
|
4751
|
+
re as aq,
|
|
4752
|
+
de as ar,
|
|
4753
|
+
me as as,
|
|
4754
|
+
oe as at,
|
|
4755
|
+
ue as au,
|
|
4756
|
+
_t as av,
|
|
4757
|
+
Et as aw,
|
|
4758
|
+
ce as ax,
|
|
4759
|
+
E as ay,
|
|
4760
|
+
H as az,
|
|
4750
4761
|
J as b,
|
|
4751
|
-
|
|
4752
|
-
|
|
4753
|
-
|
|
4754
|
-
|
|
4755
|
-
|
|
4756
|
-
|
|
4757
|
-
|
|
4758
|
-
|
|
4759
|
-
|
|
4760
|
-
|
|
4761
|
-
|
|
4762
|
-
|
|
4763
|
-
|
|
4764
|
-
|
|
4765
|
-
|
|
4766
|
-
|
|
4767
|
-
|
|
4768
|
-
|
|
4762
|
+
c as b0,
|
|
4763
|
+
$ as b1,
|
|
4764
|
+
f as b2,
|
|
4765
|
+
q as b3,
|
|
4766
|
+
A as b4,
|
|
4767
|
+
G as b5,
|
|
4768
|
+
Z as b6,
|
|
4769
|
+
K as b7,
|
|
4770
|
+
z as b8,
|
|
4771
|
+
he as b9,
|
|
4772
|
+
xt as ba,
|
|
4773
|
+
Lt as bb,
|
|
4774
|
+
kt as bc,
|
|
4775
|
+
Kt as bd,
|
|
4776
|
+
qt as be,
|
|
4777
|
+
yt as c,
|
|
4778
|
+
da as d,
|
|
4779
|
+
ct as e,
|
|
4780
|
+
mt as f,
|
|
4769
4781
|
Ke as g,
|
|
4770
4782
|
te as h,
|
|
4771
4783
|
$e as i,
|
|
4772
|
-
|
|
4773
|
-
|
|
4784
|
+
ht as j,
|
|
4785
|
+
Ge as k,
|
|
4774
4786
|
m as l,
|
|
4775
|
-
|
|
4776
|
-
|
|
4787
|
+
Qe as m,
|
|
4788
|
+
dt as n,
|
|
4777
4789
|
Xe as o,
|
|
4778
4790
|
Fe as p,
|
|
4779
4791
|
l as q,
|
|
4780
|
-
|
|
4792
|
+
it as r,
|
|
4781
4793
|
qe as s,
|
|
4782
|
-
|
|
4794
|
+
Ot as t,
|
|
4783
4795
|
Ze as u,
|
|
4784
4796
|
Ue as v,
|
|
4785
|
-
|
|
4797
|
+
pt as w,
|
|
4786
4798
|
ze as x,
|
|
4787
4799
|
Te as y,
|
|
4788
|
-
|
|
4800
|
+
ra as z
|
|
4789
4801
|
};
|