@gearbox-protocol/sdk 3.0.0-next.133 → 3.0.0-next.134
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/apy/defiLamaAPY.js
CHANGED
|
@@ -38,7 +38,10 @@ const NORMAL_TO_LAMA = {
|
|
|
38
38
|
auraB_rETH_STABLE_vault: "a4b5b995-99e7-4b8f-916d-8940b5627d70",
|
|
39
39
|
},
|
|
40
40
|
Optimism: {},
|
|
41
|
-
Arbitrum: {
|
|
41
|
+
Arbitrum: {
|
|
42
|
+
rETH: "d4b3c522-6127-4b89-bedf-83641cdcd2eb",
|
|
43
|
+
cbETH: "0f45d730-b279-4629-8e11-ccb5cc3038b4",
|
|
44
|
+
},
|
|
42
45
|
};
|
|
43
46
|
// const CONVEX_TO_LAMA: Record<
|
|
44
47
|
// NetworkType,
|
package/lib/apy/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { LPTokens, PartialRecord, SupportedToken } from "@gearbox-protocol/sdk-gov";
|
|
2
|
-
export type AdditionalTokenWithAPY = Extract<SupportedToken, "STETH" | "weETH" | "osETH" | "rETH" | "wstETH" | "ezETH">;
|
|
2
|
+
export type AdditionalTokenWithAPY = Extract<SupportedToken, "STETH" | "weETH" | "osETH" | "rETH" | "wstETH" | "ezETH" | "cbETH">;
|
|
3
3
|
export declare const additionalTokensWIthAPY: Record<AdditionalTokenWithAPY, true>;
|
|
4
4
|
export type TokensWithAPY = LPTokens | AdditionalTokenWithAPY;
|
|
5
5
|
export type LpTokensAPY = PartialRecord<TokensWithAPY, number>;
|
package/lib/apy/index.js
CHANGED
package/lib/payload/token.d.ts
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
|
+
import { SupportedToken } from "@gearbox-protocol/sdk-gov";
|
|
1
2
|
import { TokenDataPayload } from "../payload/token";
|
|
2
3
|
export declare class TokenData {
|
|
3
|
-
readonly
|
|
4
|
-
readonly symbol:
|
|
4
|
+
readonly title: string;
|
|
5
|
+
readonly symbol: SupportedToken;
|
|
5
6
|
readonly address: string;
|
|
6
7
|
readonly decimals: number;
|
|
7
|
-
readonly icon
|
|
8
|
-
constructor(payload: TokenDataPayload
|
|
8
|
+
readonly icon: string;
|
|
9
|
+
constructor(payload: TokenDataPayload);
|
|
9
10
|
compareBySymbol(b: TokenData): number;
|
|
10
11
|
}
|
package/lib/tokens/tokenData.js
CHANGED
|
@@ -3,17 +3,19 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.TokenData = void 0;
|
|
4
4
|
const config_1 = require("../config");
|
|
5
5
|
class TokenData {
|
|
6
|
-
|
|
6
|
+
title;
|
|
7
7
|
symbol;
|
|
8
8
|
address;
|
|
9
9
|
decimals;
|
|
10
10
|
icon;
|
|
11
|
-
constructor(payload
|
|
12
|
-
|
|
11
|
+
constructor(payload) {
|
|
12
|
+
const symbol = payload.symbol;
|
|
13
|
+
const title = payload.title || symbol;
|
|
14
|
+
this.title = title;
|
|
13
15
|
this.address = payload.addr.toLowerCase();
|
|
14
|
-
this.symbol =
|
|
16
|
+
this.symbol = symbol;
|
|
15
17
|
this.decimals = payload.decimals;
|
|
16
|
-
this.icon = `${config_1.STATIC_TOKEN}${
|
|
18
|
+
this.icon = `${config_1.STATIC_TOKEN}${symbol.toLowerCase()}.svg`;
|
|
17
19
|
}
|
|
18
20
|
compareBySymbol(b) {
|
|
19
21
|
return this.symbol > b.symbol ? 1 : -1;
|