@dhedge/trading-widget 6.0.5 → 6.1.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 +94 -89
- package/core-kit/abi/dytm-office-asset-guard.d.ts +194 -0
- package/core-kit/abi/index.d.ts +1 -0
- package/core-kit/abi/ondo-gm-token-asset-guard.d.ts +20 -0
- package/core-kit/abi/ondo-price-oracle.d.ts +18 -0
- package/core-kit/const/index.d.ts +1 -0
- package/core-kit/const/midas.d.ts +2 -0
- package/core-kit/const/trading.d.ts +3 -0
- package/core-kit/hooks/pool/index.d.ts +4 -0
- package/core-kit/hooks/pool/use-asset-guard-address.d.ts +8 -0
- package/core-kit/hooks/pool/use-dytm-vault-data.d.ts +8 -0
- package/core-kit/hooks/pool/use-ondo-price-deviation.d.ts +10 -0
- package/core-kit/hooks/pool/use-ondo-vault-data.d.ts +1 -0
- package/core-kit/hooks/pool/use-pool-assets-with-type.d.ts +14 -0
- package/core-kit/hooks/trading/deposit-v2/deposit-transaction/use-ondo-price-freshness.d.ts +4 -4
- package/core-kit/hooks/trading/withdraw-v2/init-step/use-fetch-dytm-withdraw-asset-data.d.ts +3 -0
- package/core-kit/hooks/trading/withdraw-v2/init-step/use-fetch-ondo-withdraw-asset-data.d.ts +3 -2
- package/core-kit/hooks/trading/withdraw-v2/init-step/use-init-withdraw-simulation-withdraw-data.d.ts +7 -0
- package/core-kit/services/ondo/api.d.ts +5 -1
- package/core-kit/services/ondo/index.d.ts +2 -2
- package/core-kit/services/ondo/types.d.ts +9 -0
- package/core-kit/utils/complex-withdraw-asset-data.d.ts +9 -5
- package/core-kit/utils/dytm.d.ts +51 -0
- package/core-kit/utils/index.d.ts +1 -0
- package/core-kit/utils/ondo.d.ts +2 -1
- package/core-kit/utils/web3.d.ts +5 -1
- package/dytm-CQG65-Rc.cjs +1 -0
- package/dytm-CWhBYz0P.js +784 -0
- package/{geoblocking-NkujbQRm.js → geoblocking-DtB4yr5l.js} +10 -8
- package/geoblocking-peuNwHMJ.cjs +1 -0
- package/gmx-U3Bnivj2.cjs +1 -0
- package/{gmx-DQ-wSifY.js → gmx-c42QlKyJ.js} +389 -369
- package/index.cjs +1 -1
- package/index.d.ts +1 -1
- package/index.js +4280 -3682
- package/package.json +1 -1
- package/trading-widget/components/widget/widget-input/all-assets-composition-table/all-assets-composition-table.hooks.d.ts +2 -0
- package/trading-widget/components/widget/widget-overlay/withdraw-stepper-overlay/steps/init-withdraw-step.hooks.d.ts +1 -1
- package/trading-widget/components/widget/widget-overlay/withdraw-stepper-overlay/steps/oracle-update-step.d.ts +3 -0
- package/trading-widget/components/widget/widget-overlay/withdraw-stepper-overlay/steps/oracle-update-step.hooks.d.ts +11 -0
- package/trading-widget/components/widget/widget-overlay/withdraw-stepper-overlay/withdraw-stepper-overlay.hooks.d.ts +10 -2
- package/trading-widget/components/widget/widget-overlay/withdraw-stepper-overlay/withdraw-steps.d.ts +2 -9
- package/trading-widget/components/widget/widget-overlay/withdraw-stepper-overlay/withdraw-steps.hooks.d.ts +26 -0
- package/utils.cjs +1 -1
- package/utils.js +67 -58
- package/core-kit/hooks/trading/withdraw-v2/init-step/use-init-withdraw-estimated-receive-assets.d.ts +0 -235
- package/geoblocking-9FD_O0-h.cjs +0 -1
- package/gmx-Dejxb5_t.cjs +0 -1
- package/ondo-GwhTVXds.js +0 -540
- package/ondo-rQybmFLf.cjs +0 -1
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { optimism as
|
|
2
|
-
import { formatDuration as
|
|
3
|
-
import { erc20Abi as
|
|
4
|
-
const
|
|
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 ae } from "date-fns";
|
|
3
|
+
import { erc20Abi as ne } from "viem";
|
|
4
|
+
const se = "0x0000000000000000000000000000000000000000", Ye = BigInt(
|
|
5
5
|
"0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff"
|
|
6
|
-
), l = 18,
|
|
7
|
-
address:
|
|
6
|
+
), l = 18, Ge = "1000000000000000000", Ke = 59e3, ze = 3e4, qe = 15e3, Xe = 5e3, ie = 400, Ze = ie * 1.2, $e = ae({ hours: 24 }), je = {
|
|
7
|
+
address: se,
|
|
8
8
|
symbol: "",
|
|
9
|
-
chainId:
|
|
9
|
+
chainId: a.id,
|
|
10
10
|
depositParams: { customTokens: [] },
|
|
11
11
|
withdrawParams: { customTokens: [] },
|
|
12
12
|
deprecated: !1
|
|
13
|
-
},
|
|
13
|
+
}, Qe = "deposit", Je = 0.5, pe = 0, et = 0.5, tt = 0.02, at = 0.5, nt = [pe], st = [
|
|
14
14
|
0.05,
|
|
15
15
|
0.1,
|
|
16
16
|
0.3,
|
|
@@ -21,15 +21,15 @@ const ne = "0x0000000000000000000000000000000000000000", Ve = BigInt(
|
|
|
21
21
|
2,
|
|
22
22
|
3,
|
|
23
23
|
5
|
|
24
|
-
],
|
|
25
|
-
[a.id]: a,
|
|
26
|
-
[i.id]: i,
|
|
24
|
+
], it = "withdrawSafe", pt = "initWithdrawal", rt = "unrollAndClaim", dt = "completeWithdrawal", ot = 2e6, yt = 1.25, ut = 1e4, lt = 13e3, mt = 3, ct = 2e4, Tt = 1e4, bt = {
|
|
27
25
|
[t.id]: t,
|
|
26
|
+
[i.id]: i,
|
|
27
|
+
[a.id]: a,
|
|
28
28
|
[s.id]: s,
|
|
29
29
|
[n.id]: n,
|
|
30
30
|
[p.id]: p
|
|
31
|
-
},
|
|
32
|
-
[
|
|
31
|
+
}, _t = {
|
|
32
|
+
[t.id]: {
|
|
33
33
|
nativeTokenSymbol: "ETH",
|
|
34
34
|
wrappedNativeTokenName: "WETH",
|
|
35
35
|
address: "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2",
|
|
@@ -41,7 +41,7 @@ const ne = "0x0000000000000000000000000000000000000000", Ve = BigInt(
|
|
|
41
41
|
address: "0x0d500b1d8e8ef31e21c99d1db9a6444d3adf1270",
|
|
42
42
|
decimals: l
|
|
43
43
|
},
|
|
44
|
-
[
|
|
44
|
+
[a.id]: {
|
|
45
45
|
nativeTokenSymbol: "ETH",
|
|
46
46
|
wrappedNativeTokenName: "WETH",
|
|
47
47
|
address: "0x4200000000000000000000000000000000000006",
|
|
@@ -65,29 +65,29 @@ const ne = "0x0000000000000000000000000000000000000000", Ve = BigInt(
|
|
|
65
65
|
address: "0x5555555555555555555555555555555555555555",
|
|
66
66
|
decimals: l
|
|
67
67
|
}
|
|
68
|
-
}, m = 299e5,
|
|
69
|
-
[a.id]: m,
|
|
70
|
-
[i.id]: m,
|
|
68
|
+
}, m = 299e5, ft = {
|
|
71
69
|
[t.id]: m,
|
|
70
|
+
[i.id]: m,
|
|
71
|
+
[a.id]: m,
|
|
72
72
|
[s.id]: m,
|
|
73
73
|
[n.id]: m,
|
|
74
74
|
[p.id]: m
|
|
75
|
-
},
|
|
76
|
-
[
|
|
77
|
-
[
|
|
75
|
+
}, At = {
|
|
76
|
+
[t.id]: "https://eth-mainnet.g.alchemy.com/v2",
|
|
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
|
+
}, Dt = {
|
|
83
83
|
USD: "$",
|
|
84
84
|
ETH: "Ξ",
|
|
85
85
|
BTC: "₿"
|
|
86
|
-
},
|
|
86
|
+
}, Et = {
|
|
87
87
|
USD: 2,
|
|
88
88
|
ETH: 4,
|
|
89
89
|
BTC: 6
|
|
90
|
-
},
|
|
90
|
+
}, It = ["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 ne = "0x0000000000000000000000000000000000000000", Ve = 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
|
+
}, St = {
|
|
110
110
|
approve: [d.APPROVED_TOKEN],
|
|
111
111
|
deposit: [d.DEPOSIT],
|
|
112
112
|
multi_withdraw: [
|
|
@@ -130,7 +130,7 @@ const ne = "0x0000000000000000000000000000000000000000", Ve = BigInt(
|
|
|
130
130
|
d.LIMIT_ORDER_WITHDRAW_DELETE
|
|
131
131
|
],
|
|
132
132
|
update_ondo_prices: [d.UPDATE_ONDO_PRICES]
|
|
133
|
-
},
|
|
133
|
+
}, Rt = {
|
|
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" },
|
|
@@ -138,9 +138,9 @@ const ne = "0x0000000000000000000000000000000000000000", Ve = BigInt(
|
|
|
138
138
|
SOURCE: { NAME: "source", TYPE: "string" }
|
|
139
139
|
};
|
|
140
140
|
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 || {});
|
|
141
|
-
const
|
|
142
|
-
s.id + "", `${
|
|
143
|
-
const
|
|
141
|
+
const b = process.env.NEXT_PUBLIC_INFURA_API_KEY;
|
|
142
|
+
s.id + "", `${b}`, a.id + "", `${b}`, i.id + "", `${b}`, n.id + "", `${b}`, t.id + "", `${b}`, p.id + "";
|
|
143
|
+
const Mt = {
|
|
144
144
|
[s.id]: {
|
|
145
145
|
...s,
|
|
146
146
|
name: "Arbitrum",
|
|
@@ -149,11 +149,11 @@ const St = {
|
|
|
149
149
|
shortName: "ARB",
|
|
150
150
|
blockchainCode: y.ARBI
|
|
151
151
|
},
|
|
152
|
-
[
|
|
153
|
-
...
|
|
152
|
+
[a.id]: {
|
|
153
|
+
...a,
|
|
154
154
|
name: "Optimism",
|
|
155
155
|
iconPath: "/icons/optimism-network.svg",
|
|
156
|
-
chainId:
|
|
156
|
+
chainId: a.id,
|
|
157
157
|
shortName: "OP",
|
|
158
158
|
blockchainCode: y.OE
|
|
159
159
|
},
|
|
@@ -171,9 +171,9 @@ const St = {
|
|
|
171
171
|
shortName: "BASE",
|
|
172
172
|
blockchainCode: y.BASE
|
|
173
173
|
},
|
|
174
|
-
[
|
|
175
|
-
...
|
|
176
|
-
chainId:
|
|
174
|
+
[t.id]: {
|
|
175
|
+
...t,
|
|
176
|
+
chainId: t.id,
|
|
177
177
|
iconPath: "/icons/ethereum-network.svg",
|
|
178
178
|
shortName: "ETHEREUM",
|
|
179
179
|
blockchainCode: y.MAINNET
|
|
@@ -186,16 +186,44 @@ const St = {
|
|
|
186
186
|
blockchainCode: y.HYPEREVM
|
|
187
187
|
}
|
|
188
188
|
};
|
|
189
|
-
y.ETH + "",
|
|
190
|
-
|
|
189
|
+
y.ETH + "", t.id, y.MAINNET + "", t.id, y.POLYGON + "", i.id, y.OE + "", a.id, y.ARBI + "", s.id, y.BASE + "", n.id, y.HYPEREVM + "", p.id;
|
|
190
|
+
t.id + "", a.id + "", i.id + "", s.id + "", n.id + "", p.id + "";
|
|
191
191
|
const I = "0x0000000000000000000000000000000000000000";
|
|
192
192
|
BigInt("0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff");
|
|
193
|
-
|
|
194
|
-
const
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
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, wt = 4, S = {
|
|
195
|
+
address: "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2",
|
|
196
|
+
symbol: "WETH",
|
|
197
|
+
decimals: e,
|
|
198
|
+
value: ""
|
|
199
|
+
}, R = {
|
|
200
|
+
address: "0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48",
|
|
201
|
+
symbol: "USDC",
|
|
202
|
+
decimals: 6,
|
|
203
|
+
value: ""
|
|
204
|
+
}, M = {
|
|
205
|
+
address: "0x2260fac5e5542a773aa44fbcfedf7c193bc2c599",
|
|
206
|
+
symbol: "WBTC",
|
|
207
|
+
decimals: 8,
|
|
208
|
+
value: ""
|
|
209
|
+
}, re = {
|
|
210
|
+
address: "0xdac17f958d2ee523a2206206994597c13d831ec7",
|
|
211
|
+
symbol: "USDT",
|
|
212
|
+
decimals: 6,
|
|
213
|
+
value: ""
|
|
214
|
+
}, Ot = {
|
|
215
|
+
address: "0x68749665ff8d2d112fa859aa293f07a622782f38",
|
|
216
|
+
symbol: "XAUt",
|
|
217
|
+
decimals: 6,
|
|
218
|
+
value: ""
|
|
219
|
+
}, w = "0x96D33bCF84DdE326014248E2896F79bbb9c13D6d", O = "0xbDd84294bC8299861A2121F749A25EFEb7168a32", h = "0x87870Bca3F3fD6335C3F4ce8392D69350B4fA4E2", g = "0x95B19De479bc693721cab39Da98FfECE062f5Ea4", de = "0xD6049430DDFa9bCd1F33064BF697313A1a93ace9", oe = "0x0ff1ceB93DbADfB13722058D60c4B8cD122b06ea", ye = 1n;
|
|
220
|
+
ye << 160n | BigInt(R.address);
|
|
221
|
+
const ht = "0xde41399145F23936b03dD1474eC16c1519c0DC2a", v = "0xffFb5fB14606EB3a548C113026355020dDF27535", C = "0x794a61358D6845594F94dc1DB02A252b5b4814aD", P = "0xA5679C4272A056Bb83f039961fae7D99C48529F5", L = "0x26a687e8244f1866E9Aa2D400c8b9957Aa8e6Ad4", N = "0x49Afe3abCf66CF09Fab86cb1139D8811C8afe56F", x = "0xf067575Eb60c7587C11e867907AA7284833704d1", ue = "0x59525b9b23adc475ef91d98dae06b568ba574ce5", gt = "0xa907504d7a4c415b4e6e1d0866d96afe8202f0e5", vt = "0x1849324228d852a67eb7443e42d967e480ffe95d", B = "0xa238dd80c259a72e81d7e4664a9801593f98d1c5", U = "0xFcBEc28c43E356693971a24bf3F2Fd7D965E2ebA", le = "0x07e144e336fcc3fe928a8a2a5714da64354c1aab", W = "0x5e61a079A178f0E5784107a4963baAe0c5a680c6", F = "0x794a61358D6845594F94dc1DB02A252b5b4814aD", k = "0x2Ed1bd7f66e47113672f3870308b5E867C5bb743", V = "0x3bFE2a472d2964Ea4070725b7Fb0A868b3f08b63", H = "0xfdc7b8bFe0DD3513Cc669bB8d601Cb83e2F69cB0", me = "0x8dFf5E27EA6b7AC08EbFdf9eB090F32ee9a30fcf", Y = "0x794a61358D6845594F94dc1DB02A252b5b4814aD", G = "0x45b90480D6F643dE2f128db091A357C3c90399f2", K = "0xB71410736d2C8F2DAf30dA9D332dA10534d2624d", z = "0x615037C2Df6FA97634c5aD2d8144708b9dd3B176", q = "0x47065E508433E22d73Be3c5B61EB9abafD450364", X = "0x6b696eA2602068a7043C92961B5F202a65A3eF9C", Ct = "0x4F754e0F0924afD74980886b0B479Fa1D7C58D0D";
|
|
222
|
+
t.id + "", s.id + "", n.id + "", a.id + "", i.id + "", p.id + "";
|
|
223
|
+
t.id + "", s.id + "", n.id + "", a.id + "", i.id + "", p.id + "";
|
|
224
|
+
t.id + "", s.id + "", n.id + "", a.id + "", i.id + "", p.id + "";
|
|
225
|
+
t.id + "";
|
|
226
|
+
t.id + "", s.id + "", n.id + "", a.id + "", i.id + "", p.id + "";
|
|
199
227
|
const E = [
|
|
200
228
|
{
|
|
201
229
|
anonymous: !1,
|
|
@@ -986,7 +1014,7 @@ const E = [
|
|
|
986
1014
|
stateMutability: "nonpayable",
|
|
987
1015
|
type: "function"
|
|
988
1016
|
}
|
|
989
|
-
],
|
|
1017
|
+
], ce = [
|
|
990
1018
|
{
|
|
991
1019
|
inputs: [
|
|
992
1020
|
{
|
|
@@ -1095,7 +1123,7 @@ const E = [
|
|
|
1095
1123
|
stateMutability: "view",
|
|
1096
1124
|
type: "function"
|
|
1097
1125
|
}
|
|
1098
|
-
],
|
|
1126
|
+
], Te = [
|
|
1099
1127
|
{
|
|
1100
1128
|
inputs: [
|
|
1101
1129
|
{
|
|
@@ -1443,7 +1471,7 @@ const E = [
|
|
|
1443
1471
|
stateMutability: "nonpayable",
|
|
1444
1472
|
type: "function"
|
|
1445
1473
|
}
|
|
1446
|
-
],
|
|
1474
|
+
], Pt = [
|
|
1447
1475
|
{
|
|
1448
1476
|
type: "tuple[]",
|
|
1449
1477
|
components: [
|
|
@@ -1471,7 +1499,7 @@ const E = [
|
|
|
1471
1499
|
}
|
|
1472
1500
|
]
|
|
1473
1501
|
}
|
|
1474
|
-
],
|
|
1502
|
+
], Lt = [
|
|
1475
1503
|
{
|
|
1476
1504
|
type: "tuple",
|
|
1477
1505
|
components: [
|
|
@@ -1499,7 +1527,7 @@ const E = [
|
|
|
1499
1527
|
}
|
|
1500
1528
|
]
|
|
1501
1529
|
}
|
|
1502
|
-
],
|
|
1530
|
+
], be = [
|
|
1503
1531
|
{
|
|
1504
1532
|
inputs: [],
|
|
1505
1533
|
name: "getFundComposition",
|
|
@@ -1664,7 +1692,7 @@ const E = [
|
|
|
1664
1692
|
stateMutability: "view",
|
|
1665
1693
|
type: "function"
|
|
1666
1694
|
}
|
|
1667
|
-
],
|
|
1695
|
+
], _e = [
|
|
1668
1696
|
{
|
|
1669
1697
|
anonymous: !1,
|
|
1670
1698
|
inputs: [
|
|
@@ -1821,7 +1849,7 @@ const E = [
|
|
|
1821
1849
|
stateMutability: "view",
|
|
1822
1850
|
type: "function"
|
|
1823
1851
|
}
|
|
1824
|
-
],
|
|
1852
|
+
], fe = [
|
|
1825
1853
|
{
|
|
1826
1854
|
inputs: [
|
|
1827
1855
|
{
|
|
@@ -1898,7 +1926,7 @@ const E = [
|
|
|
1898
1926
|
stateMutability: "view",
|
|
1899
1927
|
type: "function"
|
|
1900
1928
|
}
|
|
1901
|
-
],
|
|
1929
|
+
], Ae = [
|
|
1902
1930
|
{
|
|
1903
1931
|
inputs: [],
|
|
1904
1932
|
name: "EmptyPayload",
|
|
@@ -2055,8 +2083,8 @@ const E = [
|
|
|
2055
2083
|
name: "UnsupportedTokenTransferMethod",
|
|
2056
2084
|
type: "error"
|
|
2057
2085
|
}
|
|
2058
|
-
],
|
|
2059
|
-
...
|
|
2086
|
+
], De = [
|
|
2087
|
+
...Ae,
|
|
2060
2088
|
{
|
|
2061
2089
|
anonymous: !1,
|
|
2062
2090
|
inputs: [
|
|
@@ -3480,7 +3508,7 @@ const E = [
|
|
|
3480
3508
|
stateMutability: "payable",
|
|
3481
3509
|
type: "function"
|
|
3482
3510
|
}
|
|
3483
|
-
],
|
|
3511
|
+
], Ee = [
|
|
3484
3512
|
{ inputs: [], name: "ExternalCallerNotAllowed", type: "error" },
|
|
3485
3513
|
{
|
|
3486
3514
|
inputs: [{ internalType: "address", name: "asset", type: "address" }],
|
|
@@ -4128,7 +4156,17 @@ const E = [
|
|
|
4128
4156
|
stateMutability: "nonpayable",
|
|
4129
4157
|
type: "function"
|
|
4130
4158
|
}
|
|
4131
|
-
],
|
|
4159
|
+
], Ie = [
|
|
4160
|
+
{
|
|
4161
|
+
inputs: [{ internalType: "address", name: "_gmToken", type: "address" }],
|
|
4162
|
+
name: "getPrice",
|
|
4163
|
+
outputs: [
|
|
4164
|
+
{ internalType: "uint256", name: "price", type: "uint256" },
|
|
4165
|
+
{ internalType: "uint256", name: "updatedAt", type: "uint256" }
|
|
4166
|
+
],
|
|
4167
|
+
stateMutability: "view",
|
|
4168
|
+
type: "function"
|
|
4169
|
+
},
|
|
4132
4170
|
{
|
|
4133
4171
|
inputs: [
|
|
4134
4172
|
{
|
|
@@ -4158,68 +4196,69 @@ const E = [
|
|
|
4158
4196
|
stateMutability: "nonpayable",
|
|
4159
4197
|
type: "function"
|
|
4160
4198
|
}
|
|
4161
|
-
],
|
|
4162
|
-
[
|
|
4163
|
-
factory:
|
|
4164
|
-
easySwapperV2:
|
|
4165
|
-
aaveLendingPoolV3:
|
|
4166
|
-
limitOrder:
|
|
4167
|
-
ondoPriceOracle:
|
|
4199
|
+
], Nt = {
|
|
4200
|
+
[t.id]: {
|
|
4201
|
+
factory: w,
|
|
4202
|
+
easySwapperV2: O,
|
|
4203
|
+
aaveLendingPoolV3: h,
|
|
4204
|
+
limitOrder: g,
|
|
4205
|
+
ondoPriceOracle: de
|
|
4168
4206
|
},
|
|
4169
4207
|
[i.id]: {
|
|
4170
|
-
factory:
|
|
4171
|
-
aaveLendingPoolV2:
|
|
4172
|
-
aaveLendingPoolV3:
|
|
4173
|
-
easySwapperV2:
|
|
4174
|
-
limitOrder:
|
|
4208
|
+
factory: H,
|
|
4209
|
+
aaveLendingPoolV2: me,
|
|
4210
|
+
aaveLendingPoolV3: Y,
|
|
4211
|
+
easySwapperV2: G,
|
|
4212
|
+
limitOrder: K
|
|
4175
4213
|
},
|
|
4176
|
-
[
|
|
4177
|
-
factory:
|
|
4178
|
-
rewardDistribution:
|
|
4179
|
-
aaveLendingPoolV3:
|
|
4180
|
-
easySwapperV2:
|
|
4181
|
-
limitOrder:
|
|
4214
|
+
[a.id]: {
|
|
4215
|
+
factory: W,
|
|
4216
|
+
rewardDistribution: le,
|
|
4217
|
+
aaveLendingPoolV3: F,
|
|
4218
|
+
easySwapperV2: k,
|
|
4219
|
+
limitOrder: V
|
|
4182
4220
|
},
|
|
4183
4221
|
[s.id]: {
|
|
4184
|
-
factory:
|
|
4185
|
-
aaveLendingPoolV3:
|
|
4186
|
-
easySwapperV2:
|
|
4187
|
-
limitOrder:
|
|
4222
|
+
factory: v,
|
|
4223
|
+
aaveLendingPoolV3: C,
|
|
4224
|
+
easySwapperV2: P,
|
|
4225
|
+
limitOrder: L
|
|
4188
4226
|
},
|
|
4189
4227
|
[n.id]: {
|
|
4190
|
-
factory:
|
|
4191
|
-
flatcoinPointsModule:
|
|
4192
|
-
easySwapperV2:
|
|
4193
|
-
aaveLendingPoolV3:
|
|
4194
|
-
limitOrder:
|
|
4228
|
+
factory: N,
|
|
4229
|
+
flatcoinPointsModule: ue,
|
|
4230
|
+
easySwapperV2: x,
|
|
4231
|
+
aaveLendingPoolV3: B,
|
|
4232
|
+
limitOrder: U
|
|
4195
4233
|
},
|
|
4196
4234
|
[p.id]: {
|
|
4197
|
-
factory:
|
|
4198
|
-
easySwapperV2:
|
|
4199
|
-
limitOrder:
|
|
4235
|
+
factory: z,
|
|
4236
|
+
easySwapperV2: q,
|
|
4237
|
+
limitOrder: X
|
|
4200
4238
|
}
|
|
4201
|
-
},
|
|
4202
|
-
factory:
|
|
4239
|
+
}, xt = {
|
|
4240
|
+
factory: ce,
|
|
4203
4241
|
aaveLendingPoolV2: E,
|
|
4204
4242
|
aaveLendingPoolV3: E,
|
|
4205
|
-
rewardDistribution:
|
|
4206
|
-
poolManagerLogic:
|
|
4207
|
-
erc20:
|
|
4208
|
-
poolLogic:
|
|
4209
|
-
flatcoinPointsModule:
|
|
4210
|
-
easySwapperV2:
|
|
4211
|
-
limitOrder:
|
|
4212
|
-
ondoPriceOracle:
|
|
4213
|
-
},
|
|
4243
|
+
rewardDistribution: _e,
|
|
4244
|
+
poolManagerLogic: be,
|
|
4245
|
+
erc20: ne,
|
|
4246
|
+
poolLogic: Te,
|
|
4247
|
+
flatcoinPointsModule: fe,
|
|
4248
|
+
easySwapperV2: De,
|
|
4249
|
+
limitOrder: Ee,
|
|
4250
|
+
ondoPriceOracle: Ie
|
|
4251
|
+
}, Bt = "Gas estimate error occurred", Ut = "See console logs to report error details.", Wt = "Missing simulation params", Ft = "Simulation timeout", Se = "swap_data_deposit_error", Re = "swap_data_withdraw_error", Me = "SwapFailed", c = {
|
|
4214
4252
|
title: "Low Slippage",
|
|
4215
4253
|
hint: "Please increase slippage tolerance and try again."
|
|
4216
|
-
},
|
|
4217
|
-
"invalid liquidityMinted":
|
|
4218
|
-
"high
|
|
4219
|
-
"high
|
|
4220
|
-
"high
|
|
4221
|
-
|
|
4222
|
-
|
|
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]: {
|
|
4223
4262
|
title: "Oh no we couldn’t swap the assets",
|
|
4224
4263
|
hint: "Don’t worry your assets are still in your wallet."
|
|
4225
4264
|
},
|
|
@@ -4227,11 +4266,11 @@ const E = [
|
|
|
4227
4266
|
title: "Single Asset Withdrawal not available",
|
|
4228
4267
|
hint: "Please use All Assets option."
|
|
4229
4268
|
},
|
|
4230
|
-
[
|
|
4269
|
+
[Se]: {
|
|
4231
4270
|
title: "Oh no we couldn’t swap the assets",
|
|
4232
4271
|
hint: "Don’t worry your assets are still in your wallet."
|
|
4233
4272
|
},
|
|
4234
|
-
[
|
|
4273
|
+
[Re]: {
|
|
4235
4274
|
title: "Oh no we couldn’t swap the assets",
|
|
4236
4275
|
hint: "Don’t worry your assets are still in your wallet."
|
|
4237
4276
|
},
|
|
@@ -4363,14 +4402,14 @@ const E = [
|
|
|
4363
4402
|
title: "Maximum supply cap reached",
|
|
4364
4403
|
hint: "Cannot mint such amount of vault tokens as it would exceed the maximum supply cap."
|
|
4365
4404
|
}
|
|
4366
|
-
},
|
|
4405
|
+
}, Oe = "Invalid limit order prices", he = {
|
|
4367
4406
|
InvalidPrices: {
|
|
4368
|
-
title:
|
|
4407
|
+
title: Oe
|
|
4369
4408
|
}
|
|
4370
|
-
},
|
|
4371
|
-
...Object.keys(
|
|
4372
|
-
...Object.keys(
|
|
4373
|
-
],
|
|
4409
|
+
}, kt = [
|
|
4410
|
+
...Object.keys(we),
|
|
4411
|
+
...Object.keys(he)
|
|
4412
|
+
], Z = {
|
|
4374
4413
|
address: "0xff970a61a04b1ca14834a43f5de4533ebddb5cc8",
|
|
4375
4414
|
symbol: "USDCe",
|
|
4376
4415
|
decimals: 6,
|
|
@@ -4385,62 +4424,62 @@ const E = [
|
|
|
4385
4424
|
symbol: "WETH",
|
|
4386
4425
|
decimals: e,
|
|
4387
4426
|
value: ""
|
|
4388
|
-
},
|
|
4427
|
+
}, T = {
|
|
4389
4428
|
address: "0x2f2a2543b76a4166549f7aab2e75bef0aefc5b0f",
|
|
4390
4429
|
symbol: "WBTC",
|
|
4391
4430
|
decimals: 8,
|
|
4392
4431
|
value: ""
|
|
4393
|
-
},
|
|
4432
|
+
}, Vt = {
|
|
4394
4433
|
address: "0x6c84a8f1c29108F47a79964b5Fe888D4f4D0dE40",
|
|
4395
4434
|
symbol: "tBTC",
|
|
4396
4435
|
decimals: e,
|
|
4397
4436
|
value: ""
|
|
4398
|
-
},
|
|
4437
|
+
}, Ht = {
|
|
4399
4438
|
address: "0x5979D7b546E38E414F7E9822514be443A4800529",
|
|
4400
4439
|
symbol: "wstETH",
|
|
4401
4440
|
decimals: e,
|
|
4402
4441
|
value: ""
|
|
4403
|
-
},
|
|
4442
|
+
}, Yt = {
|
|
4404
4443
|
address: "0xfd086bc7cd5c481dcc9c85ebe478a1c0b69fcbb9",
|
|
4405
4444
|
symbol: "USDT",
|
|
4406
4445
|
decimals: 6,
|
|
4407
4446
|
value: ""
|
|
4408
|
-
},
|
|
4447
|
+
}, Gt = {
|
|
4409
4448
|
address: "0x2bcC6D6CdBbDC0a4071e48bb3B969b06B3330c07",
|
|
4410
4449
|
symbol: "SOL",
|
|
4411
4450
|
decimals: 9,
|
|
4412
4451
|
value: ""
|
|
4413
|
-
},
|
|
4452
|
+
}, Kt = {
|
|
4414
4453
|
address: "0xa9004a5421372e1d83fb1f85b0fc986c912f91f3",
|
|
4415
4454
|
symbol: "WBNB",
|
|
4416
4455
|
decimals: e,
|
|
4417
4456
|
value: ""
|
|
4418
|
-
},
|
|
4457
|
+
}, zt = {
|
|
4419
4458
|
address: "0xf97f4df75117a78c1a5a0dbb814af92458539fb4",
|
|
4420
4459
|
symbol: "LINK",
|
|
4421
4460
|
decimals: e,
|
|
4422
4461
|
value: ""
|
|
4423
|
-
},
|
|
4462
|
+
}, ge = {
|
|
4424
4463
|
address: "0x833589fcd6edb6e08f4c7c32d4f71b54bda02913",
|
|
4425
4464
|
symbol: "USDC",
|
|
4426
4465
|
decimals: 6,
|
|
4427
4466
|
value: ""
|
|
4428
|
-
},
|
|
4467
|
+
}, qt = {
|
|
4429
4468
|
address: "0xd9aaec86b65d86f6a7b5b1b0c42ffa531710b6ca",
|
|
4430
4469
|
symbol: "USDbC",
|
|
4431
4470
|
decimals: 6,
|
|
4432
4471
|
value: ""
|
|
4433
|
-
},
|
|
4472
|
+
}, $ = {
|
|
4434
4473
|
address: "0x4200000000000000000000000000000000000006",
|
|
4435
4474
|
symbol: "WETH",
|
|
4436
4475
|
decimals: e,
|
|
4437
4476
|
value: ""
|
|
4438
|
-
},
|
|
4477
|
+
}, Xt = {
|
|
4439
4478
|
address: "0x2ae3f1ec7f1f5012cfeab0185bfc7aa3cf0dec22",
|
|
4440
4479
|
symbol: "cbETH",
|
|
4441
4480
|
decimals: e,
|
|
4442
4481
|
value: ""
|
|
4443
|
-
},
|
|
4482
|
+
}, ve = {
|
|
4444
4483
|
address: "0xcbb7c0000ab88b473b1f5afd9ef808440eed33bf",
|
|
4445
4484
|
symbol: "cbBTC",
|
|
4446
4485
|
decimals: 8,
|
|
@@ -4450,237 +4489,212 @@ const E = [
|
|
|
4450
4489
|
symbol: "rETH",
|
|
4451
4490
|
decimals: e,
|
|
4452
4491
|
value: ""
|
|
4453
|
-
},
|
|
4492
|
+
}, Zt = {
|
|
4454
4493
|
address: "0x236aa50979D5f3De3Bd1Eeb40E81137F22ab794b",
|
|
4455
4494
|
symbol: "tBTC",
|
|
4456
4495
|
decimals: e,
|
|
4457
4496
|
value: ""
|
|
4458
|
-
},
|
|
4497
|
+
}, $t = {
|
|
4459
4498
|
address: "0xc1cba3fcea344f92d9239c08c0568f6f2f0ee452",
|
|
4460
4499
|
symbol: "wstETH",
|
|
4461
4500
|
decimals: e,
|
|
4462
4501
|
value: ""
|
|
4463
|
-
},
|
|
4502
|
+
}, j = {
|
|
4464
4503
|
address: "0x7F5c764cBc14f9669B88837ca1490cCa17c31607",
|
|
4465
4504
|
symbol: "USDCe",
|
|
4466
4505
|
decimals: 6,
|
|
4467
4506
|
value: ""
|
|
4468
|
-
},
|
|
4507
|
+
}, Ce = {
|
|
4469
4508
|
address: "0x0b2C639c533813f4Aa9D7837CAf62653d097Ff85",
|
|
4470
4509
|
symbol: "USDC",
|
|
4471
4510
|
decimals: 6,
|
|
4472
4511
|
value: ""
|
|
4473
|
-
},
|
|
4512
|
+
}, Pe = {
|
|
4474
4513
|
address: "0x94b008aa00579c1307b0ef2c499ad98a8ce58e58",
|
|
4475
4514
|
symbol: "USDT",
|
|
4476
4515
|
decimals: 6,
|
|
4477
4516
|
value: ""
|
|
4478
|
-
},
|
|
4517
|
+
}, Q = {
|
|
4479
4518
|
address: "0x4200000000000000000000000000000000000006",
|
|
4480
4519
|
symbol: "WETH",
|
|
4481
4520
|
decimals: e,
|
|
4482
4521
|
value: ""
|
|
4483
|
-
},
|
|
4522
|
+
}, jt = {
|
|
4484
4523
|
address: "0x8c6f28f2F1A3C87F0f938b96d27520d9751ec8d9",
|
|
4485
4524
|
symbol: "sUSD",
|
|
4486
4525
|
decimals: e,
|
|
4487
4526
|
value: ""
|
|
4488
|
-
},
|
|
4527
|
+
}, Le = {
|
|
4489
4528
|
address: "0xda10009cbd5d07dd0cecc66161fc93d7c9000da1",
|
|
4490
4529
|
symbol: "DAI",
|
|
4491
4530
|
decimals: e,
|
|
4492
4531
|
value: ""
|
|
4493
|
-
},
|
|
4532
|
+
}, _ = {
|
|
4494
4533
|
address: "0x68f180fcce6836688e9084f035309e29bf0a2095",
|
|
4495
4534
|
symbol: "WBTC",
|
|
4496
4535
|
decimals: 8,
|
|
4497
4536
|
value: ""
|
|
4498
|
-
},
|
|
4537
|
+
}, Qt = {
|
|
4499
4538
|
address: "0xe405de8f52ba7559f9df3c368500b6e6ae6cee49",
|
|
4500
4539
|
symbol: "sETH",
|
|
4501
4540
|
decimals: e,
|
|
4502
4541
|
value: ""
|
|
4503
|
-
},
|
|
4542
|
+
}, Jt = {
|
|
4504
4543
|
address: "0x350a791bfc2c21f9ed5d10980dad2e2638ffa7f6",
|
|
4505
4544
|
symbol: "LINK",
|
|
4506
4545
|
decimals: e,
|
|
4507
4546
|
value: ""
|
|
4508
|
-
},
|
|
4547
|
+
}, ea = {
|
|
4509
4548
|
address: "0x6c84a8f1c29108F47a79964b5Fe888D4f4D0dE40",
|
|
4510
4549
|
symbol: "tBTC",
|
|
4511
4550
|
decimals: e,
|
|
4512
4551
|
value: ""
|
|
4513
|
-
},
|
|
4552
|
+
}, ta = {
|
|
4514
4553
|
address: "0x1F32b1c2345538c0c6f582fCB022739c4A194Ebb",
|
|
4515
4554
|
symbol: "wstETH",
|
|
4516
4555
|
decimals: e,
|
|
4517
4556
|
value: ""
|
|
4518
|
-
},
|
|
4557
|
+
}, J = {
|
|
4519
4558
|
address: "0x7ceB23fD6bC0adD59E62ac25578270cFf1b9f619",
|
|
4520
4559
|
symbol: "WETH",
|
|
4521
4560
|
decimals: e,
|
|
4522
4561
|
value: ""
|
|
4523
|
-
},
|
|
4562
|
+
}, ee = {
|
|
4524
4563
|
address: "0x2791Bca1f2de4661ED88A30C99A7a9449Aa84174",
|
|
4525
4564
|
symbol: "USDCe",
|
|
4526
4565
|
decimals: 6,
|
|
4527
4566
|
value: ""
|
|
4528
|
-
},
|
|
4567
|
+
}, Ne = {
|
|
4529
4568
|
address: "0x3c499c542cEF5E3811e1192ce70d8cC03d5c3359",
|
|
4530
4569
|
symbol: "USDC",
|
|
4531
4570
|
decimals: 6,
|
|
4532
4571
|
value: ""
|
|
4533
|
-
},
|
|
4572
|
+
}, aa = {
|
|
4534
4573
|
address: "0x553d3d295e0f695b9228246232edf400ed3560b5",
|
|
4535
4574
|
symbol: "PAXG",
|
|
4536
4575
|
decimals: e,
|
|
4537
4576
|
value: ""
|
|
4538
|
-
},
|
|
4577
|
+
}, te = {
|
|
4539
4578
|
address: "0x1BFD67037B42Cf73acF2047067bd4F2C47D9BfD6",
|
|
4540
4579
|
symbol: "WBTC",
|
|
4541
4580
|
decimals: 8,
|
|
4542
4581
|
value: ""
|
|
4543
|
-
},
|
|
4582
|
+
}, xe = {
|
|
4544
4583
|
address: "0x0d500B1d8E8eF31E21C99d1Db9A6444d3ADf1270",
|
|
4545
4584
|
symbol: "WPOL",
|
|
4546
4585
|
decimals: e,
|
|
4547
4586
|
value: ""
|
|
4548
|
-
},
|
|
4587
|
+
}, Be = {
|
|
4549
4588
|
address: "0xc2132d05d31c914a87c6611c10748aeb04b58e8f",
|
|
4550
4589
|
symbol: "USDT",
|
|
4551
4590
|
decimals: 6,
|
|
4552
4591
|
value: ""
|
|
4553
|
-
},
|
|
4592
|
+
}, Ue = {
|
|
4554
4593
|
address: "0x8f3cf7ad23cd3cadbd9735aff958023239c6a063",
|
|
4555
4594
|
symbol: "DAI",
|
|
4556
4595
|
decimals: e,
|
|
4557
4596
|
value: ""
|
|
4558
|
-
},
|
|
4597
|
+
}, na = {
|
|
4559
4598
|
address: "0x236aa50979d5f3de3bd1eeb40e81137f22ab794b",
|
|
4560
4599
|
symbol: "tBTC",
|
|
4561
4600
|
decimals: e,
|
|
4562
4601
|
value: ""
|
|
4563
|
-
},
|
|
4564
|
-
address: "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2",
|
|
4565
|
-
symbol: "WETH",
|
|
4566
|
-
decimals: e,
|
|
4567
|
-
value: ""
|
|
4568
|
-
}, xe = {
|
|
4569
|
-
address: "0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48",
|
|
4570
|
-
symbol: "USDC",
|
|
4571
|
-
decimals: 6,
|
|
4572
|
-
value: ""
|
|
4573
|
-
}, ee = {
|
|
4574
|
-
address: "0x2260fac5e5542a773aa44fbcfedf7c193bc2c599",
|
|
4575
|
-
symbol: "WBTC",
|
|
4576
|
-
decimals: 8,
|
|
4577
|
-
value: ""
|
|
4578
|
-
}, Ne = {
|
|
4579
|
-
address: "0xdac17f958d2ee523a2206206994597c13d831ec7",
|
|
4580
|
-
symbol: "USDT",
|
|
4581
|
-
decimals: 6,
|
|
4582
|
-
value: ""
|
|
4583
|
-
}, ea = {
|
|
4584
|
-
address: "0x68749665ff8d2d112fa859aa293f07a622782f38",
|
|
4585
|
-
symbol: "XAUt",
|
|
4586
|
-
decimals: 6,
|
|
4587
|
-
value: ""
|
|
4588
|
-
}, Be = {
|
|
4602
|
+
}, We = {
|
|
4589
4603
|
address: "0xb88339cb7199b77e23db6e890353e22632ba630f",
|
|
4590
4604
|
symbol: "USDC",
|
|
4591
4605
|
decimals: 6,
|
|
4592
4606
|
value: ""
|
|
4593
|
-
},
|
|
4607
|
+
}, sa = {
|
|
4594
4608
|
address: I,
|
|
4595
4609
|
symbol: "all",
|
|
4596
4610
|
decimals: e,
|
|
4597
4611
|
value: ""
|
|
4598
|
-
}, aa = {
|
|
4599
|
-
[z.address.toLowerCase()]: "USDCe",
|
|
4600
|
-
[X.address.toLowerCase()]: "USDCe",
|
|
4601
|
-
[j.address.toLowerCase()]: "USDCe"
|
|
4602
|
-
}, na = {
|
|
4603
|
-
[a.id]: J,
|
|
4604
|
-
[t.id]: Z,
|
|
4605
|
-
[n.id]: q,
|
|
4606
|
-
[i.id]: $,
|
|
4607
|
-
[s.id]: A
|
|
4608
|
-
}, sa = {
|
|
4609
|
-
[t.id]: f,
|
|
4610
|
-
[n.id]: we,
|
|
4611
|
-
[i.id]: Q,
|
|
4612
|
-
[s.id]: c,
|
|
4613
|
-
[a.id]: ee
|
|
4614
4612
|
}, ia = {
|
|
4615
|
-
[
|
|
4616
|
-
|
|
4617
|
-
|
|
4618
|
-
|
|
4619
|
-
|
|
4620
|
-
|
|
4621
|
-
|
|
4622
|
-
|
|
4623
|
-
[
|
|
4624
|
-
|
|
4625
|
-
|
|
4626
|
-
|
|
4627
|
-
|
|
4613
|
+
[Z.address.toLowerCase()]: "USDCe",
|
|
4614
|
+
[j.address.toLowerCase()]: "USDCe",
|
|
4615
|
+
[ee.address.toLowerCase()]: "USDCe"
|
|
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,
|
|
4626
|
+
[s.id]: T,
|
|
4627
|
+
[t.id]: M
|
|
4628
|
+
}, da = {
|
|
4629
|
+
[a.id]: {
|
|
4630
|
+
WETH: Q,
|
|
4631
|
+
USDC: Ce,
|
|
4632
|
+
WBTC: _,
|
|
4628
4633
|
USDCe: j,
|
|
4629
4634
|
USDT: Pe,
|
|
4630
4635
|
DAI: Le
|
|
4631
4636
|
},
|
|
4637
|
+
[i.id]: {
|
|
4638
|
+
WMATIC: xe,
|
|
4639
|
+
WETH: J,
|
|
4640
|
+
USDC: Ne,
|
|
4641
|
+
WBTC: te,
|
|
4642
|
+
USDCe: ee,
|
|
4643
|
+
USDT: Be,
|
|
4644
|
+
DAI: Ue
|
|
4645
|
+
},
|
|
4632
4646
|
[s.id]: {
|
|
4633
4647
|
WETH: A,
|
|
4634
4648
|
USDC: o,
|
|
4635
|
-
WBTC:
|
|
4636
|
-
USDCe:
|
|
4649
|
+
WBTC: T,
|
|
4650
|
+
USDCe: Z
|
|
4637
4651
|
},
|
|
4638
4652
|
[n.id]: {
|
|
4639
|
-
WETH:
|
|
4640
|
-
USDC:
|
|
4653
|
+
WETH: $,
|
|
4654
|
+
USDC: ge
|
|
4641
4655
|
},
|
|
4642
|
-
[
|
|
4643
|
-
WETH:
|
|
4644
|
-
USDC:
|
|
4645
|
-
WBTC:
|
|
4646
|
-
USDT:
|
|
4656
|
+
[t.id]: {
|
|
4657
|
+
WETH: S,
|
|
4658
|
+
USDC: R,
|
|
4659
|
+
WBTC: M,
|
|
4660
|
+
USDT: re
|
|
4647
4661
|
}
|
|
4648
|
-
},
|
|
4649
|
-
[p.id]:
|
|
4650
|
-
},
|
|
4662
|
+
}, oa = {
|
|
4663
|
+
[p.id]: We
|
|
4664
|
+
}, ya = "https://hermes.pyth.network", ua = "https://flat.money/flatcoin", la = "https://v1.flat.money/flatcoin", f = {
|
|
4651
4665
|
RETH_BASE: "0xdb0cd65dcc7fe07003ce1201f91e1f966fa95768",
|
|
4652
4666
|
WBTC_OPTIMISM: "0x6d857e9d24a7566bb72a3fb0847a3e0e4e1c2879",
|
|
4653
4667
|
WBTC_ARBITRUM: "0xb1353d51991e79fefd4bfdba2a03e9f0232814a6"
|
|
4654
|
-
},
|
|
4655
|
-
|
|
4656
|
-
),
|
|
4657
|
-
[
|
|
4668
|
+
}, ma = Object.values(
|
|
4669
|
+
f
|
|
4670
|
+
), ca = {
|
|
4671
|
+
[f.RETH_BASE]: {
|
|
4658
4672
|
symbol: D.symbol,
|
|
4659
4673
|
decimals: D.decimals,
|
|
4660
4674
|
address: D.address
|
|
4661
4675
|
},
|
|
4662
|
-
[
|
|
4663
|
-
symbol:
|
|
4664
|
-
decimals:
|
|
4665
|
-
address:
|
|
4676
|
+
[f.WBTC_OPTIMISM]: {
|
|
4677
|
+
symbol: _.symbol,
|
|
4678
|
+
decimals: _.decimals,
|
|
4679
|
+
address: _.address
|
|
4666
4680
|
},
|
|
4667
|
-
[
|
|
4668
|
-
symbol:
|
|
4669
|
-
decimals:
|
|
4670
|
-
address:
|
|
4681
|
+
[f.WBTC_ARBITRUM]: {
|
|
4682
|
+
symbol: T.symbol,
|
|
4683
|
+
decimals: T.decimals,
|
|
4684
|
+
address: T.address
|
|
4671
4685
|
}
|
|
4672
|
-
},
|
|
4673
|
-
|
|
4686
|
+
}, Fe = "0xb95fb324b8a2faf8ec4f76e3df46c718402736e2", Ta = [
|
|
4687
|
+
Fe,
|
|
4674
4688
|
"0x357cb23571ef7a3d6189b7facfc361ea71f7cab5"
|
|
4675
4689
|
// WBTC_OPTIMISM
|
|
4676
|
-
],
|
|
4690
|
+
], ba = 500n, _a = {
|
|
4677
4691
|
[n.id]: 2e3,
|
|
4678
|
-
[a.id]: 2e3,
|
|
4679
4692
|
[t.id]: 2e3,
|
|
4693
|
+
[a.id]: 2e3,
|
|
4680
4694
|
[s.id]: 500,
|
|
4681
4695
|
[i.id]: 500,
|
|
4682
4696
|
[p.id]: 500
|
|
4683
|
-
},
|
|
4697
|
+
}, fa = 6e3, Aa = 4e4, Da = 0.2, Ea = 6e3, Ia = 8e3, Sa = {
|
|
4684
4698
|
DEPOSIT: "deposit",
|
|
4685
4699
|
DEPOSIT_CUSTOM: "depositWithCustomCooldown",
|
|
4686
4700
|
NATIVE: "nativeDeposit",
|
|
@@ -4689,7 +4703,7 @@ const E = [
|
|
|
4689
4703
|
ZAP_NATIVE_DEPOSIT_CUSTOM: "zapNativeDepositWithCustomCooldown",
|
|
4690
4704
|
ZAP_DEPOSIT: "zapDeposit",
|
|
4691
4705
|
ZAP_DEPOSIT_CUSTOM: "zapDepositWithCustomCooldown"
|
|
4692
|
-
},
|
|
4706
|
+
}, Ra = [
|
|
4693
4707
|
"multi_withdraw",
|
|
4694
4708
|
"swap",
|
|
4695
4709
|
"claim",
|
|
@@ -4710,11 +4724,11 @@ const E = [
|
|
|
4710
4724
|
PUMP_ARBITRUM: "0x4c0bb704529fa49a26bd854802d70206982c6f1b",
|
|
4711
4725
|
GOLD_ARBITRUM: "0xeb28ad1a2e497f4acc5d9b87e7b496623c93061e",
|
|
4712
4726
|
AAVE_ARBITRUM: "0x1cbba6346f110c8a5ea739ef2d1eb182990e4eb2"
|
|
4713
|
-
},
|
|
4727
|
+
}, Ma = Object.values(
|
|
4714
4728
|
r
|
|
4715
|
-
),
|
|
4729
|
+
), wa = {
|
|
4716
4730
|
[r.SOL_ARBITRUM]: o,
|
|
4717
|
-
[r.BTC_ARBITRUM]:
|
|
4731
|
+
[r.BTC_ARBITRUM]: T,
|
|
4718
4732
|
[r.WETH_WETH_ARBITRUM]: A,
|
|
4719
4733
|
[r.WETH_USDC_ARBITRUM]: A,
|
|
4720
4734
|
[r.SUI_ARBITRUM]: o,
|
|
@@ -4728,148 +4742,154 @@ const E = [
|
|
|
4728
4742
|
[r.BNB_WBTC_USDC_ARBITRUM]: o,
|
|
4729
4743
|
[r.GOLD_ARBITRUM]: o,
|
|
4730
4744
|
[r.AAVE_ARBITRUM]: o
|
|
4731
|
-
},
|
|
4745
|
+
}, Oa = {
|
|
4732
4746
|
"0x9a916e55f5b67226734cd7b465d51bce1d11a89a": o
|
|
4733
4747
|
// USDmny Arbitrum
|
|
4734
4748
|
};
|
|
4735
4749
|
export {
|
|
4736
|
-
|
|
4737
|
-
|
|
4738
|
-
|
|
4739
|
-
|
|
4740
|
-
|
|
4741
|
-
|
|
4742
|
-
|
|
4743
|
-
|
|
4744
|
-
|
|
4745
|
-
|
|
4746
|
-
|
|
4747
|
-
|
|
4748
|
-
|
|
4749
|
-
|
|
4750
|
-
|
|
4751
|
-
|
|
4752
|
-
|
|
4753
|
-
|
|
4754
|
-
|
|
4755
|
-
|
|
4756
|
-
|
|
4757
|
-
|
|
4750
|
+
ut as $,
|
|
4751
|
+
At as A,
|
|
4752
|
+
ia as B,
|
|
4753
|
+
bt as C,
|
|
4754
|
+
ie as D,
|
|
4755
|
+
dt as E,
|
|
4756
|
+
pt as F,
|
|
4757
|
+
rt as G,
|
|
4758
|
+
je as H,
|
|
4759
|
+
Ze as I,
|
|
4760
|
+
Ke as J,
|
|
4761
|
+
Xe as K,
|
|
4762
|
+
da as L,
|
|
4763
|
+
ca as M,
|
|
4764
|
+
ma as N,
|
|
4765
|
+
Ta as O,
|
|
4766
|
+
ua as P,
|
|
4767
|
+
Fe as Q,
|
|
4768
|
+
la as R,
|
|
4769
|
+
Bt as S,
|
|
4770
|
+
yt as T,
|
|
4771
|
+
Ma as U,
|
|
4758
4772
|
r as V,
|
|
4759
|
-
|
|
4760
|
-
|
|
4761
|
-
|
|
4762
|
-
|
|
4763
|
-
|
|
4764
|
-
|
|
4765
|
-
|
|
4766
|
-
|
|
4767
|
-
|
|
4768
|
-
|
|
4769
|
-
|
|
4770
|
-
|
|
4771
|
-
|
|
4772
|
-
|
|
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
|
-
|
|
4773
|
+
wa as W,
|
|
4774
|
+
Oa as X,
|
|
4775
|
+
Oe as Y,
|
|
4776
|
+
he as Z,
|
|
4777
|
+
St as _,
|
|
4778
|
+
se as a,
|
|
4779
|
+
D as a$,
|
|
4780
|
+
ft as a0,
|
|
4781
|
+
sa as a1,
|
|
4782
|
+
Ye as a2,
|
|
4783
|
+
ot as a3,
|
|
4784
|
+
Ea as a4,
|
|
4785
|
+
fa as a5,
|
|
4786
|
+
Ia as a6,
|
|
4787
|
+
Aa as a7,
|
|
4788
|
+
Da as a8,
|
|
4789
|
+
oa as a9,
|
|
4790
|
+
Ce as aA,
|
|
4791
|
+
ge as aB,
|
|
4792
|
+
o as aC,
|
|
4793
|
+
ce as aD,
|
|
4794
|
+
Te as aE,
|
|
4795
|
+
De as aF,
|
|
4796
|
+
be as aG,
|
|
4797
|
+
fe as aH,
|
|
4798
|
+
Ie as aI,
|
|
4799
|
+
oe as aJ,
|
|
4800
|
+
Mt as aK,
|
|
4801
|
+
ht as aL,
|
|
4802
|
+
Ct as aM,
|
|
4803
|
+
re as aN,
|
|
4804
|
+
Ee as aO,
|
|
4805
|
+
wt as aP,
|
|
4806
|
+
E as aQ,
|
|
4807
|
+
Z as aR,
|
|
4808
|
+
j as aS,
|
|
4809
|
+
ee as aT,
|
|
4810
|
+
ve as aU,
|
|
4811
|
+
Xt as aV,
|
|
4812
|
+
Le as aW,
|
|
4813
|
+
Ue as aX,
|
|
4814
|
+
zt as aY,
|
|
4815
|
+
Jt as aZ,
|
|
4816
|
+
aa as a_,
|
|
4817
|
+
ya as aa,
|
|
4818
|
+
qe as ab,
|
|
4819
|
+
Ft as ac,
|
|
4820
|
+
st as ad,
|
|
4807
4821
|
It as ae,
|
|
4808
|
-
|
|
4809
|
-
|
|
4810
|
-
|
|
4811
|
-
|
|
4812
|
-
|
|
4813
|
-
|
|
4814
|
-
|
|
4815
|
-
|
|
4816
|
-
|
|
4817
|
-
|
|
4818
|
-
|
|
4819
|
-
|
|
4820
|
-
|
|
4821
|
-
|
|
4822
|
-
|
|
4823
|
-
|
|
4824
|
-
|
|
4825
|
-
|
|
4826
|
-
|
|
4827
|
-
|
|
4828
|
-
|
|
4829
|
-
|
|
4830
|
-
|
|
4831
|
-
|
|
4832
|
-
|
|
4833
|
-
|
|
4834
|
-
|
|
4835
|
-
|
|
4836
|
-
|
|
4837
|
-
|
|
4838
|
-
|
|
4839
|
-
|
|
4840
|
-
|
|
4841
|
-
|
|
4842
|
-
|
|
4843
|
-
|
|
4844
|
-
|
|
4845
|
-
|
|
4846
|
-
|
|
4847
|
-
|
|
4848
|
-
|
|
4849
|
-
|
|
4850
|
-
|
|
4851
|
-
|
|
4852
|
-
|
|
4853
|
-
|
|
4854
|
-
$
|
|
4855
|
-
|
|
4856
|
-
|
|
4857
|
-
|
|
4858
|
-
|
|
4822
|
+
Me as af,
|
|
4823
|
+
ct as ag,
|
|
4824
|
+
Rt as ah,
|
|
4825
|
+
d as ai,
|
|
4826
|
+
we as aj,
|
|
4827
|
+
kt as ak,
|
|
4828
|
+
_a as al,
|
|
4829
|
+
ra as am,
|
|
4830
|
+
pa as an,
|
|
4831
|
+
Re as ao,
|
|
4832
|
+
xt as ap,
|
|
4833
|
+
Nt as aq,
|
|
4834
|
+
I as ar,
|
|
4835
|
+
Pt as as,
|
|
4836
|
+
Lt as at,
|
|
4837
|
+
e as au,
|
|
4838
|
+
gt as av,
|
|
4839
|
+
vt as aw,
|
|
4840
|
+
We as ax,
|
|
4841
|
+
R as ay,
|
|
4842
|
+
Ne as az,
|
|
4843
|
+
_t as b,
|
|
4844
|
+
_e as b0,
|
|
4845
|
+
Qt as b1,
|
|
4846
|
+
jt as b2,
|
|
4847
|
+
Vt as b3,
|
|
4848
|
+
Zt as b4,
|
|
4849
|
+
ea as b5,
|
|
4850
|
+
na as b6,
|
|
4851
|
+
qt as b7,
|
|
4852
|
+
Yt as b8,
|
|
4853
|
+
Pe as b9,
|
|
4854
|
+
Be as ba,
|
|
4855
|
+
Kt as bb,
|
|
4856
|
+
T as bc,
|
|
4857
|
+
M as bd,
|
|
4858
|
+
_ as be,
|
|
4859
|
+
te as bf,
|
|
4860
|
+
A as bg,
|
|
4861
|
+
$ as bh,
|
|
4862
|
+
S as bi,
|
|
4863
|
+
Q as bj,
|
|
4864
|
+
J as bk,
|
|
4865
|
+
xe as bl,
|
|
4866
|
+
Gt as bm,
|
|
4867
|
+
Ht as bn,
|
|
4868
|
+
$t as bo,
|
|
4869
|
+
ta as bp,
|
|
4870
|
+
Ot as bq,
|
|
4871
|
+
Ra as c,
|
|
4872
|
+
Et as d,
|
|
4873
|
+
Dt as e,
|
|
4874
|
+
Qe as f,
|
|
4875
|
+
pe as g,
|
|
4876
|
+
nt as h,
|
|
4877
|
+
Ut as i,
|
|
4878
|
+
$e as j,
|
|
4859
4879
|
m as k,
|
|
4860
|
-
|
|
4861
|
-
|
|
4862
|
-
|
|
4863
|
-
|
|
4864
|
-
|
|
4880
|
+
it as l,
|
|
4881
|
+
Tt as m,
|
|
4882
|
+
et as n,
|
|
4883
|
+
ba as o,
|
|
4884
|
+
ze as p,
|
|
4865
4885
|
l as q,
|
|
4866
|
-
|
|
4867
|
-
|
|
4868
|
-
|
|
4869
|
-
|
|
4870
|
-
|
|
4871
|
-
|
|
4872
|
-
|
|
4873
|
-
|
|
4874
|
-
|
|
4886
|
+
lt as r,
|
|
4887
|
+
tt as s,
|
|
4888
|
+
Wt as t,
|
|
4889
|
+
at as u,
|
|
4890
|
+
Ge as v,
|
|
4891
|
+
mt as w,
|
|
4892
|
+
Je as x,
|
|
4893
|
+
Se as y,
|
|
4894
|
+
Sa as z
|
|
4875
4895
|
};
|