@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.browser.mjs
CHANGED
|
@@ -177,7 +177,7 @@ var defaultTokens = [{
|
|
|
177
177
|
name: "WBTC",
|
|
178
178
|
symbol: "WBTC",
|
|
179
179
|
logo: "https://assets.troves.fi/integrations/tokens/wbtc.svg",
|
|
180
|
-
address: ContractAddr.from("
|
|
180
|
+
address: ContractAddr.from("0x03fe2b97c1fd336e750087d68b9b867997fd64a2661ff3ca5a7c771641e8e7ac"),
|
|
181
181
|
decimals: 8,
|
|
182
182
|
coingeckId: void 0,
|
|
183
183
|
displayDecimals: 6,
|
|
@@ -193,6 +193,26 @@ var defaultTokens = [{
|
|
|
193
193
|
displayDecimals: 6,
|
|
194
194
|
priceCheckAmount: 1e-4
|
|
195
195
|
// 112000 * 0.0001 = $11.2
|
|
196
|
+
}, {
|
|
197
|
+
name: "solvBTC",
|
|
198
|
+
symbol: "solvBTC",
|
|
199
|
+
logo: "https://assets.strkfarm.com/integrations/tokens/solvbtc.svg",
|
|
200
|
+
address: ContractAddr.from("0x0593e034dda23eea82d2ba9a30960ed42cf4a01502cc2351dc9b9881f9931a68"),
|
|
201
|
+
decimals: 18,
|
|
202
|
+
coingeckId: void 0,
|
|
203
|
+
displayDecimals: 6,
|
|
204
|
+
priceCheckAmount: 1e-4
|
|
205
|
+
// 112000 * 0.0001 = $11.2
|
|
206
|
+
}, {
|
|
207
|
+
name: "LBTC",
|
|
208
|
+
symbol: "LBTC",
|
|
209
|
+
logo: "https://assets.strkfarm.com/integrations/tokens/lbtc.svg",
|
|
210
|
+
address: ContractAddr.from("0x036834a40984312f7f7de8d31e3f6305b325389eaeea5b1c0664b2fb936461a4"),
|
|
211
|
+
decimals: 8,
|
|
212
|
+
coingeckId: void 0,
|
|
213
|
+
displayDecimals: 6,
|
|
214
|
+
priceCheckAmount: 1e-4
|
|
215
|
+
// 112000 * 0.0001 = $11.2
|
|
196
216
|
}];
|
|
197
217
|
var tokens = defaultTokens;
|
|
198
218
|
var _Global = class _Global {
|
|
@@ -16216,14 +16236,31 @@ var _protocol2 = {
|
|
|
16216
16236
|
name: "Ekubo",
|
|
16217
16237
|
logo: "https://app.ekubo.org/favicon.ico"
|
|
16218
16238
|
};
|
|
16219
|
-
var
|
|
16220
|
-
{ type: "Smart Contract Risk" /* SMART_CONTRACT_RISK */, value:
|
|
16221
|
-
{ type: "Impermanent Loss Risk" /* IMPERMANENT_LOSS */, value:
|
|
16222
|
-
{ type: "Market Risk" /* MARKET_RISK */, value:
|
|
16239
|
+
var _corelatedPoolRiskFactors = [
|
|
16240
|
+
{ type: "Smart Contract Risk" /* SMART_CONTRACT_RISK */, value: 2 /* WELL_AUDITED */, weight: 34, reason: "Audited smart contracts" },
|
|
16241
|
+
{ type: "Impermanent Loss Risk" /* IMPERMANENT_LOSS */, value: 1 /* HIGHLY_CORRELATED */, weight: 33, reason: "Low risk due to co-related assets" },
|
|
16242
|
+
{ type: "Market Risk" /* MARKET_RISK */, value: 1 /* VERY_LOW_VOLATILITY */, weight: 33, reason: "Low risk due to co-related assets" }
|
|
16243
|
+
];
|
|
16244
|
+
var mediumVolatilityPoolRiskFactors = [
|
|
16245
|
+
{ type: "Smart Contract Risk" /* SMART_CONTRACT_RISK */, value: 2 /* WELL_AUDITED */, weight: 34, reason: "Audited smart contracts" },
|
|
16246
|
+
{ type: "Impermanent Loss Risk" /* IMPERMANENT_LOSS */, value: 3 /* NON_CORRELATED */, weight: 33, reason: "Low risk due to co-related assets" },
|
|
16247
|
+
{ type: "Market Risk" /* MARKET_RISK */, value: 3 /* MODERATE_VOLATILITY */, weight: 33, reason: "Low risk due to co-related assets" }
|
|
16223
16248
|
];
|
|
16224
|
-
var
|
|
16225
|
-
{ type: "Smart Contract Risk" /* SMART_CONTRACT_RISK */, value:
|
|
16249
|
+
var highVolatilityPoolRiskFactors = [
|
|
16250
|
+
{ type: "Smart Contract Risk" /* SMART_CONTRACT_RISK */, value: 2 /* WELL_AUDITED */, weight: 34, reason: "Audited smart contracts" },
|
|
16251
|
+
{ type: "Impermanent Loss Risk" /* IMPERMANENT_LOSS */, value: 3 /* NON_CORRELATED */, weight: 33, reason: "Low risk due to co-related assets" },
|
|
16252
|
+
{ type: "Market Risk" /* MARKET_RISK */, value: 4 /* HIGH_VOLATILITY */, weight: 33, reason: "Low risk due to co-related assets" }
|
|
16226
16253
|
];
|
|
16254
|
+
var mediumRisk = {
|
|
16255
|
+
riskFactor: mediumVolatilityPoolRiskFactors,
|
|
16256
|
+
netRisk: mediumVolatilityPoolRiskFactors.reduce((acc, curr) => acc + curr.value * curr.weight, 0) / mediumVolatilityPoolRiskFactors.reduce((acc, curr) => acc + curr.weight, 0),
|
|
16257
|
+
notARisks: getNoRiskTags(mediumVolatilityPoolRiskFactors)
|
|
16258
|
+
};
|
|
16259
|
+
var highRisk = {
|
|
16260
|
+
riskFactor: highVolatilityPoolRiskFactors,
|
|
16261
|
+
netRisk: highVolatilityPoolRiskFactors.reduce((acc, curr) => acc + curr.value * curr.weight, 0) / highVolatilityPoolRiskFactors.reduce((acc, curr) => acc + curr.weight, 0),
|
|
16262
|
+
notARisks: getNoRiskTags(highVolatilityPoolRiskFactors)
|
|
16263
|
+
};
|
|
16227
16264
|
var AUDIT_URL2 = "https://assets.troves.fi/strkfarm/audit_report_vesu_and_ekubo_strats.pdf";
|
|
16228
16265
|
var faqs2 = [
|
|
16229
16266
|
{
|
|
@@ -16238,6 +16275,10 @@ var faqs2 = [
|
|
|
16238
16275
|
question: "What happens during withdrawal?",
|
|
16239
16276
|
answer: "During withdrawal, you may receive either or both tokens depending on market conditions and prevailing prices."
|
|
16240
16277
|
},
|
|
16278
|
+
{
|
|
16279
|
+
question: "Are there any deposit/withdrawal fees?",
|
|
16280
|
+
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."
|
|
16281
|
+
},
|
|
16241
16282
|
{
|
|
16242
16283
|
question: "Is the strategy audited?",
|
|
16243
16284
|
answer: /* @__PURE__ */ jsxs2("div", { children: [
|
|
@@ -16272,9 +16313,9 @@ var xSTRKSTRK = {
|
|
|
16272
16313
|
auditUrl: AUDIT_URL2,
|
|
16273
16314
|
maxTVL: Web3Number.fromWei("0", 18),
|
|
16274
16315
|
risk: {
|
|
16275
|
-
riskFactor:
|
|
16276
|
-
netRisk:
|
|
16277
|
-
notARisks: getNoRiskTags(
|
|
16316
|
+
riskFactor: _corelatedPoolRiskFactors,
|
|
16317
|
+
netRisk: _corelatedPoolRiskFactors.reduce((acc, curr) => acc + curr.value * curr.weight, 0) / _corelatedPoolRiskFactors.reduce((acc, curr) => acc + curr.weight, 0),
|
|
16318
|
+
notARisks: getNoRiskTags(_corelatedPoolRiskFactors)
|
|
16278
16319
|
},
|
|
16279
16320
|
apyMethodology: "APY based on 7-day historical performance, including fees and rewards.",
|
|
16280
16321
|
additionalInfo: {
|
|
@@ -16290,7 +16331,8 @@ var xSTRKSTRK = {
|
|
|
16290
16331
|
customShouldRebalance: async (currentPrice) => true,
|
|
16291
16332
|
minWaitHours: 24,
|
|
16292
16333
|
direction: "uponly"
|
|
16293
|
-
}
|
|
16334
|
+
},
|
|
16335
|
+
quoteAsset: Global.getDefaultTokens().find((t) => t.symbol === "STRK")
|
|
16294
16336
|
},
|
|
16295
16337
|
faqs: [
|
|
16296
16338
|
...faqs2,
|
|
@@ -16307,68 +16349,165 @@ var xSTRKSTRK = {
|
|
|
16307
16349
|
contractDetails: [],
|
|
16308
16350
|
investmentSteps: []
|
|
16309
16351
|
};
|
|
16310
|
-
var
|
|
16311
|
-
xSTRKSTRK,
|
|
16352
|
+
var ETHUSDCRe7Strategy = {
|
|
16353
|
+
...xSTRKSTRK,
|
|
16354
|
+
name: "Ekubo ETH/USDC",
|
|
16355
|
+
description: /* @__PURE__ */ jsx3(Fragment2, {}),
|
|
16356
|
+
address: ContractAddr.from(
|
|
16357
|
+
"0x160d8fa4569ef6a12e6bf47cb943d7b5ebba8a41a69a14c1d943050ba5ff947"
|
|
16358
|
+
),
|
|
16359
|
+
launchBlock: 1501761,
|
|
16360
|
+
// must be same order as poolKey token0 and token1
|
|
16361
|
+
depositTokens: [
|
|
16362
|
+
Global.getDefaultTokens().find((t) => t.symbol === "ETH"),
|
|
16363
|
+
Global.getDefaultTokens().find((t) => t.symbol === "USDC")
|
|
16364
|
+
],
|
|
16365
|
+
additionalInfo: {
|
|
16366
|
+
newBounds: "Managed by Re7",
|
|
16367
|
+
truePrice: 1,
|
|
16368
|
+
feeBps: 1e3,
|
|
16369
|
+
rebalanceConditions: {
|
|
16370
|
+
customShouldRebalance: async (currentPrice) => currentPrice > 0.99 && currentPrice < 1.01,
|
|
16371
|
+
minWaitHours: 6,
|
|
16372
|
+
direction: "any"
|
|
16373
|
+
},
|
|
16374
|
+
quoteAsset: Global.getDefaultTokens().find((t) => t.symbol === "USDC")
|
|
16375
|
+
},
|
|
16376
|
+
faqs: [
|
|
16377
|
+
...faqs2,
|
|
16378
|
+
{
|
|
16379
|
+
question: "Who is the curator of this strategy?",
|
|
16380
|
+
answer: /* @__PURE__ */ jsxs2("div", { children: [
|
|
16381
|
+
"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 ",
|
|
16382
|
+
/* @__PURE__ */ jsx3("a", { href: "https://www.re7labs.xyz", style: { textDecoration: "underline", marginLeft: "2px" }, target: "_blank", children: "here" }),
|
|
16383
|
+
"."
|
|
16384
|
+
] })
|
|
16385
|
+
}
|
|
16386
|
+
],
|
|
16387
|
+
risk: highRisk,
|
|
16388
|
+
points: [],
|
|
16389
|
+
curator: { name: "Re7 Labs", logo: "https://www.re7labs.xyz/favicon.ico" }
|
|
16390
|
+
};
|
|
16391
|
+
var RE7Strategies = [
|
|
16392
|
+
ETHUSDCRe7Strategy,
|
|
16312
16393
|
{
|
|
16313
|
-
...
|
|
16394
|
+
...ETHUSDCRe7Strategy,
|
|
16314
16395
|
name: "Ekubo USDC/USDT",
|
|
16315
16396
|
description: /* @__PURE__ */ jsx3(Fragment2, {}),
|
|
16316
16397
|
address: ContractAddr.from(
|
|
16317
|
-
"
|
|
16398
|
+
"0x3a4f8debaf12af97bb911099bc011d63d6c208d4c5ba8e15d7f437785b0aaa2"
|
|
16318
16399
|
),
|
|
16319
|
-
launchBlock:
|
|
16400
|
+
launchBlock: 1501761,
|
|
16320
16401
|
// must be same order as poolKey token0 and token1
|
|
16321
16402
|
depositTokens: [
|
|
16322
16403
|
Global.getDefaultTokens().find((t) => t.symbol === "USDC"),
|
|
16323
16404
|
Global.getDefaultTokens().find((t) => t.symbol === "USDT")
|
|
16324
16405
|
],
|
|
16325
|
-
|
|
16326
|
-
newBounds: {
|
|
16327
|
-
lower: -1,
|
|
16328
|
-
upper: 1
|
|
16329
|
-
},
|
|
16330
|
-
truePrice: 1,
|
|
16331
|
-
feeBps: 1e3,
|
|
16332
|
-
rebalanceConditions: {
|
|
16333
|
-
customShouldRebalance: async (currentPrice) => currentPrice > 0.99 && currentPrice < 1.01,
|
|
16334
|
-
minWaitHours: 6,
|
|
16335
|
-
direction: "any"
|
|
16336
|
-
}
|
|
16337
|
-
}
|
|
16406
|
+
risk: xSTRKSTRK.risk
|
|
16338
16407
|
},
|
|
16339
16408
|
{
|
|
16340
|
-
...
|
|
16409
|
+
...ETHUSDCRe7Strategy,
|
|
16341
16410
|
name: "Ekubo STRK/USDC",
|
|
16342
16411
|
description: /* @__PURE__ */ jsx3(Fragment2, {}),
|
|
16343
16412
|
address: ContractAddr.from(
|
|
16344
|
-
"
|
|
16413
|
+
"0x351b36d0d9d8b40010658825adeeddb1397436cd41acd0ff6c6e23aaa8b5b30"
|
|
16345
16414
|
),
|
|
16346
|
-
launchBlock:
|
|
16415
|
+
launchBlock: 1501762,
|
|
16347
16416
|
// must be same order as poolKey token0 and token1
|
|
16348
16417
|
depositTokens: [
|
|
16349
16418
|
Global.getDefaultTokens().find((t) => t.symbol === "STRK"),
|
|
16350
16419
|
Global.getDefaultTokens().find((t) => t.symbol === "USDC")
|
|
16351
16420
|
],
|
|
16352
|
-
|
|
16353
|
-
|
|
16354
|
-
|
|
16355
|
-
|
|
16356
|
-
|
|
16357
|
-
|
|
16358
|
-
|
|
16359
|
-
|
|
16360
|
-
|
|
16361
|
-
|
|
16421
|
+
risk: highRisk
|
|
16422
|
+
},
|
|
16423
|
+
{
|
|
16424
|
+
...ETHUSDCRe7Strategy,
|
|
16425
|
+
name: "Ekubo STRK/ETH",
|
|
16426
|
+
description: /* @__PURE__ */ jsx3(Fragment2, {}),
|
|
16427
|
+
address: ContractAddr.from(
|
|
16428
|
+
"0x4ce3024b0ee879009112d7b0e073f8a87153dd35b029347d4247ffe48d28f51"
|
|
16429
|
+
),
|
|
16430
|
+
launchBlock: 1501763,
|
|
16431
|
+
// must be same order as poolKey token0 and token1
|
|
16432
|
+
depositTokens: [
|
|
16433
|
+
Global.getDefaultTokens().find((t) => t.symbol === "STRK"),
|
|
16434
|
+
Global.getDefaultTokens().find((t) => t.symbol === "ETH")
|
|
16435
|
+
],
|
|
16436
|
+
risk: highRisk
|
|
16437
|
+
},
|
|
16438
|
+
{
|
|
16439
|
+
...ETHUSDCRe7Strategy,
|
|
16440
|
+
name: "Ekubo WBTC/USDC",
|
|
16441
|
+
description: /* @__PURE__ */ jsx3(Fragment2, {}),
|
|
16442
|
+
address: ContractAddr.from(
|
|
16443
|
+
"0x2bcaef2eb7706875a5fdc6853dd961a0590f850bc3a031c59887189b5e84ba1"
|
|
16444
|
+
),
|
|
16445
|
+
launchBlock: 1501764,
|
|
16446
|
+
// must be same order as poolKey token0 and token1
|
|
16447
|
+
depositTokens: [
|
|
16448
|
+
Global.getDefaultTokens().find((t) => t.symbol === "WBTC"),
|
|
16449
|
+
Global.getDefaultTokens().find((t) => t.symbol === "USDC")
|
|
16450
|
+
],
|
|
16451
|
+
risk: mediumRisk
|
|
16452
|
+
},
|
|
16453
|
+
{
|
|
16454
|
+
...ETHUSDCRe7Strategy,
|
|
16455
|
+
name: "Ekubo tBTC/USDC",
|
|
16456
|
+
description: /* @__PURE__ */ jsx3(Fragment2, {}),
|
|
16457
|
+
address: ContractAddr.from(
|
|
16458
|
+
"0x4aad891a2d4432fba06b6558631bb13f6bbd7f6f33ab8c3111e344889ea4456"
|
|
16459
|
+
),
|
|
16460
|
+
launchBlock: 1501764,
|
|
16461
|
+
// must be same order as poolKey token0 and token1
|
|
16462
|
+
depositTokens: [
|
|
16463
|
+
Global.getDefaultTokens().find((t) => t.symbol === "tBTC"),
|
|
16464
|
+
Global.getDefaultTokens().find((t) => t.symbol === "USDC")
|
|
16465
|
+
],
|
|
16466
|
+
risk: mediumRisk
|
|
16467
|
+
},
|
|
16468
|
+
{
|
|
16469
|
+
...ETHUSDCRe7Strategy,
|
|
16470
|
+
name: "Ekubo WBTC/ETH",
|
|
16471
|
+
description: /* @__PURE__ */ jsx3(Fragment2, {}),
|
|
16472
|
+
address: ContractAddr.from(
|
|
16473
|
+
"0x1c9232b8186d9317652f05055615f18a120c2ad9e5ee96c39e031c257fb945b"
|
|
16474
|
+
),
|
|
16475
|
+
launchBlock: 1501765,
|
|
16476
|
+
// must be same order as poolKey token0 and token1
|
|
16477
|
+
depositTokens: [
|
|
16478
|
+
Global.getDefaultTokens().find((t) => t.symbol === "WBTC"),
|
|
16479
|
+
Global.getDefaultTokens().find((t) => t.symbol === "ETH")
|
|
16480
|
+
],
|
|
16481
|
+
risk: mediumRisk
|
|
16482
|
+
},
|
|
16483
|
+
{
|
|
16484
|
+
...ETHUSDCRe7Strategy,
|
|
16485
|
+
name: "Ekubo WBTC/STRK",
|
|
16486
|
+
description: /* @__PURE__ */ jsx3(Fragment2, {}),
|
|
16487
|
+
address: ContractAddr.from(
|
|
16488
|
+
"0x1248e385c23a929a015ec298a26560fa7745bbd6e41a886550e337b02714b1b"
|
|
16489
|
+
),
|
|
16490
|
+
launchBlock: 1501766,
|
|
16491
|
+
// must be same order as poolKey token0 and token1
|
|
16492
|
+
depositTokens: [
|
|
16493
|
+
Global.getDefaultTokens().find((t) => t.symbol === "WBTC"),
|
|
16494
|
+
Global.getDefaultTokens().find((t) => t.symbol === "STRK")
|
|
16495
|
+
],
|
|
16496
|
+
risk: highRisk
|
|
16362
16497
|
}
|
|
16363
16498
|
];
|
|
16499
|
+
var EkuboCLVaultStrategies = [
|
|
16500
|
+
xSTRKSTRK,
|
|
16501
|
+
...RE7Strategies
|
|
16502
|
+
];
|
|
16364
16503
|
EkuboCLVaultStrategies.forEach((s) => {
|
|
16365
16504
|
s.contractDetails = [
|
|
16366
16505
|
{
|
|
16367
16506
|
address: s.address,
|
|
16368
16507
|
name: "Vault",
|
|
16369
16508
|
sourceCodeUrl: "https://github.com/strkfarm/strkfarm-contracts/tree/main/src/strategies/cl_vault"
|
|
16370
|
-
}
|
|
16371
|
-
...COMMON_CONTRACTS
|
|
16509
|
+
}
|
|
16510
|
+
// ...COMMON_CONTRACTS
|
|
16372
16511
|
];
|
|
16373
16512
|
s.docs = "https://docs.troves.fi/p/ekubo-cl-vaults";
|
|
16374
16513
|
s.description = /* @__PURE__ */ jsxs2("div", { children: [
|
|
@@ -18339,7 +18478,7 @@ var endurProtocol = {
|
|
|
18339
18478
|
name: "Endur",
|
|
18340
18479
|
logo: "https://app.endur.fi/logo.png"
|
|
18341
18480
|
};
|
|
18342
|
-
var
|
|
18481
|
+
var _riskFactor2 = [
|
|
18343
18482
|
{ type: "Smart Contract Risk" /* SMART_CONTRACT_RISK */, value: 0.5, weight: 25, reason: "Audited by CSC" },
|
|
18344
18483
|
{ 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." },
|
|
18345
18484
|
{ 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" },
|
|
@@ -18414,9 +18553,9 @@ var SenseiStrategies = [
|
|
|
18414
18553
|
protocols: [endurProtocol, vesuProtocol],
|
|
18415
18554
|
maxTVL: new Web3Number("1500000", 18),
|
|
18416
18555
|
risk: {
|
|
18417
|
-
riskFactor:
|
|
18418
|
-
netRisk:
|
|
18419
|
-
notARisks: getNoRiskTags(
|
|
18556
|
+
riskFactor: _riskFactor2,
|
|
18557
|
+
netRisk: _riskFactor2.reduce((acc, curr) => acc + curr.value * curr.weight, 0) / _riskFactor2.reduce((acc, curr) => acc + curr.weight, 0),
|
|
18558
|
+
notARisks: getNoRiskTags(_riskFactor2)
|
|
18420
18559
|
},
|
|
18421
18560
|
additionalInfo: {
|
|
18422
18561
|
mainToken: Global.getDefaultTokens().find((t) => t.symbol === "STRK"),
|
|
@@ -24030,7 +24169,7 @@ function getLooperSettings(token1Symbol, token2Symbol, vaultSettings, pool1, poo
|
|
|
24030
24169
|
vaultSettings.leafAdapters.push(commonAdapter.getAvnuAdapter(STRKToken.address, USDCToken.address, "avnu_swap_rewards" /* AVNU_SWAP_REWARDS */).bind(commonAdapter));
|
|
24031
24170
|
return vaultSettings;
|
|
24032
24171
|
}
|
|
24033
|
-
var
|
|
24172
|
+
var _riskFactor3 = [
|
|
24034
24173
|
{ type: "Smart Contract Risk" /* SMART_CONTRACT_RISK */, value: 0.5, weight: 25, reason: "Audited by Zellic" },
|
|
24035
24174
|
{ type: "Liquidation Risk" /* LIQUIDATION_RISK */, value: 1.5, weight: 50, reason: "Liquidation risk is mitigated by stable price feed on Starknet" },
|
|
24036
24175
|
{ type: "Technical Risk" /* TECHNICAL_RISK */, value: 1, weight: 50, reason: "Technical failures like risk monitoring failures" }
|
|
@@ -24234,9 +24373,9 @@ var UniversalStrategies = [
|
|
|
24234
24373
|
depositTokens: [Global.getDefaultTokens().find((token) => token.symbol === "USDC")],
|
|
24235
24374
|
additionalInfo: getLooperSettings("USDC", "ETH", usdcVaultSettings, VesuPools.Genesis, VesuPools.Genesis),
|
|
24236
24375
|
risk: {
|
|
24237
|
-
riskFactor:
|
|
24238
|
-
netRisk:
|
|
24239
|
-
notARisks: getNoRiskTags(
|
|
24376
|
+
riskFactor: _riskFactor3,
|
|
24377
|
+
netRisk: _riskFactor3.reduce((acc, curr) => acc + curr.value * curr.weight, 0) / _riskFactor3.reduce((acc, curr) => acc + curr.weight, 0),
|
|
24378
|
+
notARisks: getNoRiskTags(_riskFactor3)
|
|
24240
24379
|
},
|
|
24241
24380
|
protocols: [Protocols.VESU],
|
|
24242
24381
|
maxTVL: Web3Number.fromWei(0, 6),
|
|
@@ -24253,9 +24392,9 @@ var UniversalStrategies = [
|
|
|
24253
24392
|
depositTokens: [Global.getDefaultTokens().find((token) => token.symbol === "WBTC")],
|
|
24254
24393
|
additionalInfo: getLooperSettings("WBTC", "ETH", wbtcVaultSettings, VesuPools.Genesis, VesuPools.Genesis),
|
|
24255
24394
|
risk: {
|
|
24256
|
-
riskFactor:
|
|
24257
|
-
netRisk:
|
|
24258
|
-
notARisks: getNoRiskTags(
|
|
24395
|
+
riskFactor: _riskFactor3,
|
|
24396
|
+
netRisk: _riskFactor3.reduce((acc, curr) => acc + curr.value * curr.weight, 0) / _riskFactor3.reduce((acc, curr) => acc + curr.weight, 0),
|
|
24397
|
+
notARisks: getNoRiskTags(_riskFactor3)
|
|
24259
24398
|
},
|
|
24260
24399
|
protocols: [Protocols.VESU],
|
|
24261
24400
|
maxTVL: Web3Number.fromWei(0, 8),
|
|
@@ -24272,9 +24411,9 @@ var UniversalStrategies = [
|
|
|
24272
24411
|
depositTokens: [Global.getDefaultTokens().find((token) => token.symbol === "ETH")],
|
|
24273
24412
|
additionalInfo: getLooperSettings("ETH", "WBTC", ethVaultSettings, VesuPools.Genesis, VesuPools.Genesis),
|
|
24274
24413
|
risk: {
|
|
24275
|
-
riskFactor:
|
|
24276
|
-
netRisk:
|
|
24277
|
-
notARisks: getNoRiskTags(
|
|
24414
|
+
riskFactor: _riskFactor3,
|
|
24415
|
+
netRisk: _riskFactor3.reduce((acc, curr) => acc + curr.value * curr.weight, 0) / _riskFactor3.reduce((acc, curr) => acc + curr.weight, 0),
|
|
24416
|
+
notARisks: getNoRiskTags(_riskFactor3)
|
|
24278
24417
|
},
|
|
24279
24418
|
protocols: [Protocols.VESU],
|
|
24280
24419
|
maxTVL: Web3Number.fromWei(0, 18),
|
|
@@ -24291,9 +24430,9 @@ var UniversalStrategies = [
|
|
|
24291
24430
|
depositTokens: [Global.getDefaultTokens().find((token) => token.symbol === "STRK")],
|
|
24292
24431
|
additionalInfo: getLooperSettings("STRK", "ETH", strkVaultSettings, VesuPools.Genesis, VesuPools.Genesis),
|
|
24293
24432
|
risk: {
|
|
24294
|
-
riskFactor:
|
|
24295
|
-
netRisk:
|
|
24296
|
-
notARisks: getNoRiskTags(
|
|
24433
|
+
riskFactor: _riskFactor3,
|
|
24434
|
+
netRisk: _riskFactor3.reduce((acc, curr) => acc + curr.value * curr.weight, 0) / _riskFactor3.reduce((acc, curr) => acc + curr.weight, 0),
|
|
24435
|
+
notARisks: getNoRiskTags(_riskFactor3)
|
|
24297
24436
|
},
|
|
24298
24437
|
protocols: [Protocols.VESU],
|
|
24299
24438
|
maxTVL: Web3Number.fromWei(0, 18),
|
|
@@ -24310,9 +24449,9 @@ var UniversalStrategies = [
|
|
|
24310
24449
|
depositTokens: [Global.getDefaultTokens().find((token) => token.symbol === "USDT")],
|
|
24311
24450
|
additionalInfo: getLooperSettings("USDT", "ETH", usdtVaultSettings, VesuPools.Genesis, VesuPools.Genesis),
|
|
24312
24451
|
risk: {
|
|
24313
|
-
riskFactor:
|
|
24314
|
-
netRisk:
|
|
24315
|
-
notARisks: getNoRiskTags(
|
|
24452
|
+
riskFactor: _riskFactor3,
|
|
24453
|
+
netRisk: _riskFactor3.reduce((acc, curr) => acc + curr.value * curr.weight, 0) / _riskFactor3.reduce((acc, curr) => acc + curr.weight, 0),
|
|
24454
|
+
notARisks: getNoRiskTags(_riskFactor3)
|
|
24316
24455
|
},
|
|
24317
24456
|
protocols: [Protocols.VESU],
|
|
24318
24457
|
maxTVL: Web3Number.fromWei(0, 6),
|
package/dist/index.d.ts
CHANGED
|
@@ -133,6 +133,10 @@ interface IStrategyMetadata<T> {
|
|
|
133
133
|
}[];
|
|
134
134
|
docs?: string;
|
|
135
135
|
investmentSteps: string[];
|
|
136
|
+
curator?: {
|
|
137
|
+
name: string;
|
|
138
|
+
logo: string;
|
|
139
|
+
};
|
|
136
140
|
}
|
|
137
141
|
interface IInvestmentFlow {
|
|
138
142
|
id?: string;
|
|
@@ -668,6 +672,7 @@ interface CLVaultStrategySettings {
|
|
|
668
672
|
direction: "any" | "uponly";
|
|
669
673
|
customShouldRebalance: (currentPoolPrice: number) => Promise<boolean>;
|
|
670
674
|
};
|
|
675
|
+
quoteAsset: TokenInfo;
|
|
671
676
|
}
|
|
672
677
|
declare class EkuboCLVault extends BaseStrategy<DualTokenInfo, DualActionAmount> {
|
|
673
678
|
/** Contract address of the strategy */
|
|
@@ -816,7 +821,7 @@ declare class EkuboCLVault extends BaseStrategy<DualTokenInfo, DualActionAmount>
|
|
|
816
821
|
getInvestmentFlows(): Promise<IInvestmentFlow[]>;
|
|
817
822
|
}
|
|
818
823
|
/**
|
|
819
|
-
* Represents the
|
|
824
|
+
* Represents the Ekubo CL Vault Strategies.
|
|
820
825
|
*/
|
|
821
826
|
declare const EkuboCLVaultStrategies: IStrategyMetadata<CLVaultStrategySettings>[];
|
|
822
827
|
|