@gearbox-protocol/sdk 10.2.4 → 10.2.6

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.
@@ -315,7 +315,6 @@ class AbstractCreditAccountService extends import_base.SDKConstruct {
315
315
  creditManager: ca.creditManager,
316
316
  creditAccount: ca
317
317
  });
318
- console.log("CLOSE", this.sdk.parseMultiCall(routerCloseResult.calls));
319
318
  const calls = [
320
319
  ...operation === "close" ? [] : priceUpdates,
321
320
  ...routerCloseResult.calls,
@@ -108,7 +108,6 @@ class CreditAccountServiceV310 extends import_AbstractCreditAccountsService.Abst
108
108
  tokensToClaim,
109
109
  creditAccount: ca
110
110
  });
111
- console.log("claimPath", this.sdk.parseMultiCall(claimPath.calls));
112
111
  const priceUpdates = await this.getPriceUpdatesForFacade({
113
112
  creditManager: ca.creditManager,
114
113
  creditAccount: ca
@@ -145,7 +144,6 @@ class CreditAccountServiceV310 extends import_AbstractCreditAccountsService.Abst
145
144
  tokensToClaim,
146
145
  creditAccount: ca
147
146
  });
148
- console.log("claimPath", this.sdk.parseMultiCall(claimPath.calls));
149
147
  const priceUpdates = await this.getPriceUpdatesForFacade({
150
148
  creditManager: ca.creditManager,
151
149
  creditAccount: ca
@@ -72,7 +72,7 @@ const CHARTS_BACKEND_ADDRESSES = {
72
72
  [TESTNET_CHAINS.Optimism]: "https://opttest.gearbox.foundation"
73
73
  // !& new chains
74
74
  };
75
- const STATIC_TOKEN = "https://static.gearbox.fi/tokens/";
75
+ const STATIC_TOKEN = "https://static.gearbox.finance/tokens/";
76
76
  const LEADERBOARD_APIS = {
77
77
  ...Object.values(import_chain.chains).reduce((acc, chain) => {
78
78
  acc[chain.id] = "https://gpointbot.fly.dev";
@@ -102,11 +102,11 @@ class GearboxBackendApi {
102
102
  static getStaticTokenUrl = () => STATIC_TOKEN;
103
103
  static getRewardsMerkleUrl = (network, root, account) => {
104
104
  const path = `${network}_${root.slice(2)}/${account.slice(2, 4)}`;
105
- const url = `https://am.gearbox.fi/${path.toLowerCase()}.json`;
105
+ const url = `https://am.gearbox.finance/${path.toLowerCase()}.json`;
106
106
  return url;
107
107
  };
108
108
  static getNFTMerkleUrl = (network, root) => {
109
- const url = `https://dm.gearbox.fi/${network.toLowerCase()}_${root}.json`;
109
+ const url = `https://dm.gearbox.finance/${network.toLowerCase()}_${root}.json`;
110
110
  return url;
111
111
  };
112
112
  static getLeaderboardUrl = (url, chainId) => {
@@ -306,7 +306,6 @@ class AbstractCreditAccountService extends SDKConstruct {
306
306
  creditManager: ca.creditManager,
307
307
  creditAccount: ca
308
308
  });
309
- console.log("CLOSE", this.sdk.parseMultiCall(routerCloseResult.calls));
310
309
  const calls = [
311
310
  ...operation === "close" ? [] : priceUpdates,
312
311
  ...routerCloseResult.calls,
@@ -85,7 +85,6 @@ class CreditAccountServiceV310 extends AbstractCreditAccountService {
85
85
  tokensToClaim,
86
86
  creditAccount: ca
87
87
  });
88
- console.log("claimPath", this.sdk.parseMultiCall(claimPath.calls));
89
88
  const priceUpdates = await this.getPriceUpdatesForFacade({
90
89
  creditManager: ca.creditManager,
91
90
  creditAccount: ca
@@ -122,7 +121,6 @@ class CreditAccountServiceV310 extends AbstractCreditAccountService {
122
121
  tokensToClaim,
123
122
  creditAccount: ca
124
123
  });
125
- console.log("claimPath", this.sdk.parseMultiCall(claimPath.calls));
126
124
  const priceUpdates = await this.getPriceUpdatesForFacade({
127
125
  creditManager: ca.creditManager,
128
126
  creditAccount: ca
@@ -43,7 +43,7 @@ const CHARTS_BACKEND_ADDRESSES = {
43
43
  [TESTNET_CHAINS.Optimism]: "https://opttest.gearbox.foundation"
44
44
  // !& new chains
45
45
  };
46
- const STATIC_TOKEN = "https://static.gearbox.fi/tokens/";
46
+ const STATIC_TOKEN = "https://static.gearbox.finance/tokens/";
47
47
  const LEADERBOARD_APIS = {
48
48
  ...Object.values(CHAINS).reduce((acc, chain) => {
49
49
  acc[chain.id] = "https://gpointbot.fly.dev";
@@ -73,11 +73,11 @@ class GearboxBackendApi {
73
73
  static getStaticTokenUrl = () => STATIC_TOKEN;
74
74
  static getRewardsMerkleUrl = (network, root, account) => {
75
75
  const path = `${network}_${root.slice(2)}/${account.slice(2, 4)}`;
76
- const url = `https://am.gearbox.fi/${path.toLowerCase()}.json`;
76
+ const url = `https://am.gearbox.finance/${path.toLowerCase()}.json`;
77
77
  return url;
78
78
  };
79
79
  static getNFTMerkleUrl = (network, root) => {
80
- const url = `https://dm.gearbox.fi/${network.toLowerCase()}_${root}.json`;
80
+ const url = `https://dm.gearbox.finance/${network.toLowerCase()}_${root}.json`;
81
81
  return url;
82
82
  };
83
83
  static getLeaderboardUrl = (url, chainId) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gearbox-protocol/sdk",
3
- "version": "10.2.4",
3
+ "version": "10.2.6",
4
4
  "description": "Gearbox SDK",
5
5
  "license": "MIT",
6
6
  "main": "./dist/cjs/sdk/index.js",