@strkfarm/sdk 2.0.0-staging.39 → 2.0.0-staging.40
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.
|
@@ -117273,7 +117273,7 @@ spurious results.`);
|
|
|
117273
117273
|
}
|
|
117274
117274
|
}
|
|
117275
117275
|
async netAPY() {
|
|
117276
|
-
return "YOLO";
|
|
117276
|
+
return "\u{1F919}YOLO";
|
|
117277
117277
|
}
|
|
117278
117278
|
async getSwapAmounts(spendUnits) {
|
|
117279
117279
|
const swapAmounts = await this.contract.call("get_swap_amounts", [spendUnits.toUint256()]);
|
|
@@ -117291,14 +117291,14 @@ spurious results.`);
|
|
|
117291
117291
|
return [
|
|
117292
117292
|
{
|
|
117293
117293
|
title: holdingsTitle,
|
|
117294
|
-
tooltip:
|
|
117294
|
+
tooltip: `Amount of ${this.primaryToken.symbol} left in the vault, waiting to be swapped`,
|
|
117295
117295
|
value: this.formatTokenAmountForCard(userTVL.token0.amount, userTVL.token0.tokenInfo),
|
|
117296
117296
|
subValue: `\u2248 ${this.formatUSDForCard(userTVL.token0.usdValue)}`,
|
|
117297
117297
|
subValueColor: "positive"
|
|
117298
117298
|
},
|
|
117299
117299
|
{
|
|
117300
117300
|
title: earningsTitle,
|
|
117301
|
-
tooltip:
|
|
117301
|
+
tooltip: `Amount of ${this.secondaryToken.symbol} accumulated in the vault`,
|
|
117302
117302
|
value: this.formatTokenAmountForCard(userTVL.token1.amount, userTVL.token1.tokenInfo),
|
|
117303
117303
|
subValue: `\u2248 ${this.formatUSDForCard(userTVL.token1.usdValue)}`,
|
|
117304
117304
|
subValueColor: "default"
|
|
@@ -121626,6 +121626,19 @@ spurious results.`);
|
|
|
121626
121626
|
});
|
|
121627
121627
|
}
|
|
121628
121628
|
}
|
|
121629
|
+
if (this.asset().symbol === "xSTRK") {
|
|
121630
|
+
const index = cards.findIndex((card) => card.title === "Lifetime Earnings");
|
|
121631
|
+
if (index >= 0) {
|
|
121632
|
+
cards.push({
|
|
121633
|
+
title: "Lifetime Earnings (Read this)",
|
|
121634
|
+
tooltip: "Lifetime earnings of the vault. Due to migration of xSTRK Sensei to this vault, any migrated funds are also seen as lifetime earnings. Team is working to fix this soon.",
|
|
121635
|
+
value: this.formatTokenAmountForCard(
|
|
121636
|
+
Web3Number.fromWei("0", this.asset().decimals),
|
|
121637
|
+
this.asset()
|
|
121638
|
+
)
|
|
121639
|
+
});
|
|
121640
|
+
}
|
|
121641
|
+
}
|
|
121629
121642
|
return cards;
|
|
121630
121643
|
}
|
|
121631
121644
|
//
|
package/dist/index.browser.mjs
CHANGED
|
@@ -30065,7 +30065,7 @@ var YoLoVault = class extends BaseStrategy {
|
|
|
30065
30065
|
}
|
|
30066
30066
|
}
|
|
30067
30067
|
async netAPY() {
|
|
30068
|
-
return "YOLO";
|
|
30068
|
+
return "\u{1F919}YOLO";
|
|
30069
30069
|
}
|
|
30070
30070
|
async getSwapAmounts(spendUnits) {
|
|
30071
30071
|
const swapAmounts = await this.contract.call("get_swap_amounts", [spendUnits.toUint256()]);
|
|
@@ -30083,14 +30083,14 @@ var YoLoVault = class extends BaseStrategy {
|
|
|
30083
30083
|
return [
|
|
30084
30084
|
{
|
|
30085
30085
|
title: holdingsTitle,
|
|
30086
|
-
tooltip:
|
|
30086
|
+
tooltip: `Amount of ${this.primaryToken.symbol} left in the vault, waiting to be swapped`,
|
|
30087
30087
|
value: this.formatTokenAmountForCard(userTVL.token0.amount, userTVL.token0.tokenInfo),
|
|
30088
30088
|
subValue: `\u2248 ${this.formatUSDForCard(userTVL.token0.usdValue)}`,
|
|
30089
30089
|
subValueColor: "positive"
|
|
30090
30090
|
},
|
|
30091
30091
|
{
|
|
30092
30092
|
title: earningsTitle,
|
|
30093
|
-
tooltip:
|
|
30093
|
+
tooltip: `Amount of ${this.secondaryToken.symbol} accumulated in the vault`,
|
|
30094
30094
|
value: this.formatTokenAmountForCard(userTVL.token1.amount, userTVL.token1.tokenInfo),
|
|
30095
30095
|
subValue: `\u2248 ${this.formatUSDForCard(userTVL.token1.usdValue)}`,
|
|
30096
30096
|
subValueColor: "default"
|
|
@@ -34425,6 +34425,19 @@ var UniversalLstMultiplierStrategy = class _UniversalLstMultiplierStrategy exten
|
|
|
34425
34425
|
});
|
|
34426
34426
|
}
|
|
34427
34427
|
}
|
|
34428
|
+
if (this.asset().symbol === "xSTRK") {
|
|
34429
|
+
const index = cards.findIndex((card) => card.title === "Lifetime Earnings");
|
|
34430
|
+
if (index >= 0) {
|
|
34431
|
+
cards.push({
|
|
34432
|
+
title: "Lifetime Earnings (Read this)",
|
|
34433
|
+
tooltip: "Lifetime earnings of the vault. Due to migration of xSTRK Sensei to this vault, any migrated funds are also seen as lifetime earnings. Team is working to fix this soon.",
|
|
34434
|
+
value: this.formatTokenAmountForCard(
|
|
34435
|
+
Web3Number.fromWei("0", this.asset().decimals),
|
|
34436
|
+
this.asset()
|
|
34437
|
+
)
|
|
34438
|
+
});
|
|
34439
|
+
}
|
|
34440
|
+
}
|
|
34428
34441
|
return cards;
|
|
34429
34442
|
}
|
|
34430
34443
|
//
|
package/dist/index.js
CHANGED
|
@@ -30205,7 +30205,7 @@ var YoLoVault = class extends BaseStrategy {
|
|
|
30205
30205
|
}
|
|
30206
30206
|
}
|
|
30207
30207
|
async netAPY() {
|
|
30208
|
-
return "YOLO";
|
|
30208
|
+
return "\u{1F919}YOLO";
|
|
30209
30209
|
}
|
|
30210
30210
|
async getSwapAmounts(spendUnits) {
|
|
30211
30211
|
const swapAmounts = await this.contract.call("get_swap_amounts", [spendUnits.toUint256()]);
|
|
@@ -30223,14 +30223,14 @@ var YoLoVault = class extends BaseStrategy {
|
|
|
30223
30223
|
return [
|
|
30224
30224
|
{
|
|
30225
30225
|
title: holdingsTitle,
|
|
30226
|
-
tooltip:
|
|
30226
|
+
tooltip: `Amount of ${this.primaryToken.symbol} left in the vault, waiting to be swapped`,
|
|
30227
30227
|
value: this.formatTokenAmountForCard(userTVL.token0.amount, userTVL.token0.tokenInfo),
|
|
30228
30228
|
subValue: `\u2248 ${this.formatUSDForCard(userTVL.token0.usdValue)}`,
|
|
30229
30229
|
subValueColor: "positive"
|
|
30230
30230
|
},
|
|
30231
30231
|
{
|
|
30232
30232
|
title: earningsTitle,
|
|
30233
|
-
tooltip:
|
|
30233
|
+
tooltip: `Amount of ${this.secondaryToken.symbol} accumulated in the vault`,
|
|
30234
30234
|
value: this.formatTokenAmountForCard(userTVL.token1.amount, userTVL.token1.tokenInfo),
|
|
30235
30235
|
subValue: `\u2248 ${this.formatUSDForCard(userTVL.token1.usdValue)}`,
|
|
30236
30236
|
subValueColor: "default"
|
|
@@ -34565,6 +34565,19 @@ var UniversalLstMultiplierStrategy = class _UniversalLstMultiplierStrategy exten
|
|
|
34565
34565
|
});
|
|
34566
34566
|
}
|
|
34567
34567
|
}
|
|
34568
|
+
if (this.asset().symbol === "xSTRK") {
|
|
34569
|
+
const index = cards.findIndex((card) => card.title === "Lifetime Earnings");
|
|
34570
|
+
if (index >= 0) {
|
|
34571
|
+
cards.push({
|
|
34572
|
+
title: "Lifetime Earnings (Read this)",
|
|
34573
|
+
tooltip: "Lifetime earnings of the vault. Due to migration of xSTRK Sensei to this vault, any migrated funds are also seen as lifetime earnings. Team is working to fix this soon.",
|
|
34574
|
+
value: this.formatTokenAmountForCard(
|
|
34575
|
+
Web3Number.fromWei("0", this.asset().decimals),
|
|
34576
|
+
this.asset()
|
|
34577
|
+
)
|
|
34578
|
+
});
|
|
34579
|
+
}
|
|
34580
|
+
}
|
|
34568
34581
|
return cards;
|
|
34569
34582
|
}
|
|
34570
34583
|
//
|
package/dist/index.mjs
CHANGED
|
@@ -30070,7 +30070,7 @@ var YoLoVault = class extends BaseStrategy {
|
|
|
30070
30070
|
}
|
|
30071
30071
|
}
|
|
30072
30072
|
async netAPY() {
|
|
30073
|
-
return "YOLO";
|
|
30073
|
+
return "\u{1F919}YOLO";
|
|
30074
30074
|
}
|
|
30075
30075
|
async getSwapAmounts(spendUnits) {
|
|
30076
30076
|
const swapAmounts = await this.contract.call("get_swap_amounts", [spendUnits.toUint256()]);
|
|
@@ -30088,14 +30088,14 @@ var YoLoVault = class extends BaseStrategy {
|
|
|
30088
30088
|
return [
|
|
30089
30089
|
{
|
|
30090
30090
|
title: holdingsTitle,
|
|
30091
|
-
tooltip:
|
|
30091
|
+
tooltip: `Amount of ${this.primaryToken.symbol} left in the vault, waiting to be swapped`,
|
|
30092
30092
|
value: this.formatTokenAmountForCard(userTVL.token0.amount, userTVL.token0.tokenInfo),
|
|
30093
30093
|
subValue: `\u2248 ${this.formatUSDForCard(userTVL.token0.usdValue)}`,
|
|
30094
30094
|
subValueColor: "positive"
|
|
30095
30095
|
},
|
|
30096
30096
|
{
|
|
30097
30097
|
title: earningsTitle,
|
|
30098
|
-
tooltip:
|
|
30098
|
+
tooltip: `Amount of ${this.secondaryToken.symbol} accumulated in the vault`,
|
|
30099
30099
|
value: this.formatTokenAmountForCard(userTVL.token1.amount, userTVL.token1.tokenInfo),
|
|
30100
30100
|
subValue: `\u2248 ${this.formatUSDForCard(userTVL.token1.usdValue)}`,
|
|
30101
30101
|
subValueColor: "default"
|
|
@@ -34430,6 +34430,19 @@ var UniversalLstMultiplierStrategy = class _UniversalLstMultiplierStrategy exten
|
|
|
34430
34430
|
});
|
|
34431
34431
|
}
|
|
34432
34432
|
}
|
|
34433
|
+
if (this.asset().symbol === "xSTRK") {
|
|
34434
|
+
const index = cards.findIndex((card) => card.title === "Lifetime Earnings");
|
|
34435
|
+
if (index >= 0) {
|
|
34436
|
+
cards.push({
|
|
34437
|
+
title: "Lifetime Earnings (Read this)",
|
|
34438
|
+
tooltip: "Lifetime earnings of the vault. Due to migration of xSTRK Sensei to this vault, any migrated funds are also seen as lifetime earnings. Team is working to fix this soon.",
|
|
34439
|
+
value: this.formatTokenAmountForCard(
|
|
34440
|
+
Web3Number.fromWei("0", this.asset().decimals),
|
|
34441
|
+
this.asset()
|
|
34442
|
+
)
|
|
34443
|
+
});
|
|
34444
|
+
}
|
|
34445
|
+
}
|
|
34433
34446
|
return cards;
|
|
34434
34447
|
}
|
|
34435
34448
|
//
|
package/package.json
CHANGED
|
@@ -721,6 +721,21 @@ export class UniversalLstMultiplierStrategy extends UniversalStrategy<HyperLSTSt
|
|
|
721
721
|
}
|
|
722
722
|
}
|
|
723
723
|
|
|
724
|
+
// if xstrk vault, update lifetype earnings to specific title.
|
|
725
|
+
if (this.asset().symbol === "xSTRK") {
|
|
726
|
+
const index = cards.findIndex((card) => card.title === "Lifetime Earnings");
|
|
727
|
+
if (index >= 0) {
|
|
728
|
+
cards.push({
|
|
729
|
+
title: "Lifetime Earnings (Read this)",
|
|
730
|
+
tooltip: "Lifetime earnings of the vault. Due to migration of xSTRK Sensei to this vault, any migrated funds are also seen as lifetime earnings. Team is working to fix this soon.",
|
|
731
|
+
value: this.formatTokenAmountForCard(
|
|
732
|
+
Web3Number.fromWei("0", this.asset().decimals),
|
|
733
|
+
this.asset()
|
|
734
|
+
),
|
|
735
|
+
});
|
|
736
|
+
}
|
|
737
|
+
}
|
|
738
|
+
|
|
724
739
|
return cards;
|
|
725
740
|
}
|
|
726
741
|
|
|
@@ -433,7 +433,7 @@ export class YoLoVault extends BaseStrategy<DualTokenInfo, SingleActionAmount, D
|
|
|
433
433
|
}
|
|
434
434
|
|
|
435
435
|
async netAPY(): Promise<number | string | NetAPYDetails> {
|
|
436
|
-
return "YOLO"
|
|
436
|
+
return "🤙YOLO"
|
|
437
437
|
}
|
|
438
438
|
|
|
439
439
|
async getSwapAmounts(spendUnits: Web3Number): Promise<{ grossSpend: Web3Number; netSpend: Web3Number; isReadyForNextSwap: boolean }> {
|
|
@@ -458,14 +458,14 @@ export class YoLoVault extends BaseStrategy<DualTokenInfo, SingleActionAmount, D
|
|
|
458
458
|
return [
|
|
459
459
|
{
|
|
460
460
|
title: holdingsTitle,
|
|
461
|
-
tooltip:
|
|
461
|
+
tooltip: `Amount of ${this.primaryToken.symbol} left in the vault, waiting to be swapped`,
|
|
462
462
|
value: this.formatTokenAmountForCard(userTVL.token0.amount, userTVL.token0.tokenInfo),
|
|
463
463
|
subValue: `≈ ${this.formatUSDForCard(userTVL.token0.usdValue)}`,
|
|
464
464
|
subValueColor: "positive",
|
|
465
465
|
},
|
|
466
466
|
{
|
|
467
467
|
title: earningsTitle,
|
|
468
|
-
tooltip:
|
|
468
|
+
tooltip: `Amount of ${this.secondaryToken.symbol} accumulated in the vault`,
|
|
469
469
|
value: this.formatTokenAmountForCard(userTVL.token1.amount, userTVL.token1.tokenInfo),
|
|
470
470
|
subValue: `≈ ${this.formatUSDForCard(userTVL.token1.usdValue)}`,
|
|
471
471
|
subValueColor: "default",
|