@gearbox-protocol/sdk 8.24.1 → 8.24.2
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.
- package/dist/cjs/sdk/market/pricefeeds/updates/PythUpdater.js +3 -0
- package/dist/cjs/sdk/market/pricefeeds/updates/RedstoneUpdater.js +3 -0
- package/dist/esm/sdk/market/pricefeeds/updates/PythUpdater.js +3 -0
- package/dist/esm/sdk/market/pricefeeds/updates/RedstoneUpdater.js +3 -0
- package/package.json +1 -1
|
@@ -70,6 +70,9 @@ class PythUpdater extends import_base.SDKConstruct {
|
|
|
70
70
|
const ts = opts.historicTimestamp;
|
|
71
71
|
if (ts) {
|
|
72
72
|
this.#historicalTimestamp = ts === true ? Number(this.sdk.timestamp) : ts;
|
|
73
|
+
this.#logger?.debug(
|
|
74
|
+
`using historical timestamp ${this.#historicalTimestamp}`
|
|
75
|
+
);
|
|
73
76
|
}
|
|
74
77
|
this.#cache = new import_PriceUpdatesCache.PriceUpdatesCache({
|
|
75
78
|
// currently staleness period is 240 seconds on all networks, add some buffer
|
|
@@ -76,6 +76,9 @@ class RedstoneUpdater extends import_base.SDKConstruct {
|
|
|
76
76
|
if (ts) {
|
|
77
77
|
ts = ts === true ? Number(this.sdk.timestamp) * 1e3 : ts;
|
|
78
78
|
this.#historicalTimestampMs = 6e4 * Math.floor(ts / 6e4);
|
|
79
|
+
this.#logger?.debug(
|
|
80
|
+
`using historical timestamp ${this.#historicalTimestampMs}`
|
|
81
|
+
);
|
|
79
82
|
}
|
|
80
83
|
this.#cache = new import_PriceUpdatesCache.PriceUpdatesCache({
|
|
81
84
|
// currently staleness period is 240 seconds on all networks, add some buffer
|
|
@@ -50,6 +50,9 @@ class PythUpdater extends SDKConstruct {
|
|
|
50
50
|
const ts = opts.historicTimestamp;
|
|
51
51
|
if (ts) {
|
|
52
52
|
this.#historicalTimestamp = ts === true ? Number(this.sdk.timestamp) : ts;
|
|
53
|
+
this.#logger?.debug(
|
|
54
|
+
`using historical timestamp ${this.#historicalTimestamp}`
|
|
55
|
+
);
|
|
53
56
|
}
|
|
54
57
|
this.#cache = new PriceUpdatesCache({
|
|
55
58
|
// currently staleness period is 240 seconds on all networks, add some buffer
|
|
@@ -52,6 +52,9 @@ class RedstoneUpdater extends SDKConstruct {
|
|
|
52
52
|
if (ts) {
|
|
53
53
|
ts = ts === true ? Number(this.sdk.timestamp) * 1e3 : ts;
|
|
54
54
|
this.#historicalTimestampMs = 6e4 * Math.floor(ts / 6e4);
|
|
55
|
+
this.#logger?.debug(
|
|
56
|
+
`using historical timestamp ${this.#historicalTimestampMs}`
|
|
57
|
+
);
|
|
55
58
|
}
|
|
56
59
|
this.#cache = new PriceUpdatesCache({
|
|
57
60
|
// currently staleness period is 240 seconds on all networks, add some buffer
|