@gearbox-protocol/sdk 3.0.1-next.6 → 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 = {
|
|
@@ -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
|