impermax-sdk 2.1.253 → 2.1.254
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.
|
@@ -174,13 +174,14 @@ class OffchainLendingPool {
|
|
|
174
174
|
// - Both tokens are stables
|
|
175
175
|
// - factory type is "7" (ie. SOL_STABLE)
|
|
176
176
|
async isStable() {
|
|
177
|
-
const [stables, token0, token1] = await Promise.all([
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
]);
|
|
182
|
-
const bothStable = stables.includes(token0) && stables.includes(token1);
|
|
183
|
-
if (bothStable || this.factory === "7")
|
|
177
|
+
// const [stables, token0, token1] = await Promise.all([
|
|
178
|
+
// this.getOffchain().getAPRHelper().getAllStablecoins(),
|
|
179
|
+
// this.getBorrowableA().getSymbol(),
|
|
180
|
+
// this.getBorrowableB().getSymbol(),
|
|
181
|
+
// ]);
|
|
182
|
+
// const bothStable = stables.includes(token0) && stables.includes(token1);
|
|
183
|
+
// if (bothStable || this.factory === "7") return true;
|
|
184
|
+
if (this.factory === types_1.Factory.SOL_STABLE)
|
|
184
185
|
return true;
|
|
185
186
|
return false;
|
|
186
187
|
}
|