@gearbox-protocol/sdk 3.0.0-next.159 → 3.0.0-next.160

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,5 +1,5 @@
1
1
  import { LPTokens, PartialRecord, SupportedToken } from "@gearbox-protocol/sdk-gov";
2
- export type AdditionalTokenWithAPY = Extract<SupportedToken, "STETH" | "weETH" | "osETH" | "rETH" | "wstETH" | "ezETH" | "cbETH" | "sfrxETH" | "USDe">;
2
+ export type AdditionalTokenWithAPY = Extract<SupportedToken, "STETH" | "weETH" | "osETH" | "rETH" | "wstETH" | "ezETH" | "cbETH" | "sfrxETH" | "USDe" | "rsETH">;
3
3
  export declare const additionalTokensWIthAPY: Record<AdditionalTokenWithAPY, true>;
4
4
  export type TokensWithAPY = LPTokens | AdditionalTokenWithAPY;
5
5
  export type LpTokensAPY = PartialRecord<TokensWithAPY, number>;
package/lib/apy/index.js CHANGED
@@ -26,6 +26,7 @@ exports.additionalTokensWIthAPY = {
26
26
  cbETH: true,
27
27
  sfrxETH: true,
28
28
  USDe: true,
29
+ rsETH: true,
29
30
  };
30
31
  const isTokenWithAPY = (t) => typeof t === "string" &&
31
32
  (!!sdk_gov_1.lpTokens[t] ||
@@ -1,5 +1,5 @@
1
1
  import { providers, Signer } from "ethers";
2
- import { CreditManagerDebtParams, QuotaInfo } from "../payload/creditManager";
2
+ import { CreditManagerDebtParamsSDK, QuotaInfo } from "../payload/creditManager";
3
3
  import { ChartsPoolDataPayload, LinearModel, PoolDataPayload, PoolZapper, UserPoolPayload } from "../payload/pool";
4
4
  import { IPoolService, IPoolV3 } from "../types";
5
5
  export type PoolType = "universal" | "trade" | "farm";
@@ -22,7 +22,7 @@ export declare class PoolData {
22
22
  readonly utilization: number;
23
23
  readonly totalBorrowed: bigint;
24
24
  readonly totalDebtLimit: bigint;
25
- readonly creditManagerDebtParams: Record<string, CreditManagerDebtParams>;
25
+ readonly creditManagerDebtParams: Record<string, CreditManagerDebtParamsSDK>;
26
26
  readonly quotas: Record<string, QuotaInfo>;
27
27
  readonly zappers: Record<string, Record<string, PoolZapper>>;
28
28
  readonly totalAssets: bigint;
@@ -3,7 +3,7 @@ import { BigNumberish } from "ethers";
3
3
  import { ICreditFacadeV2 } from "../types";
4
4
  import { CreditManagerDataStructOutput, CreditManagerDebtParamsStructOutput, QuotaInfoStructOutput } from "../types/IDataCompressorV3";
5
5
  import { BigintifyProps } from "../utils/types";
6
- export type CreditManagerDebtParams = BigintifyProps<ExcludeArrayProps<CreditManagerDebtParamsStructOutput>>;
6
+ export type CreditManagerDebtParamsSDK = BigintifyProps<ExcludeArrayProps<CreditManagerDebtParamsStructOutput>>;
7
7
  export type QuotaInfo = BigintifyProps<ExcludeArrayProps<QuotaInfoStructOutput>>;
8
8
  export interface AdapterPayload {
9
9
  allowedContract: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gearbox-protocol/sdk",
3
- "version": "3.0.0-next.159",
3
+ "version": "3.0.0-next.160",
4
4
  "description": "Gearbox SDK",
5
5
  "main": "./lib/index.js",
6
6
  "types": "./lib/index.d.ts",
@@ -30,7 +30,7 @@
30
30
  "test": "npx mocha -r ts-node/register -r dotenv/config 'src/**/*.spec.ts'"
31
31
  },
32
32
  "dependencies": {
33
- "@gearbox-protocol/sdk-gov": "^1.55.2",
33
+ "@gearbox-protocol/sdk-gov": "^1.57.1",
34
34
  "axios": "^1.2.6",
35
35
  "decimal.js-light": "^2.5.1",
36
36
  "deep-eql": "^4.1.0",