@dhedge/trading-widget 6.1.1 → 6.2.0-canary.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.
- package/const.cjs +1 -1
- package/const.js +23 -24
- package/core-kit/const/error.d.ts +6 -1
- package/core-kit/utils/error-registry.d.ts +46 -0
- package/core-kit/utils/index.d.ts +1 -0
- package/dytm-D2sVE2th.cjs +1 -0
- package/dytm-DycL7_hQ.js +864 -0
- package/{gmx-c42QlKyJ.js → gmx-Cyz_GmV5.js} +332 -481
- package/gmx-DJ0gqvLq.cjs +1 -0
- package/index.cjs +1 -1
- package/index.js +1479 -1477
- package/package.json +1 -1
- package/utils.cjs +1 -1
- package/utils.js +69 -65
- package/dytm-CQG65-Rc.cjs +0 -1
- package/dytm-CWhBYz0P.js +0 -784
- package/gmx-U3Bnivj2.cjs +0 -1
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { optimism as a, hyperEvm as p, base as n, arbitrum as s, polygon as i, mainnet as t } from "wagmi/chains";
|
|
2
|
-
import { formatDuration as
|
|
3
|
-
import { erc20Abi as
|
|
4
|
-
const
|
|
2
|
+
import { formatDuration as te } from "date-fns";
|
|
3
|
+
import { erc20Abi as ae } from "viem";
|
|
4
|
+
const ne = "0x0000000000000000000000000000000000000000", Fe = BigInt(
|
|
5
5
|
"0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff"
|
|
6
|
-
), l = 18,
|
|
7
|
-
address:
|
|
6
|
+
), l = 18, Ve = "1000000000000000000", He = 59e3, ke = 3e4, Ye = 15e3, Ge = 5e3, se = 400, Ke = se * 1.2, Xe = te({ hours: 24 }), ze = {
|
|
7
|
+
address: ne,
|
|
8
8
|
symbol: "",
|
|
9
9
|
chainId: a.id,
|
|
10
10
|
depositParams: { customTokens: [] },
|
|
11
11
|
withdrawParams: { customTokens: [] },
|
|
12
12
|
deprecated: !1
|
|
13
|
-
},
|
|
13
|
+
}, qe = "deposit", Ze = 0.5, ie = 0, $e = 0.5, je = 0.02, Qe = 0.5, Je = [ie], et = [
|
|
14
14
|
0.05,
|
|
15
15
|
0.1,
|
|
16
16
|
0.3,
|
|
@@ -21,14 +21,14 @@ const se = "0x0000000000000000000000000000000000000000", Ye = BigInt(
|
|
|
21
21
|
2,
|
|
22
22
|
3,
|
|
23
23
|
5
|
|
24
|
-
],
|
|
24
|
+
], tt = "withdrawSafe", at = "initWithdrawal", nt = "unrollAndClaim", st = "completeWithdrawal", it = 2e6, pt = 1.25, rt = 1e4, dt = 13e3, yt = 3, ot = 2e4, ut = 1e4, lt = {
|
|
25
25
|
[t.id]: t,
|
|
26
26
|
[i.id]: i,
|
|
27
27
|
[a.id]: a,
|
|
28
28
|
[s.id]: s,
|
|
29
29
|
[n.id]: n,
|
|
30
30
|
[p.id]: p
|
|
31
|
-
},
|
|
31
|
+
}, mt = {
|
|
32
32
|
[t.id]: {
|
|
33
33
|
nativeTokenSymbol: "ETH",
|
|
34
34
|
wrappedNativeTokenName: "WETH",
|
|
@@ -65,29 +65,29 @@ const se = "0x0000000000000000000000000000000000000000", Ye = BigInt(
|
|
|
65
65
|
address: "0x5555555555555555555555555555555555555555",
|
|
66
66
|
decimals: l
|
|
67
67
|
}
|
|
68
|
-
}, m = 299e5,
|
|
68
|
+
}, m = 299e5, Tt = {
|
|
69
69
|
[t.id]: m,
|
|
70
70
|
[i.id]: m,
|
|
71
71
|
[a.id]: m,
|
|
72
72
|
[s.id]: m,
|
|
73
73
|
[n.id]: m,
|
|
74
74
|
[p.id]: m
|
|
75
|
-
},
|
|
75
|
+
}, ct = {
|
|
76
76
|
[t.id]: "https://eth-mainnet.g.alchemy.com/v2",
|
|
77
77
|
[a.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
|
[p.id]: "https://hyperliquid-mainnet.g.alchemy.com/v2"
|
|
82
|
-
},
|
|
82
|
+
}, bt = {
|
|
83
83
|
USD: "$",
|
|
84
84
|
ETH: "Ξ",
|
|
85
85
|
BTC: "₿"
|
|
86
|
-
},
|
|
86
|
+
}, _t = {
|
|
87
87
|
USD: 2,
|
|
88
88
|
ETH: 4,
|
|
89
89
|
BTC: 6
|
|
90
|
-
},
|
|
90
|
+
}, ft = ["USDC", "USDT"], d = {
|
|
91
91
|
INVEST_INPUT_FOCUS: "invest_input_focus",
|
|
92
92
|
APPROVED_TOKEN: "approved_token",
|
|
93
93
|
DEPOSIT: "deposit",
|
|
@@ -106,7 +106,7 @@ const se = "0x0000000000000000000000000000000000000000", Ye = BigInt(
|
|
|
106
106
|
LIMIT_ORDER_WITHDRAW: "limit_order_withdraw",
|
|
107
107
|
LIMIT_ORDER_WITHDRAW_DELETE: "limit_order_withdraw_delete",
|
|
108
108
|
UPDATE_ONDO_PRICES: "update_ondo_prices"
|
|
109
|
-
},
|
|
109
|
+
}, At = {
|
|
110
110
|
approve: [d.APPROVED_TOKEN],
|
|
111
111
|
deposit: [d.DEPOSIT],
|
|
112
112
|
multi_withdraw: [
|
|
@@ -130,24 +130,24 @@ const se = "0x0000000000000000000000000000000000000000", Ye = BigInt(
|
|
|
130
130
|
d.LIMIT_ORDER_WITHDRAW_DELETE
|
|
131
131
|
],
|
|
132
132
|
update_ondo_prices: [d.UPDATE_ONDO_PRICES]
|
|
133
|
-
},
|
|
133
|
+
}, Et = {
|
|
134
134
|
IS_INFINITE: { NAME: "is_infinite", TYPE: "number" },
|
|
135
135
|
SYMBOL: { NAME: "symbol", TYPE: "string" },
|
|
136
136
|
CHAIN_ID: { NAME: "chain_id", TYPE: "number" },
|
|
137
137
|
ADDRESS: { NAME: "address", TYPE: "string" },
|
|
138
138
|
SOURCE: { NAME: "source", TYPE: "string" }
|
|
139
139
|
};
|
|
140
|
-
var
|
|
141
|
-
const
|
|
142
|
-
s.id + "", `${
|
|
143
|
-
const
|
|
140
|
+
var o = /* @__PURE__ */ ((u) => (u.ETH = "ETH", u.MAINNET = "MAINNET", u.POLYGON = "POLYGON", u.OE = "OPTIMISM", u.ARBI = "ARBITRUM", u.BASE = "BASE", u.HYPEREVM = "HYPEREVM", u))(o || {});
|
|
141
|
+
const c = process.env.NEXT_PUBLIC_INFURA_API_KEY;
|
|
142
|
+
s.id + "", `${c}`, a.id + "", `${c}`, i.id + "", `${c}`, n.id + "", `${c}`, t.id + "", `${c}`, p.id + "";
|
|
143
|
+
const Dt = {
|
|
144
144
|
[s.id]: {
|
|
145
145
|
...s,
|
|
146
146
|
name: "Arbitrum",
|
|
147
147
|
iconPath: "/icons/arbitrum-network.svg",
|
|
148
148
|
chainId: s.id,
|
|
149
149
|
shortName: "ARB",
|
|
150
|
-
blockchainCode:
|
|
150
|
+
blockchainCode: o.ARBI
|
|
151
151
|
},
|
|
152
152
|
[a.id]: {
|
|
153
153
|
...a,
|
|
@@ -155,70 +155,70 @@ const Mt = {
|
|
|
155
155
|
iconPath: "/icons/optimism-network.svg",
|
|
156
156
|
chainId: a.id,
|
|
157
157
|
shortName: "OP",
|
|
158
|
-
blockchainCode:
|
|
158
|
+
blockchainCode: o.OE
|
|
159
159
|
},
|
|
160
160
|
[i.id]: {
|
|
161
161
|
...i,
|
|
162
162
|
chainId: i.id,
|
|
163
163
|
iconPath: "/icons/polygon-network.svg",
|
|
164
164
|
shortName: "POLY",
|
|
165
|
-
blockchainCode:
|
|
165
|
+
blockchainCode: o.POLYGON
|
|
166
166
|
},
|
|
167
167
|
[n.id]: {
|
|
168
168
|
...n,
|
|
169
169
|
chainId: n.id,
|
|
170
170
|
iconPath: "/icons/base-network.svg",
|
|
171
171
|
shortName: "BASE",
|
|
172
|
-
blockchainCode:
|
|
172
|
+
blockchainCode: o.BASE
|
|
173
173
|
},
|
|
174
174
|
[t.id]: {
|
|
175
175
|
...t,
|
|
176
176
|
chainId: t.id,
|
|
177
177
|
iconPath: "/icons/ethereum-network.svg",
|
|
178
178
|
shortName: "ETHEREUM",
|
|
179
|
-
blockchainCode:
|
|
179
|
+
blockchainCode: o.MAINNET
|
|
180
180
|
},
|
|
181
181
|
[p.id]: {
|
|
182
182
|
...p,
|
|
183
183
|
chainId: p.id,
|
|
184
184
|
shortName: "HyperEVM",
|
|
185
185
|
iconPath: "/icons/hyperevm-network.svg",
|
|
186
|
-
blockchainCode:
|
|
186
|
+
blockchainCode: o.HYPEREVM
|
|
187
187
|
}
|
|
188
188
|
};
|
|
189
|
-
|
|
189
|
+
o.ETH + "", t.id, o.MAINNET + "", t.id, o.POLYGON + "", i.id, o.OE + "", a.id, o.ARBI + "", s.id, o.BASE + "", n.id, o.HYPEREVM + "", p.id;
|
|
190
190
|
t.id + "", a.id + "", i.id + "", s.id + "", n.id + "", p.id + "";
|
|
191
|
-
const
|
|
191
|
+
const D = "0x0000000000000000000000000000000000000000";
|
|
192
192
|
BigInt("0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff");
|
|
193
193
|
t.id + "", BigInt(100), a.id + "", BigInt(600), i.id + "", BigInt(600), n.id + "", BigInt(600), s.id + "", BigInt(5300), p.id + "", BigInt(6e3);
|
|
194
|
-
const e = 18,
|
|
194
|
+
const e = 18, It = 4, I = {
|
|
195
195
|
address: "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2",
|
|
196
196
|
symbol: "WETH",
|
|
197
197
|
decimals: e,
|
|
198
198
|
value: ""
|
|
199
|
-
},
|
|
199
|
+
}, S = {
|
|
200
200
|
address: "0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48",
|
|
201
201
|
symbol: "USDC",
|
|
202
202
|
decimals: 6,
|
|
203
203
|
value: ""
|
|
204
|
-
},
|
|
204
|
+
}, R = {
|
|
205
205
|
address: "0x2260fac5e5542a773aa44fbcfedf7c193bc2c599",
|
|
206
206
|
symbol: "WBTC",
|
|
207
207
|
decimals: 8,
|
|
208
208
|
value: ""
|
|
209
|
-
},
|
|
209
|
+
}, pe = {
|
|
210
210
|
address: "0xdac17f958d2ee523a2206206994597c13d831ec7",
|
|
211
211
|
symbol: "USDT",
|
|
212
212
|
decimals: 6,
|
|
213
213
|
value: ""
|
|
214
|
-
},
|
|
214
|
+
}, St = {
|
|
215
215
|
address: "0x68749665ff8d2d112fa859aa293f07a622782f38",
|
|
216
216
|
symbol: "XAUt",
|
|
217
217
|
decimals: 6,
|
|
218
218
|
value: ""
|
|
219
|
-
},
|
|
220
|
-
ye << 160n | BigInt(
|
|
221
|
-
const
|
|
219
|
+
}, M = "0x96D33bCF84DdE326014248E2896F79bbb9c13D6d", w = "0xbDd84294bC8299861A2121F749A25EFEb7168a32", O = "0x87870Bca3F3fD6335C3F4ce8392D69350B4fA4E2", C = "0x95B19De479bc693721cab39Da98FfECE062f5Ea4", re = "0xD6049430DDFa9bCd1F33064BF697313A1a93ace9", de = "0x0ff1ceB93DbADfB13722058D60c4B8cD122b06ea", ye = 1n;
|
|
220
|
+
ye << 160n | BigInt(S.address);
|
|
221
|
+
const Rt = "0xde41399145F23936b03dD1474eC16c1519c0DC2a", P = "0xffFb5fB14606EB3a548C113026355020dDF27535", v = "0x794a61358D6845594F94dc1DB02A252b5b4814aD", g = "0xA5679C4272A056Bb83f039961fae7D99C48529F5", L = "0x26a687e8244f1866E9Aa2D400c8b9957Aa8e6Ad4", N = "0x49Afe3abCf66CF09Fab86cb1139D8811C8afe56F", x = "0xf067575Eb60c7587C11e867907AA7284833704d1", oe = "0x59525b9b23adc475ef91d98dae06b568ba574ce5", Mt = "0xa907504d7a4c415b4e6e1d0866d96afe8202f0e5", wt = "0x1849324228d852a67eb7443e42d967e480ffe95d", B = "0xa238dd80c259a72e81d7e4664a9801593f98d1c5", U = "0xFcBEc28c43E356693971a24bf3F2Fd7D965E2ebA", ue = "0x07e144e336fcc3fe928a8a2a5714da64354c1aab", h = "0x5e61a079A178f0E5784107a4963baAe0c5a680c6", W = "0x794a61358D6845594F94dc1DB02A252b5b4814aD", F = "0x2Ed1bd7f66e47113672f3870308b5E867C5bb743", V = "0x3bFE2a472d2964Ea4070725b7Fb0A868b3f08b63", H = "0xfdc7b8bFe0DD3513Cc669bB8d601Cb83e2F69cB0", le = "0x8dFf5E27EA6b7AC08EbFdf9eB090F32ee9a30fcf", k = "0x794a61358D6845594F94dc1DB02A252b5b4814aD", Y = "0x45b90480D6F643dE2f128db091A357C3c90399f2", G = "0xB71410736d2C8F2DAf30dA9D332dA10534d2624d", K = "0x615037C2Df6FA97634c5aD2d8144708b9dd3B176", X = "0x47065E508433E22d73Be3c5B61EB9abafD450364", z = "0x6b696eA2602068a7043C92961B5F202a65A3eF9C", Ot = "0x4F754e0F0924afD74980886b0B479Fa1D7C58D0D";
|
|
222
222
|
t.id + "", s.id + "", n.id + "", a.id + "", i.id + "", p.id + "";
|
|
223
223
|
t.id + "", s.id + "", n.id + "", a.id + "", i.id + "", p.id + "";
|
|
224
224
|
t.id + "", s.id + "", n.id + "", a.id + "", i.id + "", p.id + "";
|
|
@@ -1014,7 +1014,7 @@ const E = [
|
|
|
1014
1014
|
stateMutability: "nonpayable",
|
|
1015
1015
|
type: "function"
|
|
1016
1016
|
}
|
|
1017
|
-
],
|
|
1017
|
+
], me = [
|
|
1018
1018
|
{
|
|
1019
1019
|
inputs: [
|
|
1020
1020
|
{
|
|
@@ -1471,7 +1471,7 @@ const E = [
|
|
|
1471
1471
|
stateMutability: "nonpayable",
|
|
1472
1472
|
type: "function"
|
|
1473
1473
|
}
|
|
1474
|
-
],
|
|
1474
|
+
], Ct = [
|
|
1475
1475
|
{
|
|
1476
1476
|
type: "tuple[]",
|
|
1477
1477
|
components: [
|
|
@@ -1499,7 +1499,7 @@ const E = [
|
|
|
1499
1499
|
}
|
|
1500
1500
|
]
|
|
1501
1501
|
}
|
|
1502
|
-
],
|
|
1502
|
+
], Pt = [
|
|
1503
1503
|
{
|
|
1504
1504
|
type: "tuple",
|
|
1505
1505
|
components: [
|
|
@@ -1527,7 +1527,7 @@ const E = [
|
|
|
1527
1527
|
}
|
|
1528
1528
|
]
|
|
1529
1529
|
}
|
|
1530
|
-
],
|
|
1530
|
+
], ce = [
|
|
1531
1531
|
{
|
|
1532
1532
|
inputs: [],
|
|
1533
1533
|
name: "getFundComposition",
|
|
@@ -1692,7 +1692,7 @@ const E = [
|
|
|
1692
1692
|
stateMutability: "view",
|
|
1693
1693
|
type: "function"
|
|
1694
1694
|
}
|
|
1695
|
-
],
|
|
1695
|
+
], be = [
|
|
1696
1696
|
{
|
|
1697
1697
|
anonymous: !1,
|
|
1698
1698
|
inputs: [
|
|
@@ -1849,7 +1849,7 @@ const E = [
|
|
|
1849
1849
|
stateMutability: "view",
|
|
1850
1850
|
type: "function"
|
|
1851
1851
|
}
|
|
1852
|
-
],
|
|
1852
|
+
], _e = [
|
|
1853
1853
|
{
|
|
1854
1854
|
inputs: [
|
|
1855
1855
|
{
|
|
@@ -1926,7 +1926,7 @@ const E = [
|
|
|
1926
1926
|
stateMutability: "view",
|
|
1927
1927
|
type: "function"
|
|
1928
1928
|
}
|
|
1929
|
-
],
|
|
1929
|
+
], fe = [
|
|
1930
1930
|
{
|
|
1931
1931
|
inputs: [],
|
|
1932
1932
|
name: "EmptyPayload",
|
|
@@ -2083,8 +2083,8 @@ const E = [
|
|
|
2083
2083
|
name: "UnsupportedTokenTransferMethod",
|
|
2084
2084
|
type: "error"
|
|
2085
2085
|
}
|
|
2086
|
-
],
|
|
2087
|
-
...
|
|
2086
|
+
], Ae = [
|
|
2087
|
+
...fe,
|
|
2088
2088
|
{
|
|
2089
2089
|
anonymous: !1,
|
|
2090
2090
|
inputs: [
|
|
@@ -4156,7 +4156,7 @@ const E = [
|
|
|
4156
4156
|
stateMutability: "nonpayable",
|
|
4157
4157
|
type: "function"
|
|
4158
4158
|
}
|
|
4159
|
-
],
|
|
4159
|
+
], De = [
|
|
4160
4160
|
{
|
|
4161
4161
|
inputs: [{ internalType: "address", name: "_gmToken", type: "address" }],
|
|
4162
4162
|
name: "getPrice",
|
|
@@ -4196,230 +4196,82 @@ const E = [
|
|
|
4196
4196
|
stateMutability: "nonpayable",
|
|
4197
4197
|
type: "function"
|
|
4198
4198
|
}
|
|
4199
|
-
],
|
|
4199
|
+
], vt = {
|
|
4200
4200
|
[t.id]: {
|
|
4201
|
-
factory:
|
|
4202
|
-
easySwapperV2:
|
|
4203
|
-
aaveLendingPoolV3:
|
|
4204
|
-
limitOrder:
|
|
4205
|
-
ondoPriceOracle:
|
|
4201
|
+
factory: M,
|
|
4202
|
+
easySwapperV2: w,
|
|
4203
|
+
aaveLendingPoolV3: O,
|
|
4204
|
+
limitOrder: C,
|
|
4205
|
+
ondoPriceOracle: re
|
|
4206
4206
|
},
|
|
4207
4207
|
[i.id]: {
|
|
4208
4208
|
factory: H,
|
|
4209
|
-
aaveLendingPoolV2:
|
|
4210
|
-
aaveLendingPoolV3:
|
|
4211
|
-
easySwapperV2:
|
|
4212
|
-
limitOrder:
|
|
4209
|
+
aaveLendingPoolV2: le,
|
|
4210
|
+
aaveLendingPoolV3: k,
|
|
4211
|
+
easySwapperV2: Y,
|
|
4212
|
+
limitOrder: G
|
|
4213
4213
|
},
|
|
4214
4214
|
[a.id]: {
|
|
4215
|
-
factory:
|
|
4216
|
-
rewardDistribution:
|
|
4217
|
-
aaveLendingPoolV3:
|
|
4218
|
-
easySwapperV2:
|
|
4215
|
+
factory: h,
|
|
4216
|
+
rewardDistribution: ue,
|
|
4217
|
+
aaveLendingPoolV3: W,
|
|
4218
|
+
easySwapperV2: F,
|
|
4219
4219
|
limitOrder: V
|
|
4220
4220
|
},
|
|
4221
4221
|
[s.id]: {
|
|
4222
|
-
factory:
|
|
4223
|
-
aaveLendingPoolV3:
|
|
4224
|
-
easySwapperV2:
|
|
4222
|
+
factory: P,
|
|
4223
|
+
aaveLendingPoolV3: v,
|
|
4224
|
+
easySwapperV2: g,
|
|
4225
4225
|
limitOrder: L
|
|
4226
4226
|
},
|
|
4227
4227
|
[n.id]: {
|
|
4228
4228
|
factory: N,
|
|
4229
|
-
flatcoinPointsModule:
|
|
4229
|
+
flatcoinPointsModule: oe,
|
|
4230
4230
|
easySwapperV2: x,
|
|
4231
4231
|
aaveLendingPoolV3: B,
|
|
4232
4232
|
limitOrder: U
|
|
4233
4233
|
},
|
|
4234
4234
|
[p.id]: {
|
|
4235
|
-
factory:
|
|
4236
|
-
easySwapperV2:
|
|
4237
|
-
limitOrder:
|
|
4235
|
+
factory: K,
|
|
4236
|
+
easySwapperV2: X,
|
|
4237
|
+
limitOrder: z
|
|
4238
4238
|
}
|
|
4239
|
-
},
|
|
4240
|
-
factory:
|
|
4239
|
+
}, gt = {
|
|
4240
|
+
factory: me,
|
|
4241
4241
|
aaveLendingPoolV2: E,
|
|
4242
4242
|
aaveLendingPoolV3: E,
|
|
4243
|
-
rewardDistribution:
|
|
4244
|
-
poolManagerLogic:
|
|
4245
|
-
erc20:
|
|
4243
|
+
rewardDistribution: be,
|
|
4244
|
+
poolManagerLogic: ce,
|
|
4245
|
+
erc20: ae,
|
|
4246
4246
|
poolLogic: Te,
|
|
4247
|
-
flatcoinPointsModule:
|
|
4248
|
-
easySwapperV2:
|
|
4247
|
+
flatcoinPointsModule: _e,
|
|
4248
|
+
easySwapperV2: Ae,
|
|
4249
4249
|
limitOrder: Ee,
|
|
4250
|
-
ondoPriceOracle:
|
|
4251
|
-
},
|
|
4252
|
-
|
|
4253
|
-
hint: "Please increase slippage tolerance and try again."
|
|
4254
|
-
}, we = {
|
|
4255
|
-
"invalid liquidityMinted": c,
|
|
4256
|
-
"high slippage": c,
|
|
4257
|
-
"high withdraw slippage": c,
|
|
4258
|
-
"high deposit slippage": c,
|
|
4259
|
-
"high swap slippage": c,
|
|
4260
|
-
InsufficientAmountReceived: c,
|
|
4261
|
-
[Me]: {
|
|
4250
|
+
ondoPriceOracle: De
|
|
4251
|
+
}, Lt = "Gas estimate error occurred", Nt = "See console logs to report error details.", xt = "Missing simulation params", Bt = "Simulation timeout", Ie = "swap_data_deposit_error", Se = "swap_data_withdraw_error", Ut = "SwapFailed", ht = {
|
|
4252
|
+
[Ie]: {
|
|
4262
4253
|
title: "Oh no we couldn’t swap the assets",
|
|
4263
4254
|
hint: "Don’t worry your assets are still in your wallet."
|
|
4264
4255
|
},
|
|
4265
|
-
"assetType not handled": {
|
|
4266
|
-
title: "Single Asset Withdrawal not available",
|
|
4267
|
-
hint: "Please use All Assets option."
|
|
4268
|
-
},
|
|
4269
4256
|
[Se]: {
|
|
4270
4257
|
title: "Oh no we couldn’t swap the assets",
|
|
4271
4258
|
hint: "Don’t worry your assets are still in your wallet."
|
|
4272
|
-
},
|
|
4273
|
-
[Re]: {
|
|
4274
|
-
title: "Oh no we couldn’t swap the assets",
|
|
4275
|
-
hint: "Don’t worry your assets are still in your wallet."
|
|
4276
|
-
},
|
|
4277
|
-
dh1: {
|
|
4278
|
-
title: "Factory contract is paused",
|
|
4279
|
-
hint: "Try again later or contact the team on Discord if the issue persists."
|
|
4280
|
-
},
|
|
4281
|
-
dh2: {
|
|
4282
|
-
title: "Vault is paused",
|
|
4283
|
-
hint: "Try again later or contact the team on Discord if the issue persists."
|
|
4284
|
-
},
|
|
4285
|
-
dh3: {
|
|
4286
|
-
title: "Vault tokens are in cooldown period",
|
|
4287
|
-
hint: "Wait for the cooldown period to expire and try again."
|
|
4288
|
-
},
|
|
4289
|
-
dh4: {
|
|
4290
|
-
title: "Only vault manager allowed",
|
|
4291
|
-
hint: "Only the vault manager can perform this action."
|
|
4292
|
-
},
|
|
4293
|
-
dh5: {
|
|
4294
|
-
title: "Only allowed addresses can use custom cooldown",
|
|
4295
|
-
hint: "Only whitelisted addresses can perform this action."
|
|
4296
|
-
},
|
|
4297
|
-
dh6: {
|
|
4298
|
-
title: "Invalid cooldown duration",
|
|
4299
|
-
hint: "Cooldown must be between 5 minutes and the maximum exit cooldown."
|
|
4300
|
-
},
|
|
4301
|
-
dh7: {
|
|
4302
|
-
title: "Only whitelisted vault members allowed",
|
|
4303
|
-
hint: "Only the manager or whitelisted members can deposit to this private vault."
|
|
4304
|
-
},
|
|
4305
|
-
dh8: {
|
|
4306
|
-
title: "Asset not supported for deposits",
|
|
4307
|
-
hint: "Use a supported deposit asset."
|
|
4308
|
-
},
|
|
4309
|
-
dh9: {
|
|
4310
|
-
title: "ERC721 tokens not supported as deposit asset",
|
|
4311
|
-
hint: "Use an ERC20 token for deposits."
|
|
4312
|
-
},
|
|
4313
|
-
dh10: {
|
|
4314
|
-
title: "Amount below minimum threshold",
|
|
4315
|
-
hint: "Change amount to meet the minimum threshold."
|
|
4316
|
-
},
|
|
4317
|
-
dh11: {
|
|
4318
|
-
title: "Withdrawal too soon after deposit",
|
|
4319
|
-
hint: "Wait at least one block after deposit before withdrawing."
|
|
4320
|
-
},
|
|
4321
|
-
dh12: {
|
|
4322
|
-
title: "Insufficient balance for withdrawal",
|
|
4323
|
-
hint: "Check if you have enough vault tokens for withdrawal."
|
|
4324
|
-
},
|
|
4325
|
-
dh13: {
|
|
4326
|
-
title: "Liquidity allocation invariant breach",
|
|
4327
|
-
hint: "Contact the team on Discord."
|
|
4328
|
-
},
|
|
4329
|
-
dh14: {
|
|
4330
|
-
title: "Exit fee transfer failed",
|
|
4331
|
-
hint: "Contact the team on Discord."
|
|
4332
|
-
},
|
|
4333
|
-
dh15: {
|
|
4334
|
-
title: "Withdraw asset can not be zero",
|
|
4335
|
-
hint: "Contact the team on Discord."
|
|
4336
|
-
},
|
|
4337
|
-
dh16: {
|
|
4338
|
-
title: "Value calculation mismatch during withdrawal",
|
|
4339
|
-
hint: "Try again later or contact the team on Discord if the issue persists."
|
|
4340
|
-
},
|
|
4341
|
-
dh17: {
|
|
4342
|
-
title: "Supply calculation mismatch during withdrawal",
|
|
4343
|
-
hint: "Try again later or contact the team on Discord if the issue persists."
|
|
4344
|
-
},
|
|
4345
|
-
dh18: {
|
|
4346
|
-
title: "Address can not be zero",
|
|
4347
|
-
hint: "Contact the team on Discord."
|
|
4348
|
-
},
|
|
4349
|
-
dh19: {
|
|
4350
|
-
title: "Asset mismatch in complex asset data",
|
|
4351
|
-
hint: "Contact the team on Discord."
|
|
4352
|
-
},
|
|
4353
|
-
dh20: {
|
|
4354
|
-
title: "Trading is paused for this vault",
|
|
4355
|
-
hint: "Try again later or contact the team on Discord if the issue persists."
|
|
4356
|
-
},
|
|
4357
|
-
dh21: {
|
|
4358
|
-
title: "ERC721 transfer not verified",
|
|
4359
|
-
hint: "If you believe this is a bug, contact the team on Discord."
|
|
4360
|
-
},
|
|
4361
|
-
dh22: {
|
|
4362
|
-
title: "Asset not enabled in vault",
|
|
4363
|
-
hint: "Add the asset to the vault's supported assets."
|
|
4364
|
-
},
|
|
4365
|
-
dh23: {
|
|
4366
|
-
title: "Invalid transaction",
|
|
4367
|
-
hint: "dHEDGE protocol either does not support this action or this is a bug."
|
|
4368
|
-
},
|
|
4369
|
-
dh24: {
|
|
4370
|
-
title: "Unauthorized transaction executor",
|
|
4371
|
-
hint: "Only manager, trader, or public transactions are allowed."
|
|
4372
|
-
},
|
|
4373
|
-
dh25: {
|
|
4374
|
-
title: "Deposit value below minimum USD requirement",
|
|
4375
|
-
hint: "Increase deposit amount to meet the minimum USD value requirement."
|
|
4376
|
-
},
|
|
4377
|
-
dh26: {
|
|
4378
|
-
title: "Withdrawal slippage tolerance exceeded",
|
|
4379
|
-
hint: "Increase slippage tolerance or try again with better market conditions."
|
|
4380
|
-
},
|
|
4381
|
-
dh27: {
|
|
4382
|
-
title: "High withdrawal slippage protection triggered",
|
|
4383
|
-
hint: "Try again with better market conditions or contact the team on Discord if the issue persists."
|
|
4384
|
-
},
|
|
4385
|
-
dh28: {
|
|
4386
|
-
title: "Unauthorized sender",
|
|
4387
|
-
hint: "Only factory or owner can peform this action."
|
|
4388
|
-
},
|
|
4389
|
-
dh29: {
|
|
4390
|
-
title: "Invalid flash loan initiator",
|
|
4391
|
-
hint: "If you believe this is a bug, contact the team on Discord."
|
|
4392
|
-
},
|
|
4393
|
-
dh30: {
|
|
4394
|
-
title: "Invalid flash loan sender",
|
|
4395
|
-
hint: "If you believe this is a bug, contact the team on Discord."
|
|
4396
|
-
},
|
|
4397
|
-
dh31: {
|
|
4398
|
-
title: "Only PoolManagerLogic contract allowed",
|
|
4399
|
-
hint: "If you believe this is a bug, contact the team on Discord."
|
|
4400
|
-
},
|
|
4401
|
-
dh32: {
|
|
4402
|
-
title: "Maximum supply cap reached",
|
|
4403
|
-
hint: "Cannot mint such amount of vault tokens as it would exceed the maximum supply cap."
|
|
4404
4259
|
}
|
|
4405
|
-
},
|
|
4260
|
+
}, Re = "Invalid limit order prices", Wt = {
|
|
4406
4261
|
InvalidPrices: {
|
|
4407
|
-
title:
|
|
4262
|
+
title: Re
|
|
4408
4263
|
}
|
|
4409
|
-
},
|
|
4410
|
-
...Object.keys(we),
|
|
4411
|
-
...Object.keys(he)
|
|
4412
|
-
], Z = {
|
|
4264
|
+
}, q = {
|
|
4413
4265
|
address: "0xff970a61a04b1ca14834a43f5de4533ebddb5cc8",
|
|
4414
4266
|
symbol: "USDCe",
|
|
4415
4267
|
decimals: 6,
|
|
4416
4268
|
value: ""
|
|
4417
|
-
},
|
|
4269
|
+
}, y = {
|
|
4418
4270
|
address: "0xaf88d065e77c8cC2239327C5EDb3A432268e5831",
|
|
4419
4271
|
symbol: "USDC",
|
|
4420
4272
|
decimals: 6,
|
|
4421
4273
|
value: ""
|
|
4422
|
-
},
|
|
4274
|
+
}, f = {
|
|
4423
4275
|
address: "0x82af49447d8a07e3bd95bd0d56f35241523fbab1",
|
|
4424
4276
|
symbol: "WETH",
|
|
4425
4277
|
decimals: e,
|
|
@@ -4429,47 +4281,47 @@ const E = [
|
|
|
4429
4281
|
symbol: "WBTC",
|
|
4430
4282
|
decimals: 8,
|
|
4431
4283
|
value: ""
|
|
4432
|
-
},
|
|
4284
|
+
}, Ft = {
|
|
4433
4285
|
address: "0x6c84a8f1c29108F47a79964b5Fe888D4f4D0dE40",
|
|
4434
4286
|
symbol: "tBTC",
|
|
4435
4287
|
decimals: e,
|
|
4436
4288
|
value: ""
|
|
4437
|
-
},
|
|
4289
|
+
}, Vt = {
|
|
4438
4290
|
address: "0x5979D7b546E38E414F7E9822514be443A4800529",
|
|
4439
4291
|
symbol: "wstETH",
|
|
4440
4292
|
decimals: e,
|
|
4441
4293
|
value: ""
|
|
4442
|
-
},
|
|
4294
|
+
}, Ht = {
|
|
4443
4295
|
address: "0xfd086bc7cd5c481dcc9c85ebe478a1c0b69fcbb9",
|
|
4444
4296
|
symbol: "USDT",
|
|
4445
4297
|
decimals: 6,
|
|
4446
4298
|
value: ""
|
|
4447
|
-
},
|
|
4299
|
+
}, kt = {
|
|
4448
4300
|
address: "0x2bcC6D6CdBbDC0a4071e48bb3B969b06B3330c07",
|
|
4449
4301
|
symbol: "SOL",
|
|
4450
4302
|
decimals: 9,
|
|
4451
4303
|
value: ""
|
|
4452
|
-
},
|
|
4304
|
+
}, Yt = {
|
|
4453
4305
|
address: "0xa9004a5421372e1d83fb1f85b0fc986c912f91f3",
|
|
4454
4306
|
symbol: "WBNB",
|
|
4455
4307
|
decimals: e,
|
|
4456
4308
|
value: ""
|
|
4457
|
-
},
|
|
4309
|
+
}, Gt = {
|
|
4458
4310
|
address: "0xf97f4df75117a78c1a5a0dbb814af92458539fb4",
|
|
4459
4311
|
symbol: "LINK",
|
|
4460
4312
|
decimals: e,
|
|
4461
4313
|
value: ""
|
|
4462
|
-
},
|
|
4314
|
+
}, Me = {
|
|
4463
4315
|
address: "0x833589fcd6edb6e08f4c7c32d4f71b54bda02913",
|
|
4464
4316
|
symbol: "USDC",
|
|
4465
4317
|
decimals: 6,
|
|
4466
4318
|
value: ""
|
|
4467
|
-
},
|
|
4319
|
+
}, Kt = {
|
|
4468
4320
|
address: "0xd9aaec86b65d86f6a7b5b1b0c42ffa531710b6ca",
|
|
4469
4321
|
symbol: "USDbC",
|
|
4470
4322
|
decimals: 6,
|
|
4471
4323
|
value: ""
|
|
4472
|
-
},
|
|
4324
|
+
}, Z = {
|
|
4473
4325
|
address: "0x4200000000000000000000000000000000000006",
|
|
4474
4326
|
symbol: "WETH",
|
|
4475
4327
|
decimals: e,
|
|
@@ -4479,222 +4331,222 @@ const E = [
|
|
|
4479
4331
|
symbol: "cbETH",
|
|
4480
4332
|
decimals: e,
|
|
4481
4333
|
value: ""
|
|
4482
|
-
},
|
|
4334
|
+
}, we = {
|
|
4483
4335
|
address: "0xcbb7c0000ab88b473b1f5afd9ef808440eed33bf",
|
|
4484
4336
|
symbol: "cbBTC",
|
|
4485
4337
|
decimals: 8,
|
|
4486
4338
|
value: ""
|
|
4487
|
-
},
|
|
4339
|
+
}, A = {
|
|
4488
4340
|
address: "0xb6fe221fe9eef5aba221c348ba20a1bf5e73624c",
|
|
4489
4341
|
symbol: "rETH",
|
|
4490
4342
|
decimals: e,
|
|
4491
4343
|
value: ""
|
|
4492
|
-
},
|
|
4344
|
+
}, zt = {
|
|
4493
4345
|
address: "0x236aa50979D5f3De3Bd1Eeb40E81137F22ab794b",
|
|
4494
4346
|
symbol: "tBTC",
|
|
4495
4347
|
decimals: e,
|
|
4496
4348
|
value: ""
|
|
4497
|
-
},
|
|
4349
|
+
}, qt = {
|
|
4498
4350
|
address: "0xc1cba3fcea344f92d9239c08c0568f6f2f0ee452",
|
|
4499
4351
|
symbol: "wstETH",
|
|
4500
4352
|
decimals: e,
|
|
4501
4353
|
value: ""
|
|
4502
|
-
},
|
|
4354
|
+
}, $ = {
|
|
4503
4355
|
address: "0x7F5c764cBc14f9669B88837ca1490cCa17c31607",
|
|
4504
4356
|
symbol: "USDCe",
|
|
4505
4357
|
decimals: 6,
|
|
4506
4358
|
value: ""
|
|
4507
|
-
},
|
|
4359
|
+
}, Oe = {
|
|
4508
4360
|
address: "0x0b2C639c533813f4Aa9D7837CAf62653d097Ff85",
|
|
4509
4361
|
symbol: "USDC",
|
|
4510
4362
|
decimals: 6,
|
|
4511
4363
|
value: ""
|
|
4512
|
-
},
|
|
4364
|
+
}, Ce = {
|
|
4513
4365
|
address: "0x94b008aa00579c1307b0ef2c499ad98a8ce58e58",
|
|
4514
4366
|
symbol: "USDT",
|
|
4515
4367
|
decimals: 6,
|
|
4516
4368
|
value: ""
|
|
4517
|
-
},
|
|
4369
|
+
}, j = {
|
|
4518
4370
|
address: "0x4200000000000000000000000000000000000006",
|
|
4519
4371
|
symbol: "WETH",
|
|
4520
4372
|
decimals: e,
|
|
4521
4373
|
value: ""
|
|
4522
|
-
},
|
|
4374
|
+
}, Zt = {
|
|
4523
4375
|
address: "0x8c6f28f2F1A3C87F0f938b96d27520d9751ec8d9",
|
|
4524
4376
|
symbol: "sUSD",
|
|
4525
4377
|
decimals: e,
|
|
4526
4378
|
value: ""
|
|
4527
|
-
},
|
|
4379
|
+
}, Pe = {
|
|
4528
4380
|
address: "0xda10009cbd5d07dd0cecc66161fc93d7c9000da1",
|
|
4529
4381
|
symbol: "DAI",
|
|
4530
4382
|
decimals: e,
|
|
4531
4383
|
value: ""
|
|
4532
|
-
},
|
|
4384
|
+
}, b = {
|
|
4533
4385
|
address: "0x68f180fcce6836688e9084f035309e29bf0a2095",
|
|
4534
4386
|
symbol: "WBTC",
|
|
4535
4387
|
decimals: 8,
|
|
4536
4388
|
value: ""
|
|
4537
|
-
},
|
|
4389
|
+
}, $t = {
|
|
4538
4390
|
address: "0xe405de8f52ba7559f9df3c368500b6e6ae6cee49",
|
|
4539
4391
|
symbol: "sETH",
|
|
4540
4392
|
decimals: e,
|
|
4541
4393
|
value: ""
|
|
4542
|
-
},
|
|
4394
|
+
}, jt = {
|
|
4543
4395
|
address: "0x350a791bfc2c21f9ed5d10980dad2e2638ffa7f6",
|
|
4544
4396
|
symbol: "LINK",
|
|
4545
4397
|
decimals: e,
|
|
4546
4398
|
value: ""
|
|
4547
|
-
},
|
|
4399
|
+
}, Qt = {
|
|
4548
4400
|
address: "0x6c84a8f1c29108F47a79964b5Fe888D4f4D0dE40",
|
|
4549
4401
|
symbol: "tBTC",
|
|
4550
4402
|
decimals: e,
|
|
4551
4403
|
value: ""
|
|
4552
|
-
},
|
|
4404
|
+
}, Jt = {
|
|
4553
4405
|
address: "0x1F32b1c2345538c0c6f582fCB022739c4A194Ebb",
|
|
4554
4406
|
symbol: "wstETH",
|
|
4555
4407
|
decimals: e,
|
|
4556
4408
|
value: ""
|
|
4557
|
-
},
|
|
4409
|
+
}, Q = {
|
|
4558
4410
|
address: "0x7ceB23fD6bC0adD59E62ac25578270cFf1b9f619",
|
|
4559
4411
|
symbol: "WETH",
|
|
4560
4412
|
decimals: e,
|
|
4561
4413
|
value: ""
|
|
4562
|
-
},
|
|
4414
|
+
}, J = {
|
|
4563
4415
|
address: "0x2791Bca1f2de4661ED88A30C99A7a9449Aa84174",
|
|
4564
4416
|
symbol: "USDCe",
|
|
4565
4417
|
decimals: 6,
|
|
4566
4418
|
value: ""
|
|
4567
|
-
},
|
|
4419
|
+
}, ve = {
|
|
4568
4420
|
address: "0x3c499c542cEF5E3811e1192ce70d8cC03d5c3359",
|
|
4569
4421
|
symbol: "USDC",
|
|
4570
4422
|
decimals: 6,
|
|
4571
4423
|
value: ""
|
|
4572
|
-
},
|
|
4424
|
+
}, ea = {
|
|
4573
4425
|
address: "0x553d3d295e0f695b9228246232edf400ed3560b5",
|
|
4574
4426
|
symbol: "PAXG",
|
|
4575
4427
|
decimals: e,
|
|
4576
4428
|
value: ""
|
|
4577
|
-
},
|
|
4429
|
+
}, ee = {
|
|
4578
4430
|
address: "0x1BFD67037B42Cf73acF2047067bd4F2C47D9BfD6",
|
|
4579
4431
|
symbol: "WBTC",
|
|
4580
4432
|
decimals: 8,
|
|
4581
4433
|
value: ""
|
|
4582
|
-
},
|
|
4434
|
+
}, ge = {
|
|
4583
4435
|
address: "0x0d500B1d8E8eF31E21C99d1Db9A6444d3ADf1270",
|
|
4584
4436
|
symbol: "WPOL",
|
|
4585
4437
|
decimals: e,
|
|
4586
4438
|
value: ""
|
|
4587
|
-
},
|
|
4439
|
+
}, Le = {
|
|
4588
4440
|
address: "0xc2132d05d31c914a87c6611c10748aeb04b58e8f",
|
|
4589
4441
|
symbol: "USDT",
|
|
4590
4442
|
decimals: 6,
|
|
4591
4443
|
value: ""
|
|
4592
|
-
},
|
|
4444
|
+
}, Ne = {
|
|
4593
4445
|
address: "0x8f3cf7ad23cd3cadbd9735aff958023239c6a063",
|
|
4594
4446
|
symbol: "DAI",
|
|
4595
4447
|
decimals: e,
|
|
4596
4448
|
value: ""
|
|
4597
|
-
},
|
|
4449
|
+
}, ta = {
|
|
4598
4450
|
address: "0x236aa50979d5f3de3bd1eeb40e81137f22ab794b",
|
|
4599
4451
|
symbol: "tBTC",
|
|
4600
4452
|
decimals: e,
|
|
4601
4453
|
value: ""
|
|
4602
|
-
},
|
|
4454
|
+
}, xe = {
|
|
4603
4455
|
address: "0xb88339cb7199b77e23db6e890353e22632ba630f",
|
|
4604
4456
|
symbol: "USDC",
|
|
4605
4457
|
decimals: 6,
|
|
4606
4458
|
value: ""
|
|
4607
|
-
},
|
|
4608
|
-
address:
|
|
4459
|
+
}, aa = {
|
|
4460
|
+
address: D,
|
|
4609
4461
|
symbol: "all",
|
|
4610
4462
|
decimals: e,
|
|
4611
4463
|
value: ""
|
|
4464
|
+
}, na = {
|
|
4465
|
+
[q.address.toLowerCase()]: "USDCe",
|
|
4466
|
+
[$.address.toLowerCase()]: "USDCe",
|
|
4467
|
+
[J.address.toLowerCase()]: "USDCe"
|
|
4468
|
+
}, sa = {
|
|
4469
|
+
[t.id]: I,
|
|
4470
|
+
[a.id]: j,
|
|
4471
|
+
[n.id]: Z,
|
|
4472
|
+
[i.id]: Q,
|
|
4473
|
+
[s.id]: f
|
|
4612
4474
|
}, ia = {
|
|
4613
|
-
[
|
|
4614
|
-
[
|
|
4615
|
-
[
|
|
4616
|
-
}, pa = {
|
|
4617
|
-
[t.id]: S,
|
|
4618
|
-
[a.id]: Q,
|
|
4619
|
-
[n.id]: $,
|
|
4620
|
-
[i.id]: J,
|
|
4621
|
-
[s.id]: A
|
|
4622
|
-
}, ra = {
|
|
4623
|
-
[a.id]: _,
|
|
4624
|
-
[n.id]: ve,
|
|
4625
|
-
[i.id]: te,
|
|
4475
|
+
[a.id]: b,
|
|
4476
|
+
[n.id]: we,
|
|
4477
|
+
[i.id]: ee,
|
|
4626
4478
|
[s.id]: T,
|
|
4627
|
-
[t.id]:
|
|
4628
|
-
},
|
|
4479
|
+
[t.id]: R
|
|
4480
|
+
}, pa = {
|
|
4629
4481
|
[a.id]: {
|
|
4630
|
-
WETH:
|
|
4631
|
-
USDC:
|
|
4632
|
-
WBTC:
|
|
4633
|
-
USDCe:
|
|
4634
|
-
USDT:
|
|
4635
|
-
DAI:
|
|
4482
|
+
WETH: j,
|
|
4483
|
+
USDC: Oe,
|
|
4484
|
+
WBTC: b,
|
|
4485
|
+
USDCe: $,
|
|
4486
|
+
USDT: Ce,
|
|
4487
|
+
DAI: Pe
|
|
4636
4488
|
},
|
|
4637
4489
|
[i.id]: {
|
|
4638
|
-
WMATIC:
|
|
4639
|
-
WETH:
|
|
4640
|
-
USDC:
|
|
4641
|
-
WBTC:
|
|
4642
|
-
USDCe:
|
|
4643
|
-
USDT:
|
|
4644
|
-
DAI:
|
|
4490
|
+
WMATIC: ge,
|
|
4491
|
+
WETH: Q,
|
|
4492
|
+
USDC: ve,
|
|
4493
|
+
WBTC: ee,
|
|
4494
|
+
USDCe: J,
|
|
4495
|
+
USDT: Le,
|
|
4496
|
+
DAI: Ne
|
|
4645
4497
|
},
|
|
4646
4498
|
[s.id]: {
|
|
4647
|
-
WETH:
|
|
4648
|
-
USDC:
|
|
4499
|
+
WETH: f,
|
|
4500
|
+
USDC: y,
|
|
4649
4501
|
WBTC: T,
|
|
4650
|
-
USDCe:
|
|
4502
|
+
USDCe: q
|
|
4651
4503
|
},
|
|
4652
4504
|
[n.id]: {
|
|
4653
|
-
WETH:
|
|
4654
|
-
USDC:
|
|
4505
|
+
WETH: Z,
|
|
4506
|
+
USDC: Me
|
|
4655
4507
|
},
|
|
4656
4508
|
[t.id]: {
|
|
4657
|
-
WETH:
|
|
4658
|
-
USDC:
|
|
4659
|
-
WBTC:
|
|
4660
|
-
USDT:
|
|
4509
|
+
WETH: I,
|
|
4510
|
+
USDC: S,
|
|
4511
|
+
WBTC: R,
|
|
4512
|
+
USDT: pe
|
|
4661
4513
|
}
|
|
4662
|
-
},
|
|
4663
|
-
[p.id]:
|
|
4664
|
-
},
|
|
4514
|
+
}, ra = {
|
|
4515
|
+
[p.id]: xe
|
|
4516
|
+
}, da = "https://hermes.pyth.network", ya = "https://flat.money/flatcoin", oa = "https://v1.flat.money/flatcoin", _ = {
|
|
4665
4517
|
RETH_BASE: "0xdb0cd65dcc7fe07003ce1201f91e1f966fa95768",
|
|
4666
4518
|
WBTC_OPTIMISM: "0x6d857e9d24a7566bb72a3fb0847a3e0e4e1c2879",
|
|
4667
4519
|
WBTC_ARBITRUM: "0xb1353d51991e79fefd4bfdba2a03e9f0232814a6"
|
|
4668
|
-
},
|
|
4669
|
-
|
|
4670
|
-
),
|
|
4671
|
-
[
|
|
4672
|
-
symbol:
|
|
4673
|
-
decimals:
|
|
4674
|
-
address:
|
|
4675
|
-
},
|
|
4676
|
-
[
|
|
4677
|
-
symbol:
|
|
4678
|
-
decimals:
|
|
4679
|
-
address:
|
|
4680
|
-
},
|
|
4681
|
-
[
|
|
4520
|
+
}, ua = Object.values(
|
|
4521
|
+
_
|
|
4522
|
+
), la = {
|
|
4523
|
+
[_.RETH_BASE]: {
|
|
4524
|
+
symbol: A.symbol,
|
|
4525
|
+
decimals: A.decimals,
|
|
4526
|
+
address: A.address
|
|
4527
|
+
},
|
|
4528
|
+
[_.WBTC_OPTIMISM]: {
|
|
4529
|
+
symbol: b.symbol,
|
|
4530
|
+
decimals: b.decimals,
|
|
4531
|
+
address: b.address
|
|
4532
|
+
},
|
|
4533
|
+
[_.WBTC_ARBITRUM]: {
|
|
4682
4534
|
symbol: T.symbol,
|
|
4683
4535
|
decimals: T.decimals,
|
|
4684
4536
|
address: T.address
|
|
4685
4537
|
}
|
|
4686
|
-
},
|
|
4687
|
-
|
|
4538
|
+
}, Be = "0xb95fb324b8a2faf8ec4f76e3df46c718402736e2", ma = [
|
|
4539
|
+
Be,
|
|
4688
4540
|
"0x357cb23571ef7a3d6189b7facfc361ea71f7cab5"
|
|
4689
4541
|
// WBTC_OPTIMISM
|
|
4690
|
-
],
|
|
4542
|
+
], Ta = 500n, ca = {
|
|
4691
4543
|
[n.id]: 2e3,
|
|
4692
4544
|
[t.id]: 2e3,
|
|
4693
4545
|
[a.id]: 2e3,
|
|
4694
4546
|
[s.id]: 500,
|
|
4695
4547
|
[i.id]: 500,
|
|
4696
4548
|
[p.id]: 500
|
|
4697
|
-
},
|
|
4549
|
+
}, ba = 6e3, _a = 4e4, fa = 0.2, Aa = 6e3, Ea = 8e3, Da = {
|
|
4698
4550
|
DEPOSIT: "deposit",
|
|
4699
4551
|
DEPOSIT_CUSTOM: "depositWithCustomCooldown",
|
|
4700
4552
|
NATIVE: "nativeDeposit",
|
|
@@ -4703,7 +4555,7 @@ const E = [
|
|
|
4703
4555
|
ZAP_NATIVE_DEPOSIT_CUSTOM: "zapNativeDepositWithCustomCooldown",
|
|
4704
4556
|
ZAP_DEPOSIT: "zapDeposit",
|
|
4705
4557
|
ZAP_DEPOSIT_CUSTOM: "zapDepositWithCustomCooldown"
|
|
4706
|
-
},
|
|
4558
|
+
}, Ia = [
|
|
4707
4559
|
"multi_withdraw",
|
|
4708
4560
|
"swap",
|
|
4709
4561
|
"claim",
|
|
@@ -4724,172 +4576,171 @@ const E = [
|
|
|
4724
4576
|
PUMP_ARBITRUM: "0x4c0bb704529fa49a26bd854802d70206982c6f1b",
|
|
4725
4577
|
GOLD_ARBITRUM: "0xeb28ad1a2e497f4acc5d9b87e7b496623c93061e",
|
|
4726
4578
|
AAVE_ARBITRUM: "0x1cbba6346f110c8a5ea739ef2d1eb182990e4eb2"
|
|
4727
|
-
},
|
|
4579
|
+
}, Sa = Object.values(
|
|
4728
4580
|
r
|
|
4729
|
-
),
|
|
4730
|
-
[r.SOL_ARBITRUM]:
|
|
4581
|
+
), Ra = {
|
|
4582
|
+
[r.SOL_ARBITRUM]: y,
|
|
4731
4583
|
[r.BTC_ARBITRUM]: T,
|
|
4732
|
-
[r.WETH_WETH_ARBITRUM]:
|
|
4733
|
-
[r.WETH_USDC_ARBITRUM]:
|
|
4734
|
-
[r.SUI_ARBITRUM]:
|
|
4735
|
-
[r.DOGE_ARBITRUM]:
|
|
4736
|
-
[r.XRP_ARBITRUM]:
|
|
4737
|
-
[r.CRV_ARBITRUM]:
|
|
4738
|
-
[r.HYPE_ARBITRUM]:
|
|
4739
|
-
[r.BNB_ARBITRUM]:
|
|
4740
|
-
[r.LINK_ARBITRUM]:
|
|
4741
|
-
[r.PUMP_ARBITRUM]:
|
|
4742
|
-
[r.BNB_WBTC_USDC_ARBITRUM]:
|
|
4743
|
-
[r.GOLD_ARBITRUM]:
|
|
4744
|
-
[r.AAVE_ARBITRUM]:
|
|
4745
|
-
},
|
|
4746
|
-
"0x9a916e55f5b67226734cd7b465d51bce1d11a89a":
|
|
4584
|
+
[r.WETH_WETH_ARBITRUM]: f,
|
|
4585
|
+
[r.WETH_USDC_ARBITRUM]: f,
|
|
4586
|
+
[r.SUI_ARBITRUM]: y,
|
|
4587
|
+
[r.DOGE_ARBITRUM]: y,
|
|
4588
|
+
[r.XRP_ARBITRUM]: y,
|
|
4589
|
+
[r.CRV_ARBITRUM]: y,
|
|
4590
|
+
[r.HYPE_ARBITRUM]: y,
|
|
4591
|
+
[r.BNB_ARBITRUM]: y,
|
|
4592
|
+
[r.LINK_ARBITRUM]: y,
|
|
4593
|
+
[r.PUMP_ARBITRUM]: y,
|
|
4594
|
+
[r.BNB_WBTC_USDC_ARBITRUM]: y,
|
|
4595
|
+
[r.GOLD_ARBITRUM]: y,
|
|
4596
|
+
[r.AAVE_ARBITRUM]: y
|
|
4597
|
+
}, Ma = {
|
|
4598
|
+
"0x9a916e55f5b67226734cd7b465d51bce1d11a89a": y
|
|
4747
4599
|
// USDmny Arbitrum
|
|
4748
4600
|
};
|
|
4749
4601
|
export {
|
|
4750
|
-
|
|
4751
|
-
|
|
4752
|
-
|
|
4753
|
-
|
|
4754
|
-
|
|
4755
|
-
|
|
4756
|
-
|
|
4757
|
-
|
|
4758
|
-
|
|
4759
|
-
|
|
4760
|
-
|
|
4761
|
-
|
|
4762
|
-
|
|
4763
|
-
|
|
4764
|
-
|
|
4765
|
-
|
|
4766
|
-
|
|
4767
|
-
|
|
4768
|
-
|
|
4769
|
-
|
|
4770
|
-
|
|
4771
|
-
|
|
4602
|
+
rt as $,
|
|
4603
|
+
ct as A,
|
|
4604
|
+
na as B,
|
|
4605
|
+
lt as C,
|
|
4606
|
+
se as D,
|
|
4607
|
+
st as E,
|
|
4608
|
+
at as F,
|
|
4609
|
+
nt as G,
|
|
4610
|
+
ze as H,
|
|
4611
|
+
Ke as I,
|
|
4612
|
+
He as J,
|
|
4613
|
+
Ge as K,
|
|
4614
|
+
pa as L,
|
|
4615
|
+
la as M,
|
|
4616
|
+
ua as N,
|
|
4617
|
+
ma as O,
|
|
4618
|
+
ya as P,
|
|
4619
|
+
Be as Q,
|
|
4620
|
+
oa as R,
|
|
4621
|
+
Lt as S,
|
|
4622
|
+
pt as T,
|
|
4623
|
+
Sa as U,
|
|
4772
4624
|
r as V,
|
|
4773
|
-
|
|
4774
|
-
|
|
4775
|
-
|
|
4776
|
-
|
|
4777
|
-
|
|
4778
|
-
|
|
4779
|
-
|
|
4780
|
-
|
|
4781
|
-
|
|
4782
|
-
|
|
4783
|
-
|
|
4784
|
-
|
|
4785
|
-
|
|
4786
|
-
|
|
4787
|
-
|
|
4788
|
-
|
|
4789
|
-
|
|
4790
|
-
|
|
4791
|
-
|
|
4792
|
-
|
|
4793
|
-
|
|
4794
|
-
|
|
4795
|
-
|
|
4796
|
-
|
|
4797
|
-
|
|
4798
|
-
|
|
4799
|
-
|
|
4800
|
-
|
|
4801
|
-
|
|
4802
|
-
|
|
4803
|
-
|
|
4804
|
-
|
|
4805
|
-
|
|
4806
|
-
|
|
4807
|
-
|
|
4808
|
-
|
|
4809
|
-
|
|
4810
|
-
|
|
4811
|
-
|
|
4812
|
-
|
|
4813
|
-
|
|
4814
|
-
|
|
4815
|
-
|
|
4816
|
-
|
|
4817
|
-
|
|
4818
|
-
|
|
4819
|
-
|
|
4820
|
-
|
|
4821
|
-
|
|
4822
|
-
|
|
4823
|
-
|
|
4824
|
-
|
|
4625
|
+
Ra as W,
|
|
4626
|
+
Ma as X,
|
|
4627
|
+
Re as Y,
|
|
4628
|
+
Wt as Z,
|
|
4629
|
+
At as _,
|
|
4630
|
+
ne as a,
|
|
4631
|
+
be as a$,
|
|
4632
|
+
Tt as a0,
|
|
4633
|
+
aa as a1,
|
|
4634
|
+
Fe as a2,
|
|
4635
|
+
it as a3,
|
|
4636
|
+
Aa as a4,
|
|
4637
|
+
ba as a5,
|
|
4638
|
+
Ea as a6,
|
|
4639
|
+
_a as a7,
|
|
4640
|
+
fa as a8,
|
|
4641
|
+
ra as a9,
|
|
4642
|
+
Me as aA,
|
|
4643
|
+
y as aB,
|
|
4644
|
+
me as aC,
|
|
4645
|
+
Te as aD,
|
|
4646
|
+
Ae as aE,
|
|
4647
|
+
ce as aF,
|
|
4648
|
+
_e as aG,
|
|
4649
|
+
De as aH,
|
|
4650
|
+
de as aI,
|
|
4651
|
+
Dt as aJ,
|
|
4652
|
+
Rt as aK,
|
|
4653
|
+
Ot as aL,
|
|
4654
|
+
pe as aM,
|
|
4655
|
+
Ee as aN,
|
|
4656
|
+
It as aO,
|
|
4657
|
+
E as aP,
|
|
4658
|
+
q as aQ,
|
|
4659
|
+
$ as aR,
|
|
4660
|
+
J as aS,
|
|
4661
|
+
we as aT,
|
|
4662
|
+
Xt as aU,
|
|
4663
|
+
Pe as aV,
|
|
4664
|
+
Ne as aW,
|
|
4665
|
+
Gt as aX,
|
|
4666
|
+
jt as aY,
|
|
4667
|
+
ea as aZ,
|
|
4668
|
+
A as a_,
|
|
4669
|
+
da as aa,
|
|
4670
|
+
Ye as ab,
|
|
4671
|
+
Bt as ac,
|
|
4672
|
+
et as ad,
|
|
4673
|
+
ft as ae,
|
|
4674
|
+
Ut as af,
|
|
4675
|
+
ot as ag,
|
|
4676
|
+
Et as ah,
|
|
4825
4677
|
d as ai,
|
|
4826
|
-
|
|
4827
|
-
|
|
4828
|
-
|
|
4829
|
-
|
|
4830
|
-
|
|
4831
|
-
|
|
4832
|
-
|
|
4833
|
-
|
|
4834
|
-
|
|
4678
|
+
ht as aj,
|
|
4679
|
+
ca as ak,
|
|
4680
|
+
ia as al,
|
|
4681
|
+
sa as am,
|
|
4682
|
+
Se as an,
|
|
4683
|
+
gt as ao,
|
|
4684
|
+
vt as ap,
|
|
4685
|
+
D as aq,
|
|
4686
|
+
Ct as ar,
|
|
4835
4687
|
Pt as as,
|
|
4836
|
-
|
|
4837
|
-
|
|
4838
|
-
|
|
4839
|
-
|
|
4840
|
-
|
|
4841
|
-
|
|
4842
|
-
|
|
4843
|
-
|
|
4844
|
-
|
|
4845
|
-
|
|
4846
|
-
|
|
4847
|
-
|
|
4848
|
-
|
|
4849
|
-
|
|
4850
|
-
|
|
4851
|
-
|
|
4852
|
-
|
|
4853
|
-
|
|
4854
|
-
|
|
4855
|
-
|
|
4856
|
-
|
|
4857
|
-
|
|
4858
|
-
|
|
4859
|
-
|
|
4860
|
-
|
|
4861
|
-
|
|
4862
|
-
|
|
4688
|
+
e as at,
|
|
4689
|
+
Mt as au,
|
|
4690
|
+
wt as av,
|
|
4691
|
+
xe as aw,
|
|
4692
|
+
S as ax,
|
|
4693
|
+
ve as ay,
|
|
4694
|
+
Oe as az,
|
|
4695
|
+
mt as b,
|
|
4696
|
+
$t as b0,
|
|
4697
|
+
Zt as b1,
|
|
4698
|
+
Ft as b2,
|
|
4699
|
+
zt as b3,
|
|
4700
|
+
Qt as b4,
|
|
4701
|
+
ta as b5,
|
|
4702
|
+
Kt as b6,
|
|
4703
|
+
Ht as b7,
|
|
4704
|
+
Ce as b8,
|
|
4705
|
+
Le as b9,
|
|
4706
|
+
Yt as ba,
|
|
4707
|
+
T as bb,
|
|
4708
|
+
R as bc,
|
|
4709
|
+
b as bd,
|
|
4710
|
+
ee as be,
|
|
4711
|
+
f as bf,
|
|
4712
|
+
Z as bg,
|
|
4713
|
+
I as bh,
|
|
4714
|
+
j as bi,
|
|
4863
4715
|
Q as bj,
|
|
4864
|
-
|
|
4865
|
-
|
|
4866
|
-
|
|
4867
|
-
|
|
4868
|
-
|
|
4869
|
-
|
|
4870
|
-
|
|
4871
|
-
|
|
4872
|
-
|
|
4873
|
-
|
|
4874
|
-
|
|
4875
|
-
|
|
4876
|
-
|
|
4877
|
-
|
|
4878
|
-
$e as j,
|
|
4716
|
+
ge as bk,
|
|
4717
|
+
kt as bl,
|
|
4718
|
+
Vt as bm,
|
|
4719
|
+
qt as bn,
|
|
4720
|
+
Jt as bo,
|
|
4721
|
+
St as bp,
|
|
4722
|
+
Ia as c,
|
|
4723
|
+
_t as d,
|
|
4724
|
+
bt as e,
|
|
4725
|
+
qe as f,
|
|
4726
|
+
ie as g,
|
|
4727
|
+
Je as h,
|
|
4728
|
+
Nt as i,
|
|
4729
|
+
Xe as j,
|
|
4879
4730
|
m as k,
|
|
4880
|
-
|
|
4881
|
-
|
|
4882
|
-
|
|
4883
|
-
|
|
4884
|
-
|
|
4731
|
+
tt as l,
|
|
4732
|
+
ut as m,
|
|
4733
|
+
$e as n,
|
|
4734
|
+
Ta as o,
|
|
4735
|
+
ke as p,
|
|
4885
4736
|
l as q,
|
|
4886
|
-
|
|
4887
|
-
|
|
4888
|
-
|
|
4889
|
-
|
|
4890
|
-
|
|
4891
|
-
|
|
4892
|
-
|
|
4893
|
-
|
|
4894
|
-
|
|
4737
|
+
dt as r,
|
|
4738
|
+
je as s,
|
|
4739
|
+
xt as t,
|
|
4740
|
+
Qe as u,
|
|
4741
|
+
Ve as v,
|
|
4742
|
+
yt as w,
|
|
4743
|
+
Ze as x,
|
|
4744
|
+
Ie as y,
|
|
4745
|
+
Da as z
|
|
4895
4746
|
};
|