@gearbox-protocol/sdk 7.10.0 → 7.10.1

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.
@@ -109,10 +109,6 @@ class GearboxRewardsExtraApy {
109
109
  const points = pointsInfo.estimation === "absolute" ? defaultPoints : (tokenBalanceInPool?.balance || 0n) * defaultPoints / (pool.expectedLiquidity * targetFactor / underlyingFactor);
110
110
  return import_math.BigIntMath.min(points, defaultPoints);
111
111
  }
112
- static getPoolPointsTip(poolRewards, pool, token) {
113
- const p = poolRewards[pool]?.[token];
114
- return p;
115
- }
116
112
  }
117
113
  // Annotate the CommonJS export names for ESM import in node:
118
114
  0 && (module.exports = {
@@ -76,10 +76,6 @@ class GearboxRewardsExtraApy {
76
76
  const points = pointsInfo.estimation === "absolute" ? defaultPoints : (tokenBalanceInPool?.balance || 0n) * defaultPoints / (pool.expectedLiquidity * targetFactor / underlyingFactor);
77
77
  return BigIntMath.min(points, defaultPoints);
78
78
  }
79
- static getPoolPointsTip(poolRewards, pool, token) {
80
- const p = poolRewards[pool]?.[token];
81
- return p;
82
- }
83
79
  }
84
80
  export {
85
81
  GearboxRewardsExtraApy
@@ -8,9 +8,11 @@ export interface PoolPointsInfo {
8
8
  token: Address;
9
9
  symbol: string;
10
10
  amount: bigint;
11
- duration: string;
11
+ duration: string | undefined;
12
12
  name: string;
13
+ type: string;
13
14
  estimation: "absolute" | "relative";
15
+ condition: "deposit" | "cross-chain-deposit" | "holding";
14
16
  }
15
17
  type PartialPool = Pick<PoolData_Legacy, "expectedLiquidity" | "underlyingToken" | "address">;
16
18
  export interface GetPointsByPoolProps {
@@ -29,6 +31,5 @@ export declare class GearboxRewardsExtraApy {
29
31
  private static getTokenTotal;
30
32
  static getPointsByPool({ poolRewards, totalTokenBalances, pools, tokensList, }: GetPointsByPoolProps): Record<`0x${string}`, Asset[]>;
31
33
  private static getPoolTokenPoints;
32
- static getPoolPointsTip(poolRewards: Record<Address, Record<Address, PoolPointsInfo>>, pool: Address, token: Address): PoolPointsInfo;
33
34
  }
34
35
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gearbox-protocol/sdk",
3
- "version": "7.10.0",
3
+ "version": "7.10.1",
4
4
  "description": "Gearbox SDK",
5
5
  "license": "MIT",
6
6
  "main": "./dist/cjs/sdk/index.js",