@gearbox-protocol/sdk 3.0.0-next.202 → 3.0.0-next.204

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.
@@ -120,7 +120,7 @@ export declare class CreditAccountData {
120
120
  setDeleteInProgress(d: boolean): void;
121
121
  static sortBalances(balances: Record<string, bigint>, prices: Record<string, bigint>, tokens: Record<string, TokenData>): Array<[string, bigint]>;
122
122
  static sortAssets(balances: Array<Asset>, prices: Record<string, bigint>, tokens: Record<string, TokenData>): Asset[];
123
- static tokensAbcComparator(t1?: TokenData, t2?: TokenData): 1 | -1;
123
+ static tokensAbcComparator(t1?: TokenData, t2?: TokenData): 0 | 1 | -1;
124
124
  static amountAbcComparator(t1: bigint, t2: bigint): 1 | -1;
125
125
  isForbidden(token: string): boolean;
126
126
  isQuoted(token: string): boolean;
@@ -140,7 +140,11 @@ class CreditAccountData {
140
140
  static tokensAbcComparator(t1, t2) {
141
141
  const { symbol: symbol1 = "" } = t1 || {};
142
142
  const { symbol: symbol2 = "" } = t2 || {};
143
- return symbol1 > symbol2 ? 1 : -1;
143
+ const symbol1LC = symbol1.toLowerCase();
144
+ const symbol2LC = symbol2.toLowerCase();
145
+ if (symbol1LC === symbol2LC)
146
+ return 0;
147
+ return symbol1LC > symbol2LC ? 1 : -1;
144
148
  }
145
149
  static amountAbcComparator(t1, t2) {
146
150
  return t1 > t2 ? -1 : 1;
@@ -14,7 +14,7 @@ const apy_1 = require("./apy");
14
14
  const POOL_POINTS = {
15
15
  Mainnet: {
16
16
  [contractsRegister_1.poolByNetwork.Mainnet.WETH_V3_TRADE]: {
17
- // !& ezeth
17
+ // !& ezETH
18
18
  // ezETH: {
19
19
  // amount: PERCENTAGE_FACTOR,
20
20
  // symbol: "ezETH",
@@ -30,6 +30,7 @@ const POOL_POINTS = {
30
30
  },
31
31
  },
32
32
  Arbitrum: {
33
+ // !& ezETH
33
34
  // [poolByNetwork.Arbitrum.WETH_V3]: {
34
35
  // ezETH: {
35
36
  // amount: PERCENTAGE_FACTOR,
@@ -37,6 +37,7 @@ export declare class RedstoneApi {
37
37
  static getRedstonePriceFeeds: ({ priceOracleAddress, currentTokenData, provider, network, }: GetRedstoneFeedsProps) => Promise<{
38
38
  main: RedstonePriceFeeds;
39
39
  reserve: RedstonePriceFeeds;
40
+ allReserve: Record<string, string>;
40
41
  }>;
41
42
  private static getPriceFeedsOfInterest_Onchain;
42
43
  private static getRedstonePF_Onchain;
@@ -280,6 +280,7 @@ class RedstoneApi {
280
280
  return {
281
281
  main: mainPFData,
282
282
  reserve: reservePFData,
283
+ allReserve: sdk_gov_1.TypedObjectUtils.fromEntries(reservePF.map(([s, a]) => [currentTokenData[s], a])),
283
284
  };
284
285
  };
285
286
  static getPriceFeedsOfInterest_Onchain(priceFeeds, feedsTypeResponse, priceFeed0Response) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gearbox-protocol/sdk",
3
- "version": "3.0.0-next.202",
3
+ "version": "3.0.0-next.204",
4
4
  "description": "Gearbox SDK",
5
5
  "main": "./lib/index.js",
6
6
  "types": "./lib/index.d.ts",