@strkfarm/sdk 1.1.3 → 1.1.5
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/dist/index.browser.global.js +263 -117
- package/dist/index.browser.mjs +210 -66
- package/dist/index.d.ts +6 -1
- package/dist/index.js +213 -71
- package/dist/index.mjs +213 -71
- package/package.json +1 -1
- package/src/global.ts +24 -1
- package/src/interfaces/common.tsx +1 -0
- package/src/interfaces/risks.ts +175 -0
- package/src/notifs/telegram.ts +3 -3
- package/src/strategies/ekubo-cl-vault.tsx +201 -71
package/dist/index.js
CHANGED
|
@@ -263,7 +263,8 @@ var defaultTokens = [{
|
|
|
263
263
|
address: ContractAddr.from("0x4718f5a0fc34cc1af16a1cdee98ffb20c31f5cd61d6ab07201858f4287c938d"),
|
|
264
264
|
decimals: 18,
|
|
265
265
|
coingeckId: "starknet",
|
|
266
|
-
displayDecimals: 2
|
|
266
|
+
displayDecimals: 2,
|
|
267
|
+
priceCheckAmount: 1e3
|
|
267
268
|
}, {
|
|
268
269
|
name: "xSTRK",
|
|
269
270
|
symbol: "xSTRK",
|
|
@@ -271,6 +272,7 @@ var defaultTokens = [{
|
|
|
271
272
|
address: ContractAddr.from("0x028d709c875c0ceac3dce7065bec5328186dc89fe254527084d1689910954b0a"),
|
|
272
273
|
decimals: 18,
|
|
273
274
|
coingeckId: void 0,
|
|
275
|
+
priceCheckAmount: 1e3,
|
|
274
276
|
displayDecimals: 2
|
|
275
277
|
}, {
|
|
276
278
|
name: "ETH",
|
|
@@ -279,6 +281,7 @@ var defaultTokens = [{
|
|
|
279
281
|
address: ContractAddr.from("0x49d36570d4e46f48e99674bd3fcc84644ddd6b96f7c741b1562b82f9e004dc7"),
|
|
280
282
|
decimals: 18,
|
|
281
283
|
coingeckId: void 0,
|
|
284
|
+
priceCheckAmount: 0.1,
|
|
282
285
|
displayDecimals: 6
|
|
283
286
|
}, {
|
|
284
287
|
name: "USDC",
|
|
@@ -287,7 +290,8 @@ var defaultTokens = [{
|
|
|
287
290
|
address: ContractAddr.from("0x53c91253bc9682c04929ca02ed00b3e423f6710d2ee7e0d5ebb06f3ecf368a8"),
|
|
288
291
|
decimals: 6,
|
|
289
292
|
coingeckId: void 0,
|
|
290
|
-
displayDecimals: 2
|
|
293
|
+
displayDecimals: 2,
|
|
294
|
+
priceCheckAmount: 1e3
|
|
291
295
|
}, {
|
|
292
296
|
name: "USDT",
|
|
293
297
|
symbol: "USDT",
|
|
@@ -295,12 +299,13 @@ var defaultTokens = [{
|
|
|
295
299
|
address: ContractAddr.from("0x68f5c6a61780768455de69077e07e89787839bf8166decfbf92b645209c0fb8"),
|
|
296
300
|
decimals: 6,
|
|
297
301
|
coingeckId: void 0,
|
|
302
|
+
priceCheckAmount: 1e3,
|
|
298
303
|
displayDecimals: 2
|
|
299
304
|
}, {
|
|
300
305
|
name: "WBTC",
|
|
301
306
|
symbol: "WBTC",
|
|
302
307
|
logo: "https://assets.troves.fi/integrations/tokens/wbtc.svg",
|
|
303
|
-
address: ContractAddr.from("
|
|
308
|
+
address: ContractAddr.from("0x03fe2b97c1fd336e750087d68b9b867997fd64a2661ff3ca5a7c771641e8e7ac"),
|
|
304
309
|
decimals: 8,
|
|
305
310
|
coingeckId: void 0,
|
|
306
311
|
displayDecimals: 6,
|
|
@@ -316,6 +321,26 @@ var defaultTokens = [{
|
|
|
316
321
|
displayDecimals: 6,
|
|
317
322
|
priceCheckAmount: 1e-4
|
|
318
323
|
// 112000 * 0.0001 = $11.2
|
|
324
|
+
}, {
|
|
325
|
+
name: "solvBTC",
|
|
326
|
+
symbol: "solvBTC",
|
|
327
|
+
logo: "https://assets.strkfarm.com/integrations/tokens/solvbtc.svg",
|
|
328
|
+
address: ContractAddr.from("0x0593e034dda23eea82d2ba9a30960ed42cf4a01502cc2351dc9b9881f9931a68"),
|
|
329
|
+
decimals: 18,
|
|
330
|
+
coingeckId: void 0,
|
|
331
|
+
displayDecimals: 6,
|
|
332
|
+
priceCheckAmount: 1e-4
|
|
333
|
+
// 112000 * 0.0001 = $11.2
|
|
334
|
+
}, {
|
|
335
|
+
name: "LBTC",
|
|
336
|
+
symbol: "LBTC",
|
|
337
|
+
logo: "https://assets.strkfarm.com/integrations/tokens/lbtc.svg",
|
|
338
|
+
address: ContractAddr.from("0x036834a40984312f7f7de8d31e3f6305b325389eaeea5b1c0664b2fb936461a4"),
|
|
339
|
+
decimals: 8,
|
|
340
|
+
coingeckId: void 0,
|
|
341
|
+
displayDecimals: 6,
|
|
342
|
+
priceCheckAmount: 1e-4
|
|
343
|
+
// 112000 * 0.0001 = $11.2
|
|
319
344
|
}];
|
|
320
345
|
var tokens = defaultTokens;
|
|
321
346
|
var _Global = class _Global {
|
|
@@ -16343,14 +16368,31 @@ var _protocol2 = {
|
|
|
16343
16368
|
name: "Ekubo",
|
|
16344
16369
|
logo: "https://app.ekubo.org/favicon.ico"
|
|
16345
16370
|
};
|
|
16346
|
-
var
|
|
16347
|
-
{ type: "Smart Contract Risk" /* SMART_CONTRACT_RISK */, value:
|
|
16348
|
-
{ type: "Impermanent Loss Risk" /* IMPERMANENT_LOSS */, value:
|
|
16349
|
-
{ type: "Market Risk" /* MARKET_RISK */, value:
|
|
16371
|
+
var _corelatedPoolRiskFactors = [
|
|
16372
|
+
{ type: "Smart Contract Risk" /* SMART_CONTRACT_RISK */, value: 2 /* WELL_AUDITED */, weight: 34, reason: "Audited smart contracts" },
|
|
16373
|
+
{ type: "Impermanent Loss Risk" /* IMPERMANENT_LOSS */, value: 1 /* HIGHLY_CORRELATED */, weight: 33, reason: "Low risk due to co-related assets" },
|
|
16374
|
+
{ type: "Market Risk" /* MARKET_RISK */, value: 1 /* VERY_LOW_VOLATILITY */, weight: 33, reason: "Low risk due to co-related assets" }
|
|
16375
|
+
];
|
|
16376
|
+
var mediumVolatilityPoolRiskFactors = [
|
|
16377
|
+
{ type: "Smart Contract Risk" /* SMART_CONTRACT_RISK */, value: 2 /* WELL_AUDITED */, weight: 34, reason: "Audited smart contracts" },
|
|
16378
|
+
{ type: "Impermanent Loss Risk" /* IMPERMANENT_LOSS */, value: 3 /* NON_CORRELATED */, weight: 33, reason: "Low risk due to co-related assets" },
|
|
16379
|
+
{ type: "Market Risk" /* MARKET_RISK */, value: 3 /* MODERATE_VOLATILITY */, weight: 33, reason: "Low risk due to co-related assets" }
|
|
16350
16380
|
];
|
|
16351
|
-
var
|
|
16352
|
-
{ type: "Smart Contract Risk" /* SMART_CONTRACT_RISK */, value:
|
|
16381
|
+
var highVolatilityPoolRiskFactors = [
|
|
16382
|
+
{ type: "Smart Contract Risk" /* SMART_CONTRACT_RISK */, value: 2 /* WELL_AUDITED */, weight: 34, reason: "Audited smart contracts" },
|
|
16383
|
+
{ type: "Impermanent Loss Risk" /* IMPERMANENT_LOSS */, value: 3 /* NON_CORRELATED */, weight: 33, reason: "Low risk due to co-related assets" },
|
|
16384
|
+
{ type: "Market Risk" /* MARKET_RISK */, value: 4 /* HIGH_VOLATILITY */, weight: 33, reason: "Low risk due to co-related assets" }
|
|
16353
16385
|
];
|
|
16386
|
+
var mediumRisk = {
|
|
16387
|
+
riskFactor: mediumVolatilityPoolRiskFactors,
|
|
16388
|
+
netRisk: mediumVolatilityPoolRiskFactors.reduce((acc, curr) => acc + curr.value * curr.weight, 0) / mediumVolatilityPoolRiskFactors.reduce((acc, curr) => acc + curr.weight, 0),
|
|
16389
|
+
notARisks: getNoRiskTags(mediumVolatilityPoolRiskFactors)
|
|
16390
|
+
};
|
|
16391
|
+
var highRisk = {
|
|
16392
|
+
riskFactor: highVolatilityPoolRiskFactors,
|
|
16393
|
+
netRisk: highVolatilityPoolRiskFactors.reduce((acc, curr) => acc + curr.value * curr.weight, 0) / highVolatilityPoolRiskFactors.reduce((acc, curr) => acc + curr.weight, 0),
|
|
16394
|
+
notARisks: getNoRiskTags(highVolatilityPoolRiskFactors)
|
|
16395
|
+
};
|
|
16354
16396
|
var AUDIT_URL2 = "https://assets.troves.fi/strkfarm/audit_report_vesu_and_ekubo_strats.pdf";
|
|
16355
16397
|
var faqs2 = [
|
|
16356
16398
|
{
|
|
@@ -16365,6 +16407,10 @@ var faqs2 = [
|
|
|
16365
16407
|
question: "What happens during withdrawal?",
|
|
16366
16408
|
answer: "During withdrawal, you may receive either or both tokens depending on market conditions and prevailing prices."
|
|
16367
16409
|
},
|
|
16410
|
+
{
|
|
16411
|
+
question: "Are there any deposit/withdrawal fees?",
|
|
16412
|
+
answer: "No, there are no deposit/withdrawal fees. However, there is a performance fee varying between 10-20% of the fees and rewards generated. The exact fee is determined by the strategy and the APY shown is net of this fee."
|
|
16413
|
+
},
|
|
16368
16414
|
{
|
|
16369
16415
|
question: "Is the strategy audited?",
|
|
16370
16416
|
answer: /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("div", { children: [
|
|
@@ -16399,9 +16445,9 @@ var xSTRKSTRK = {
|
|
|
16399
16445
|
auditUrl: AUDIT_URL2,
|
|
16400
16446
|
maxTVL: Web3Number.fromWei("0", 18),
|
|
16401
16447
|
risk: {
|
|
16402
|
-
riskFactor:
|
|
16403
|
-
netRisk:
|
|
16404
|
-
notARisks: getNoRiskTags(
|
|
16448
|
+
riskFactor: _corelatedPoolRiskFactors,
|
|
16449
|
+
netRisk: _corelatedPoolRiskFactors.reduce((acc, curr) => acc + curr.value * curr.weight, 0) / _corelatedPoolRiskFactors.reduce((acc, curr) => acc + curr.weight, 0),
|
|
16450
|
+
notARisks: getNoRiskTags(_corelatedPoolRiskFactors)
|
|
16405
16451
|
},
|
|
16406
16452
|
apyMethodology: "APY based on 7-day historical performance, including fees and rewards.",
|
|
16407
16453
|
additionalInfo: {
|
|
@@ -16417,7 +16463,8 @@ var xSTRKSTRK = {
|
|
|
16417
16463
|
customShouldRebalance: async (currentPrice) => true,
|
|
16418
16464
|
minWaitHours: 24,
|
|
16419
16465
|
direction: "uponly"
|
|
16420
|
-
}
|
|
16466
|
+
},
|
|
16467
|
+
quoteAsset: Global.getDefaultTokens().find((t) => t.symbol === "STRK")
|
|
16421
16468
|
},
|
|
16422
16469
|
faqs: [
|
|
16423
16470
|
...faqs2,
|
|
@@ -16434,68 +16481,165 @@ var xSTRKSTRK = {
|
|
|
16434
16481
|
contractDetails: [],
|
|
16435
16482
|
investmentSteps: []
|
|
16436
16483
|
};
|
|
16437
|
-
var
|
|
16438
|
-
xSTRKSTRK,
|
|
16484
|
+
var ETHUSDCRe7Strategy = {
|
|
16485
|
+
...xSTRKSTRK,
|
|
16486
|
+
name: "Ekubo ETH/USDC",
|
|
16487
|
+
description: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_jsx_runtime3.Fragment, {}),
|
|
16488
|
+
address: ContractAddr.from(
|
|
16489
|
+
"0x160d8fa4569ef6a12e6bf47cb943d7b5ebba8a41a69a14c1d943050ba5ff947"
|
|
16490
|
+
),
|
|
16491
|
+
launchBlock: 1501761,
|
|
16492
|
+
// must be same order as poolKey token0 and token1
|
|
16493
|
+
depositTokens: [
|
|
16494
|
+
Global.getDefaultTokens().find((t) => t.symbol === "ETH"),
|
|
16495
|
+
Global.getDefaultTokens().find((t) => t.symbol === "USDC")
|
|
16496
|
+
],
|
|
16497
|
+
additionalInfo: {
|
|
16498
|
+
newBounds: "Managed by Re7",
|
|
16499
|
+
truePrice: 1,
|
|
16500
|
+
feeBps: 1e3,
|
|
16501
|
+
rebalanceConditions: {
|
|
16502
|
+
customShouldRebalance: async (currentPrice) => currentPrice > 0.99 && currentPrice < 1.01,
|
|
16503
|
+
minWaitHours: 6,
|
|
16504
|
+
direction: "any"
|
|
16505
|
+
},
|
|
16506
|
+
quoteAsset: Global.getDefaultTokens().find((t) => t.symbol === "USDC")
|
|
16507
|
+
},
|
|
16508
|
+
faqs: [
|
|
16509
|
+
...faqs2,
|
|
16510
|
+
{
|
|
16511
|
+
question: "Who is the curator of this strategy?",
|
|
16512
|
+
answer: /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("div", { children: [
|
|
16513
|
+
"Re7 Labs is the curator of this strategy. Re7 Labs is a well-known Web3 asset management firm. This strategy is completely managed by them, including ownership of the vault. Troves is developer of the smart contracts and maintains infrastructure to help users access these strategies. You can find more information about them on their website ",
|
|
16514
|
+
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)("a", { href: "https://www.re7labs.xyz", style: { textDecoration: "underline", marginLeft: "2px" }, target: "_blank", children: "here" }),
|
|
16515
|
+
"."
|
|
16516
|
+
] })
|
|
16517
|
+
}
|
|
16518
|
+
],
|
|
16519
|
+
risk: highRisk,
|
|
16520
|
+
points: [],
|
|
16521
|
+
curator: { name: "Re7 Labs", logo: "https://www.re7labs.xyz/favicon.ico" }
|
|
16522
|
+
};
|
|
16523
|
+
var RE7Strategies = [
|
|
16524
|
+
ETHUSDCRe7Strategy,
|
|
16439
16525
|
{
|
|
16440
|
-
...
|
|
16526
|
+
...ETHUSDCRe7Strategy,
|
|
16441
16527
|
name: "Ekubo USDC/USDT",
|
|
16442
16528
|
description: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_jsx_runtime3.Fragment, {}),
|
|
16443
16529
|
address: ContractAddr.from(
|
|
16444
|
-
"
|
|
16530
|
+
"0x3a4f8debaf12af97bb911099bc011d63d6c208d4c5ba8e15d7f437785b0aaa2"
|
|
16445
16531
|
),
|
|
16446
|
-
launchBlock:
|
|
16532
|
+
launchBlock: 1501761,
|
|
16447
16533
|
// must be same order as poolKey token0 and token1
|
|
16448
16534
|
depositTokens: [
|
|
16449
16535
|
Global.getDefaultTokens().find((t) => t.symbol === "USDC"),
|
|
16450
16536
|
Global.getDefaultTokens().find((t) => t.symbol === "USDT")
|
|
16451
16537
|
],
|
|
16452
|
-
|
|
16453
|
-
newBounds: {
|
|
16454
|
-
lower: -1,
|
|
16455
|
-
upper: 1
|
|
16456
|
-
},
|
|
16457
|
-
truePrice: 1,
|
|
16458
|
-
feeBps: 1e3,
|
|
16459
|
-
rebalanceConditions: {
|
|
16460
|
-
customShouldRebalance: async (currentPrice) => currentPrice > 0.99 && currentPrice < 1.01,
|
|
16461
|
-
minWaitHours: 6,
|
|
16462
|
-
direction: "any"
|
|
16463
|
-
}
|
|
16464
|
-
}
|
|
16538
|
+
risk: xSTRKSTRK.risk
|
|
16465
16539
|
},
|
|
16466
16540
|
{
|
|
16467
|
-
...
|
|
16541
|
+
...ETHUSDCRe7Strategy,
|
|
16468
16542
|
name: "Ekubo STRK/USDC",
|
|
16469
16543
|
description: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_jsx_runtime3.Fragment, {}),
|
|
16470
16544
|
address: ContractAddr.from(
|
|
16471
|
-
"
|
|
16545
|
+
"0x351b36d0d9d8b40010658825adeeddb1397436cd41acd0ff6c6e23aaa8b5b30"
|
|
16472
16546
|
),
|
|
16473
|
-
launchBlock:
|
|
16547
|
+
launchBlock: 1501762,
|
|
16474
16548
|
// must be same order as poolKey token0 and token1
|
|
16475
16549
|
depositTokens: [
|
|
16476
16550
|
Global.getDefaultTokens().find((t) => t.symbol === "STRK"),
|
|
16477
16551
|
Global.getDefaultTokens().find((t) => t.symbol === "USDC")
|
|
16478
16552
|
],
|
|
16479
|
-
|
|
16480
|
-
|
|
16481
|
-
|
|
16482
|
-
|
|
16483
|
-
|
|
16484
|
-
|
|
16485
|
-
|
|
16486
|
-
|
|
16487
|
-
|
|
16488
|
-
|
|
16553
|
+
risk: highRisk
|
|
16554
|
+
},
|
|
16555
|
+
{
|
|
16556
|
+
...ETHUSDCRe7Strategy,
|
|
16557
|
+
name: "Ekubo STRK/ETH",
|
|
16558
|
+
description: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_jsx_runtime3.Fragment, {}),
|
|
16559
|
+
address: ContractAddr.from(
|
|
16560
|
+
"0x4ce3024b0ee879009112d7b0e073f8a87153dd35b029347d4247ffe48d28f51"
|
|
16561
|
+
),
|
|
16562
|
+
launchBlock: 1501763,
|
|
16563
|
+
// must be same order as poolKey token0 and token1
|
|
16564
|
+
depositTokens: [
|
|
16565
|
+
Global.getDefaultTokens().find((t) => t.symbol === "STRK"),
|
|
16566
|
+
Global.getDefaultTokens().find((t) => t.symbol === "ETH")
|
|
16567
|
+
],
|
|
16568
|
+
risk: highRisk
|
|
16569
|
+
},
|
|
16570
|
+
{
|
|
16571
|
+
...ETHUSDCRe7Strategy,
|
|
16572
|
+
name: "Ekubo WBTC/USDC",
|
|
16573
|
+
description: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_jsx_runtime3.Fragment, {}),
|
|
16574
|
+
address: ContractAddr.from(
|
|
16575
|
+
"0x2bcaef2eb7706875a5fdc6853dd961a0590f850bc3a031c59887189b5e84ba1"
|
|
16576
|
+
),
|
|
16577
|
+
launchBlock: 1501764,
|
|
16578
|
+
// must be same order as poolKey token0 and token1
|
|
16579
|
+
depositTokens: [
|
|
16580
|
+
Global.getDefaultTokens().find((t) => t.symbol === "WBTC"),
|
|
16581
|
+
Global.getDefaultTokens().find((t) => t.symbol === "USDC")
|
|
16582
|
+
],
|
|
16583
|
+
risk: mediumRisk
|
|
16584
|
+
},
|
|
16585
|
+
{
|
|
16586
|
+
...ETHUSDCRe7Strategy,
|
|
16587
|
+
name: "Ekubo tBTC/USDC",
|
|
16588
|
+
description: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_jsx_runtime3.Fragment, {}),
|
|
16589
|
+
address: ContractAddr.from(
|
|
16590
|
+
"0x4aad891a2d4432fba06b6558631bb13f6bbd7f6f33ab8c3111e344889ea4456"
|
|
16591
|
+
),
|
|
16592
|
+
launchBlock: 1501764,
|
|
16593
|
+
// must be same order as poolKey token0 and token1
|
|
16594
|
+
depositTokens: [
|
|
16595
|
+
Global.getDefaultTokens().find((t) => t.symbol === "tBTC"),
|
|
16596
|
+
Global.getDefaultTokens().find((t) => t.symbol === "USDC")
|
|
16597
|
+
],
|
|
16598
|
+
risk: mediumRisk
|
|
16599
|
+
},
|
|
16600
|
+
{
|
|
16601
|
+
...ETHUSDCRe7Strategy,
|
|
16602
|
+
name: "Ekubo WBTC/ETH",
|
|
16603
|
+
description: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_jsx_runtime3.Fragment, {}),
|
|
16604
|
+
address: ContractAddr.from(
|
|
16605
|
+
"0x1c9232b8186d9317652f05055615f18a120c2ad9e5ee96c39e031c257fb945b"
|
|
16606
|
+
),
|
|
16607
|
+
launchBlock: 1501765,
|
|
16608
|
+
// must be same order as poolKey token0 and token1
|
|
16609
|
+
depositTokens: [
|
|
16610
|
+
Global.getDefaultTokens().find((t) => t.symbol === "WBTC"),
|
|
16611
|
+
Global.getDefaultTokens().find((t) => t.symbol === "ETH")
|
|
16612
|
+
],
|
|
16613
|
+
risk: mediumRisk
|
|
16614
|
+
},
|
|
16615
|
+
{
|
|
16616
|
+
...ETHUSDCRe7Strategy,
|
|
16617
|
+
name: "Ekubo WBTC/STRK",
|
|
16618
|
+
description: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_jsx_runtime3.Fragment, {}),
|
|
16619
|
+
address: ContractAddr.from(
|
|
16620
|
+
"0x1248e385c23a929a015ec298a26560fa7745bbd6e41a886550e337b02714b1b"
|
|
16621
|
+
),
|
|
16622
|
+
launchBlock: 1501766,
|
|
16623
|
+
// must be same order as poolKey token0 and token1
|
|
16624
|
+
depositTokens: [
|
|
16625
|
+
Global.getDefaultTokens().find((t) => t.symbol === "WBTC"),
|
|
16626
|
+
Global.getDefaultTokens().find((t) => t.symbol === "STRK")
|
|
16627
|
+
],
|
|
16628
|
+
risk: highRisk
|
|
16489
16629
|
}
|
|
16490
16630
|
];
|
|
16631
|
+
var EkuboCLVaultStrategies = [
|
|
16632
|
+
xSTRKSTRK,
|
|
16633
|
+
...RE7Strategies
|
|
16634
|
+
];
|
|
16491
16635
|
EkuboCLVaultStrategies.forEach((s) => {
|
|
16492
16636
|
s.contractDetails = [
|
|
16493
16637
|
{
|
|
16494
16638
|
address: s.address,
|
|
16495
16639
|
name: "Vault",
|
|
16496
16640
|
sourceCodeUrl: "https://github.com/strkfarm/strkfarm-contracts/tree/main/src/strategies/cl_vault"
|
|
16497
|
-
}
|
|
16498
|
-
...COMMON_CONTRACTS
|
|
16641
|
+
}
|
|
16642
|
+
// ...COMMON_CONTRACTS
|
|
16499
16643
|
];
|
|
16500
16644
|
s.docs = "https://docs.troves.fi/p/ekubo-cl-vaults";
|
|
16501
16645
|
s.description = /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("div", { children: [
|
|
@@ -18466,7 +18610,7 @@ var endurProtocol = {
|
|
|
18466
18610
|
name: "Endur",
|
|
18467
18611
|
logo: "https://app.endur.fi/logo.png"
|
|
18468
18612
|
};
|
|
18469
|
-
var
|
|
18613
|
+
var _riskFactor2 = [
|
|
18470
18614
|
{ type: "Smart Contract Risk" /* SMART_CONTRACT_RISK */, value: 0.5, weight: 25, reason: "Audited by CSC" },
|
|
18471
18615
|
{ type: "Depeg Risk" /* DEPEG_RISK */, value: 0.25, weight: 25, reason: "Depending on prevailing market conditions and trading activity, xSTRK may lose its peg to the underlying asset." },
|
|
18472
18616
|
{ type: "Liquidation Risk" /* LIQUIDATION_RISK */, value: 0.1, weight: 10, reason: "Liquidation risk is low due to the nature of the Re7 Pool on Vesu" },
|
|
@@ -18541,9 +18685,9 @@ var SenseiStrategies = [
|
|
|
18541
18685
|
protocols: [endurProtocol, vesuProtocol],
|
|
18542
18686
|
maxTVL: new Web3Number("1500000", 18),
|
|
18543
18687
|
risk: {
|
|
18544
|
-
riskFactor:
|
|
18545
|
-
netRisk:
|
|
18546
|
-
notARisks: getNoRiskTags(
|
|
18688
|
+
riskFactor: _riskFactor2,
|
|
18689
|
+
netRisk: _riskFactor2.reduce((acc, curr) => acc + curr.value * curr.weight, 0) / _riskFactor2.reduce((acc, curr) => acc + curr.weight, 0),
|
|
18690
|
+
notARisks: getNoRiskTags(_riskFactor2)
|
|
18547
18691
|
},
|
|
18548
18692
|
additionalInfo: {
|
|
18549
18693
|
mainToken: Global.getDefaultTokens().find((t) => t.symbol === "STRK"),
|
|
@@ -24157,7 +24301,7 @@ function getLooperSettings(token1Symbol, token2Symbol, vaultSettings, pool1, poo
|
|
|
24157
24301
|
vaultSettings.leafAdapters.push(commonAdapter.getAvnuAdapter(STRKToken.address, USDCToken.address, "avnu_swap_rewards" /* AVNU_SWAP_REWARDS */).bind(commonAdapter));
|
|
24158
24302
|
return vaultSettings;
|
|
24159
24303
|
}
|
|
24160
|
-
var
|
|
24304
|
+
var _riskFactor3 = [
|
|
24161
24305
|
{ type: "Smart Contract Risk" /* SMART_CONTRACT_RISK */, value: 0.5, weight: 25, reason: "Audited by Zellic" },
|
|
24162
24306
|
{ type: "Liquidation Risk" /* LIQUIDATION_RISK */, value: 1.5, weight: 50, reason: "Liquidation risk is mitigated by stable price feed on Starknet" },
|
|
24163
24307
|
{ type: "Technical Risk" /* TECHNICAL_RISK */, value: 1, weight: 50, reason: "Technical failures like risk monitoring failures" }
|
|
@@ -24361,9 +24505,9 @@ var UniversalStrategies = [
|
|
|
24361
24505
|
depositTokens: [Global.getDefaultTokens().find((token) => token.symbol === "USDC")],
|
|
24362
24506
|
additionalInfo: getLooperSettings("USDC", "ETH", usdcVaultSettings, VesuPools.Genesis, VesuPools.Genesis),
|
|
24363
24507
|
risk: {
|
|
24364
|
-
riskFactor:
|
|
24365
|
-
netRisk:
|
|
24366
|
-
notARisks: getNoRiskTags(
|
|
24508
|
+
riskFactor: _riskFactor3,
|
|
24509
|
+
netRisk: _riskFactor3.reduce((acc, curr) => acc + curr.value * curr.weight, 0) / _riskFactor3.reduce((acc, curr) => acc + curr.weight, 0),
|
|
24510
|
+
notARisks: getNoRiskTags(_riskFactor3)
|
|
24367
24511
|
},
|
|
24368
24512
|
protocols: [Protocols.VESU],
|
|
24369
24513
|
maxTVL: Web3Number.fromWei(0, 6),
|
|
@@ -24380,9 +24524,9 @@ var UniversalStrategies = [
|
|
|
24380
24524
|
depositTokens: [Global.getDefaultTokens().find((token) => token.symbol === "WBTC")],
|
|
24381
24525
|
additionalInfo: getLooperSettings("WBTC", "ETH", wbtcVaultSettings, VesuPools.Genesis, VesuPools.Genesis),
|
|
24382
24526
|
risk: {
|
|
24383
|
-
riskFactor:
|
|
24384
|
-
netRisk:
|
|
24385
|
-
notARisks: getNoRiskTags(
|
|
24527
|
+
riskFactor: _riskFactor3,
|
|
24528
|
+
netRisk: _riskFactor3.reduce((acc, curr) => acc + curr.value * curr.weight, 0) / _riskFactor3.reduce((acc, curr) => acc + curr.weight, 0),
|
|
24529
|
+
notARisks: getNoRiskTags(_riskFactor3)
|
|
24386
24530
|
},
|
|
24387
24531
|
protocols: [Protocols.VESU],
|
|
24388
24532
|
maxTVL: Web3Number.fromWei(0, 8),
|
|
@@ -24399,9 +24543,9 @@ var UniversalStrategies = [
|
|
|
24399
24543
|
depositTokens: [Global.getDefaultTokens().find((token) => token.symbol === "ETH")],
|
|
24400
24544
|
additionalInfo: getLooperSettings("ETH", "WBTC", ethVaultSettings, VesuPools.Genesis, VesuPools.Genesis),
|
|
24401
24545
|
risk: {
|
|
24402
|
-
riskFactor:
|
|
24403
|
-
netRisk:
|
|
24404
|
-
notARisks: getNoRiskTags(
|
|
24546
|
+
riskFactor: _riskFactor3,
|
|
24547
|
+
netRisk: _riskFactor3.reduce((acc, curr) => acc + curr.value * curr.weight, 0) / _riskFactor3.reduce((acc, curr) => acc + curr.weight, 0),
|
|
24548
|
+
notARisks: getNoRiskTags(_riskFactor3)
|
|
24405
24549
|
},
|
|
24406
24550
|
protocols: [Protocols.VESU],
|
|
24407
24551
|
maxTVL: Web3Number.fromWei(0, 18),
|
|
@@ -24418,9 +24562,9 @@ var UniversalStrategies = [
|
|
|
24418
24562
|
depositTokens: [Global.getDefaultTokens().find((token) => token.symbol === "STRK")],
|
|
24419
24563
|
additionalInfo: getLooperSettings("STRK", "ETH", strkVaultSettings, VesuPools.Genesis, VesuPools.Genesis),
|
|
24420
24564
|
risk: {
|
|
24421
|
-
riskFactor:
|
|
24422
|
-
netRisk:
|
|
24423
|
-
notARisks: getNoRiskTags(
|
|
24565
|
+
riskFactor: _riskFactor3,
|
|
24566
|
+
netRisk: _riskFactor3.reduce((acc, curr) => acc + curr.value * curr.weight, 0) / _riskFactor3.reduce((acc, curr) => acc + curr.weight, 0),
|
|
24567
|
+
notARisks: getNoRiskTags(_riskFactor3)
|
|
24424
24568
|
},
|
|
24425
24569
|
protocols: [Protocols.VESU],
|
|
24426
24570
|
maxTVL: Web3Number.fromWei(0, 18),
|
|
@@ -24437,9 +24581,9 @@ var UniversalStrategies = [
|
|
|
24437
24581
|
depositTokens: [Global.getDefaultTokens().find((token) => token.symbol === "USDT")],
|
|
24438
24582
|
additionalInfo: getLooperSettings("USDT", "ETH", usdtVaultSettings, VesuPools.Genesis, VesuPools.Genesis),
|
|
24439
24583
|
risk: {
|
|
24440
|
-
riskFactor:
|
|
24441
|
-
netRisk:
|
|
24442
|
-
notARisks: getNoRiskTags(
|
|
24584
|
+
riskFactor: _riskFactor3,
|
|
24585
|
+
netRisk: _riskFactor3.reduce((acc, curr) => acc + curr.value * curr.weight, 0) / _riskFactor3.reduce((acc, curr) => acc + curr.weight, 0),
|
|
24586
|
+
notARisks: getNoRiskTags(_riskFactor3)
|
|
24443
24587
|
},
|
|
24444
24588
|
protocols: [Protocols.VESU],
|
|
24445
24589
|
maxTVL: Web3Number.fromWei(0, 6),
|
|
@@ -24455,11 +24599,9 @@ var TelegramNotif = class {
|
|
|
24455
24599
|
constructor(token, shouldPoll) {
|
|
24456
24600
|
this.subscribers = [
|
|
24457
24601
|
// '6820228303',
|
|
24458
|
-
|
|
24459
|
-
|
|
24460
|
-
//
|
|
24461
|
-
"1388729514",
|
|
24462
|
-
// hwashere
|
|
24602
|
+
// '1505578076',
|
|
24603
|
+
// '1356705582', // langs
|
|
24604
|
+
// '1388729514', // hwashere
|
|
24463
24605
|
"985902592"
|
|
24464
24606
|
];
|
|
24465
24607
|
this.bot = new import_node_telegram_bot_api.default(token, { polling: shouldPoll });
|