@gearbox-protocol/sdk 2.1.28 → 2.1.29
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.
|
@@ -17,8 +17,9 @@ class CreditAccountWatcher {
|
|
|
17
17
|
* @returns Arrays of hashes for opened accounts
|
|
18
18
|
*/
|
|
19
19
|
static async getOpenAccounts(creditManager, provider, toBlock) {
|
|
20
|
-
if (creditManager.version
|
|
20
|
+
if (!(creditManager.version === 2 || creditManager.version === 210)) {
|
|
21
21
|
throw new Error("Works for V2 only");
|
|
22
|
+
}
|
|
22
23
|
const eventsByDate = [];
|
|
23
24
|
const addToEvents = (e, address, operation) => {
|
|
24
25
|
eventsByDate.push({
|