@strkfarm/sdk 1.1.4 → 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 +256 -115
- 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
|
@@ -305,7 +305,7 @@ var defaultTokens = [{
|
|
|
305
305
|
name: "WBTC",
|
|
306
306
|
symbol: "WBTC",
|
|
307
307
|
logo: "https://assets.troves.fi/integrations/tokens/wbtc.svg",
|
|
308
|
-
address: ContractAddr.from("
|
|
308
|
+
address: ContractAddr.from("0x03fe2b97c1fd336e750087d68b9b867997fd64a2661ff3ca5a7c771641e8e7ac"),
|
|
309
309
|
decimals: 8,
|
|
310
310
|
coingeckId: void 0,
|
|
311
311
|
displayDecimals: 6,
|
|
@@ -321,6 +321,26 @@ var defaultTokens = [{
|
|
|
321
321
|
displayDecimals: 6,
|
|
322
322
|
priceCheckAmount: 1e-4
|
|
323
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
|
|
324
344
|
}];
|
|
325
345
|
var tokens = defaultTokens;
|
|
326
346
|
var _Global = class _Global {
|
|
@@ -16348,14 +16368,31 @@ var _protocol2 = {
|
|
|
16348
16368
|
name: "Ekubo",
|
|
16349
16369
|
logo: "https://app.ekubo.org/favicon.ico"
|
|
16350
16370
|
};
|
|
16351
|
-
var
|
|
16352
|
-
{ type: "Smart Contract Risk" /* SMART_CONTRACT_RISK */, value:
|
|
16353
|
-
{ type: "Impermanent Loss Risk" /* IMPERMANENT_LOSS */, value:
|
|
16354
|
-
{ 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" }
|
|
16355
16380
|
];
|
|
16356
|
-
var
|
|
16357
|
-
{ 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" }
|
|
16358
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
|
+
};
|
|
16359
16396
|
var AUDIT_URL2 = "https://assets.troves.fi/strkfarm/audit_report_vesu_and_ekubo_strats.pdf";
|
|
16360
16397
|
var faqs2 = [
|
|
16361
16398
|
{
|
|
@@ -16370,6 +16407,10 @@ var faqs2 = [
|
|
|
16370
16407
|
question: "What happens during withdrawal?",
|
|
16371
16408
|
answer: "During withdrawal, you may receive either or both tokens depending on market conditions and prevailing prices."
|
|
16372
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
|
+
},
|
|
16373
16414
|
{
|
|
16374
16415
|
question: "Is the strategy audited?",
|
|
16375
16416
|
answer: /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("div", { children: [
|
|
@@ -16404,9 +16445,9 @@ var xSTRKSTRK = {
|
|
|
16404
16445
|
auditUrl: AUDIT_URL2,
|
|
16405
16446
|
maxTVL: Web3Number.fromWei("0", 18),
|
|
16406
16447
|
risk: {
|
|
16407
|
-
riskFactor:
|
|
16408
|
-
netRisk:
|
|
16409
|
-
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)
|
|
16410
16451
|
},
|
|
16411
16452
|
apyMethodology: "APY based on 7-day historical performance, including fees and rewards.",
|
|
16412
16453
|
additionalInfo: {
|
|
@@ -16422,7 +16463,8 @@ var xSTRKSTRK = {
|
|
|
16422
16463
|
customShouldRebalance: async (currentPrice) => true,
|
|
16423
16464
|
minWaitHours: 24,
|
|
16424
16465
|
direction: "uponly"
|
|
16425
|
-
}
|
|
16466
|
+
},
|
|
16467
|
+
quoteAsset: Global.getDefaultTokens().find((t) => t.symbol === "STRK")
|
|
16426
16468
|
},
|
|
16427
16469
|
faqs: [
|
|
16428
16470
|
...faqs2,
|
|
@@ -16439,68 +16481,165 @@ var xSTRKSTRK = {
|
|
|
16439
16481
|
contractDetails: [],
|
|
16440
16482
|
investmentSteps: []
|
|
16441
16483
|
};
|
|
16442
|
-
var
|
|
16443
|
-
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,
|
|
16444
16525
|
{
|
|
16445
|
-
...
|
|
16526
|
+
...ETHUSDCRe7Strategy,
|
|
16446
16527
|
name: "Ekubo USDC/USDT",
|
|
16447
16528
|
description: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_jsx_runtime3.Fragment, {}),
|
|
16448
16529
|
address: ContractAddr.from(
|
|
16449
|
-
"
|
|
16530
|
+
"0x3a4f8debaf12af97bb911099bc011d63d6c208d4c5ba8e15d7f437785b0aaa2"
|
|
16450
16531
|
),
|
|
16451
|
-
launchBlock:
|
|
16532
|
+
launchBlock: 1501761,
|
|
16452
16533
|
// must be same order as poolKey token0 and token1
|
|
16453
16534
|
depositTokens: [
|
|
16454
16535
|
Global.getDefaultTokens().find((t) => t.symbol === "USDC"),
|
|
16455
16536
|
Global.getDefaultTokens().find((t) => t.symbol === "USDT")
|
|
16456
16537
|
],
|
|
16457
|
-
|
|
16458
|
-
newBounds: {
|
|
16459
|
-
lower: -1,
|
|
16460
|
-
upper: 1
|
|
16461
|
-
},
|
|
16462
|
-
truePrice: 1,
|
|
16463
|
-
feeBps: 1e3,
|
|
16464
|
-
rebalanceConditions: {
|
|
16465
|
-
customShouldRebalance: async (currentPrice) => currentPrice > 0.99 && currentPrice < 1.01,
|
|
16466
|
-
minWaitHours: 6,
|
|
16467
|
-
direction: "any"
|
|
16468
|
-
}
|
|
16469
|
-
}
|
|
16538
|
+
risk: xSTRKSTRK.risk
|
|
16470
16539
|
},
|
|
16471
16540
|
{
|
|
16472
|
-
...
|
|
16541
|
+
...ETHUSDCRe7Strategy,
|
|
16473
16542
|
name: "Ekubo STRK/USDC",
|
|
16474
16543
|
description: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_jsx_runtime3.Fragment, {}),
|
|
16475
16544
|
address: ContractAddr.from(
|
|
16476
|
-
"
|
|
16545
|
+
"0x351b36d0d9d8b40010658825adeeddb1397436cd41acd0ff6c6e23aaa8b5b30"
|
|
16477
16546
|
),
|
|
16478
|
-
launchBlock:
|
|
16547
|
+
launchBlock: 1501762,
|
|
16479
16548
|
// must be same order as poolKey token0 and token1
|
|
16480
16549
|
depositTokens: [
|
|
16481
16550
|
Global.getDefaultTokens().find((t) => t.symbol === "STRK"),
|
|
16482
16551
|
Global.getDefaultTokens().find((t) => t.symbol === "USDC")
|
|
16483
16552
|
],
|
|
16484
|
-
|
|
16485
|
-
|
|
16486
|
-
|
|
16487
|
-
|
|
16488
|
-
|
|
16489
|
-
|
|
16490
|
-
|
|
16491
|
-
|
|
16492
|
-
|
|
16493
|
-
|
|
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
|
|
16494
16629
|
}
|
|
16495
16630
|
];
|
|
16631
|
+
var EkuboCLVaultStrategies = [
|
|
16632
|
+
xSTRKSTRK,
|
|
16633
|
+
...RE7Strategies
|
|
16634
|
+
];
|
|
16496
16635
|
EkuboCLVaultStrategies.forEach((s) => {
|
|
16497
16636
|
s.contractDetails = [
|
|
16498
16637
|
{
|
|
16499
16638
|
address: s.address,
|
|
16500
16639
|
name: "Vault",
|
|
16501
16640
|
sourceCodeUrl: "https://github.com/strkfarm/strkfarm-contracts/tree/main/src/strategies/cl_vault"
|
|
16502
|
-
}
|
|
16503
|
-
...COMMON_CONTRACTS
|
|
16641
|
+
}
|
|
16642
|
+
// ...COMMON_CONTRACTS
|
|
16504
16643
|
];
|
|
16505
16644
|
s.docs = "https://docs.troves.fi/p/ekubo-cl-vaults";
|
|
16506
16645
|
s.description = /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("div", { children: [
|
|
@@ -18471,7 +18610,7 @@ var endurProtocol = {
|
|
|
18471
18610
|
name: "Endur",
|
|
18472
18611
|
logo: "https://app.endur.fi/logo.png"
|
|
18473
18612
|
};
|
|
18474
|
-
var
|
|
18613
|
+
var _riskFactor2 = [
|
|
18475
18614
|
{ type: "Smart Contract Risk" /* SMART_CONTRACT_RISK */, value: 0.5, weight: 25, reason: "Audited by CSC" },
|
|
18476
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." },
|
|
18477
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" },
|
|
@@ -18546,9 +18685,9 @@ var SenseiStrategies = [
|
|
|
18546
18685
|
protocols: [endurProtocol, vesuProtocol],
|
|
18547
18686
|
maxTVL: new Web3Number("1500000", 18),
|
|
18548
18687
|
risk: {
|
|
18549
|
-
riskFactor:
|
|
18550
|
-
netRisk:
|
|
18551
|
-
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)
|
|
18552
18691
|
},
|
|
18553
18692
|
additionalInfo: {
|
|
18554
18693
|
mainToken: Global.getDefaultTokens().find((t) => t.symbol === "STRK"),
|
|
@@ -24162,7 +24301,7 @@ function getLooperSettings(token1Symbol, token2Symbol, vaultSettings, pool1, poo
|
|
|
24162
24301
|
vaultSettings.leafAdapters.push(commonAdapter.getAvnuAdapter(STRKToken.address, USDCToken.address, "avnu_swap_rewards" /* AVNU_SWAP_REWARDS */).bind(commonAdapter));
|
|
24163
24302
|
return vaultSettings;
|
|
24164
24303
|
}
|
|
24165
|
-
var
|
|
24304
|
+
var _riskFactor3 = [
|
|
24166
24305
|
{ type: "Smart Contract Risk" /* SMART_CONTRACT_RISK */, value: 0.5, weight: 25, reason: "Audited by Zellic" },
|
|
24167
24306
|
{ type: "Liquidation Risk" /* LIQUIDATION_RISK */, value: 1.5, weight: 50, reason: "Liquidation risk is mitigated by stable price feed on Starknet" },
|
|
24168
24307
|
{ type: "Technical Risk" /* TECHNICAL_RISK */, value: 1, weight: 50, reason: "Technical failures like risk monitoring failures" }
|
|
@@ -24366,9 +24505,9 @@ var UniversalStrategies = [
|
|
|
24366
24505
|
depositTokens: [Global.getDefaultTokens().find((token) => token.symbol === "USDC")],
|
|
24367
24506
|
additionalInfo: getLooperSettings("USDC", "ETH", usdcVaultSettings, VesuPools.Genesis, VesuPools.Genesis),
|
|
24368
24507
|
risk: {
|
|
24369
|
-
riskFactor:
|
|
24370
|
-
netRisk:
|
|
24371
|
-
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)
|
|
24372
24511
|
},
|
|
24373
24512
|
protocols: [Protocols.VESU],
|
|
24374
24513
|
maxTVL: Web3Number.fromWei(0, 6),
|
|
@@ -24385,9 +24524,9 @@ var UniversalStrategies = [
|
|
|
24385
24524
|
depositTokens: [Global.getDefaultTokens().find((token) => token.symbol === "WBTC")],
|
|
24386
24525
|
additionalInfo: getLooperSettings("WBTC", "ETH", wbtcVaultSettings, VesuPools.Genesis, VesuPools.Genesis),
|
|
24387
24526
|
risk: {
|
|
24388
|
-
riskFactor:
|
|
24389
|
-
netRisk:
|
|
24390
|
-
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)
|
|
24391
24530
|
},
|
|
24392
24531
|
protocols: [Protocols.VESU],
|
|
24393
24532
|
maxTVL: Web3Number.fromWei(0, 8),
|
|
@@ -24404,9 +24543,9 @@ var UniversalStrategies = [
|
|
|
24404
24543
|
depositTokens: [Global.getDefaultTokens().find((token) => token.symbol === "ETH")],
|
|
24405
24544
|
additionalInfo: getLooperSettings("ETH", "WBTC", ethVaultSettings, VesuPools.Genesis, VesuPools.Genesis),
|
|
24406
24545
|
risk: {
|
|
24407
|
-
riskFactor:
|
|
24408
|
-
netRisk:
|
|
24409
|
-
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)
|
|
24410
24549
|
},
|
|
24411
24550
|
protocols: [Protocols.VESU],
|
|
24412
24551
|
maxTVL: Web3Number.fromWei(0, 18),
|
|
@@ -24423,9 +24562,9 @@ var UniversalStrategies = [
|
|
|
24423
24562
|
depositTokens: [Global.getDefaultTokens().find((token) => token.symbol === "STRK")],
|
|
24424
24563
|
additionalInfo: getLooperSettings("STRK", "ETH", strkVaultSettings, VesuPools.Genesis, VesuPools.Genesis),
|
|
24425
24564
|
risk: {
|
|
24426
|
-
riskFactor:
|
|
24427
|
-
netRisk:
|
|
24428
|
-
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)
|
|
24429
24568
|
},
|
|
24430
24569
|
protocols: [Protocols.VESU],
|
|
24431
24570
|
maxTVL: Web3Number.fromWei(0, 18),
|
|
@@ -24442,9 +24581,9 @@ var UniversalStrategies = [
|
|
|
24442
24581
|
depositTokens: [Global.getDefaultTokens().find((token) => token.symbol === "USDT")],
|
|
24443
24582
|
additionalInfo: getLooperSettings("USDT", "ETH", usdtVaultSettings, VesuPools.Genesis, VesuPools.Genesis),
|
|
24444
24583
|
risk: {
|
|
24445
|
-
riskFactor:
|
|
24446
|
-
netRisk:
|
|
24447
|
-
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)
|
|
24448
24587
|
},
|
|
24449
24588
|
protocols: [Protocols.VESU],
|
|
24450
24589
|
maxTVL: Web3Number.fromWei(0, 6),
|
|
@@ -24460,11 +24599,9 @@ var TelegramNotif = class {
|
|
|
24460
24599
|
constructor(token, shouldPoll) {
|
|
24461
24600
|
this.subscribers = [
|
|
24462
24601
|
// '6820228303',
|
|
24463
|
-
|
|
24464
|
-
|
|
24465
|
-
//
|
|
24466
|
-
"1388729514",
|
|
24467
|
-
// hwashere
|
|
24602
|
+
// '1505578076',
|
|
24603
|
+
// '1356705582', // langs
|
|
24604
|
+
// '1388729514', // hwashere
|
|
24468
24605
|
"985902592"
|
|
24469
24606
|
];
|
|
24470
24607
|
this.bot = new import_node_telegram_bot_api.default(token, { polling: shouldPoll });
|