@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.browser.mjs
CHANGED
|
@@ -135,7 +135,8 @@ var defaultTokens = [{
|
|
|
135
135
|
address: ContractAddr.from("0x4718f5a0fc34cc1af16a1cdee98ffb20c31f5cd61d6ab07201858f4287c938d"),
|
|
136
136
|
decimals: 18,
|
|
137
137
|
coingeckId: "starknet",
|
|
138
|
-
displayDecimals: 2
|
|
138
|
+
displayDecimals: 2,
|
|
139
|
+
priceCheckAmount: 1e3
|
|
139
140
|
}, {
|
|
140
141
|
name: "xSTRK",
|
|
141
142
|
symbol: "xSTRK",
|
|
@@ -143,6 +144,7 @@ var defaultTokens = [{
|
|
|
143
144
|
address: ContractAddr.from("0x028d709c875c0ceac3dce7065bec5328186dc89fe254527084d1689910954b0a"),
|
|
144
145
|
decimals: 18,
|
|
145
146
|
coingeckId: void 0,
|
|
147
|
+
priceCheckAmount: 1e3,
|
|
146
148
|
displayDecimals: 2
|
|
147
149
|
}, {
|
|
148
150
|
name: "ETH",
|
|
@@ -151,6 +153,7 @@ var defaultTokens = [{
|
|
|
151
153
|
address: ContractAddr.from("0x49d36570d4e46f48e99674bd3fcc84644ddd6b96f7c741b1562b82f9e004dc7"),
|
|
152
154
|
decimals: 18,
|
|
153
155
|
coingeckId: void 0,
|
|
156
|
+
priceCheckAmount: 0.1,
|
|
154
157
|
displayDecimals: 6
|
|
155
158
|
}, {
|
|
156
159
|
name: "USDC",
|
|
@@ -159,7 +162,8 @@ var defaultTokens = [{
|
|
|
159
162
|
address: ContractAddr.from("0x53c91253bc9682c04929ca02ed00b3e423f6710d2ee7e0d5ebb06f3ecf368a8"),
|
|
160
163
|
decimals: 6,
|
|
161
164
|
coingeckId: void 0,
|
|
162
|
-
displayDecimals: 2
|
|
165
|
+
displayDecimals: 2,
|
|
166
|
+
priceCheckAmount: 1e3
|
|
163
167
|
}, {
|
|
164
168
|
name: "USDT",
|
|
165
169
|
symbol: "USDT",
|
|
@@ -167,12 +171,13 @@ var defaultTokens = [{
|
|
|
167
171
|
address: ContractAddr.from("0x68f5c6a61780768455de69077e07e89787839bf8166decfbf92b645209c0fb8"),
|
|
168
172
|
decimals: 6,
|
|
169
173
|
coingeckId: void 0,
|
|
174
|
+
priceCheckAmount: 1e3,
|
|
170
175
|
displayDecimals: 2
|
|
171
176
|
}, {
|
|
172
177
|
name: "WBTC",
|
|
173
178
|
symbol: "WBTC",
|
|
174
179
|
logo: "https://assets.troves.fi/integrations/tokens/wbtc.svg",
|
|
175
|
-
address: ContractAddr.from("
|
|
180
|
+
address: ContractAddr.from("0x03fe2b97c1fd336e750087d68b9b867997fd64a2661ff3ca5a7c771641e8e7ac"),
|
|
176
181
|
decimals: 8,
|
|
177
182
|
coingeckId: void 0,
|
|
178
183
|
displayDecimals: 6,
|
|
@@ -188,6 +193,26 @@ var defaultTokens = [{
|
|
|
188
193
|
displayDecimals: 6,
|
|
189
194
|
priceCheckAmount: 1e-4
|
|
190
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
|
|
191
216
|
}];
|
|
192
217
|
var tokens = defaultTokens;
|
|
193
218
|
var _Global = class _Global {
|
|
@@ -16211,14 +16236,31 @@ var _protocol2 = {
|
|
|
16211
16236
|
name: "Ekubo",
|
|
16212
16237
|
logo: "https://app.ekubo.org/favicon.ico"
|
|
16213
16238
|
};
|
|
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:
|
|
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" }
|
|
16218
16248
|
];
|
|
16219
|
-
var
|
|
16220
|
-
{ 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" }
|
|
16221
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
|
+
};
|
|
16222
16264
|
var AUDIT_URL2 = "https://assets.troves.fi/strkfarm/audit_report_vesu_and_ekubo_strats.pdf";
|
|
16223
16265
|
var faqs2 = [
|
|
16224
16266
|
{
|
|
@@ -16233,6 +16275,10 @@ var faqs2 = [
|
|
|
16233
16275
|
question: "What happens during withdrawal?",
|
|
16234
16276
|
answer: "During withdrawal, you may receive either or both tokens depending on market conditions and prevailing prices."
|
|
16235
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
|
+
},
|
|
16236
16282
|
{
|
|
16237
16283
|
question: "Is the strategy audited?",
|
|
16238
16284
|
answer: /* @__PURE__ */ jsxs2("div", { children: [
|
|
@@ -16267,9 +16313,9 @@ var xSTRKSTRK = {
|
|
|
16267
16313
|
auditUrl: AUDIT_URL2,
|
|
16268
16314
|
maxTVL: Web3Number.fromWei("0", 18),
|
|
16269
16315
|
risk: {
|
|
16270
|
-
riskFactor:
|
|
16271
|
-
netRisk:
|
|
16272
|
-
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)
|
|
16273
16319
|
},
|
|
16274
16320
|
apyMethodology: "APY based on 7-day historical performance, including fees and rewards.",
|
|
16275
16321
|
additionalInfo: {
|
|
@@ -16285,7 +16331,8 @@ var xSTRKSTRK = {
|
|
|
16285
16331
|
customShouldRebalance: async (currentPrice) => true,
|
|
16286
16332
|
minWaitHours: 24,
|
|
16287
16333
|
direction: "uponly"
|
|
16288
|
-
}
|
|
16334
|
+
},
|
|
16335
|
+
quoteAsset: Global.getDefaultTokens().find((t) => t.symbol === "STRK")
|
|
16289
16336
|
},
|
|
16290
16337
|
faqs: [
|
|
16291
16338
|
...faqs2,
|
|
@@ -16302,68 +16349,165 @@ var xSTRKSTRK = {
|
|
|
16302
16349
|
contractDetails: [],
|
|
16303
16350
|
investmentSteps: []
|
|
16304
16351
|
};
|
|
16305
|
-
var
|
|
16306
|
-
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,
|
|
16307
16393
|
{
|
|
16308
|
-
...
|
|
16394
|
+
...ETHUSDCRe7Strategy,
|
|
16309
16395
|
name: "Ekubo USDC/USDT",
|
|
16310
16396
|
description: /* @__PURE__ */ jsx3(Fragment2, {}),
|
|
16311
16397
|
address: ContractAddr.from(
|
|
16312
|
-
"
|
|
16398
|
+
"0x3a4f8debaf12af97bb911099bc011d63d6c208d4c5ba8e15d7f437785b0aaa2"
|
|
16313
16399
|
),
|
|
16314
|
-
launchBlock:
|
|
16400
|
+
launchBlock: 1501761,
|
|
16315
16401
|
// must be same order as poolKey token0 and token1
|
|
16316
16402
|
depositTokens: [
|
|
16317
16403
|
Global.getDefaultTokens().find((t) => t.symbol === "USDC"),
|
|
16318
16404
|
Global.getDefaultTokens().find((t) => t.symbol === "USDT")
|
|
16319
16405
|
],
|
|
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
|
-
}
|
|
16406
|
+
risk: xSTRKSTRK.risk
|
|
16333
16407
|
},
|
|
16334
16408
|
{
|
|
16335
|
-
...
|
|
16409
|
+
...ETHUSDCRe7Strategy,
|
|
16336
16410
|
name: "Ekubo STRK/USDC",
|
|
16337
16411
|
description: /* @__PURE__ */ jsx3(Fragment2, {}),
|
|
16338
16412
|
address: ContractAddr.from(
|
|
16339
|
-
"
|
|
16413
|
+
"0x351b36d0d9d8b40010658825adeeddb1397436cd41acd0ff6c6e23aaa8b5b30"
|
|
16340
16414
|
),
|
|
16341
|
-
launchBlock:
|
|
16415
|
+
launchBlock: 1501762,
|
|
16342
16416
|
// must be same order as poolKey token0 and token1
|
|
16343
16417
|
depositTokens: [
|
|
16344
16418
|
Global.getDefaultTokens().find((t) => t.symbol === "STRK"),
|
|
16345
16419
|
Global.getDefaultTokens().find((t) => t.symbol === "USDC")
|
|
16346
16420
|
],
|
|
16347
|
-
|
|
16348
|
-
|
|
16349
|
-
|
|
16350
|
-
|
|
16351
|
-
|
|
16352
|
-
|
|
16353
|
-
|
|
16354
|
-
|
|
16355
|
-
|
|
16356
|
-
|
|
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
|
|
16357
16497
|
}
|
|
16358
16498
|
];
|
|
16499
|
+
var EkuboCLVaultStrategies = [
|
|
16500
|
+
xSTRKSTRK,
|
|
16501
|
+
...RE7Strategies
|
|
16502
|
+
];
|
|
16359
16503
|
EkuboCLVaultStrategies.forEach((s) => {
|
|
16360
16504
|
s.contractDetails = [
|
|
16361
16505
|
{
|
|
16362
16506
|
address: s.address,
|
|
16363
16507
|
name: "Vault",
|
|
16364
16508
|
sourceCodeUrl: "https://github.com/strkfarm/strkfarm-contracts/tree/main/src/strategies/cl_vault"
|
|
16365
|
-
}
|
|
16366
|
-
...COMMON_CONTRACTS
|
|
16509
|
+
}
|
|
16510
|
+
// ...COMMON_CONTRACTS
|
|
16367
16511
|
];
|
|
16368
16512
|
s.docs = "https://docs.troves.fi/p/ekubo-cl-vaults";
|
|
16369
16513
|
s.description = /* @__PURE__ */ jsxs2("div", { children: [
|
|
@@ -18334,7 +18478,7 @@ var endurProtocol = {
|
|
|
18334
18478
|
name: "Endur",
|
|
18335
18479
|
logo: "https://app.endur.fi/logo.png"
|
|
18336
18480
|
};
|
|
18337
|
-
var
|
|
18481
|
+
var _riskFactor2 = [
|
|
18338
18482
|
{ type: "Smart Contract Risk" /* SMART_CONTRACT_RISK */, value: 0.5, weight: 25, reason: "Audited by CSC" },
|
|
18339
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." },
|
|
18340
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" },
|
|
@@ -18409,9 +18553,9 @@ var SenseiStrategies = [
|
|
|
18409
18553
|
protocols: [endurProtocol, vesuProtocol],
|
|
18410
18554
|
maxTVL: new Web3Number("1500000", 18),
|
|
18411
18555
|
risk: {
|
|
18412
|
-
riskFactor:
|
|
18413
|
-
netRisk:
|
|
18414
|
-
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)
|
|
18415
18559
|
},
|
|
18416
18560
|
additionalInfo: {
|
|
18417
18561
|
mainToken: Global.getDefaultTokens().find((t) => t.symbol === "STRK"),
|
|
@@ -24025,7 +24169,7 @@ function getLooperSettings(token1Symbol, token2Symbol, vaultSettings, pool1, poo
|
|
|
24025
24169
|
vaultSettings.leafAdapters.push(commonAdapter.getAvnuAdapter(STRKToken.address, USDCToken.address, "avnu_swap_rewards" /* AVNU_SWAP_REWARDS */).bind(commonAdapter));
|
|
24026
24170
|
return vaultSettings;
|
|
24027
24171
|
}
|
|
24028
|
-
var
|
|
24172
|
+
var _riskFactor3 = [
|
|
24029
24173
|
{ type: "Smart Contract Risk" /* SMART_CONTRACT_RISK */, value: 0.5, weight: 25, reason: "Audited by Zellic" },
|
|
24030
24174
|
{ type: "Liquidation Risk" /* LIQUIDATION_RISK */, value: 1.5, weight: 50, reason: "Liquidation risk is mitigated by stable price feed on Starknet" },
|
|
24031
24175
|
{ type: "Technical Risk" /* TECHNICAL_RISK */, value: 1, weight: 50, reason: "Technical failures like risk monitoring failures" }
|
|
@@ -24229,9 +24373,9 @@ var UniversalStrategies = [
|
|
|
24229
24373
|
depositTokens: [Global.getDefaultTokens().find((token) => token.symbol === "USDC")],
|
|
24230
24374
|
additionalInfo: getLooperSettings("USDC", "ETH", usdcVaultSettings, VesuPools.Genesis, VesuPools.Genesis),
|
|
24231
24375
|
risk: {
|
|
24232
|
-
riskFactor:
|
|
24233
|
-
netRisk:
|
|
24234
|
-
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)
|
|
24235
24379
|
},
|
|
24236
24380
|
protocols: [Protocols.VESU],
|
|
24237
24381
|
maxTVL: Web3Number.fromWei(0, 6),
|
|
@@ -24248,9 +24392,9 @@ var UniversalStrategies = [
|
|
|
24248
24392
|
depositTokens: [Global.getDefaultTokens().find((token) => token.symbol === "WBTC")],
|
|
24249
24393
|
additionalInfo: getLooperSettings("WBTC", "ETH", wbtcVaultSettings, VesuPools.Genesis, VesuPools.Genesis),
|
|
24250
24394
|
risk: {
|
|
24251
|
-
riskFactor:
|
|
24252
|
-
netRisk:
|
|
24253
|
-
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)
|
|
24254
24398
|
},
|
|
24255
24399
|
protocols: [Protocols.VESU],
|
|
24256
24400
|
maxTVL: Web3Number.fromWei(0, 8),
|
|
@@ -24267,9 +24411,9 @@ var UniversalStrategies = [
|
|
|
24267
24411
|
depositTokens: [Global.getDefaultTokens().find((token) => token.symbol === "ETH")],
|
|
24268
24412
|
additionalInfo: getLooperSettings("ETH", "WBTC", ethVaultSettings, VesuPools.Genesis, VesuPools.Genesis),
|
|
24269
24413
|
risk: {
|
|
24270
|
-
riskFactor:
|
|
24271
|
-
netRisk:
|
|
24272
|
-
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)
|
|
24273
24417
|
},
|
|
24274
24418
|
protocols: [Protocols.VESU],
|
|
24275
24419
|
maxTVL: Web3Number.fromWei(0, 18),
|
|
@@ -24286,9 +24430,9 @@ var UniversalStrategies = [
|
|
|
24286
24430
|
depositTokens: [Global.getDefaultTokens().find((token) => token.symbol === "STRK")],
|
|
24287
24431
|
additionalInfo: getLooperSettings("STRK", "ETH", strkVaultSettings, VesuPools.Genesis, VesuPools.Genesis),
|
|
24288
24432
|
risk: {
|
|
24289
|
-
riskFactor:
|
|
24290
|
-
netRisk:
|
|
24291
|
-
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)
|
|
24292
24436
|
},
|
|
24293
24437
|
protocols: [Protocols.VESU],
|
|
24294
24438
|
maxTVL: Web3Number.fromWei(0, 18),
|
|
@@ -24305,9 +24449,9 @@ var UniversalStrategies = [
|
|
|
24305
24449
|
depositTokens: [Global.getDefaultTokens().find((token) => token.symbol === "USDT")],
|
|
24306
24450
|
additionalInfo: getLooperSettings("USDT", "ETH", usdtVaultSettings, VesuPools.Genesis, VesuPools.Genesis),
|
|
24307
24451
|
risk: {
|
|
24308
|
-
riskFactor:
|
|
24309
|
-
netRisk:
|
|
24310
|
-
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)
|
|
24311
24455
|
},
|
|
24312
24456
|
protocols: [Protocols.VESU],
|
|
24313
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
|
|