impermax-sdk 1.2.21 → 1.2.23
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.
|
@@ -57,7 +57,8 @@ class OffchainBorrowable extends offchainPoolToken_1.default {
|
|
|
57
57
|
// Borrow tracker
|
|
58
58
|
getBorrowTracker() {
|
|
59
59
|
return __awaiter(this, void 0, void 0, function* () {
|
|
60
|
-
|
|
60
|
+
const borrowTracker = yield this.getPoolTokenParam("borrowTracker");
|
|
61
|
+
return borrowTracker !== null && borrowTracker !== void 0 ? borrowTracker : "0x0000000000000000000000000000000000000000";
|
|
61
62
|
});
|
|
62
63
|
}
|
|
63
64
|
// Borrow Index
|
|
@@ -680,9 +680,9 @@ function fetchWhitelist() {
|
|
|
680
680
|
if (!subgraph)
|
|
681
681
|
return [];
|
|
682
682
|
const result = yield this.apolloFetcher(subgraph, query.whitelistQuery());
|
|
683
|
-
if (!result || !result.data.
|
|
683
|
+
if (!result || !result.data.whitelistStates)
|
|
684
684
|
return [];
|
|
685
|
-
return result.data.
|
|
685
|
+
return result.data.whitelistStates;
|
|
686
686
|
});
|
|
687
687
|
}
|
|
688
688
|
exports.fetchWhitelist = fetchWhitelist;
|