@strkfarm/sdk 1.0.63 → 1.0.64
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 +203 -64
- package/dist/index.browser.mjs +203 -64
- package/dist/index.d.ts +6 -1
- package/dist/index.js +206 -69
- package/dist/index.mjs +206 -69
- package/package.json +1 -1
- package/src/global.ts +19 -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
|
@@ -300,7 +300,7 @@ var defaultTokens = [{
|
|
|
300
300
|
name: "WBTC",
|
|
301
301
|
symbol: "WBTC",
|
|
302
302
|
logo: "https://assets.troves.fi/integrations/tokens/wbtc.svg",
|
|
303
|
-
address: ContractAddr.from("
|
|
303
|
+
address: ContractAddr.from("0x03fe2b97c1fd336e750087d68b9b867997fd64a2661ff3ca5a7c771641e8e7ac"),
|
|
304
304
|
decimals: 8,
|
|
305
305
|
coingeckId: void 0,
|
|
306
306
|
displayDecimals: 6,
|
|
@@ -316,6 +316,26 @@ var defaultTokens = [{
|
|
|
316
316
|
displayDecimals: 6,
|
|
317
317
|
priceCheckAmount: 1e-4
|
|
318
318
|
// 112000 * 0.0001 = $11.2
|
|
319
|
+
}, {
|
|
320
|
+
name: "solvBTC",
|
|
321
|
+
symbol: "solvBTC",
|
|
322
|
+
logo: "https://assets.strkfarm.com/integrations/tokens/solvbtc.svg",
|
|
323
|
+
address: ContractAddr.from("0x0593e034dda23eea82d2ba9a30960ed42cf4a01502cc2351dc9b9881f9931a68"),
|
|
324
|
+
decimals: 18,
|
|
325
|
+
coingeckId: void 0,
|
|
326
|
+
displayDecimals: 6,
|
|
327
|
+
priceCheckAmount: 1e-4
|
|
328
|
+
// 112000 * 0.0001 = $11.2
|
|
329
|
+
}, {
|
|
330
|
+
name: "LBTC",
|
|
331
|
+
symbol: "LBTC",
|
|
332
|
+
logo: "https://assets.strkfarm.com/integrations/tokens/lbtc.svg",
|
|
333
|
+
address: ContractAddr.from("0x036834a40984312f7f7de8d31e3f6305b325389eaeea5b1c0664b2fb936461a4"),
|
|
334
|
+
decimals: 8,
|
|
335
|
+
coingeckId: void 0,
|
|
336
|
+
displayDecimals: 6,
|
|
337
|
+
priceCheckAmount: 1e-4
|
|
338
|
+
// 112000 * 0.0001 = $11.2
|
|
319
339
|
}];
|
|
320
340
|
var tokens = defaultTokens;
|
|
321
341
|
var _Global = class _Global {
|
|
@@ -16343,14 +16363,31 @@ var _protocol2 = {
|
|
|
16343
16363
|
name: "Ekubo",
|
|
16344
16364
|
logo: "https://app.ekubo.org/favicon.ico"
|
|
16345
16365
|
};
|
|
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:
|
|
16366
|
+
var _corelatedPoolRiskFactors = [
|
|
16367
|
+
{ type: "Smart Contract Risk" /* SMART_CONTRACT_RISK */, value: 2 /* WELL_AUDITED */, weight: 34, reason: "Audited smart contracts" },
|
|
16368
|
+
{ type: "Impermanent Loss Risk" /* IMPERMANENT_LOSS */, value: 1 /* HIGHLY_CORRELATED */, weight: 33, reason: "Low risk due to co-related assets" },
|
|
16369
|
+
{ type: "Market Risk" /* MARKET_RISK */, value: 1 /* VERY_LOW_VOLATILITY */, weight: 33, reason: "Low risk due to co-related assets" }
|
|
16370
|
+
];
|
|
16371
|
+
var mediumVolatilityPoolRiskFactors = [
|
|
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: 3 /* NON_CORRELATED */, weight: 33, reason: "Low risk due to co-related assets" },
|
|
16374
|
+
{ type: "Market Risk" /* MARKET_RISK */, value: 3 /* MODERATE_VOLATILITY */, weight: 33, reason: "Low risk due to co-related assets" }
|
|
16350
16375
|
];
|
|
16351
|
-
var
|
|
16352
|
-
{ type: "Smart Contract Risk" /* SMART_CONTRACT_RISK */, value:
|
|
16376
|
+
var highVolatilityPoolRiskFactors = [
|
|
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: 4 /* HIGH_VOLATILITY */, weight: 33, reason: "Low risk due to co-related assets" }
|
|
16353
16380
|
];
|
|
16381
|
+
var mediumRisk = {
|
|
16382
|
+
riskFactor: mediumVolatilityPoolRiskFactors,
|
|
16383
|
+
netRisk: mediumVolatilityPoolRiskFactors.reduce((acc, curr) => acc + curr.value * curr.weight, 0) / mediumVolatilityPoolRiskFactors.reduce((acc, curr) => acc + curr.weight, 0),
|
|
16384
|
+
notARisks: getNoRiskTags(mediumVolatilityPoolRiskFactors)
|
|
16385
|
+
};
|
|
16386
|
+
var highRisk = {
|
|
16387
|
+
riskFactor: highVolatilityPoolRiskFactors,
|
|
16388
|
+
netRisk: highVolatilityPoolRiskFactors.reduce((acc, curr) => acc + curr.value * curr.weight, 0) / highVolatilityPoolRiskFactors.reduce((acc, curr) => acc + curr.weight, 0),
|
|
16389
|
+
notARisks: getNoRiskTags(highVolatilityPoolRiskFactors)
|
|
16390
|
+
};
|
|
16354
16391
|
var AUDIT_URL2 = "https://assets.troves.fi/strkfarm/audit_report_vesu_and_ekubo_strats.pdf";
|
|
16355
16392
|
var faqs2 = [
|
|
16356
16393
|
{
|
|
@@ -16365,6 +16402,10 @@ var faqs2 = [
|
|
|
16365
16402
|
question: "What happens during withdrawal?",
|
|
16366
16403
|
answer: "During withdrawal, you may receive either or both tokens depending on market conditions and prevailing prices."
|
|
16367
16404
|
},
|
|
16405
|
+
{
|
|
16406
|
+
question: "Are there any deposit/withdrawal fees?",
|
|
16407
|
+
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."
|
|
16408
|
+
},
|
|
16368
16409
|
{
|
|
16369
16410
|
question: "Is the strategy audited?",
|
|
16370
16411
|
answer: /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("div", { children: [
|
|
@@ -16399,9 +16440,9 @@ var xSTRKSTRK = {
|
|
|
16399
16440
|
auditUrl: AUDIT_URL2,
|
|
16400
16441
|
maxTVL: Web3Number.fromWei("0", 18),
|
|
16401
16442
|
risk: {
|
|
16402
|
-
riskFactor:
|
|
16403
|
-
netRisk:
|
|
16404
|
-
notARisks: getNoRiskTags(
|
|
16443
|
+
riskFactor: _corelatedPoolRiskFactors,
|
|
16444
|
+
netRisk: _corelatedPoolRiskFactors.reduce((acc, curr) => acc + curr.value * curr.weight, 0) / _corelatedPoolRiskFactors.reduce((acc, curr) => acc + curr.weight, 0),
|
|
16445
|
+
notARisks: getNoRiskTags(_corelatedPoolRiskFactors)
|
|
16405
16446
|
},
|
|
16406
16447
|
apyMethodology: "APY based on 7-day historical performance, including fees and rewards.",
|
|
16407
16448
|
additionalInfo: {
|
|
@@ -16417,7 +16458,8 @@ var xSTRKSTRK = {
|
|
|
16417
16458
|
customShouldRebalance: async (currentPrice) => true,
|
|
16418
16459
|
minWaitHours: 24,
|
|
16419
16460
|
direction: "uponly"
|
|
16420
|
-
}
|
|
16461
|
+
},
|
|
16462
|
+
quoteAsset: Global.getDefaultTokens().find((t) => t.symbol === "STRK")
|
|
16421
16463
|
},
|
|
16422
16464
|
faqs: [
|
|
16423
16465
|
...faqs2,
|
|
@@ -16434,68 +16476,165 @@ var xSTRKSTRK = {
|
|
|
16434
16476
|
contractDetails: [],
|
|
16435
16477
|
investmentSteps: []
|
|
16436
16478
|
};
|
|
16437
|
-
var
|
|
16438
|
-
xSTRKSTRK,
|
|
16479
|
+
var ETHUSDCRe7Strategy = {
|
|
16480
|
+
...xSTRKSTRK,
|
|
16481
|
+
name: "Ekubo ETH/USDC",
|
|
16482
|
+
description: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_jsx_runtime3.Fragment, {}),
|
|
16483
|
+
address: ContractAddr.from(
|
|
16484
|
+
"0x160d8fa4569ef6a12e6bf47cb943d7b5ebba8a41a69a14c1d943050ba5ff947"
|
|
16485
|
+
),
|
|
16486
|
+
launchBlock: 1501761,
|
|
16487
|
+
// must be same order as poolKey token0 and token1
|
|
16488
|
+
depositTokens: [
|
|
16489
|
+
Global.getDefaultTokens().find((t) => t.symbol === "ETH"),
|
|
16490
|
+
Global.getDefaultTokens().find((t) => t.symbol === "USDC")
|
|
16491
|
+
],
|
|
16492
|
+
additionalInfo: {
|
|
16493
|
+
newBounds: "Managed by Re7",
|
|
16494
|
+
truePrice: 1,
|
|
16495
|
+
feeBps: 1e3,
|
|
16496
|
+
rebalanceConditions: {
|
|
16497
|
+
customShouldRebalance: async (currentPrice) => currentPrice > 0.99 && currentPrice < 1.01,
|
|
16498
|
+
minWaitHours: 6,
|
|
16499
|
+
direction: "any"
|
|
16500
|
+
},
|
|
16501
|
+
quoteAsset: Global.getDefaultTokens().find((t) => t.symbol === "USDC")
|
|
16502
|
+
},
|
|
16503
|
+
faqs: [
|
|
16504
|
+
...faqs2,
|
|
16505
|
+
{
|
|
16506
|
+
question: "Who is the curator of this strategy?",
|
|
16507
|
+
answer: /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("div", { children: [
|
|
16508
|
+
"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 ",
|
|
16509
|
+
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)("a", { href: "https://www.re7labs.xyz", style: { textDecoration: "underline", marginLeft: "2px" }, target: "_blank", children: "here" }),
|
|
16510
|
+
"."
|
|
16511
|
+
] })
|
|
16512
|
+
}
|
|
16513
|
+
],
|
|
16514
|
+
risk: highRisk,
|
|
16515
|
+
points: [],
|
|
16516
|
+
curator: { name: "Re7 Labs", logo: "https://www.re7labs.xyz/favicon.ico" }
|
|
16517
|
+
};
|
|
16518
|
+
var RE7Strategies = [
|
|
16519
|
+
ETHUSDCRe7Strategy,
|
|
16439
16520
|
{
|
|
16440
|
-
...
|
|
16521
|
+
...ETHUSDCRe7Strategy,
|
|
16441
16522
|
name: "Ekubo USDC/USDT",
|
|
16442
16523
|
description: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_jsx_runtime3.Fragment, {}),
|
|
16443
16524
|
address: ContractAddr.from(
|
|
16444
|
-
"
|
|
16525
|
+
"0x3a4f8debaf12af97bb911099bc011d63d6c208d4c5ba8e15d7f437785b0aaa2"
|
|
16445
16526
|
),
|
|
16446
|
-
launchBlock:
|
|
16527
|
+
launchBlock: 1501761,
|
|
16447
16528
|
// must be same order as poolKey token0 and token1
|
|
16448
16529
|
depositTokens: [
|
|
16449
16530
|
Global.getDefaultTokens().find((t) => t.symbol === "USDC"),
|
|
16450
16531
|
Global.getDefaultTokens().find((t) => t.symbol === "USDT")
|
|
16451
16532
|
],
|
|
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
|
-
}
|
|
16533
|
+
risk: xSTRKSTRK.risk
|
|
16465
16534
|
},
|
|
16466
16535
|
{
|
|
16467
|
-
...
|
|
16536
|
+
...ETHUSDCRe7Strategy,
|
|
16468
16537
|
name: "Ekubo STRK/USDC",
|
|
16469
16538
|
description: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_jsx_runtime3.Fragment, {}),
|
|
16470
16539
|
address: ContractAddr.from(
|
|
16471
|
-
"
|
|
16540
|
+
"0x351b36d0d9d8b40010658825adeeddb1397436cd41acd0ff6c6e23aaa8b5b30"
|
|
16472
16541
|
),
|
|
16473
|
-
launchBlock:
|
|
16542
|
+
launchBlock: 1501762,
|
|
16474
16543
|
// must be same order as poolKey token0 and token1
|
|
16475
16544
|
depositTokens: [
|
|
16476
16545
|
Global.getDefaultTokens().find((t) => t.symbol === "STRK"),
|
|
16477
16546
|
Global.getDefaultTokens().find((t) => t.symbol === "USDC")
|
|
16478
16547
|
],
|
|
16479
|
-
|
|
16480
|
-
|
|
16481
|
-
|
|
16482
|
-
|
|
16483
|
-
|
|
16484
|
-
|
|
16485
|
-
|
|
16486
|
-
|
|
16487
|
-
|
|
16488
|
-
|
|
16548
|
+
risk: highRisk
|
|
16549
|
+
},
|
|
16550
|
+
{
|
|
16551
|
+
...ETHUSDCRe7Strategy,
|
|
16552
|
+
name: "Ekubo STRK/ETH",
|
|
16553
|
+
description: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_jsx_runtime3.Fragment, {}),
|
|
16554
|
+
address: ContractAddr.from(
|
|
16555
|
+
"0x4ce3024b0ee879009112d7b0e073f8a87153dd35b029347d4247ffe48d28f51"
|
|
16556
|
+
),
|
|
16557
|
+
launchBlock: 1501763,
|
|
16558
|
+
// must be same order as poolKey token0 and token1
|
|
16559
|
+
depositTokens: [
|
|
16560
|
+
Global.getDefaultTokens().find((t) => t.symbol === "STRK"),
|
|
16561
|
+
Global.getDefaultTokens().find((t) => t.symbol === "ETH")
|
|
16562
|
+
],
|
|
16563
|
+
risk: highRisk
|
|
16564
|
+
},
|
|
16565
|
+
{
|
|
16566
|
+
...ETHUSDCRe7Strategy,
|
|
16567
|
+
name: "Ekubo WBTC/USDC",
|
|
16568
|
+
description: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_jsx_runtime3.Fragment, {}),
|
|
16569
|
+
address: ContractAddr.from(
|
|
16570
|
+
"0x2bcaef2eb7706875a5fdc6853dd961a0590f850bc3a031c59887189b5e84ba1"
|
|
16571
|
+
),
|
|
16572
|
+
launchBlock: 1501764,
|
|
16573
|
+
// must be same order as poolKey token0 and token1
|
|
16574
|
+
depositTokens: [
|
|
16575
|
+
Global.getDefaultTokens().find((t) => t.symbol === "WBTC"),
|
|
16576
|
+
Global.getDefaultTokens().find((t) => t.symbol === "USDC")
|
|
16577
|
+
],
|
|
16578
|
+
risk: mediumRisk
|
|
16579
|
+
},
|
|
16580
|
+
{
|
|
16581
|
+
...ETHUSDCRe7Strategy,
|
|
16582
|
+
name: "Ekubo tBTC/USDC",
|
|
16583
|
+
description: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_jsx_runtime3.Fragment, {}),
|
|
16584
|
+
address: ContractAddr.from(
|
|
16585
|
+
"0x4aad891a2d4432fba06b6558631bb13f6bbd7f6f33ab8c3111e344889ea4456"
|
|
16586
|
+
),
|
|
16587
|
+
launchBlock: 1501764,
|
|
16588
|
+
// must be same order as poolKey token0 and token1
|
|
16589
|
+
depositTokens: [
|
|
16590
|
+
Global.getDefaultTokens().find((t) => t.symbol === "tBTC"),
|
|
16591
|
+
Global.getDefaultTokens().find((t) => t.symbol === "USDC")
|
|
16592
|
+
],
|
|
16593
|
+
risk: mediumRisk
|
|
16594
|
+
},
|
|
16595
|
+
{
|
|
16596
|
+
...ETHUSDCRe7Strategy,
|
|
16597
|
+
name: "Ekubo WBTC/ETH",
|
|
16598
|
+
description: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_jsx_runtime3.Fragment, {}),
|
|
16599
|
+
address: ContractAddr.from(
|
|
16600
|
+
"0x1c9232b8186d9317652f05055615f18a120c2ad9e5ee96c39e031c257fb945b"
|
|
16601
|
+
),
|
|
16602
|
+
launchBlock: 1501765,
|
|
16603
|
+
// must be same order as poolKey token0 and token1
|
|
16604
|
+
depositTokens: [
|
|
16605
|
+
Global.getDefaultTokens().find((t) => t.symbol === "WBTC"),
|
|
16606
|
+
Global.getDefaultTokens().find((t) => t.symbol === "ETH")
|
|
16607
|
+
],
|
|
16608
|
+
risk: mediumRisk
|
|
16609
|
+
},
|
|
16610
|
+
{
|
|
16611
|
+
...ETHUSDCRe7Strategy,
|
|
16612
|
+
name: "Ekubo WBTC/STRK",
|
|
16613
|
+
description: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_jsx_runtime3.Fragment, {}),
|
|
16614
|
+
address: ContractAddr.from(
|
|
16615
|
+
"0x1248e385c23a929a015ec298a26560fa7745bbd6e41a886550e337b02714b1b"
|
|
16616
|
+
),
|
|
16617
|
+
launchBlock: 1501766,
|
|
16618
|
+
// must be same order as poolKey token0 and token1
|
|
16619
|
+
depositTokens: [
|
|
16620
|
+
Global.getDefaultTokens().find((t) => t.symbol === "WBTC"),
|
|
16621
|
+
Global.getDefaultTokens().find((t) => t.symbol === "STRK")
|
|
16622
|
+
],
|
|
16623
|
+
risk: highRisk
|
|
16489
16624
|
}
|
|
16490
16625
|
];
|
|
16626
|
+
var EkuboCLVaultStrategies = [
|
|
16627
|
+
xSTRKSTRK,
|
|
16628
|
+
...RE7Strategies
|
|
16629
|
+
];
|
|
16491
16630
|
EkuboCLVaultStrategies.forEach((s) => {
|
|
16492
16631
|
s.contractDetails = [
|
|
16493
16632
|
{
|
|
16494
16633
|
address: s.address,
|
|
16495
16634
|
name: "Vault",
|
|
16496
16635
|
sourceCodeUrl: "https://github.com/strkfarm/strkfarm-contracts/tree/main/src/strategies/cl_vault"
|
|
16497
|
-
}
|
|
16498
|
-
...COMMON_CONTRACTS
|
|
16636
|
+
}
|
|
16637
|
+
// ...COMMON_CONTRACTS
|
|
16499
16638
|
];
|
|
16500
16639
|
s.docs = "https://docs.troves.fi/p/ekubo-cl-vaults";
|
|
16501
16640
|
s.description = /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("div", { children: [
|
|
@@ -18466,7 +18605,7 @@ var endurProtocol = {
|
|
|
18466
18605
|
name: "Endur",
|
|
18467
18606
|
logo: "https://app.endur.fi/logo.png"
|
|
18468
18607
|
};
|
|
18469
|
-
var
|
|
18608
|
+
var _riskFactor2 = [
|
|
18470
18609
|
{ type: "Smart Contract Risk" /* SMART_CONTRACT_RISK */, value: 0.5, weight: 25, reason: "Audited by CSC" },
|
|
18471
18610
|
{ 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
18611
|
{ 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 +18680,9 @@ var SenseiStrategies = [
|
|
|
18541
18680
|
protocols: [endurProtocol, vesuProtocol],
|
|
18542
18681
|
maxTVL: new Web3Number("1500000", 18),
|
|
18543
18682
|
risk: {
|
|
18544
|
-
riskFactor:
|
|
18545
|
-
netRisk:
|
|
18546
|
-
notARisks: getNoRiskTags(
|
|
18683
|
+
riskFactor: _riskFactor2,
|
|
18684
|
+
netRisk: _riskFactor2.reduce((acc, curr) => acc + curr.value * curr.weight, 0) / _riskFactor2.reduce((acc, curr) => acc + curr.weight, 0),
|
|
18685
|
+
notARisks: getNoRiskTags(_riskFactor2)
|
|
18547
18686
|
},
|
|
18548
18687
|
additionalInfo: {
|
|
18549
18688
|
mainToken: Global.getDefaultTokens().find((t) => t.symbol === "STRK"),
|
|
@@ -24157,7 +24296,7 @@ function getLooperSettings(token1Symbol, token2Symbol, vaultSettings, pool1, poo
|
|
|
24157
24296
|
vaultSettings.leafAdapters.push(commonAdapter.getAvnuAdapter(STRKToken.address, USDCToken.address, "avnu_swap_rewards" /* AVNU_SWAP_REWARDS */).bind(commonAdapter));
|
|
24158
24297
|
return vaultSettings;
|
|
24159
24298
|
}
|
|
24160
|
-
var
|
|
24299
|
+
var _riskFactor3 = [
|
|
24161
24300
|
{ type: "Smart Contract Risk" /* SMART_CONTRACT_RISK */, value: 0.5, weight: 25, reason: "Audited by Zellic" },
|
|
24162
24301
|
{ type: "Liquidation Risk" /* LIQUIDATION_RISK */, value: 1.5, weight: 50, reason: "Liquidation risk is mitigated by stable price feed on Starknet" },
|
|
24163
24302
|
{ type: "Technical Risk" /* TECHNICAL_RISK */, value: 1, weight: 50, reason: "Technical failures like risk monitoring failures" }
|
|
@@ -24361,9 +24500,9 @@ var UniversalStrategies = [
|
|
|
24361
24500
|
depositTokens: [Global.getDefaultTokens().find((token) => token.symbol === "USDC")],
|
|
24362
24501
|
additionalInfo: getLooperSettings("USDC", "ETH", usdcVaultSettings, VesuPools.Genesis, VesuPools.Genesis),
|
|
24363
24502
|
risk: {
|
|
24364
|
-
riskFactor:
|
|
24365
|
-
netRisk:
|
|
24366
|
-
notARisks: getNoRiskTags(
|
|
24503
|
+
riskFactor: _riskFactor3,
|
|
24504
|
+
netRisk: _riskFactor3.reduce((acc, curr) => acc + curr.value * curr.weight, 0) / _riskFactor3.reduce((acc, curr) => acc + curr.weight, 0),
|
|
24505
|
+
notARisks: getNoRiskTags(_riskFactor3)
|
|
24367
24506
|
},
|
|
24368
24507
|
protocols: [Protocols.VESU],
|
|
24369
24508
|
maxTVL: Web3Number.fromWei(0, 6),
|
|
@@ -24380,9 +24519,9 @@ var UniversalStrategies = [
|
|
|
24380
24519
|
depositTokens: [Global.getDefaultTokens().find((token) => token.symbol === "WBTC")],
|
|
24381
24520
|
additionalInfo: getLooperSettings("WBTC", "ETH", wbtcVaultSettings, VesuPools.Genesis, VesuPools.Genesis),
|
|
24382
24521
|
risk: {
|
|
24383
|
-
riskFactor:
|
|
24384
|
-
netRisk:
|
|
24385
|
-
notARisks: getNoRiskTags(
|
|
24522
|
+
riskFactor: _riskFactor3,
|
|
24523
|
+
netRisk: _riskFactor3.reduce((acc, curr) => acc + curr.value * curr.weight, 0) / _riskFactor3.reduce((acc, curr) => acc + curr.weight, 0),
|
|
24524
|
+
notARisks: getNoRiskTags(_riskFactor3)
|
|
24386
24525
|
},
|
|
24387
24526
|
protocols: [Protocols.VESU],
|
|
24388
24527
|
maxTVL: Web3Number.fromWei(0, 8),
|
|
@@ -24399,9 +24538,9 @@ var UniversalStrategies = [
|
|
|
24399
24538
|
depositTokens: [Global.getDefaultTokens().find((token) => token.symbol === "ETH")],
|
|
24400
24539
|
additionalInfo: getLooperSettings("ETH", "WBTC", ethVaultSettings, VesuPools.Genesis, VesuPools.Genesis),
|
|
24401
24540
|
risk: {
|
|
24402
|
-
riskFactor:
|
|
24403
|
-
netRisk:
|
|
24404
|
-
notARisks: getNoRiskTags(
|
|
24541
|
+
riskFactor: _riskFactor3,
|
|
24542
|
+
netRisk: _riskFactor3.reduce((acc, curr) => acc + curr.value * curr.weight, 0) / _riskFactor3.reduce((acc, curr) => acc + curr.weight, 0),
|
|
24543
|
+
notARisks: getNoRiskTags(_riskFactor3)
|
|
24405
24544
|
},
|
|
24406
24545
|
protocols: [Protocols.VESU],
|
|
24407
24546
|
maxTVL: Web3Number.fromWei(0, 18),
|
|
@@ -24418,9 +24557,9 @@ var UniversalStrategies = [
|
|
|
24418
24557
|
depositTokens: [Global.getDefaultTokens().find((token) => token.symbol === "STRK")],
|
|
24419
24558
|
additionalInfo: getLooperSettings("STRK", "ETH", strkVaultSettings, VesuPools.Genesis, VesuPools.Genesis),
|
|
24420
24559
|
risk: {
|
|
24421
|
-
riskFactor:
|
|
24422
|
-
netRisk:
|
|
24423
|
-
notARisks: getNoRiskTags(
|
|
24560
|
+
riskFactor: _riskFactor3,
|
|
24561
|
+
netRisk: _riskFactor3.reduce((acc, curr) => acc + curr.value * curr.weight, 0) / _riskFactor3.reduce((acc, curr) => acc + curr.weight, 0),
|
|
24562
|
+
notARisks: getNoRiskTags(_riskFactor3)
|
|
24424
24563
|
},
|
|
24425
24564
|
protocols: [Protocols.VESU],
|
|
24426
24565
|
maxTVL: Web3Number.fromWei(0, 18),
|
|
@@ -24437,9 +24576,9 @@ var UniversalStrategies = [
|
|
|
24437
24576
|
depositTokens: [Global.getDefaultTokens().find((token) => token.symbol === "USDT")],
|
|
24438
24577
|
additionalInfo: getLooperSettings("USDT", "ETH", usdtVaultSettings, VesuPools.Genesis, VesuPools.Genesis),
|
|
24439
24578
|
risk: {
|
|
24440
|
-
riskFactor:
|
|
24441
|
-
netRisk:
|
|
24442
|
-
notARisks: getNoRiskTags(
|
|
24579
|
+
riskFactor: _riskFactor3,
|
|
24580
|
+
netRisk: _riskFactor3.reduce((acc, curr) => acc + curr.value * curr.weight, 0) / _riskFactor3.reduce((acc, curr) => acc + curr.weight, 0),
|
|
24581
|
+
notARisks: getNoRiskTags(_riskFactor3)
|
|
24443
24582
|
},
|
|
24444
24583
|
protocols: [Protocols.VESU],
|
|
24445
24584
|
maxTVL: Web3Number.fromWei(0, 6),
|
|
@@ -24455,11 +24594,9 @@ var TelegramNotif = class {
|
|
|
24455
24594
|
constructor(token, shouldPoll) {
|
|
24456
24595
|
this.subscribers = [
|
|
24457
24596
|
// '6820228303',
|
|
24458
|
-
|
|
24459
|
-
|
|
24460
|
-
//
|
|
24461
|
-
"1388729514",
|
|
24462
|
-
// hwashere
|
|
24597
|
+
// '1505578076',
|
|
24598
|
+
// '1356705582', // langs
|
|
24599
|
+
// '1388729514', // hwashere
|
|
24463
24600
|
"985902592"
|
|
24464
24601
|
];
|
|
24465
24602
|
this.bot = new import_node_telegram_bot_api.default(token, { polling: shouldPoll });
|