@gearbox-protocol/sdk 3.0.0-next.78 → 3.0.0-next.79
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/pool.d.ts +1 -0
- package/lib/core/pool.js +2 -0
- package/lib/payload/pool.d.ts +1 -0
- package/package.json +1 -1
package/lib/core/pool.d.ts
CHANGED
|
@@ -8,6 +8,7 @@ export declare class PoolData {
|
|
|
8
8
|
readonly type: PoolType;
|
|
9
9
|
readonly underlyingToken: string;
|
|
10
10
|
readonly dieselToken: string;
|
|
11
|
+
readonly stakedDieselToken: Array<string>;
|
|
11
12
|
readonly isPaused: boolean;
|
|
12
13
|
readonly version: number;
|
|
13
14
|
readonly poolQuotaKeeper: string;
|
package/lib/core/pool.js
CHANGED
|
@@ -9,6 +9,7 @@ class PoolData {
|
|
|
9
9
|
type;
|
|
10
10
|
underlyingToken;
|
|
11
11
|
dieselToken;
|
|
12
|
+
stakedDieselToken;
|
|
12
13
|
isPaused;
|
|
13
14
|
version;
|
|
14
15
|
poolQuotaKeeper;
|
|
@@ -40,6 +41,7 @@ class PoolData {
|
|
|
40
41
|
this.type = PoolData.getPoolType(payload.name || "");
|
|
41
42
|
this.underlyingToken = payload.underlying.toLowerCase();
|
|
42
43
|
this.dieselToken = payload.dieselToken.toLowerCase();
|
|
44
|
+
this.stakedDieselToken = (payload.stakedDieselToken || []).map(t => t.toLowerCase());
|
|
43
45
|
this.isPaused = payload.isPaused;
|
|
44
46
|
this.version = payload.version.toNumber();
|
|
45
47
|
this.poolQuotaKeeper = payload.poolQuotaKeeper.toLowerCase();
|
package/lib/payload/pool.d.ts
CHANGED
|
@@ -3,6 +3,7 @@ import { BigNumberish } from "ethers";
|
|
|
3
3
|
import { ZapperInfoStructOutput } from "../types/IDataCompressorV2_10";
|
|
4
4
|
import { LinearModelStructOutput, PoolDataStructOutput } from "../types/IDataCompressorV3_00";
|
|
5
5
|
export type PoolDataPayload = Omit<ExcludeArrayProps<PoolDataStructOutput>, "zappers"> & {
|
|
6
|
+
stakedDieselToken: Array<string>;
|
|
6
7
|
zappers: Array<PoolZapper>;
|
|
7
8
|
supplyAPY7D: number | undefined;
|
|
8
9
|
};
|