@gearbox-protocol/sdk 3.0.1-next.5 → 3.0.1-next.7

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.
@@ -110,6 +110,13 @@ async function setLTZero(anvil, cm, logger) {
110
110
  address: cm.creditConfigurator
111
111
  });
112
112
  await anvil.stopImpersonatingAccount({ address: configuratorAddr });
113
+ const lt = await anvil.readContract({
114
+ address: cm.baseParams.addr,
115
+ abi: import_v300.iCreditManagerV300Abi,
116
+ functionName: "liquidationThresholds",
117
+ args: [cm.underlying]
118
+ });
119
+ logger?.debug(`[${cm.name}] underlying lt: ${lt}`);
113
120
  }
114
121
  // Annotate the CommonJS export names for ESM import in node:
115
122
  0 && (module.exports = {
@@ -80,7 +80,7 @@ const AP_PERIPHERY_COMPRESSOR = "GLOBAL::PERIPHERY_COMPRESSOR";
80
80
  const AP_PRICE_FEED_COMPRESSOR = "GLOBAL::PRICE_FEED_COMPRESSOR";
81
81
  const AP_PRICE_ORACLE = "PRICE_ORACLE";
82
82
  const AP_REWARDS_COMPRESSOR = "GLOBAL::REWARDS_COMPRESSOR";
83
- const AP_ROUTER = "LOCAL::ROUTER";
83
+ const AP_ROUTER = "GLOBAL::ROUTER";
84
84
  const AP_TOKEN_COMPRESSOR = "GLOBAL::TOKEN_COMPRESSOR";
85
85
  const AP_TREASURY = "TREASURY";
86
86
  const AP_WETH_GATEWAY = "WETH_GATEWAY";
@@ -90,6 +90,13 @@ async function setLTZero(anvil, cm, logger) {
90
90
  address: cm.creditConfigurator
91
91
  });
92
92
  await anvil.stopImpersonatingAccount({ address: configuratorAddr });
93
+ const lt = await anvil.readContract({
94
+ address: cm.baseParams.addr,
95
+ abi: iCreditManagerV300Abi,
96
+ functionName: "liquidationThresholds",
97
+ args: [cm.underlying]
98
+ });
99
+ logger?.debug(`[${cm.name}] underlying lt: ${lt}`);
93
100
  }
94
101
  export {
95
102
  setLTZero
@@ -24,7 +24,7 @@ const AP_PERIPHERY_COMPRESSOR = "GLOBAL::PERIPHERY_COMPRESSOR";
24
24
  const AP_PRICE_FEED_COMPRESSOR = "GLOBAL::PRICE_FEED_COMPRESSOR";
25
25
  const AP_PRICE_ORACLE = "PRICE_ORACLE";
26
26
  const AP_REWARDS_COMPRESSOR = "GLOBAL::REWARDS_COMPRESSOR";
27
- const AP_ROUTER = "LOCAL::ROUTER";
27
+ const AP_ROUTER = "GLOBAL::ROUTER";
28
28
  const AP_TOKEN_COMPRESSOR = "GLOBAL::TOKEN_COMPRESSOR";
29
29
  const AP_TREASURY = "TREASURY";
30
30
  const AP_WETH_GATEWAY = "WETH_GATEWAY";
@@ -25,7 +25,7 @@ export declare const AP_PERIPHERY_COMPRESSOR = "GLOBAL::PERIPHERY_COMPRESSOR";
25
25
  export declare const AP_PRICE_FEED_COMPRESSOR = "GLOBAL::PRICE_FEED_COMPRESSOR";
26
26
  export declare const AP_PRICE_ORACLE = "PRICE_ORACLE";
27
27
  export declare const AP_REWARDS_COMPRESSOR = "GLOBAL::REWARDS_COMPRESSOR";
28
- export declare const AP_ROUTER = "LOCAL::ROUTER";
28
+ export declare const AP_ROUTER = "GLOBAL::ROUTER";
29
29
  export declare const AP_TOKEN_COMPRESSOR = "GLOBAL::TOKEN_COMPRESSOR";
30
30
  export declare const AP_TREASURY = "TREASURY";
31
31
  export declare const AP_WETH_GATEWAY = "WETH_GATEWAY";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gearbox-protocol/sdk",
3
- "version": "3.0.1-next.5",
3
+ "version": "3.0.1-next.7",
4
4
  "description": "Gearbox SDK",
5
5
  "license": "MIT",
6
6
  "main": "./dist/cjs/sdk/index.js",