@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.
package/lib/core/eventOrTx.js
CHANGED
package/lib/core/pool/data.d.ts
CHANGED
|
@@ -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;
|
package/lib/core/pool/data.js
CHANGED
|
@@ -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);
|