@gearbox-protocol/sdk 3.0.0-next.271 → 3.0.0-next.273

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.
@@ -1,6 +1,6 @@
1
1
  import { LPTokens, PartialRecord, SupportedToken } from "@gearbox-protocol/sdk-gov";
2
- type ExtraFarmTokens = Extract<SupportedToken, "STETH" | "rETH" | "osETH" | "cbETH" | "wstETH" | "weETH" | "ezETH" | "sfrxETH" | "USDe" | "rsETH" | "rswETH" | "pufETH" | "pzETH" | "rstETH" | "steakLRT" | "amphrETH" | "LBTC" | "Re7LRT" | "PT_ezETH_26DEC2024" | "PT_eETH_26DEC2024" | "PT_sUSDe_26DEC2024" | "PT_eBTC_26DEC2024" | "PT_LBTC_27MAR2025" | "eBTC" | "PT_cornLBTC_26DEC2024" | "PT_corn_eBTC_27MAR2025" | "PT_corn_pumpBTC_26DEC2024" | "pumpBTC" | "PT_sUSDe_27MAR2025">;
3
- type ExtraTokensWithAPY = Extract<ExtraFarmTokens, "STETH" | "rETH" | "osETH" | "cbETH" | "wstETH" | "sfrxETH" | "pzETH" | "ezETH" | "Re7LRT" | "rsETH" | "weETH" | "rswETH" | "rstETH" | "steakLRT" | "amphrETH" | "pufETH" | "PT_ezETH_26DEC2024" | "PT_eETH_26DEC2024" | "PT_sUSDe_26DEC2024" | "PT_eBTC_26DEC2024" | "PT_LBTC_27MAR2025" | "PT_cornLBTC_26DEC2024" | "PT_corn_eBTC_27MAR2025" | "PT_corn_pumpBTC_26DEC2024" | "PT_sUSDe_27MAR2025">;
2
+ type ExtraFarmTokens = Extract<SupportedToken, "STETH" | "rETH" | "osETH" | "cbETH" | "wstETH" | "weETH" | "ezETH" | "sfrxETH" | "USDe" | "rsETH" | "rswETH" | "pufETH" | "pzETH" | "rstETH" | "steakLRT" | "amphrETH" | "LBTC" | "Re7LRT" | "PT_ezETH_26DEC2024" | "PT_eETH_26DEC2024" | "PT_sUSDe_26DEC2024" | "PT_eBTC_26DEC2024" | "PT_LBTC_27MAR2025" | "eBTC" | "PT_cornLBTC_26DEC2024" | "PT_corn_eBTC_27MAR2025" | "PT_corn_pumpBTC_26DEC2024" | "pumpBTC" | "PT_sUSDe_27MAR2025" | "DVstETH">;
3
+ type ExtraTokensWithAPY = Extract<ExtraFarmTokens, "STETH" | "rETH" | "osETH" | "cbETH" | "wstETH" | "sfrxETH" | "pzETH" | "ezETH" | "Re7LRT" | "rsETH" | "weETH" | "rswETH" | "rstETH" | "steakLRT" | "amphrETH" | "pufETH" | "PT_ezETH_26DEC2024" | "PT_eETH_26DEC2024" | "PT_sUSDe_26DEC2024" | "PT_eBTC_26DEC2024" | "PT_LBTC_27MAR2025" | "PT_cornLBTC_26DEC2024" | "PT_corn_eBTC_27MAR2025" | "PT_corn_pumpBTC_26DEC2024" | "PT_sUSDe_27MAR2025" | "DVstETH">;
4
4
  type LRTAndLSTTokens = Exclude<ExtraFarmTokens, "USDe">;
5
5
  export declare const isExtraFarmToken: (t: unknown) => t is ExtraFarmTokens;
6
6
  export declare const isLRT_LSTToken: (t: unknown) => t is LRTAndLSTTokens;
package/lib/apy/index.js CHANGED
@@ -32,6 +32,7 @@ const EXTRA_FARM_TOKENS = {
32
32
  PT_corn_pumpBTC_26DEC2024: true,
33
33
  pumpBTC: true,
34
34
  PT_sUSDe_27MAR2025: true,
35
+ DVstETH: true,
35
36
  };
36
37
  const isExtraFarmToken = (t) => {
37
38
  if (typeof t !== "string")
@@ -56,6 +57,7 @@ const EXTRA_TOKENS_WITH_APY = {
56
57
  steakLRT: true,
57
58
  amphrETH: true,
58
59
  pufETH: true,
60
+ DVstETH: true,
59
61
  PT_ezETH_26DEC2024: true,
60
62
  PT_eETH_26DEC2024: true,
61
63
  PT_sUSDe_26DEC2024: true,
@@ -33,6 +33,7 @@ export declare class RedstoneApi {
33
33
  main: RedstonePriceFeeds;
34
34
  reserve: RedstonePriceFeeds;
35
35
  allReserve: Record<`0x${string}`, `0x${string}`[]>;
36
+ allMain_Root: Record<`0x${string}`, `0x${string}`>;
36
37
  }>;
37
38
  private static unwrapSecondStage;
38
39
  private static unwrapThirdStage;
@@ -281,10 +281,19 @@ class RedstoneApi {
281
281
  acc[token].push(pf);
282
282
  return acc;
283
283
  }, {});
284
+ const allMain_Root = st1_MainFeedsUnsafe.reduce((acc, p, index) => {
285
+ const token = allTokens[index][1];
286
+ if (!p.error && typeof p.result === "object" && p.result[4] === false) {
287
+ const [priceFeed] = p.result;
288
+ acc[token] = priceFeed;
289
+ }
290
+ return acc;
291
+ }, {});
284
292
  return {
285
293
  main: mainPFData,
286
294
  reserve: reservePFData,
287
295
  allReserve,
296
+ allMain_Root,
288
297
  };
289
298
  };
290
299
  static unwrapSecondStage(priceFeeds, feedsTypeResponse, priceFeedResponse) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gearbox-protocol/sdk",
3
- "version": "3.0.0-next.271",
3
+ "version": "3.0.0-next.273",
4
4
  "description": "Gearbox SDK",
5
5
  "main": "./lib/index.js",
6
6
  "types": "./lib/index.d.ts",