@strkfarm/sdk 2.0.0-dev.51 → 2.0.0-dev.53

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.
@@ -126888,19 +126888,19 @@ spurious results.`);
126888
126888
  underlyingTokenInfo.decimals
126889
126889
  ) : new Web3Number(1, underlyingTokenInfo.decimals);
126890
126890
  const quote = await avnuModule.getQuotes(
126891
- underlyingTokenInfo.address.address,
126892
126891
  lstTokenInfo.address.address,
126892
+ underlyingTokenInfo.address.address,
126893
126893
  sellAmount.toWei(),
126894
126894
  this.metadata.additionalInfo.vaultAllocator.address
126895
126895
  );
126896
- const underlyingAmountNumber = sellAmount.toNumber();
126896
+ const underlyingAmountNumber = Web3Number.fromWei(quote.buyAmount.toString(), underlyingTokenInfo.decimals).toNumber();
126897
126897
  const lstAmountNumber = Web3Number.fromWei(
126898
- quote.buyAmount.toString(),
126898
+ quote.sellAmount.toString(),
126899
126899
  lstTokenInfo.decimals
126900
126900
  ).toNumber();
126901
126901
  assert3(lstAmountNumber > 0, "Avnu LST amount is zero");
126902
126902
  const exchangeRate = underlyingAmountNumber / lstAmountNumber;
126903
- logger2.verbose(
126903
+ logger2.info(
126904
126904
  `${this.getTag()}:: LST Avnu Exchange Rate: ${exchangeRate}`
126905
126905
  );
126906
126906
  return exchangeRate;
@@ -127929,7 +127929,7 @@ spurious results.`);
127929
127929
  );
