@gearbox-protocol/sdk 3.0.0-next.276 → 3.0.0-next.278

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.
@@ -119,7 +119,6 @@ export declare class CreditAccountData {
119
119
  readonly collateralTokens: Array<Address>;
120
120
  readonly allBalances: Record<Address, CaTokenBalance>;
121
121
  readonly forbiddenTokens: Record<Address, true>;
122
- readonly quotedTokens: Record<Address, true>;
123
122
  constructor(payload: CreditAccountDataPayload);
124
123
  setDeleteInProgress(d: boolean): void;
125
124
  static sortBalances(balances: Record<Address, bigint>, prices: Record<Address, bigint>, tokens: Record<Address, TokenData>): Array<[Address, bigint]>;
@@ -127,7 +126,6 @@ export declare class CreditAccountData {
127
126
  static tokensAbcComparator(t1?: TokenData, t2?: TokenData): 1 | -1 | 0;
128
127
  static amountAbcComparator(t1: bigint, t2: bigint): 1 | -1;
129
128
  isForbidden(token: Address): boolean;
130
- isQuoted(token: Address): boolean;
131
129
  isTokenEnabled(token: Address): boolean;
132
130
  static calcMaxDebtIncrease(healthFactor: number, debt: bigint, underlyingLT: number, minHf?: number): bigint;
133
131
  static calcMaxLendingDebt({ assets, liquidationThresholds, underlyingToken, prices, tokensList, targetHF, }: CalcMaxLendingDebtProps): bigint;
@@ -35,7 +35,6 @@ class CreditAccountData {
35
35
  collateralTokens = [];
36
36
  allBalances = {};
37
37
  forbiddenTokens = {};
38
- quotedTokens = {};
39
38
  constructor(payload) {
40
39
  this.isSuccessful = payload.isSuccessful;
41
40
  this.priceFeedsNeeded = payload.priceFeedsNeeded.map(t => t);
@@ -71,7 +70,6 @@ class CreditAccountData {
71
70
  balance: b.balance,
72
71
  isForbidden: b.isForbidden,
73
72
  isEnabled: b.isEnabled,
74
- isQuoted: b.isQuoted,
75
73
  quota: b.quota,
76
74
  quotaRate: BigInt(b.quotaRate) * sdk_gov_1.PERCENTAGE_DECIMALS,
77
75
  };
@@ -82,9 +80,6 @@ class CreditAccountData {
82
80
  if (b.isForbidden) {
83
81
  this.forbiddenTokens[token] = true;
84
82
  }
85
- if (b.isQuoted) {
86
- this.quotedTokens[token] = true;
87
- }
88
83
  this.allBalances[token] = balance;
89
84
  });
90
85
  }
@@ -142,9 +137,6 @@ class CreditAccountData {
142
137
  isForbidden(token) {
143
138
  return !!this.forbiddenTokens[token];
144
139
  }
145
- isQuoted(token) {
146
- return !!this.quotedTokens[token];
147
- }
148
140
  isTokenEnabled(token) {
149
141
  return this.allBalances[token].isEnabled;
150
142
  }
@@ -4,7 +4,6 @@ export interface CaTokenBalance {
4
4
  balance: bigint;
5
5
  isForbidden: boolean;
6
6
  isEnabled: boolean;
7
- isQuoted: boolean;
8
7
  quota: bigint;
9
8
  quotaRate: bigint;
10
9
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gearbox-protocol/sdk",
3
- "version": "3.0.0-next.276",
3
+ "version": "3.0.0-next.278",
4
4
  "description": "Gearbox SDK",
5
5
  "main": "./lib/index.js",
6
6
  "types": "./lib/index.d.ts",
@@ -28,7 +28,7 @@
28
28
  "test": "npx mocha -r ts-node/register -r dotenv/config 'src/**/*.spec.ts'"
29
29
  },
30
30
  "dependencies": {
31
- "@gearbox-protocol/sdk-gov": "v2.34.0-next.21",
31
+ "@gearbox-protocol/sdk-gov": "^2.34.0",
32
32
  "@wagmi/cli": "^2.1.13",
33
33
  "axios": "^1.2.6",
34
34
  "decimal.js-light": "^2.5.1",