@gearbox-protocol/sdk 3.0.0-next.111 → 3.0.0-next.112
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/strategy.d.ts +3 -3
- package/lib/core/strategy.js +2 -2
- package/package.json +1 -1
package/lib/core/strategy.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { SupportedToken } from "@gearbox-protocol/sdk-gov";
|
|
2
2
|
import { TokensWithAPY } from "../apy";
|
|
3
3
|
import { CreditManagerData } from "./creditManager";
|
|
4
4
|
export interface StrategyPayload {
|
|
5
5
|
name: string;
|
|
6
6
|
lpTokenSymbol: TokensWithAPY;
|
|
7
|
-
|
|
7
|
+
protocolSymbol: string;
|
|
8
8
|
creditManagers: Array<string>;
|
|
9
9
|
collateralTokens: Array<SupportedToken>;
|
|
10
10
|
liquidationTokens: Array<SupportedToken>;
|
|
@@ -18,7 +18,7 @@ interface CalculateMaxAPYProps {
|
|
|
18
18
|
export declare class Strategy {
|
|
19
19
|
readonly name: string;
|
|
20
20
|
readonly lpTokenSymbol: TokensWithAPY;
|
|
21
|
-
readonly
|
|
21
|
+
readonly protocolSymbol: string;
|
|
22
22
|
readonly collateralTokens: Array<SupportedToken>;
|
|
23
23
|
readonly liquidationTokens: Array<SupportedToken>;
|
|
24
24
|
readonly creditManagers: Array<string>;
|
package/lib/core/strategy.js
CHANGED
|
@@ -5,14 +5,14 @@ const sdk_gov_1 = require("@gearbox-protocol/sdk-gov");
|
|
|
5
5
|
class Strategy {
|
|
6
6
|
name;
|
|
7
7
|
lpTokenSymbol;
|
|
8
|
-
|
|
8
|
+
protocolSymbol;
|
|
9
9
|
collateralTokens;
|
|
10
10
|
liquidationTokens;
|
|
11
11
|
creditManagers;
|
|
12
12
|
constructor(payload) {
|
|
13
13
|
this.name = payload.name;
|
|
14
14
|
this.lpTokenSymbol = payload.lpTokenSymbol;
|
|
15
|
-
this.
|
|
15
|
+
this.protocolSymbol = payload.protocolSymbol;
|
|
16
16
|
this.creditManagers = payload.creditManagers.map(addr => addr.toLowerCase());
|
|
17
17
|
this.collateralTokens = payload.collateralTokens;
|
|
18
18
|
this.liquidationTokens = payload.liquidationTokens;
|