127930
127930
  return {
127931
127931
  isPaused: false,
127932
- liveStatus: lstSymbol === "xSTRK" ? "Hot & New \u{1F525}" /* HOT */ : lstSymbol == "xWBTC" || lstSymbol == "xtBTC" ? "Active" /* ACTIVE */ : "Deprecated" /* DEPRECATED */,
127932
+ liveStatus: lstSymbol === "xSTRK" ? "Hot & New \u{1F525}" /* HOT */ : "Deprecated" /* DEPRECATED */,
127933
127933
  isAudited: true,
127934
127934
  isInstantWithdrawal: false,
127935
127935
  hideHarvestInfo: true,
@@ -128029,7 +128029,18 @@ spurious results.`);
128029
128029
  multiplier: 4,
128030
128030
  logo: "https://endur.fi/favicon.ico",
128031
128031
  toolTip: "This strategy holds xSTRK. Earn 3-4x Endur points on your xSTRK due to the leverage. Points can be found on endur.fi."
128032
- }] : void 0
128032
+ }] : void 0,
128033
+ discontinuationInfo: lstSymbol == "xSTRK" ? void 0 : {
128034
+ date: /* @__PURE__ */ new Date("2026-07-08"),
128035
+ info: /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(import_jsx_runtime5.Fragment, { children: [
128036
+ "This strategy is deprecated. Consider ",
128037
+ /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("a", { href: "/strategy/wbtc_boosted", target: "_blank", rel: "noopener noreferrer", className: "underline", children: /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("b", { children: "WBTC Boosted" }) }),
128038
+ " for ",
128039
+ /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("b", { children: "BTC" }),
128040
+ " yield"
128041
+ ] }),
128042
+ reason: "Low liquidity"
128043
+ }
128033
128044
  };
128034
128045
  }
128035
128046
  var HyperLSTStrategies = [
@@ -38408,19 +38408,19 @@ var UniversalLstMultiplierStrategy = class _UniversalLstMultiplierStrategy exten
38408
38408
  underlyingTokenInfo.decimals
38409
38409
  ) : new Web3Number(1, underlyingTokenInfo.decimals);
38410
38410
  const quote = await avnuModule.getQuotes(
38411
- underlyingTokenInfo.address.address,
38412
38411
  lstTokenInfo.address.address,
38412
+ underlyingTokenInfo.address.address,
38413
38413
  sellAmount.toWei(),
38414
38414
  this.metadata.additionalInfo.vaultAllocator.address
38415
38415
  );
38416
- const underlyingAmountNumber = sellAmount.toNumber();
38416
+ const underlyingAmountNumber = Web3Number.fromWei(quote.buyAmount.toString(), underlyingTokenInfo.decimals).toNumber();
38417
38417
  const lstAmountNumber = Web3Number.fromWei(
38418
- quote.buyAmount.toString(),
38418
+ quote.sellAmount.toString(),
38419
38419
  lstTokenInfo.decimals
38420
38420
  ).toNumber();
38421
38421
  assert(lstAmountNumber > 0, "Avnu LST amount is zero");
38422
38422
  const exchangeRate = underlyingAmountNumber / lstAmountNumber;
38423
- logger.verbose(
38423
+ logger.info(
38424
38424
  `${this.getTag()}:: LST Avnu Exchange Rate: ${exchangeRate}`
38425
38425
  );
38426
38426
  return exchangeRate;
@@ -39449,7 +39449,7 @@ function createHyperLSTSettings(lstSymbol, underlyingSymbol) {
39449
39449
  );
39450
39450
  return {
39451
39451
  isPaused: false,
39452
- liveStatus: lstSymbol === "xSTRK" ? "Hot & New \u{1F525}" /* HOT */ : lstSymbol == "xWBTC" || lstSymbol == "xtBTC" ? "Active" /* ACTIVE */ : "Deprecated" /* DEPRECATED */,
39452
+ liveStatus: lstSymbol === "xSTRK" ? "Hot & New \u{1F525}" /* HOT */ : "Deprecated" /* DEPRECATED */,
39453
39453
  isAudited: true,
39454
39454
  isInstantWithdrawal: false,
39455
39455
  hideHarvestInfo: true,
@@ -39549,7 +39549,18 @@ function getStrategySettings(lstSymbol, underlyingSymbol, settings, isPreview =
39549
39549
  multiplier: 4,
39550
39550
  logo: "https://endur.fi/favicon.ico",
39551
39551
  toolTip: "This strategy holds xSTRK. Earn 3-4x Endur points on your xSTRK due to the leverage. Points can be found on endur.fi."
39552
- }] : void 0
39552
+ }] : void 0,
39553
+ discontinuationInfo: lstSymbol == "xSTRK" ? void 0 : {
39554
+ date: /* @__PURE__ */ new Date("2026-07-08"),
39555
+ info: /* @__PURE__ */ jsxs4(Fragment3, { children: [
39556
+ "This strategy is deprecated. Consider ",
39557
+ /* @__PURE__ */ jsx5("a", { href: "/strategy/wbtc_boosted", target: "_blank", rel: "noopener noreferrer", className: "underline", children: /* @__PURE__ */ jsx5("b", { children: "WBTC Boosted" }) }),
39558
+ " for ",
39559
+ /* @__PURE__ */ jsx5("b", { children: "BTC" }),
39560
+ " yield"
39561
+ ] }),
39562
+ reason: "Low liquidity"
39563
+ }
39553
39564
  };
39554
39565
  }
39555
39566
  var HyperLSTStrategies = [
package/dist/index.js CHANGED
@@ -38741,19 +38741,19 @@ var UniversalLstMultiplierStrategy = class _UniversalLstMultiplierStrategy exten
38741
38741
  underlyingTokenInfo.decimals
38742
38742
  ) : new Web3Number(1, underlyingTokenInfo.decimals);
38743
38743
  const quote = await avnuModule.getQuotes(
38744
- underlyingTokenInfo.address.address,
38745
38744
  lstTokenInfo.address.address,
38745
+ underlyingTokenInfo.address.address,
38746
38746
  sellAmount.toWei(),
38747
38747
  this.metadata.additionalInfo.vaultAllocator.address
38748
38748
  );
38749
- const underlyingAmountNumber = sellAmount.toNumber();
38749
+ const underlyingAmountNumber = Web3Number.fromWei(quote.buyAmount.toString(), underlyingTokenInfo.decimals).toNumber();
38750
38750
  const lstAmountNumber = Web3Number.fromWei(
38751
- quote.buyAmount.toString(),
38751
+ quote.sellAmount.toString(),
38752
38752
  lstTokenInfo.decimals
38753
38753
  ).toNumber();
38754
38754
  assert(lstAmountNumber > 0, "Avnu LST amount is zero");
38755
38755
  const exchangeRate = underlyingAmountNumber / lstAmountNumber;
38756
- logger.verbose(
38756
+ logger.info(
38757
38757
  `${this.getTag()}:: LST Avnu Exchange Rate: ${exchangeRate}`
38758
38758
  );
38759
38759
  return exchangeRate;
@@ -39782,7 +39782,7 @@ function createHyperLSTSettings(lstSymbol, underlyingSymbol) {
39782
39782
  );
39783
39783
  return {
39784
39784
  isPaused: false,
39785
- liveStatus: lstSymbol === "xSTRK" ? "Hot & New \u{1F525}" /* HOT */ : lstSymbol == "xWBTC" || lstSymbol == "xtBTC" ? "Active" /* ACTIVE */ : "Deprecated" /* DEPRECATED */,
39785
+ liveStatus: lstSymbol === "xSTRK" ? "Hot & New \u{1F525}" /* HOT */ : "Deprecated" /* DEPRECATED */,
39786
39786
  isAudited: true,
39787
39787
  isInstantWithdrawal: false,
39788
39788
  hideHarvestInfo: true,
@@ -39882,7 +39882,18 @@ function getStrategySettings(lstSymbol, underlyingSymbol, settings, isPreview =
39882
39882
  multiplier: 4,
39883
39883
  logo: "https://endur.fi/favicon.ico",
39884
39884
  toolTip: "This strategy holds xSTRK. Earn 3-4x Endur points on your xSTRK due to the leverage. Points can be found on endur.fi."
39885
- }] : void 0
39885
+ }] : void 0,
39886
+ discontinuationInfo: lstSymbol == "xSTRK" ? void 0 : {
39887
+ date: /* @__PURE__ */ new Date("2026-07-08"),
39888
+ info: /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(import_jsx_runtime5.Fragment, { children: [
39889
+ "This strategy is deprecated. Consider ",
39890
+ /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("a", { href: "/strategy/wbtc_boosted", target: "_blank", rel: "noopener noreferrer", className: "underline", children: /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("b", { children: "WBTC Boosted" }) }),
39891
+ " for ",
39892
+ /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("b", { children: "BTC" }),
39893
+ " yield"
39894
+ ] }),
39895
+ reason: "Low liquidity"
39896
+ }
39886
39897
  };
39887
39898
  }
39888
39899
  var HyperLSTStrategies = [
package/dist/index.mjs CHANGED
@@ -38575,19 +38575,19 @@ var UniversalLstMultiplierStrategy = class _UniversalLstMultiplierStrategy exten
38575
38575
  underlyingTokenInfo.decimals
38576
38576
  ) : new Web3Number(1, underlyingTokenInfo.decimals);
38577
38577
  const quote = await avnuModule.getQuotes(
38578
- underlyingTokenInfo.address.address,
38579
38578
  lstTokenInfo.address.address,
38579
+ underlyingTokenInfo.address.address,
38580
38580
  sellAmount.toWei(),
38581
38581
  this.metadata.additionalInfo.vaultAllocator.address
38582
38582
  );
38583
- const underlyingAmountNumber = sellAmount.toNumber();
38583
+ const underlyingAmountNumber = Web3Number.fromWei(quote.buyAmount.toString(), underlyingTokenInfo.decimals).toNumber();
38584
38584
  const lstAmountNumber = Web3Number.fromWei(
38585
- quote.buyAmount.toString(),
38585
+ quote.sellAmount.toString(),
38586
38586
  lstTokenInfo.decimals
38587
38587
  ).toNumber();
38588
38588
  assert(lstAmountNumber > 0, "Avnu LST amount is zero");
38589
38589
  const exchangeRate = underlyingAmountNumber / lstAmountNumber;
38590
- logger.verbose(
38590
+ logger.info(
38591
38591
  `${this.getTag()}:: LST Avnu Exchange Rate: ${exchangeRate}`
38592
38592
  );
38593
38593
  return exchangeRate;
@@ -39616,7 +39616,7 @@ function createHyperLSTSettings(lstSymbol, underlyingSymbol) {
39616
39616
  );
39617
39617
  return {
39618
39618
  isPaused: false,
39619
- liveStatus: lstSymbol === "xSTRK" ? "Hot & New \u{1F525}" /* HOT */ : lstSymbol == "xWBTC" || lstSymbol == "xtBTC" ? "Active" /* ACTIVE */ : "Deprecated" /* DEPRECATED */,
39619
+ liveStatus: lstSymbol === "xSTRK" ? "Hot & New \u{1F525}" /* HOT */ : "Deprecated" /* DEPRECATED */,
39620
39620
  isAudited: true,
39621
39621
  isInstantWithdrawal: false,
39622
39622
  hideHarvestInfo: true,
@@ -39716,7 +39716,18 @@ function getStrategySettings(lstSymbol, underlyingSymbol, settings, isPreview =
39716
39716
  multiplier: 4,
39717
39717
  logo: "https://endur.fi/favicon.ico",
39718
39718
  toolTip: "This strategy holds xSTRK. Earn 3-4x Endur points on your xSTRK due to the leverage. Points can be found on endur.fi."
39719
- }] : void 0
39719
+ }] : void 0,
39720
+ discontinuationInfo: lstSymbol == "xSTRK" ? void 0 : {
39721
+ date: /* @__PURE__ */ new Date("2026-07-08"),
39722
+ info: /* @__PURE__ */ jsxs4(Fragment3, { children: [
39723
+ "This strategy is deprecated. Consider ",
39724
+ /* @__PURE__ */ jsx5("a", { href: "/strategy/wbtc_boosted", target: "_blank", rel: "noopener noreferrer", className: "underline", children: /* @__PURE__ */ jsx5("b", { children: "WBTC Boosted" }) }),
39725
+ " for ",
39726
+ /* @__PURE__ */ jsx5("b", { children: "BTC" }),
39727
+ " yield"
39728
+ ] }),
39729
+ reason: "Low liquidity"
39730
+ }
39720
39731
  };
39721
39732
  }
39722
39733
  var HyperLSTStrategies = [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@strkfarm/sdk",
3
- "version": "2.0.0-dev.51",
3
+ "version": "2.0.0-dev.53",
4
4
  "description": "STRKFarm TS SDK (Meant for our internal use, but feel free to use it)",
5
5
  "typings": "dist/index.d.ts",
6
6
  "types": "dist/index.d.ts",
@@ -158,23 +158,25 @@ export class UniversalLstMultiplierStrategy<S extends HyperLSTStrategySettings>
158
158
  )
159
159
  : new Web3Number(1, underlyingTokenInfo.decimals);
160
160
 
161
+ // we consider LST as sell token bcz, generally, our risk is during LST less.
162
+ // hence, we price based on the sell price rather than buy price (which is generally higher)
161
163
  const quote = await avnuModule.getQuotes(
162
- underlyingTokenInfo.address.address,
163
164
  lstTokenInfo.address.address,
165
+ underlyingTokenInfo.address.address,
164
166
  sellAmount.toWei(),
165
167
  this.metadata.additionalInfo.vaultAllocator.address,
166
168
  );
167
169
 
168
- const underlyingAmountNumber = sellAmount.toNumber();
170
+ const underlyingAmountNumber = Web3Number.fromWei(quote.buyAmount.toString(), underlyingTokenInfo.decimals).toNumber();
169
171
  const lstAmountNumber = Web3Number.fromWei(
170
- quote.buyAmount.toString(),
172
+ quote.sellAmount.toString(),
171
173
  lstTokenInfo.decimals,
172
174
  ).toNumber();
173
175
 
174
176
  assert(lstAmountNumber > 0, "Avnu LST amount is zero");
175
177
 
176
178
  const exchangeRate = underlyingAmountNumber / lstAmountNumber;
177
- logger.verbose(
179
+ logger.info(
178
180
  `${this.getTag()}:: LST Avnu Exchange Rate: ${exchangeRate}`,
179
181
  );
180
182
  return exchangeRate;
@@ -1401,7 +1403,7 @@ function createHyperLSTSettings(
1401
1403
  )!;
1402
1404
  return {
1403
1405
  isPaused: false,
1404
- liveStatus: lstSymbol === 'xSTRK' ? StrategyLiveStatus.HOT : ((lstSymbol == 'xWBTC' || lstSymbol == 'xtBTC') ? StrategyLiveStatus.ACTIVE : StrategyLiveStatus.DEPRECATED),
1406
+ liveStatus: lstSymbol === 'xSTRK' ? StrategyLiveStatus.HOT : StrategyLiveStatus.DEPRECATED,
1405
1407
  isAudited: true,
1406
1408
  isInstantWithdrawal: false,
1407
1409
  hideHarvestInfo: true,
@@ -1518,6 +1520,11 @@ function getStrategySettings(
1518
1520
  logo: "https://endur.fi/favicon.ico",
1519
1521
  toolTip: "This strategy holds xSTRK. Earn 3-4x Endur points on your xSTRK due to the leverage. Points can be found on endur.fi.",
1520
1522
  }] : undefined,
1523
+ discontinuationInfo: lstSymbol == 'xSTRK' ? undefined : {
1524
+ date: new Date('2026-07-08'),
1525
+ info: <>This strategy is deprecated. Consider <a href="/strategy/wbtc_boosted" target="_blank" rel="noopener noreferrer" className="underline"><b>WBTC Boosted</b></a> for <b>BTC</b> yield</>,
1526
+ reason: 'Low liquidity',
1527
+ }
1521
1528
  };
1522
1529
  }
1523
1530