@gearbox-protocol/sdk 13.6.0-apy-plugin.2 → 13.6.0-apy-plugin.3

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.
@@ -178,7 +178,7 @@ class ApyPlugin extends import_sdk.BasePlugin {
178
178
  tokensList: this.sdk.tokensMeta
179
179
  });
180
180
  }
181
- return { data, data7DAgo, points };
181
+ return { data, data7DAgo, pointsBase: poolPointsBase, points };
182
182
  }
183
183
  // ---------------------------------------------------------------------------
184
184
  // Plugin lifecycle
@@ -168,7 +168,7 @@ class ApyPlugin extends BasePlugin {
168
168
  tokensList: this.sdk.tokensMeta
169
169
  });
170
170
  }
171
- return { data, data7DAgo, points };
171
+ return { data, data7DAgo, pointsBase: poolPointsBase, points };
172
172
  }
173
173
  // ---------------------------------------------------------------------------
174
174
  // Plugin lifecycle
@@ -1,5 +1,6 @@
1
1
  import type { Address } from "viem";
2
2
  import type { ExternalApy as ExternalApySDK, PoolExtraApy, PoolPointsInfo } from "../../rewards/apy/index.js";
3
+ import type { PoolPointsBase } from "../../rewards/index.js";
3
4
  export interface PoolBaseAPY {
4
5
  type: "supplyAPY" | "tokenYield";
5
6
  apy: number;
@@ -34,6 +35,7 @@ type AllPoolsPoints = Record<Address, PoolPointsWithTips[] | undefined>;
34
35
  export interface GetPoolsAPYResult {
35
36
  data: AllPoolsAPY;
36
37
  data7DAgo: AllPoolsAPY7DAgo;
38
+ pointsBase: PoolPointsBase;
37
39
  points: AllPoolsPoints;
38
40
  }
39
41
  export {};
@@ -1,7 +1,7 @@
1
1
  import type { Address } from "viem";
2
2
  import type { ExternalApy, PoolExtraApy } from "../../rewards/apy/index.js";
3
3
  import type { PoolPointsBase } from "../../rewards/rewards/extra-apy.js";
4
- import type { TokensMeta } from "../../sdk/index.js";
4
+ import type { AddressMap } from "../../sdk/index.js";
5
5
  import type { PoolFullAPY, PoolFullAPY7DAgo, PoolPointsWithTips } from "./pool-apy-types.js";
6
6
  /**
7
7
  * Collects extra APY entries for the given token addresses from the
@@ -61,7 +61,9 @@ export declare function calculatePoolFullAPY7DAgo({ supplyAPY7DAgo, depositAPY,
61
61
  interface CalculatePoolPointsProps {
62
62
  poolTokenSymbol: string | undefined;
63
63
  points: PoolPointsBase[Address] | undefined;
64
- tokensList: TokensMeta;
64
+ tokensList: AddressMap<{
65
+ decimals: number;
66
+ }>;
65
67
  }
66
68
  /**
67
69
  * Transforms raw `PoolPointsBase` entries into consumer-friendly
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gearbox-protocol/sdk",
3
- "version": "13.6.0-apy-plugin.2",
3
+ "version": "13.6.0-apy-plugin.3",
4
4
  "description": "Gearbox SDK",
5
5
  "license": "MIT",
6
6
  "main": "./dist/cjs/sdk/index.js",