@strkfarm/sdk 2.0.0-staging.52 → 2.0.0-staging.55
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 +24 -12
- package/dist/index.browser.mjs +24 -12
- package/dist/index.d.ts +13 -0
- package/dist/index.js +24 -12
- package/dist/index.mjs +24 -12
- package/package.json +1 -1
- package/src/interfaces/common.tsx +13 -0
- package/src/strategies/ekubo-cl-vault.tsx +8 -8
- package/src/strategies/yoloVault.ts +19 -3
|
@@ -105719,14 +105719,7 @@ spurious results.`);
|
|
|
105719
105719
|
(t) => t.symbol === quoteTokenSymbol
|
|
105720
105720
|
),
|
|
105721
105721
|
alerts: getRe7Alerts(),
|
|
105722
|
-
tags: isBTC ? ["BTC" /* BTC */, "Ekubo" /* AUTOMATED_LP */] : ["Ekubo" /* AUTOMATED_LP */]
|
|
105723
|
-
security: {
|
|
105724
|
-
...xSTRKSTRK.security,
|
|
105725
|
-
accessControl: {
|
|
105726
|
-
...xSTRKSTRK.security.accessControl,
|
|
105727
|
-
addresses: [ContractAddr.from("0x707bf89863473548fb2844c9f3f96d83fe2394453259035a5791e4b1490642")]
|
|
105728
|
-
}
|
|
105729
|
-
}
|
|
105722
|
+
tags: isBTC ? ["BTC" /* BTC */, "Ekubo" /* AUTOMATED_LP */] : ["Ekubo" /* AUTOMATED_LP */]
|
|
105730
105723
|
});
|
|
105731
105724
|
var getRe7FAQs = () => [
|
|
105732
105725
|
...faqs2,
|
|
@@ -105796,7 +105789,14 @@ spurious results.`);
|
|
|
105796
105789
|
tags: isBTC ? ["BTC" /* BTC */, "Ekubo" /* AUTOMATED_LP */] : ["Ekubo" /* AUTOMATED_LP */],
|
|
105797
105790
|
discontinuationInfo: isDeprecated ? {
|
|
105798
105791
|
info: "This strategy has been deprecated and is no longer accepting new deposits."
|
|
105799
|
-
} : void 0
|
|
105792
|
+
} : void 0,
|
|
105793
|
+
security: {
|
|
105794
|
+
...xSTRKSTRK.security,
|
|
105795
|
+
accessControl: {
|
|
105796
|
+
...xSTRKSTRK.security.accessControl,
|
|
105797
|
+
addresses: [ContractAddr.from("0x707bf89863473548fb2844c9f3f96d83fe2394453259035a5791e4b1490642")]
|
|
105798
|
+
}
|
|
105799
|
+
}
|
|
105800
105800
|
};
|
|
105801
105801
|
};
|
|
105802
105802
|
var ETHUSDCRe7Strategy = createRe7Strategy(
|
|
@@ -116682,13 +116682,19 @@ spurious results.`);
|
|
|
116682
116682
|
`Redeem any time to receive your remaining ${main} plus accumulated ${secondary}.`,
|
|
116683
116683
|
`On expiry, entire ${main} token would have been swapped into ${secondary}, unless due to unfavourable market conditions.`
|
|
116684
116684
|
];
|
|
116685
|
+
const parentTitle = secondary.replace("x", "");
|
|
116686
|
+
const variantIntro = {
|
|
116687
|
+
title: `${parentTitle} YOLO vault variant`,
|
|
116688
|
+
description: "Each variant runs until a different expiry date. TVA schedules and execution windows are configured per vault."
|
|
116689
|
+
};
|
|
116685
116690
|
return {
|
|
116686
|
-
title: `${
|
|
116691
|
+
title: `${parentTitle} YOLO (${input.expiryDate})`,
|
|
116687
116692
|
description,
|
|
116688
116693
|
vaultTypeDescription: vaultTypeDescription2,
|
|
116689
116694
|
faqs: faqs3,
|
|
116690
116695
|
investmentSteps: investmentSteps2,
|
|
116691
|
-
parentTitle: `${
|
|
116696
|
+
parentTitle: `${parentTitle} YOLO`,
|
|
116697
|
+
variantIntro
|
|
116692
116698
|
};
|
|
116693
116699
|
};
|
|
116694
116700
|
var usdc = Global.getDefaultTokens().find((t) => t.symbol === "USDC");
|
|
@@ -116747,6 +116753,7 @@ spurious results.`);
|
|
|
116747
116753
|
startDate: "03-MAR-2026",
|
|
116748
116754
|
expiryDate: "31-DEC-2026",
|
|
116749
116755
|
id: `btc-yolo-31-dec-2026`,
|
|
116756
|
+
priority: 100,
|
|
116750
116757
|
...vaultCommonProperties,
|
|
116751
116758
|
parent_id: wbtc_parent
|
|
116752
116759
|
},
|
|
@@ -116757,6 +116764,7 @@ spurious results.`);
|
|
|
116757
116764
|
startDate: "03-APR-2026",
|
|
116758
116765
|
expiryDate: "31-MAY-2026",
|
|
116759
116766
|
id: `vusdc-xwbct-yolo-31-may-2026`,
|
|
116767
|
+
priority: 100,
|
|
116760
116768
|
...vaultCommonProperties,
|
|
116761
116769
|
parent_id: wbtc_parent
|
|
116762
116770
|
},
|
|
@@ -116767,6 +116775,7 @@ spurious results.`);
|
|
|
116767
116775
|
startDate: "03-APR-2026",
|
|
116768
116776
|
expiryDate: "31-MAR-2027",
|
|
116769
116777
|
id: `xstrk-yolo-31-mar-2027`,
|
|
116778
|
+
priority: 50,
|
|
116770
116779
|
...vaultCommonProperties,
|
|
116771
116780
|
spendingLevels: [
|
|
116772
116781
|
{ minPrice: 0.07, maxPrice: 0.1, spendPercent: 50 },
|
|
@@ -116784,6 +116793,7 @@ spurious results.`);
|
|
|
116784
116793
|
startDate: "03-APR-2026",
|
|
116785
116794
|
expiryDate: "30-JUN-2026",
|
|
116786
116795
|
id: `xstrk-yolo-30-jun-2026`,
|
|
116796
|
+
priority: 50,
|
|
116787
116797
|
...vaultCommonProperties,
|
|
116788
116798
|
spendingLevels: [
|
|
116789
116799
|
{ minPrice: 0.07, maxPrice: 0.1, spendPercent: 50 },
|
|
@@ -116804,6 +116814,8 @@ spurious results.`);
|
|
|
116804
116814
|
name: yoloCopy.title,
|
|
116805
116815
|
parentName: yoloCopy.parentTitle,
|
|
116806
116816
|
parentId: yoloConfig.parent_id,
|
|
116817
|
+
priority: yoloConfig.priority,
|
|
116818
|
+
variantIntro: yoloCopy.variantIntro,
|
|
116807
116819
|
description: yoloCopy.description,
|
|
116808
116820
|
address: yoloConfig.address,
|
|
116809
116821
|
vaultType: {
|
|
@@ -116860,7 +116872,7 @@ spurious results.`);
|
|
|
116860
116872
|
} : {}
|
|
116861
116873
|
},
|
|
116862
116874
|
faqs: yoloCopy.faqs,
|
|
116863
|
-
contractDetails: [],
|
|
116875
|
+
contractDetails: [{ name: "Vault", address: yoloConfig.address }],
|
|
116864
116876
|
investmentSteps: yoloCopy.investmentSteps,
|
|
116865
116877
|
settings: {
|
|
116866
116878
|
liveStatus: "Hot & New \u{1F525}" /* HOT */,
|
package/dist/index.browser.mjs
CHANGED
|
@@ -18309,14 +18309,7 @@ var createRe7Settings = (quoteTokenSymbol, isBTC, isDeprecated) => ({
|
|
|
18309
18309
|
(t) => t.symbol === quoteTokenSymbol
|
|
18310
18310
|
),
|
|
18311
18311
|
alerts: getRe7Alerts(),
|
|
18312
|
-
tags: isBTC ? ["BTC" /* BTC */, "Ekubo" /* AUTOMATED_LP */] : ["Ekubo" /* AUTOMATED_LP */]
|
|
18313
|
-
security: {
|
|
18314
|
-
...xSTRKSTRK.security,
|
|
18315
|
-
accessControl: {
|
|
18316
|
-
...xSTRKSTRK.security.accessControl,
|
|
18317
|
-
addresses: [ContractAddr.from("0x707bf89863473548fb2844c9f3f96d83fe2394453259035a5791e4b1490642")]
|
|
18318
|
-
}
|
|
18319
|
-
}
|
|
18312
|
+
tags: isBTC ? ["BTC" /* BTC */, "Ekubo" /* AUTOMATED_LP */] : ["Ekubo" /* AUTOMATED_LP */]
|
|
18320
18313
|
});
|
|
18321
18314
|
var getRe7FAQs = () => [
|
|
18322
18315
|
...faqs2,
|
|
@@ -18386,7 +18379,14 @@ var createRe7Strategy = (id, name, address, launchBlock, depositToken0Symbol, de
|
|
|
18386
18379
|
tags: isBTC ? ["BTC" /* BTC */, "Ekubo" /* AUTOMATED_LP */] : ["Ekubo" /* AUTOMATED_LP */],
|
|
18387
18380
|
discontinuationInfo: isDeprecated ? {
|
|
18388
18381
|
info: "This strategy has been deprecated and is no longer accepting new deposits."
|
|
18389
|
-
} : void 0
|
|
18382
|
+
} : void 0,
|
|
18383
|
+
security: {
|
|
18384
|
+
...xSTRKSTRK.security,
|
|
18385
|
+
accessControl: {
|
|
18386
|
+
...xSTRKSTRK.security.accessControl,
|
|
18387
|
+
addresses: [ContractAddr.from("0x707bf89863473548fb2844c9f3f96d83fe2394453259035a5791e4b1490642")]
|
|
18388
|
+
}
|
|
18389
|
+
}
|
|
18390
18390
|
};
|
|
18391
18391
|
};
|
|
18392
18392
|
var ETHUSDCRe7Strategy = createRe7Strategy(
|
|
@@ -29281,13 +29281,19 @@ var getYoloVaultCopy = (input) => {
|
|
|
29281
29281
|
`Redeem any time to receive your remaining ${main} plus accumulated ${secondary}.`,
|
|
29282
29282
|
`On expiry, entire ${main} token would have been swapped into ${secondary}, unless due to unfavourable market conditions.`
|
|
29283
29283
|
];
|
|
29284
|
+
const parentTitle = secondary.replace("x", "");
|
|
29285
|
+
const variantIntro = {
|
|
29286
|
+
title: `${parentTitle} YOLO vault variant`,
|
|
29287
|
+
description: "Each variant runs until a different expiry date. TVA schedules and execution windows are configured per vault."
|
|
29288
|
+
};
|
|
29284
29289
|
return {
|
|
29285
|
-
title: `${
|
|
29290
|
+
title: `${parentTitle} YOLO (${input.expiryDate})`,
|
|
29286
29291
|
description,
|
|
29287
29292
|
vaultTypeDescription: vaultTypeDescription2,
|
|
29288
29293
|
faqs: faqs3,
|
|
29289
29294
|
investmentSteps: investmentSteps2,
|
|
29290
|
-
parentTitle: `${
|
|
29295
|
+
parentTitle: `${parentTitle} YOLO`,
|
|
29296
|
+
variantIntro
|
|
29291
29297
|
};
|
|
29292
29298
|
};
|
|
29293
29299
|
var usdc = Global.getDefaultTokens().find((t) => t.symbol === "USDC");
|
|
@@ -29346,6 +29352,7 @@ var yoloVaultsConfig = [
|
|
|
29346
29352
|
startDate: "03-MAR-2026",
|
|
29347
29353
|
expiryDate: "31-DEC-2026",
|
|
29348
29354
|
id: `btc-yolo-31-dec-2026`,
|
|
29355
|
+
priority: 100,
|
|
29349
29356
|
...vaultCommonProperties,
|
|
29350
29357
|
parent_id: wbtc_parent
|
|
29351
29358
|
},
|
|
@@ -29356,6 +29363,7 @@ var yoloVaultsConfig = [
|
|
|
29356
29363
|
startDate: "03-APR-2026",
|
|
29357
29364
|
expiryDate: "31-MAY-2026",
|
|
29358
29365
|
id: `vusdc-xwbct-yolo-31-may-2026`,
|
|
29366
|
+
priority: 100,
|
|
29359
29367
|
...vaultCommonProperties,
|
|
29360
29368
|
parent_id: wbtc_parent
|
|
29361
29369
|
},
|
|
@@ -29366,6 +29374,7 @@ var yoloVaultsConfig = [
|
|
|
29366
29374
|
startDate: "03-APR-2026",
|
|
29367
29375
|
expiryDate: "31-MAR-2027",
|
|
29368
29376
|
id: `xstrk-yolo-31-mar-2027`,
|
|
29377
|
+
priority: 50,
|
|
29369
29378
|
...vaultCommonProperties,
|
|
29370
29379
|
spendingLevels: [
|
|
29371
29380
|
{ minPrice: 0.07, maxPrice: 0.1, spendPercent: 50 },
|
|
@@ -29383,6 +29392,7 @@ var yoloVaultsConfig = [
|
|
|
29383
29392
|
startDate: "03-APR-2026",
|
|
29384
29393
|
expiryDate: "30-JUN-2026",
|
|
29385
29394
|
id: `xstrk-yolo-30-jun-2026`,
|
|
29395
|
+
priority: 50,
|
|
29386
29396
|
...vaultCommonProperties,
|
|
29387
29397
|
spendingLevels: [
|
|
29388
29398
|
{ minPrice: 0.07, maxPrice: 0.1, spendPercent: 50 },
|
|
@@ -29403,6 +29413,8 @@ var YoloVaultStrategies = yoloVaultsConfig.map((yoloConfig) => {
|
|
|
29403
29413
|
name: yoloCopy.title,
|
|
29404
29414
|
parentName: yoloCopy.parentTitle,
|
|
29405
29415
|
parentId: yoloConfig.parent_id,
|
|
29416
|
+
priority: yoloConfig.priority,
|
|
29417
|
+
variantIntro: yoloCopy.variantIntro,
|
|
29406
29418
|
description: yoloCopy.description,
|
|
29407
29419
|
address: yoloConfig.address,
|
|
29408
29420
|
vaultType: {
|
|
@@ -29459,7 +29471,7 @@ var YoloVaultStrategies = yoloVaultsConfig.map((yoloConfig) => {
|
|
|
29459
29471
|
} : {}
|
|
29460
29472
|
},
|
|
29461
29473
|
faqs: yoloCopy.faqs,
|
|
29462
|
-
contractDetails: [],
|
|
29474
|
+
contractDetails: [{ name: "Vault", address: yoloConfig.address }],
|
|
29463
29475
|
investmentSteps: yoloCopy.investmentSteps,
|
|
29464
29476
|
settings: {
|
|
29465
29477
|
liveStatus: "Hot & New \u{1F525}" /* HOT */,
|
package/dist/index.d.ts
CHANGED
|
@@ -232,6 +232,19 @@ interface IStrategyMetadata<T> {
|
|
|
232
232
|
id: string;
|
|
233
233
|
name: string;
|
|
234
234
|
description: string | React.ReactNode;
|
|
235
|
+
/**
|
|
236
|
+
* Optional UI sort priority. Higher shows earlier.
|
|
237
|
+
* Intended for pinning flagship parent vaults (e.g. BTC above STRK).
|
|
238
|
+
*/
|
|
239
|
+
priority?: number;
|
|
240
|
+
/**
|
|
241
|
+
* Optional UI config for the variant intro popup (strategy page).
|
|
242
|
+
* Should be identical across strategies that share the same `parentId`.
|
|
243
|
+
*/
|
|
244
|
+
variantIntro?: {
|
|
245
|
+
title: string;
|
|
246
|
+
description: string;
|
|
247
|
+
};
|
|
235
248
|
address: ContractAddr;
|
|
236
249
|
launchBlock: number;
|
|
237
250
|
type: "ERC4626" | "ERC721" | "Other";
|
package/dist/index.js
CHANGED
|
@@ -18348,14 +18348,7 @@ var createRe7Settings = (quoteTokenSymbol, isBTC, isDeprecated) => ({
|
|
|
18348
18348
|
(t) => t.symbol === quoteTokenSymbol
|
|
18349
18349
|
),
|
|
18350
18350
|
alerts: getRe7Alerts(),
|
|
18351
|
-
tags: isBTC ? ["BTC" /* BTC */, "Ekubo" /* AUTOMATED_LP */] : ["Ekubo" /* AUTOMATED_LP */]
|
|
18352
|
-
security: {
|
|
18353
|
-
...xSTRKSTRK.security,
|
|
18354
|
-
accessControl: {
|
|
18355
|
-
...xSTRKSTRK.security.accessControl,
|
|
18356
|
-
addresses: [ContractAddr.from("0x707bf89863473548fb2844c9f3f96d83fe2394453259035a5791e4b1490642")]
|
|
18357
|
-
}
|
|
18358
|
-
}
|
|
18351
|
+
tags: isBTC ? ["BTC" /* BTC */, "Ekubo" /* AUTOMATED_LP */] : ["Ekubo" /* AUTOMATED_LP */]
|
|
18359
18352
|
});
|
|
18360
18353
|
var getRe7FAQs = () => [
|
|
18361
18354
|
...faqs2,
|
|
@@ -18425,7 +18418,14 @@ var createRe7Strategy = (id, name, address, launchBlock, depositToken0Symbol, de
|
|
|
18425
18418
|
tags: isBTC ? ["BTC" /* BTC */, "Ekubo" /* AUTOMATED_LP */] : ["Ekubo" /* AUTOMATED_LP */],
|
|
18426
18419
|
discontinuationInfo: isDeprecated ? {
|
|
18427
18420
|
info: "This strategy has been deprecated and is no longer accepting new deposits."
|
|
18428
|
-
} : void 0
|
|
18421
|
+
} : void 0,
|
|
18422
|
+
security: {
|
|
18423
|
+
...xSTRKSTRK.security,
|
|
18424
|
+
accessControl: {
|
|
18425
|
+
...xSTRKSTRK.security.accessControl,
|
|
18426
|
+
addresses: [ContractAddr.from("0x707bf89863473548fb2844c9f3f96d83fe2394453259035a5791e4b1490642")]
|
|
18427
|
+
}
|
|
18428
|
+
}
|
|
18429
18429
|
};
|
|
18430
18430
|
};
|
|
18431
18431
|
var ETHUSDCRe7Strategy = createRe7Strategy(
|
|
@@ -29421,13 +29421,19 @@ var getYoloVaultCopy = (input) => {
|
|
|
29421
29421
|
`Redeem any time to receive your remaining ${main} plus accumulated ${secondary}.`,
|
|
29422
29422
|
`On expiry, entire ${main} token would have been swapped into ${secondary}, unless due to unfavourable market conditions.`
|
|
29423
29423
|
];
|
|
29424
|
+
const parentTitle = secondary.replace("x", "");
|
|
29425
|
+
const variantIntro = {
|
|
29426
|
+
title: `${parentTitle} YOLO vault variant`,
|
|
29427
|
+
description: "Each variant runs until a different expiry date. TVA schedules and execution windows are configured per vault."
|
|
29428
|
+
};
|
|
29424
29429
|
return {
|
|
29425
|
-
title: `${
|
|
29430
|
+
title: `${parentTitle} YOLO (${input.expiryDate})`,
|
|
29426
29431
|
description,
|
|
29427
29432
|
vaultTypeDescription: vaultTypeDescription2,
|
|
29428
29433
|
faqs: faqs3,
|
|
29429
29434
|
investmentSteps: investmentSteps2,
|
|
29430
|
-
parentTitle: `${
|
|
29435
|
+
parentTitle: `${parentTitle} YOLO`,
|
|
29436
|
+
variantIntro
|
|
29431
29437
|
};
|
|
29432
29438
|
};
|
|
29433
29439
|
var usdc = Global.getDefaultTokens().find((t) => t.symbol === "USDC");
|
|
@@ -29486,6 +29492,7 @@ var yoloVaultsConfig = [
|
|
|
29486
29492
|
startDate: "03-MAR-2026",
|
|
29487
29493
|
expiryDate: "31-DEC-2026",
|
|
29488
29494
|
id: `btc-yolo-31-dec-2026`,
|
|
29495
|
+
priority: 100,
|
|
29489
29496
|
...vaultCommonProperties,
|
|
29490
29497
|
parent_id: wbtc_parent
|
|
29491
29498
|
},
|
|
@@ -29496,6 +29503,7 @@ var yoloVaultsConfig = [
|
|
|
29496
29503
|
startDate: "03-APR-2026",
|
|
29497
29504
|
expiryDate: "31-MAY-2026",
|
|
29498
29505
|
id: `vusdc-xwbct-yolo-31-may-2026`,
|
|
29506
|
+
priority: 100,
|
|
29499
29507
|
...vaultCommonProperties,
|
|
29500
29508
|
parent_id: wbtc_parent
|
|
29501
29509
|
},
|
|
@@ -29506,6 +29514,7 @@ var yoloVaultsConfig = [
|
|
|
29506
29514
|
startDate: "03-APR-2026",
|
|
29507
29515
|
expiryDate: "31-MAR-2027",
|
|
29508
29516
|
id: `xstrk-yolo-31-mar-2027`,
|
|
29517
|
+
priority: 50,
|
|
29509
29518
|
...vaultCommonProperties,
|
|
29510
29519
|
spendingLevels: [
|
|
29511
29520
|
{ minPrice: 0.07, maxPrice: 0.1, spendPercent: 50 },
|
|
@@ -29523,6 +29532,7 @@ var yoloVaultsConfig = [
|
|
|
29523
29532
|
startDate: "03-APR-2026",
|
|
29524
29533
|
expiryDate: "30-JUN-2026",
|
|
29525
29534
|
id: `xstrk-yolo-30-jun-2026`,
|
|
29535
|
+
priority: 50,
|
|
29526
29536
|
...vaultCommonProperties,
|
|
29527
29537
|
spendingLevels: [
|
|
29528
29538
|
{ minPrice: 0.07, maxPrice: 0.1, spendPercent: 50 },
|
|
@@ -29543,6 +29553,8 @@ var YoloVaultStrategies = yoloVaultsConfig.map((yoloConfig) => {
|
|
|
29543
29553
|
name: yoloCopy.title,
|
|
29544
29554
|
parentName: yoloCopy.parentTitle,
|
|
29545
29555
|
parentId: yoloConfig.parent_id,
|
|
29556
|
+
priority: yoloConfig.priority,
|
|
29557
|
+
variantIntro: yoloCopy.variantIntro,
|
|
29546
29558
|
description: yoloCopy.description,
|
|
29547
29559
|
address: yoloConfig.address,
|
|
29548
29560
|
vaultType: {
|
|
@@ -29599,7 +29611,7 @@ var YoloVaultStrategies = yoloVaultsConfig.map((yoloConfig) => {
|
|
|
29599
29611
|
} : {}
|
|
29600
29612
|
},
|
|
29601
29613
|
faqs: yoloCopy.faqs,
|
|
29602
|
-
contractDetails: [],
|
|
29614
|
+
contractDetails: [{ name: "Vault", address: yoloConfig.address }],
|
|
29603
29615
|
investmentSteps: yoloCopy.investmentSteps,
|
|
29604
29616
|
settings: {
|
|
29605
29617
|
liveStatus: "Hot & New \u{1F525}" /* HOT */,
|
package/dist/index.mjs
CHANGED
|
@@ -18213,14 +18213,7 @@ var createRe7Settings = (quoteTokenSymbol, isBTC, isDeprecated) => ({
|
|
|
18213
18213
|
(t) => t.symbol === quoteTokenSymbol
|
|
18214
18214
|
),
|
|
18215
18215
|
alerts: getRe7Alerts(),
|
|
18216
|
-
tags: isBTC ? ["BTC" /* BTC */, "Ekubo" /* AUTOMATED_LP */] : ["Ekubo" /* AUTOMATED_LP */]
|
|
18217
|
-
security: {
|
|
18218
|
-
...xSTRKSTRK.security,
|
|
18219
|
-
accessControl: {
|
|
18220
|
-
...xSTRKSTRK.security.accessControl,
|
|
18221
|
-
addresses: [ContractAddr.from("0x707bf89863473548fb2844c9f3f96d83fe2394453259035a5791e4b1490642")]
|
|
18222
|
-
}
|
|
18223
|
-
}
|
|
18216
|
+
tags: isBTC ? ["BTC" /* BTC */, "Ekubo" /* AUTOMATED_LP */] : ["Ekubo" /* AUTOMATED_LP */]
|
|
18224
18217
|
});
|
|
18225
18218
|
var getRe7FAQs = () => [
|
|
18226
18219
|
...faqs2,
|
|
@@ -18290,7 +18283,14 @@ var createRe7Strategy = (id, name, address, launchBlock, depositToken0Symbol, de
|
|
|
18290
18283
|
tags: isBTC ? ["BTC" /* BTC */, "Ekubo" /* AUTOMATED_LP */] : ["Ekubo" /* AUTOMATED_LP */],
|
|
18291
18284
|
discontinuationInfo: isDeprecated ? {
|
|
18292
18285
|
info: "This strategy has been deprecated and is no longer accepting new deposits."
|
|
18293
|
-
} : void 0
|
|
18286
|
+
} : void 0,
|
|
18287
|
+
security: {
|
|
18288
|
+
...xSTRKSTRK.security,
|
|
18289
|
+
accessControl: {
|
|
18290
|
+
...xSTRKSTRK.security.accessControl,
|
|
18291
|
+
addresses: [ContractAddr.from("0x707bf89863473548fb2844c9f3f96d83fe2394453259035a5791e4b1490642")]
|
|
18292
|
+
}
|
|
18293
|
+
}
|
|
18294
18294
|
};
|
|
18295
18295
|
};
|
|
18296
18296
|
var ETHUSDCRe7Strategy = createRe7Strategy(
|
|
@@ -29286,13 +29286,19 @@ var getYoloVaultCopy = (input) => {
|
|
|
29286
29286
|
`Redeem any time to receive your remaining ${main} plus accumulated ${secondary}.`,
|
|
29287
29287
|
`On expiry, entire ${main} token would have been swapped into ${secondary}, unless due to unfavourable market conditions.`
|
|
29288
29288
|
];
|
|
29289
|
+
const parentTitle = secondary.replace("x", "");
|
|
29290
|
+
const variantIntro = {
|
|
29291
|
+
title: `${parentTitle} YOLO vault variant`,
|
|
29292
|
+
description: "Each variant runs until a different expiry date. TVA schedules and execution windows are configured per vault."
|
|
29293
|
+
};
|
|
29289
29294
|
return {
|
|
29290
|
-
title: `${
|
|
29295
|
+
title: `${parentTitle} YOLO (${input.expiryDate})`,
|
|
29291
29296
|
description,
|
|
29292
29297
|
vaultTypeDescription: vaultTypeDescription2,
|
|
29293
29298
|
faqs: faqs3,
|
|
29294
29299
|
investmentSteps: investmentSteps2,
|
|
29295
|
-
parentTitle: `${
|
|
29300
|
+
parentTitle: `${parentTitle} YOLO`,
|
|
29301
|
+
variantIntro
|
|
29296
29302
|
};
|
|
29297
29303
|
};
|
|
29298
29304
|
var usdc = Global.getDefaultTokens().find((t) => t.symbol === "USDC");
|
|
@@ -29351,6 +29357,7 @@ var yoloVaultsConfig = [
|
|
|
29351
29357
|
startDate: "03-MAR-2026",
|
|
29352
29358
|
expiryDate: "31-DEC-2026",
|
|
29353
29359
|
id: `btc-yolo-31-dec-2026`,
|
|
29360
|
+
priority: 100,
|
|
29354
29361
|
...vaultCommonProperties,
|
|
29355
29362
|
parent_id: wbtc_parent
|
|
29356
29363
|
},
|
|
@@ -29361,6 +29368,7 @@ var yoloVaultsConfig = [
|
|
|
29361
29368
|
startDate: "03-APR-2026",
|
|
29362
29369
|
expiryDate: "31-MAY-2026",
|
|
29363
29370
|
id: `vusdc-xwbct-yolo-31-may-2026`,
|
|
29371
|
+
priority: 100,
|
|
29364
29372
|
...vaultCommonProperties,
|
|
29365
29373
|
parent_id: wbtc_parent
|
|
29366
29374
|
},
|
|
@@ -29371,6 +29379,7 @@ var yoloVaultsConfig = [
|
|
|
29371
29379
|
startDate: "03-APR-2026",
|
|
29372
29380
|
expiryDate: "31-MAR-2027",
|
|
29373
29381
|
id: `xstrk-yolo-31-mar-2027`,
|
|
29382
|
+
priority: 50,
|
|
29374
29383
|
...vaultCommonProperties,
|
|
29375
29384
|
spendingLevels: [
|
|
29376
29385
|
{ minPrice: 0.07, maxPrice: 0.1, spendPercent: 50 },
|
|
@@ -29388,6 +29397,7 @@ var yoloVaultsConfig = [
|
|
|
29388
29397
|
startDate: "03-APR-2026",
|
|
29389
29398
|
expiryDate: "30-JUN-2026",
|
|
29390
29399
|
id: `xstrk-yolo-30-jun-2026`,
|
|
29400
|
+
priority: 50,
|
|
29391
29401
|
...vaultCommonProperties,
|
|
29392
29402
|
spendingLevels: [
|
|
29393
29403
|
{ minPrice: 0.07, maxPrice: 0.1, spendPercent: 50 },
|
|
@@ -29408,6 +29418,8 @@ var YoloVaultStrategies = yoloVaultsConfig.map((yoloConfig) => {
|
|
|
29408
29418
|
name: yoloCopy.title,
|
|
29409
29419
|
parentName: yoloCopy.parentTitle,
|
|
29410
29420
|
parentId: yoloConfig.parent_id,
|
|
29421
|
+
priority: yoloConfig.priority,
|
|
29422
|
+
variantIntro: yoloCopy.variantIntro,
|
|
29411
29423
|
description: yoloCopy.description,
|
|
29412
29424
|
address: yoloConfig.address,
|
|
29413
29425
|
vaultType: {
|
|
@@ -29464,7 +29476,7 @@ var YoloVaultStrategies = yoloVaultsConfig.map((yoloConfig) => {
|
|
|
29464
29476
|
} : {}
|
|
29465
29477
|
},
|
|
29466
29478
|
faqs: yoloCopy.faqs,
|
|
29467
|
-
contractDetails: [],
|
|
29479
|
+
contractDetails: [{ name: "Vault", address: yoloConfig.address }],
|
|
29468
29480
|
investmentSteps: yoloCopy.investmentSteps,
|
|
29469
29481
|
settings: {
|
|
29470
29482
|
liveStatus: "Hot & New \u{1F525}" /* HOT */,
|
package/package.json
CHANGED
|
@@ -183,6 +183,19 @@ export interface IStrategyMetadata<T> {
|
|
|
183
183
|
id: string;
|
|
184
184
|
name: string;
|
|
185
185
|
description: string | React.ReactNode;
|
|
186
|
+
/**
|
|
187
|
+
* Optional UI sort priority. Higher shows earlier.
|
|
188
|
+
* Intended for pinning flagship parent vaults (e.g. BTC above STRK).
|
|
189
|
+
*/
|
|
190
|
+
priority?: number;
|
|
191
|
+
/**
|
|
192
|
+
* Optional UI config for the variant intro popup (strategy page).
|
|
193
|
+
* Should be identical across strategies that share the same `parentId`.
|
|
194
|
+
*/
|
|
195
|
+
variantIntro?: {
|
|
196
|
+
title: string;
|
|
197
|
+
description: string;
|
|
198
|
+
};
|
|
186
199
|
address: ContractAddr;
|
|
187
200
|
launchBlock: number;
|
|
188
201
|
type: "ERC4626" | "ERC721" | "Other";
|
|
@@ -2714,14 +2714,7 @@ const createRe7Settings = (quoteTokenSymbol: string, isBTC: boolean, isDeprecate
|
|
|
2714
2714
|
(t) => t.symbol === quoteTokenSymbol
|
|
2715
2715
|
)!,
|
|
2716
2716
|
alerts: getRe7Alerts(),
|
|
2717
|
-
tags: isBTC ? [StrategyTag.BTC, StrategyTag.AUTOMATED_LP] : [StrategyTag.AUTOMATED_LP] as StrategyTag[]
|
|
2718
|
-
security: {
|
|
2719
|
-
...xSTRKSTRK.security,
|
|
2720
|
-
accessControl: {
|
|
2721
|
-
...xSTRKSTRK.security.accessControl,
|
|
2722
|
-
addresses: [ContractAddr.from("0x707bf89863473548fb2844c9f3f96d83fe2394453259035a5791e4b1490642")],
|
|
2723
|
-
},
|
|
2724
|
-
},
|
|
2717
|
+
tags: isBTC ? [StrategyTag.BTC, StrategyTag.AUTOMATED_LP] : [StrategyTag.AUTOMATED_LP] as StrategyTag[]
|
|
2725
2718
|
});
|
|
2726
2719
|
|
|
2727
2720
|
// Helper to create Re7 FAQs
|
|
@@ -2821,6 +2814,13 @@ const createRe7Strategy = (
|
|
|
2821
2814
|
discontinuationInfo: isDeprecated ? {
|
|
2822
2815
|
info: "This strategy has been deprecated and is no longer accepting new deposits."
|
|
2823
2816
|
} : undefined,
|
|
2817
|
+
security: {
|
|
2818
|
+
...xSTRKSTRK.security,
|
|
2819
|
+
accessControl: {
|
|
2820
|
+
...xSTRKSTRK.security.accessControl,
|
|
2821
|
+
addresses: [ContractAddr.from("0x707bf89863473548fb2844c9f3f96d83fe2394453259035a5791e4b1490642")],
|
|
2822
|
+
},
|
|
2823
|
+
},
|
|
2824
2824
|
};
|
|
2825
2825
|
};
|
|
2826
2826
|
|
|
@@ -67,6 +67,8 @@ interface YoloVaultStrategyConfig extends YoloVaultSettings {
|
|
|
67
67
|
id: string;
|
|
68
68
|
address: ContractAddr;
|
|
69
69
|
parent_id: string;
|
|
70
|
+
/** Higher shows earlier in UI. */
|
|
71
|
+
priority?: number;
|
|
70
72
|
}
|
|
71
73
|
|
|
72
74
|
export interface UserYoloInfo {
|
|
@@ -826,13 +828,21 @@ const getYoloVaultCopy = (input: YoloVaultSettings) => {
|
|
|
826
828
|
`On expiry, entire ${main} token would have been swapped into ${secondary}, unless due to unfavourable market conditions.`
|
|
827
829
|
];
|
|
828
830
|
|
|
831
|
+
const parentTitle = secondary.replace('x', '');
|
|
832
|
+
const variantIntro = {
|
|
833
|
+
title: `${parentTitle} YOLO vault variant`,
|
|
834
|
+
description:
|
|
835
|
+
"Each variant runs until a different expiry date. TVA schedules and execution windows are configured per vault.",
|
|
836
|
+
};
|
|
837
|
+
|
|
829
838
|
return {
|
|
830
|
-
title: `${
|
|
839
|
+
title: `${parentTitle} YOLO (${input.expiryDate})`,
|
|
831
840
|
description,
|
|
832
841
|
vaultTypeDescription,
|
|
833
842
|
faqs,
|
|
834
843
|
investmentSteps,
|
|
835
|
-
parentTitle: `${
|
|
844
|
+
parentTitle: `${parentTitle} YOLO`,
|
|
845
|
+
variantIntro,
|
|
836
846
|
};
|
|
837
847
|
};
|
|
838
848
|
|
|
@@ -908,6 +918,7 @@ const yoloVaultsConfig:YoloVaultStrategyConfig[] = [
|
|
|
908
918
|
startDate: "03-MAR-2026",
|
|
909
919
|
expiryDate: "31-DEC-2026",
|
|
910
920
|
id: `btc-yolo-31-dec-2026`,
|
|
921
|
+
priority: 100,
|
|
911
922
|
...vaultCommonProperties,
|
|
912
923
|
parent_id: wbtc_parent,
|
|
913
924
|
},
|
|
@@ -918,6 +929,7 @@ const yoloVaultsConfig:YoloVaultStrategyConfig[] = [
|
|
|
918
929
|
startDate: "03-APR-2026",
|
|
919
930
|
expiryDate: "31-MAY-2026",
|
|
920
931
|
id: `vusdc-xwbct-yolo-31-may-2026`,
|
|
932
|
+
priority: 100,
|
|
921
933
|
...vaultCommonProperties,
|
|
922
934
|
parent_id: wbtc_parent
|
|
923
935
|
},
|
|
@@ -928,6 +940,7 @@ const yoloVaultsConfig:YoloVaultStrategyConfig[] = [
|
|
|
928
940
|
startDate: "03-APR-2026",
|
|
929
941
|
expiryDate: "31-MAR-2027",
|
|
930
942
|
id: `xstrk-yolo-31-mar-2027`,
|
|
943
|
+
priority: 50,
|
|
931
944
|
...vaultCommonProperties,
|
|
932
945
|
spendingLevels: [
|
|
933
946
|
{ minPrice: 0.07, maxPrice: 0.1, spendPercent: 50 },
|
|
@@ -945,6 +958,7 @@ const yoloVaultsConfig:YoloVaultStrategyConfig[] = [
|
|
|
945
958
|
startDate: "03-APR-2026",
|
|
946
959
|
expiryDate: "30-JUN-2026",
|
|
947
960
|
id: `xstrk-yolo-30-jun-2026`,
|
|
961
|
+
priority: 50,
|
|
948
962
|
...vaultCommonProperties,
|
|
949
963
|
spendingLevels: [
|
|
950
964
|
{ minPrice: 0.07, maxPrice: 0.1, spendPercent: 50 },
|
|
@@ -969,6 +983,8 @@ export const YoloVaultStrategies: IStrategyMetadata<YoloVaultSettings>[] = yoloV
|
|
|
969
983
|
name: yoloCopy.title,
|
|
970
984
|
parentName: yoloCopy.parentTitle,
|
|
971
985
|
parentId: yoloConfig.parent_id,
|
|
986
|
+
priority: yoloConfig.priority,
|
|
987
|
+
variantIntro: yoloCopy.variantIntro,
|
|
972
988
|
description: yoloCopy.description,
|
|
973
989
|
address: yoloConfig.address,
|
|
974
990
|
vaultType: {
|
|
@@ -1027,7 +1043,7 @@ export const YoloVaultStrategies: IStrategyMetadata<YoloVaultSettings>[] = yoloV
|
|
|
1027
1043
|
: {}),
|
|
1028
1044
|
},
|
|
1029
1045
|
faqs: yoloCopy.faqs,
|
|
1030
|
-
contractDetails: [],
|
|
1046
|
+
contractDetails: [{name: "Vault", address: yoloConfig.address}],
|
|
1031
1047
|
investmentSteps: yoloCopy.investmentSteps,
|
|
1032
1048
|
settings: {
|
|
1033
1049
|
liveStatus: StrategyLiveStatus.HOT,
|