@gearbox-protocol/sdk 3.0.0-next.230 → 3.0.0-next.232

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
2
  type ExtraFarmTokens = Extract<SupportedToken, "STETH" | "rETH" | "osETH" | "cbETH" | "wstETH" | "weETH" | "ezETH" | "sfrxETH" | "USDe" | "rsETH" | "rswETH" | "pufETH" | "pzETH" | "rstETH" | "steakLRT" | "amphrETH" | "LBTC" | "Re7LRT">;
3
- type ExtraTokensWithAPY = Extract<ExtraFarmTokens, "STETH" | "rETH" | "osETH" | "cbETH" | "wstETH" | "sfrxETH">;
3
+ type ExtraTokensWithAPY = Extract<ExtraFarmTokens, "STETH" | "rETH" | "osETH" | "cbETH" | "wstETH" | "sfrxETH" | "pzETH" | "ezETH" | "Re7LRT" | "rsETH" | "weETH" | "rswETH" | "rstETH" | "steakLRT" | "amphrETH" | "pufETH">;
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
@@ -49,6 +49,16 @@ const EXTRA_TOKENS_WITH_APY = {
49
49
  wstETH: true,
50
50
  cbETH: true,
51
51
  sfrxETH: true,
52
+ pzETH: true,
53
+ ezETH: true,
54
+ Re7LRT: true,
55
+ rsETH: true,
56
+ weETH: true,
57
+ rswETH: true,
58
+ rstETH: true,
59
+ steakLRT: true,
60
+ amphrETH: true,
61
+ pufETH: true,
52
62
  };
53
63
  const isExtraTokenWithAPY = (t) => {
54
64
  if (typeof t !== "string")
@@ -8,7 +8,6 @@ export interface StrategyPayload {
8
8
  lpTokenSymbol: AllLPTokens;
9
9
  protocolSymbol: string;
10
10
  collateralTokens: Array<SupportedToken>;
11
- liquidationTokens: Array<SupportedToken>;
12
11
  releaseAt?: ReleaseAt;
13
12
  }
14
13
  interface CalculateMaxAPYProps {
@@ -23,7 +22,6 @@ export declare class Strategy {
23
22
  readonly protocolSymbol: string;
24
23
  readonly releaseAt: ReleaseAt;
25
24
  readonly collateralTokens: Array<SupportedToken>;
26
- readonly liquidationTokens: Array<SupportedToken>;
27
25
  constructor(payload: StrategyPayload);
28
26
  static maxLeverage(lpToken: Address, cms: Array<PartialCM>): number;
29
27
  static maxAPY({ apy, leverage, baseRateWithFee, quotaRateWithFee, }: CalculateMaxAPYProps): number;
@@ -8,13 +8,11 @@ class Strategy {
8
8
  protocolSymbol;
9
9
  releaseAt;
10
10
  collateralTokens;
11
- liquidationTokens;
12
11
  constructor(payload) {
13
12
  this.name = payload.name;
14
13
  this.lpTokenSymbol = payload.lpTokenSymbol;
15
14
  this.protocolSymbol = payload.protocolSymbol;
16
15
  this.collateralTokens = payload.collateralTokens;
17
- this.liquidationTokens = payload.liquidationTokens;
18
16
  this.releaseAt = payload.releaseAt;
19
17
  }
20
18
  static maxLeverage(lpToken, cms) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gearbox-protocol/sdk",
3
- "version": "3.0.0-next.230",
3
+ "version": "3.0.0-next.232",
4
4
  "description": "Gearbox SDK",
5
5
  "main": "./lib/index.js",
6
6
  "types": "./lib/index.d.ts",