@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.browser.mjs
CHANGED
|
@@ -172,7 +172,7 @@ var defaultTokens = [{
|
|
|
172
172
|
name: "WBTC",
|
|
173
173
|
symbol: "WBTC",
|
|
174
174
|
logo: "https://assets.troves.fi/integrations/tokens/wbtc.svg",
|
|
175
|
-
address: ContractAddr.from("
|
|
175
|
+
address: ContractAddr.from("0x03fe2b97c1fd336e750087d68b9b867997fd64a2661ff3ca5a7c771641e8e7ac"),
|
|
176
176
|
decimals: 8,
|
|
177
177
|
coingeckId: void 0,
|
|
178
178
|
displayDecimals: 6,
|
|
@@ -188,6 +188,26 @@ var defaultTokens = [{
|
|
|
188
188
|
displayDecimals: 6,
|
|
189
189
|
priceCheckAmount: 1e-4
|
|
190
190
|
// 112000 * 0.0001 = $11.2
|
|
191
|
+
}, {
|
|
192
|
+
name: "solvBTC",
|
|
193
|
+
symbol: "solvBTC",
|
|
194
|
+
logo: "https://assets.strkfarm.com/integrations/tokens/solvbtc.svg",
|
|
195
|
+
address: ContractAddr.from("0x0593e034dda23eea82d2ba9a30960ed42cf4a01502cc2351dc9b9881f9931a68"),
|
|
196
|
+
decimals: 18,
|
|
197
|
+
coingeckId: void 0,
|
|
198
|
+
displayDecimals: 6,
|
|
199
|
+
priceCheckAmount: 1e-4
|
|
200
|
+
// 112000 * 0.0001 = $11.2
|
|
201
|
+
}, {
|
|
202
|
+
name: "LBTC",
|
|
203
|
+
symbol: "LBTC",
|
|
204
|
+
logo: "https://assets.strkfarm.com/integrations/tokens/lbtc.svg",
|
|
205
|
+
address: ContractAddr.from("0x036834a40984312f7f7de8d31e3f6305b325389eaeea5b1c0664b2fb936461a4"),
|
|
206
|
+
decimals: 8,
|
|
207
|
+
coingeckId: void 0,
|
|
208
|
+
displayDecimals: 6,
|
|
209
|
+
priceCheckAmount: 1e-4
|
|
210
|
+
// 112000 * 0.0001 = $11.2
|
|
191
211
|
}];
|
|
192
212
|
var tokens = defaultTokens;
|
|
193
213
|
var _Global = class _Global {
|
|
@@ -16211,14 +16231,31 @@ var _protocol2 = {
|
|
|
16211
16231
|
name: "Ekubo",
|
|
16212
16232
|
logo: "https://app.ekubo.org/favicon.ico"
|
|
16213
16233
|
};
|
|
16214
|
-
var
|
|
16215
|
-
{ type: "Smart Contract Risk" /* SMART_CONTRACT_RISK */, value:
|
|
16216
|
-
{ type: "Impermanent Loss Risk" /* IMPERMANENT_LOSS */, value:
|
|
16217
|
-
{ type: "Market Risk" /* MARKET_RISK */, value:
|
|
16234
|
+
var _corelatedPoolRiskFactors = [
|
|
16235
|
+
{ type: "Smart Contract Risk" /* SMART_CONTRACT_RISK */, value: 2 /* WELL_AUDITED */, weight: 34, reason: "Audited smart contracts" },
|
|
16236
|
+
{ type: "Impermanent Loss Risk" /* IMPERMANENT_LOSS */, value: 1 /* HIGHLY_CORRELATED */, weight: 33, reason: "Low risk due to co-related assets" },
|
|
16237
|
+
{ type: "Market Risk" /* MARKET_RISK */, value: 1 /* VERY_LOW_VOLATILITY */, weight: 33, reason: "Low risk due to co-related assets" }
|
|
16238
|
+
];
|
|
16239
|
+
var mediumVolatilityPoolRiskFactors = [
|
|
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: 3 /* NON_CORRELATED */, weight: 33, reason: "Low risk due to co-related assets" },
|
|
16242
|
+
{ type: "Market Risk" /* MARKET_RISK */, value: 3 /* MODERATE_VOLATILITY */, weight: 33, reason: "Low risk due to co-related assets" }
|
|
16218
16243
|
];
|
|
16219
|
-
var
|
|
16220
|
-
{ type: "Smart Contract Risk" /* SMART_CONTRACT_RISK */, value:
|
|
16244
|
+
var highVolatilityPoolRiskFactors = [
|
|
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: 4 /* HIGH_VOLATILITY */, weight: 33, reason: "Low risk due to co-related assets" }
|
|
16221
16248
|
];
|
|
16249
|
+
var mediumRisk = {
|
|
16250
|
+
riskFactor: mediumVolatilityPoolRiskFactors,
|
|
16251
|
+
netRisk: mediumVolatilityPoolRiskFactors.reduce((acc, curr) => acc + curr.value * curr.weight, 0) / mediumVolatilityPoolRiskFactors.reduce((acc, curr) => acc + curr.weight, 0),
|
|
16252
|
+
notARisks: getNoRiskTags(mediumVolatilityPoolRiskFactors)
|
|
16253
|
+
};
|
|
16254
|
+
var highRisk = {
|
|
16255
|
+
riskFactor: highVolatilityPoolRiskFactors,
|
|
16256
|
+
netRisk: highVolatilityPoolRiskFactors.reduce((acc, curr) => acc + curr.value * curr.weight, 0) / highVolatilityPoolRiskFactors.reduce((acc, curr) => acc + curr.weight, 0),
|
|
16257
|
+
notARisks: getNoRiskTags(highVolatilityPoolRiskFactors)
|
|
16258
|
+
};
|
|
16222
16259
|
var AUDIT_URL2 = "https://assets.troves.fi/strkfarm/audit_report_vesu_and_ekubo_strats.pdf";
|
|
16223
16260
|
var faqs2 = [
|
|
16224
16261
|
{
|
|
@@ -16233,6 +16270,10 @@ var faqs2 = [
|
|
|
16233
16270
|
question: "What happens during withdrawal?",
|
|
16234
16271
|
answer: "During withdrawal, you may receive either or both tokens depending on market conditions and prevailing prices."
|
|
16235
16272
|
},
|
|
16273
|
+
{
|
|
16274
|
+
question: "Are there any deposit/withdrawal fees?",
|
|
16275
|
+
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."
|
|
16276
|
+
},
|
|
16236
16277
|
{
|
|
16237
16278
|
question: "Is the strategy audited?",
|
|
16238
16279
|
answer: /* @__PURE__ */ jsxs2("div", { children: [
|
|
@@ -16267,9 +16308,9 @@ var xSTRKSTRK = {
|
|
|
16267
16308
|
auditUrl: AUDIT_URL2,
|
|
16268
16309
|
maxTVL: Web3Number.fromWei("0", 18),
|
|
16269
16310
|
risk: {
|
|
16270
|
-
riskFactor:
|
|
16271
|
-
netRisk:
|
|
16272
|
-
notARisks: getNoRiskTags(
|
|
16311
|
+
riskFactor: _corelatedPoolRiskFactors,
|
|
16312
|
+
netRisk: _corelatedPoolRiskFactors.reduce((acc, curr) => acc + curr.value * curr.weight, 0) / _corelatedPoolRiskFactors.reduce((acc, curr) => acc + curr.weight, 0),
|
|
16313
|
+
notARisks: getNoRiskTags(_corelatedPoolRiskFactors)
|
|
16273
16314
|
},
|
|
16274
16315
|
apyMethodology: "APY based on 7-day historical performance, including fees and rewards.",
|
|
16275
16316
|
additionalInfo: {
|
|
@@ -16285,7 +16326,8 @@ var xSTRKSTRK = {
|
|
|
16285
16326
|
customShouldRebalance: async (currentPrice) => true,
|
|
16286
16327
|
minWaitHours: 24,
|
|
16287
16328
|
direction: "uponly"
|
|
16288
|
-
}
|
|
16329
|
+
},
|
|
16330
|
+
quoteAsset: Global.getDefaultTokens().find((t) => t.symbol === "STRK")
|
|
16289
16331
|
},
|
|
16290
16332
|
faqs: [
|
|
16291
16333
|
...faqs2,
|
|
@@ -16302,68 +16344,165 @@ var xSTRKSTRK = {
|
|
|
16302
16344
|
contractDetails: [],
|
|
16303
16345
|
investmentSteps: []
|
|
16304
16346
|
};
|
|
16305
|
-
var
|
|
16306
|
-
xSTRKSTRK,
|
|
16347
|
+
var ETHUSDCRe7Strategy = {
|
|
16348
|
+
...xSTRKSTRK,
|
|
16349
|
+
name: "Ekubo ETH/USDC",
|
|
16350
|
+
description: /* @__PURE__ */ jsx3(Fragment2, {}),
|
|
16351
|
+
address: ContractAddr.from(
|
|
16352
|
+
"0x160d8fa4569ef6a12e6bf47cb943d7b5ebba8a41a69a14c1d943050ba5ff947"
|
|
16353
|
+
),
|
|
16354
|
+
launchBlock: 1501761,
|
|
16355
|
+
// must be same order as poolKey token0 and token1
|
|
16356
|
+
depositTokens: [
|
|
16357
|
+
Global.getDefaultTokens().find((t) => t.symbol === "ETH"),
|
|
16358
|
+
Global.getDefaultTokens().find((t) => t.symbol === "USDC")
|
|
16359
|
+
],
|
|
16360
|
+
additionalInfo: {
|
|
16361
|
+
newBounds: "Managed by Re7",
|
|
16362
|
+
truePrice: 1,
|
|
16363
|
+
feeBps: 1e3,
|
|
16364
|
+
rebalanceConditions: {
|
|
16365
|
+
customShouldRebalance: async (currentPrice) => currentPrice > 0.99 && currentPrice < 1.01,
|
|
16366
|
+
minWaitHours: 6,
|
|
16367
|
+
direction: "any"
|
|
16368
|
+
},
|
|
16369
|
+
quoteAsset: Global.getDefaultTokens().find((t) => t.symbol === "USDC")
|
|
16370
|
+
},
|
|
16371
|
+
faqs: [
|
|
16372
|
+
...faqs2,
|
|
16373
|
+
{
|
|
16374
|
+
question: "Who is the curator of this strategy?",
|
|
16375
|
+
answer: /* @__PURE__ */ jsxs2("div", { children: [
|
|
16376
|
+
"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 ",
|
|
16377
|
+
/* @__PURE__ */ jsx3("a", { href: "https://www.re7labs.xyz", style: { textDecoration: "underline", marginLeft: "2px" }, target: "_blank", children: "here" }),
|
|
16378
|
+
"."
|
|
16379
|
+
] })
|
|
16380
|
+
}
|
|
16381
|
+
],
|
|
16382
|
+
risk: highRisk,
|
|
16383
|
+
points: [],
|
|
16384
|
+
curator: { name: "Re7 Labs", logo: "https://www.re7labs.xyz/favicon.ico" }
|
|
16385
|
+
};
|
|
16386
|
+
var RE7Strategies = [
|
|
16387
|
+
ETHUSDCRe7Strategy,
|
|
16307
16388
|
{
|
|
16308
|
-
...
|
|
16389
|
+
...ETHUSDCRe7Strategy,
|
|
16309
16390
|
name: "Ekubo USDC/USDT",
|
|
16310
16391
|
description: /* @__PURE__ */ jsx3(Fragment2, {}),
|
|
16311
16392
|
address: ContractAddr.from(
|
|
16312
|
-
"
|
|
16393
|
+
"0x3a4f8debaf12af97bb911099bc011d63d6c208d4c5ba8e15d7f437785b0aaa2"
|
|
16313
16394
|
),
|
|
16314
|
-
launchBlock:
|
|
16395
|
+
launchBlock: 1501761,
|
|
16315
16396
|
// must be same order as poolKey token0 and token1
|
|
16316
16397
|
depositTokens: [
|
|
16317
16398
|
Global.getDefaultTokens().find((t) => t.symbol === "USDC"),
|
|
16318
16399
|
Global.getDefaultTokens().find((t) => t.symbol === "USDT")
|
|
16319
16400
|
],
|
|
16320
|
-
|
|
16321
|
-
newBounds: {
|
|
16322
|
-
lower: -1,
|
|
16323
|
-
upper: 1
|
|
16324
|
-
},
|
|
16325
|
-
truePrice: 1,
|
|
16326
|
-
feeBps: 1e3,
|
|
16327
|
-
rebalanceConditions: {
|
|
16328
|
-
customShouldRebalance: async (currentPrice) => currentPrice > 0.99 && currentPrice < 1.01,
|
|
16329
|
-
minWaitHours: 6,
|
|
16330
|
-
direction: "any"
|
|
16331
|
-
}
|
|
16332
|
-
}
|
|
16401
|
+
risk: xSTRKSTRK.risk
|
|
16333
16402
|
},
|
|
16334
16403
|
{
|
|
16335
|
-
...
|
|
16404
|
+
...ETHUSDCRe7Strategy,
|
|
16336
16405
|
name: "Ekubo STRK/USDC",
|
|
16337
16406
|
description: /* @__PURE__ */ jsx3(Fragment2, {}),
|
|
16338
16407
|
address: ContractAddr.from(
|
|
16339
|
-
"
|
|
16408
|
+
"0x351b36d0d9d8b40010658825adeeddb1397436cd41acd0ff6c6e23aaa8b5b30"
|
|
16340
16409
|
),
|
|
16341
|
-
launchBlock:
|
|
16410
|
+
launchBlock: 1501762,
|
|
16342
16411
|
// must be same order as poolKey token0 and token1
|
|
16343
16412
|
depositTokens: [
|
|
16344
16413
|
Global.getDefaultTokens().find((t) => t.symbol === "STRK"),
|
|
16345
16414
|
Global.getDefaultTokens().find((t) => t.symbol === "USDC")
|
|
16346
16415
|
],
|
|
16347
|
-
|
|
16348
|
-
|
|
16349
|
-
|
|
16350
|
-
|
|
16351
|
-
|
|
16352
|
-
|
|
16353
|
-
|
|
16354
|
-
|
|
16355
|
-
|
|
16356
|
-
|
|
16416
|
+
risk: highRisk
|
|
16417
|
+
},
|
|
16418
|
+
{
|
|
16419
|
+
...ETHUSDCRe7Strategy,
|
|
16420
|
+
name: "Ekubo STRK/ETH",
|
|
16421
|
+
description: /* @__PURE__ */ jsx3(Fragment2, {}),
|
|
16422
|
+
address: ContractAddr.from(
|
|
16423
|
+
"0x4ce3024b0ee879009112d7b0e073f8a87153dd35b029347d4247ffe48d28f51"
|
|
16424
|
+
),
|
|
16425
|
+
launchBlock: 1501763,
|
|
16426
|
+
// must be same order as poolKey token0 and token1
|
|
16427
|
+
depositTokens: [
|
|
16428
|
+
Global.getDefaultTokens().find((t) => t.symbol === "STRK"),
|
|
16429
|
+
Global.getDefaultTokens().find((t) => t.symbol === "ETH")
|
|
16430
|
+
],
|
|
16431
|
+
risk: highRisk
|
|
16432
|
+
},
|
|
16433
|
+
{
|
|
16434
|
+
...ETHUSDCRe7Strategy,
|
|
16435
|
+
name: "Ekubo WBTC/USDC",
|
|
16436
|
+
description: /* @__PURE__ */ jsx3(Fragment2, {}),
|
|
16437
|
+
address: ContractAddr.from(
|
|
16438
|
+
"0x2bcaef2eb7706875a5fdc6853dd961a0590f850bc3a031c59887189b5e84ba1"
|
|
16439
|
+
),
|
|
16440
|
+
launchBlock: 1501764,
|
|
16441
|
+
// must be same order as poolKey token0 and token1
|
|
16442
|
+
depositTokens: [
|
|
16443
|
+
Global.getDefaultTokens().find((t) => t.symbol === "WBTC"),
|
|
16444
|
+
Global.getDefaultTokens().find((t) => t.symbol === "USDC")
|
|
16445
|
+
],
|
|
16446
|
+
risk: mediumRisk
|
|
16447
|
+
},
|
|
16448
|
+
{
|
|
16449
|
+
...ETHUSDCRe7Strategy,
|
|
16450
|
+
name: "Ekubo tBTC/USDC",
|
|
16451
|
+
description: /* @__PURE__ */ jsx3(Fragment2, {}),
|
|
16452
|
+
address: ContractAddr.from(
|
|
16453
|
+
"0x4aad891a2d4432fba06b6558631bb13f6bbd7f6f33ab8c3111e344889ea4456"
|
|
16454
|
+
),
|
|
16455
|
+
launchBlock: 1501764,
|
|
16456
|
+
// must be same order as poolKey token0 and token1
|
|
16457
|
+
depositTokens: [
|
|
16458
|
+
Global.getDefaultTokens().find((t) => t.symbol === "tBTC"),
|
|
16459
|
+
Global.getDefaultTokens().find((t) => t.symbol === "USDC")
|
|
16460
|
+
],
|
|
16461
|
+
risk: mediumRisk
|
|
16462
|
+
},
|
|
16463
|
+
{
|
|
16464
|
+
...ETHUSDCRe7Strategy,
|
|
16465
|
+
name: "Ekubo WBTC/ETH",
|
|
16466
|
+
description: /* @__PURE__ */ jsx3(Fragment2, {}),
|
|
16467
|
+
address: ContractAddr.from(
|
|
16468
|
+
"0x1c9232b8186d9317652f05055615f18a120c2ad9e5ee96c39e031c257fb945b"
|
|
16469
|
+
),
|
|
16470
|
+
launchBlock: 1501765,
|
|
16471
|
+
// must be same order as poolKey token0 and token1
|
|
16472
|
+
depositTokens: [
|
|
16473
|
+
Global.getDefaultTokens().find((t) => t.symbol === "WBTC"),
|
|
16474
|
+
Global.getDefaultTokens().find((t) => t.symbol === "ETH")
|
|
16475
|
+
],
|
|
16476
|
+
risk: mediumRisk
|
|
16477
|
+
},
|
|
16478
|
+
{
|
|
16479
|
+
...ETHUSDCRe7Strategy,
|
|
16480
|
+
name: "Ekubo WBTC/STRK",
|
|
16481
|
+
description: /* @__PURE__ */ jsx3(Fragment2, {}),
|
|
16482
|
+
address: ContractAddr.from(
|
|
16483
|
+
"0x1248e385c23a929a015ec298a26560fa7745bbd6e41a886550e337b02714b1b"
|
|
16484
|
+
),
|
|
16485
|
+
launchBlock: 1501766,
|
|
16486
|
+
// must be same order as poolKey token0 and token1
|
|
16487
|
+
depositTokens: [
|
|
16488
|
+
Global.getDefaultTokens().find((t) => t.symbol === "WBTC"),
|
|
16489
|
+
Global.getDefaultTokens().find((t) => t.symbol === "STRK")
|
|
16490
|
+
],
|
|
16491
|
+
risk: highRisk
|
|
16357
16492
|
}
|
|
16358
16493
|
];
|
|
16494
|
+
var EkuboCLVaultStrategies = [
|
|
16495
|
+
xSTRKSTRK,
|
|
16496
|
+
...RE7Strategies
|
|
16497
|
+
];
|
|
16359
16498
|
EkuboCLVaultStrategies.forEach((s) => {
|
|
16360
16499
|
s.contractDetails = [
|
|
16361
16500
|
{
|
|
16362
16501
|
address: s.address,
|
|
16363
16502
|
name: "Vault",
|
|
16364
16503
|
sourceCodeUrl: "https://github.com/strkfarm/strkfarm-contracts/tree/main/src/strategies/cl_vault"
|
|
16365
|
-
}
|
|
16366
|
-
...COMMON_CONTRACTS
|
|
16504
|
+
}
|
|
16505
|
+
// ...COMMON_CONTRACTS
|
|
16367
16506
|
];
|
|
16368
16507
|
s.docs = "https://docs.troves.fi/p/ekubo-cl-vaults";
|
|
16369
16508
|
s.description = /* @__PURE__ */ jsxs2("div", { children: [
|
|
@@ -18334,7 +18473,7 @@ var endurProtocol = {
|
|
|
18334
18473
|
name: "Endur",
|
|
18335
18474
|
logo: "https://app.endur.fi/logo.png"
|
|
18336
18475
|
};
|
|
18337
|
-
var
|
|
18476
|
+
var _riskFactor2 = [
|
|
18338
18477
|
{ type: "Smart Contract Risk" /* SMART_CONTRACT_RISK */, value: 0.5, weight: 25, reason: "Audited by CSC" },
|
|
18339
18478
|
{ 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." },
|
|
18340
18479
|
{ 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" },
|
|
@@ -18409,9 +18548,9 @@ var SenseiStrategies = [
|
|
|
18409
18548
|
protocols: [endurProtocol, vesuProtocol],
|
|
18410
18549
|
maxTVL: new Web3Number("1500000", 18),
|
|
18411
18550
|
risk: {
|
|
18412
|
-
riskFactor:
|
|
18413
|
-
netRisk:
|
|
18414
|
-
notARisks: getNoRiskTags(
|
|
18551
|
+
riskFactor: _riskFactor2,
|
|
18552
|
+
netRisk: _riskFactor2.reduce((acc, curr) => acc + curr.value * curr.weight, 0) / _riskFactor2.reduce((acc, curr) => acc + curr.weight, 0),
|
|
18553
|
+
notARisks: getNoRiskTags(_riskFactor2)
|
|
18415
18554
|
},
|
|
18416
18555
|
additionalInfo: {
|
|
18417
18556
|
mainToken: Global.getDefaultTokens().find((t) => t.symbol === "STRK"),
|
|
@@ -24025,7 +24164,7 @@ function getLooperSettings(token1Symbol, token2Symbol, vaultSettings, pool1, poo
|
|
|
24025
24164
|
vaultSettings.leafAdapters.push(commonAdapter.getAvnuAdapter(STRKToken.address, USDCToken.address, "avnu_swap_rewards" /* AVNU_SWAP_REWARDS */).bind(commonAdapter));
|
|
24026
24165
|
return vaultSettings;
|
|
24027
24166
|
}
|
|
24028
|
-
var
|
|
24167
|
+
var _riskFactor3 = [
|
|
24029
24168
|
{ type: "Smart Contract Risk" /* SMART_CONTRACT_RISK */, value: 0.5, weight: 25, reason: "Audited by Zellic" },
|
|
24030
24169
|
{ type: "Liquidation Risk" /* LIQUIDATION_RISK */, value: 1.5, weight: 50, reason: "Liquidation risk is mitigated by stable price feed on Starknet" },
|
|
24031
24170
|
{ type: "Technical Risk" /* TECHNICAL_RISK */, value: 1, weight: 50, reason: "Technical failures like risk monitoring failures" }
|
|
@@ -24229,9 +24368,9 @@ var UniversalStrategies = [
|
|
|
24229
24368
|
depositTokens: [Global.getDefaultTokens().find((token) => token.symbol === "USDC")],
|
|
24230
24369
|
additionalInfo: getLooperSettings("USDC", "ETH", usdcVaultSettings, VesuPools.Genesis, VesuPools.Genesis),
|
|
24231
24370
|
risk: {
|
|
24232
|
-
riskFactor:
|
|
24233
|
-
netRisk:
|
|
24234
|
-
notARisks: getNoRiskTags(
|
|
24371
|
+
riskFactor: _riskFactor3,
|
|
24372
|
+
netRisk: _riskFactor3.reduce((acc, curr) => acc + curr.value * curr.weight, 0) / _riskFactor3.reduce((acc, curr) => acc + curr.weight, 0),
|
|
24373
|
+
notARisks: getNoRiskTags(_riskFactor3)
|
|
24235
24374
|
},
|
|
24236
24375
|
protocols: [Protocols.VESU],
|
|
24237
24376
|
maxTVL: Web3Number.fromWei(0, 6),
|
|
@@ -24248,9 +24387,9 @@ var UniversalStrategies = [
|
|
|
24248
24387
|
depositTokens: [Global.getDefaultTokens().find((token) => token.symbol === "WBTC")],
|
|
24249
24388
|
additionalInfo: getLooperSettings("WBTC", "ETH", wbtcVaultSettings, VesuPools.Genesis, VesuPools.Genesis),
|
|
24250
24389
|
risk: {
|
|
24251
|
-
riskFactor:
|
|
24252
|
-
netRisk:
|
|
24253
|
-
notARisks: getNoRiskTags(
|
|
24390
|
+
riskFactor: _riskFactor3,
|
|
24391
|
+
netRisk: _riskFactor3.reduce((acc, curr) => acc + curr.value * curr.weight, 0) / _riskFactor3.reduce((acc, curr) => acc + curr.weight, 0),
|
|
24392
|
+
notARisks: getNoRiskTags(_riskFactor3)
|
|
24254
24393
|
},
|
|
24255
24394
|
protocols: [Protocols.VESU],
|
|
24256
24395
|
maxTVL: Web3Number.fromWei(0, 8),
|
|
@@ -24267,9 +24406,9 @@ var UniversalStrategies = [
|
|
|
24267
24406
|
depositTokens: [Global.getDefaultTokens().find((token) => token.symbol === "ETH")],
|
|
24268
24407
|
additionalInfo: getLooperSettings("ETH", "WBTC", ethVaultSettings, VesuPools.Genesis, VesuPools.Genesis),
|
|
24269
24408
|
risk: {
|
|
24270
|
-
riskFactor:
|
|
24271
|
-
netRisk:
|
|
24272
|
-
notARisks: getNoRiskTags(
|
|
24409
|
+
riskFactor: _riskFactor3,
|
|
24410
|
+
netRisk: _riskFactor3.reduce((acc, curr) => acc + curr.value * curr.weight, 0) / _riskFactor3.reduce((acc, curr) => acc + curr.weight, 0),
|
|
24411
|
+
notARisks: getNoRiskTags(_riskFactor3)
|
|
24273
24412
|
},
|
|
24274
24413
|
protocols: [Protocols.VESU],
|
|
24275
24414
|
maxTVL: Web3Number.fromWei(0, 18),
|
|
@@ -24286,9 +24425,9 @@ var UniversalStrategies = [
|
|
|
24286
24425
|
depositTokens: [Global.getDefaultTokens().find((token) => token.symbol === "STRK")],
|
|
24287
24426
|
additionalInfo: getLooperSettings("STRK", "ETH", strkVaultSettings, VesuPools.Genesis, VesuPools.Genesis),
|
|
24288
24427
|
risk: {
|
|
24289
|
-
riskFactor:
|
|
24290
|
-
netRisk:
|
|
24291
|
-
notARisks: getNoRiskTags(
|
|
24428
|
+
riskFactor: _riskFactor3,
|
|
24429
|
+
netRisk: _riskFactor3.reduce((acc, curr) => acc + curr.value * curr.weight, 0) / _riskFactor3.reduce((acc, curr) => acc + curr.weight, 0),
|
|
24430
|
+
notARisks: getNoRiskTags(_riskFactor3)
|
|
24292
24431
|
},
|
|
24293
24432
|
protocols: [Protocols.VESU],
|
|
24294
24433
|
maxTVL: Web3Number.fromWei(0, 18),
|
|
@@ -24305,9 +24444,9 @@ var UniversalStrategies = [
|
|
|
24305
24444
|
depositTokens: [Global.getDefaultTokens().find((token) => token.symbol === "USDT")],
|
|
24306
24445
|
additionalInfo: getLooperSettings("USDT", "ETH", usdtVaultSettings, VesuPools.Genesis, VesuPools.Genesis),
|
|
24307
24446
|
risk: {
|
|
24308
|
-
riskFactor:
|
|
24309
|
-
netRisk:
|
|
24310
|
-
notARisks: getNoRiskTags(
|
|
24447
|
+
riskFactor: _riskFactor3,
|
|
24448
|
+
netRisk: _riskFactor3.reduce((acc, curr) => acc + curr.value * curr.weight, 0) / _riskFactor3.reduce((acc, curr) => acc + curr.weight, 0),
|
|
24449
|
+
notARisks: getNoRiskTags(_riskFactor3)
|
|
24311
24450
|
},
|
|
24312
24451
|
protocols: [Protocols.VESU],
|
|
24313
24452
|
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
|
|