@gearbox-protocol/sdk 3.0.0-next.230 → 3.0.0-next.231
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 +0 -2
- package/lib/core/strategy.js +0 -2
- package/package.json +1 -1
package/lib/core/strategy.d.ts
CHANGED
|
@@ -8,7 +8,6 @@ export interface StrategyPayload {
|
|
|
8
8
|
lpTokenSymbol: AllLPTokens;
|
|
9
9
|
protocolSymbol: string;
|
|
10
10
|
collateralTokens: Array<SupportedToken>;
|
|
11
|
-
liquidationTokens: Array<SupportedToken>;
|
|
12
11
|
releaseAt?: ReleaseAt;
|
|
13
12
|
}
|
|
14
13
|
interface CalculateMaxAPYProps {
|
|
@@ -23,7 +22,6 @@ export declare class Strategy {
|
|
|
23
22
|
readonly protocolSymbol: string;
|
|
24
23
|
readonly releaseAt: ReleaseAt;
|
|
25
24
|
readonly collateralTokens: Array<SupportedToken>;
|
|
26
|
-
readonly liquidationTokens: Array<SupportedToken>;
|
|
27
25
|
constructor(payload: StrategyPayload);
|
|
28
26
|
static maxLeverage(lpToken: Address, cms: Array<PartialCM>): number;
|
|
29
27
|
static maxAPY({ apy, leverage, baseRateWithFee, quotaRateWithFee, }: CalculateMaxAPYProps): number;
|
package/lib/core/strategy.js
CHANGED
|
@@ -8,13 +8,11 @@ class Strategy {
|
|
|
8
8
|
protocolSymbol;
|
|
9
9
|
releaseAt;
|
|
10
10
|
collateralTokens;
|
|
11
|
-
liquidationTokens;
|
|
12
11
|
constructor(payload) {
|
|
13
12
|
this.name = payload.name;
|
|
14
13
|
this.lpTokenSymbol = payload.lpTokenSymbol;
|
|
15
14
|
this.protocolSymbol = payload.protocolSymbol;
|
|
16
15
|
this.collateralTokens = payload.collateralTokens;
|
|
17
|
-
this.liquidationTokens = payload.liquidationTokens;
|
|
18
16
|
this.releaseAt = payload.releaseAt;
|
|
19
17
|
}
|
|
20
18
|
static maxLeverage(lpToken, cms) {
|