@gearbox-protocol/sdk 1.25.1 → 1.25.2

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.
@@ -25,7 +25,7 @@ class EventOrTx {
25
25
  if (!this.isPending && item.isPending) {
26
26
  return 1;
27
27
  }
28
- return this.block > item.block ? -1 : 1;
28
+ return item.block - this.block;
29
29
  }
30
30
  }
31
31
  exports.EventOrTx = EventOrTx;
@@ -7,6 +7,7 @@ export declare class PoolData {
7
7
  readonly underlyingToken: string;
8
8
  readonly dieselToken: string;
9
9
  readonly isWETH: boolean;
10
+ readonly isWSTETH: boolean;
10
11
  readonly expectedLiquidity: bigint;
11
12
  readonly expectedLiquidityLimit: bigint;
12
13
  readonly availableLiquidity: bigint;
@@ -1,6 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.UserPoolData = exports.ChartsPoolData = exports.PoolData = void 0;
4
+ const token_1 = require("../../tokens/token");
4
5
  const types_1 = require("../../types");
5
6
  const formatter_1 = require("../../utils/formatter");
6
7
  const constants_1 = require("../constants");
@@ -10,6 +11,7 @@ class PoolData {
10
11
  underlyingToken;
11
12
  dieselToken;
12
13
  isWETH;
14
+ isWSTETH;
13
15
  // Information
14
16
  expectedLiquidity;
15
17
  expectedLiquidityLimit;
@@ -30,6 +32,8 @@ class PoolData {
30
32
  this.underlyingToken = payload.underlying.toLowerCase();
31
33
  this.dieselToken = payload.dieselToken.toLowerCase();
32
34
  this.isWETH = payload.isWETH || false;
35
+ this.isWSTETH =
36
+ token_1.tokenSymbolByAddress[payload.underlying.toLowerCase()] === "wstETH";
33
37
  this.expectedLiquidity = (0, formatter_1.toBigInt)(payload.expectedLiquidity || 0);
34
38
  this.expectedLiquidityLimit = (0, formatter_1.toBigInt)(payload.expectedLiquidityLimit || 0);
35
39
  this.availableLiquidity = (0, formatter_1.toBigInt)(payload.availableLiquidity || 0);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gearbox-protocol/sdk",
3
- "version": "1.25.1",
3
+ "version": "1.25.2",
4
4
  "description": "Gearbox SDK",
5
5
  "main": "./lib/index.js",
6
6
  "types": "./lib/index.d.ts",