@gearbox-protocol/sdk 8.27.6 → 8.27.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.
|
@@ -417,7 +417,10 @@ class GearboxSDK {
|
|
|
417
417
|
return;
|
|
418
418
|
}
|
|
419
419
|
this.#syncing = true;
|
|
420
|
-
|
|
420
|
+
let delta = Math.floor(Date.now() / 1e3) - Number(timestamp);
|
|
421
|
+
this.logger?.debug(
|
|
422
|
+
`syncing state to block ${blockNumber} (delta ${delta}s )...`
|
|
423
|
+
);
|
|
421
424
|
const watchAddresses = [
|
|
422
425
|
...Array.from(this.marketRegister.watchAddresses),
|
|
423
426
|
this.addressProvider.address
|
|
@@ -464,7 +467,10 @@ class GearboxSDK {
|
|
|
464
467
|
}
|
|
465
468
|
});
|
|
466
469
|
this.#syncing = false;
|
|
467
|
-
|
|
470
|
+
delta = Math.floor(Date.now() / 1e3) - Number(timestamp);
|
|
471
|
+
this.logger?.debug(
|
|
472
|
+
`synced state to block ${blockNumber} (delta ${delta}s)`
|
|
473
|
+
);
|
|
468
474
|
}
|
|
469
475
|
get provider() {
|
|
470
476
|
return this.#provider;
|
|
@@ -415,7 +415,10 @@ class GearboxSDK {
|
|
|
415
415
|
return;
|
|
416
416
|
}
|
|
417
417
|
this.#syncing = true;
|
|
418
|
-
|
|
418
|
+
let delta = Math.floor(Date.now() / 1e3) - Number(timestamp);
|
|
419
|
+
this.logger?.debug(
|
|
420
|
+
`syncing state to block ${blockNumber} (delta ${delta}s )...`
|
|
421
|
+
);
|
|
419
422
|
const watchAddresses = [
|
|
420
423
|
...Array.from(this.marketRegister.watchAddresses),
|
|
421
424
|
this.addressProvider.address
|
|
@@ -462,7 +465,10 @@ class GearboxSDK {
|
|
|
462
465
|
}
|
|
463
466
|
});
|
|
464
467
|
this.#syncing = false;
|
|
465
|
-
|
|
468
|
+
delta = Math.floor(Date.now() / 1e3) - Number(timestamp);
|
|
469
|
+
this.logger?.debug(
|
|
470
|
+
`synced state to block ${blockNumber} (delta ${delta}s)`
|
|
471
|
+
);
|
|
466
472
|
}
|
|
467
473
|
get provider() {
|
|
468
474
|
return this.#provider;
|