diff --git a/src/dataworker/Dataworker.ts b/src/dataworker/Dataworker.ts index 45454490e..6c1f9bf61 100644 --- a/src/dataworker/Dataworker.ts +++ b/src/dataworker/Dataworker.ts @@ -1880,7 +1880,7 @@ export class Dataworker { this.clients.hubPoolClient.getLpTokenInfoForL1Token(l1Token)?.lastLpFeeUpdate ?? 0; if ( this.clients.hubPoolClient.currentTime === undefined || - this.clients.hubPoolClient.currentTime - lastestFeesCompoundedTime <= 7200 // 2 hours + this.clients.hubPoolClient.currentTime - lastestFeesCompoundedTime <= 2 * 24 * 60 * 60 // 2 day ) { this.logger.debug({ at: "Dataworker#_updateOldExchangeRates", diff --git a/test/Dataworker.executePoolRebalances.ts b/test/Dataworker.executePoolRebalances.ts index e300148e9..d80df387e 100644 --- a/test/Dataworker.executePoolRebalances.ts +++ b/test/Dataworker.executePoolRebalances.ts @@ -364,8 +364,8 @@ describe("Dataworker: Execute pool rebalances", async function () { expect(multiCallerClient.transactionCount()).to.equal(0); }); it("exits early if liquid reserves wouldn't increase for token post-update", async function () { - // Last update was at time 0, current time is at 10_000, so definitely past the update threshold - mockHubPoolClient.currentTime = 10_000; + // Last update was at time 0, current time is at 1_000_000, so definitely past the update threshold + mockHubPoolClient.currentTime = 1_000_000; mockHubPoolClient.setLpTokenInfo(l1Token_1.address, 0); // Hardcode multicall output such that it looks like liquid reserves stayed the same @@ -417,8 +417,8 @@ describe("Dataworker: Execute pool rebalances", async function () { expect(multiCallerClient.transactionCount()).to.equal(0); }); it("submits update if liquid reserves would increase for token post-update and last update was old enough", async function () { - // Last update was at time 0, current time is at 10_000, so definitely past the update threshold - mockHubPoolClient.currentTime = 10_000; + // Last update was at time 0, current time is at 1_000_000, so definitely past the update threshold + mockHubPoolClient.currentTime = 1_000_000; mockHubPoolClient.setLpTokenInfo(l1Token_1.address, 0); // Hardcode multicall output such that it looks like liquid reserves increased