Skip to content

Commit

Permalink
Merge pull request #380 from Uniswap/reduce-lookback-window
Browse files Browse the repository at this point in the history
chore: reduce cbv2 lookback window
  • Loading branch information
ConjunctiveNormalForm authored Oct 11, 2024
2 parents 78041dc + 17dc5a6 commit 11b44ef
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions lib/providers/circuit-breaker/dynamo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@ export class DynamoCircuitBreakerConfigurationProvider implements CircuitBreaker
this.timestamps = await this.timestampDB.getFillerTimestampsMap(this.fillerEndpoints);
}

/* add filler to `enabled` array if it's not blocked until a future timestamp
add disabled fillers and the `blockUntilTimestamp`s to disabled array */
/* add filler to `enabled` array if it's not blocked until a future timestamp;
add disabled fillers and the `blockUntilTimestamp`s to disabled array */
async getEndpointStatuses(endpoints: WebhookConfiguration[]): Promise<EndpointStatuses> {
try {
const now = Math.floor(Date.now() / 1000);
Expand Down
2 changes: 1 addition & 1 deletion lib/repositories/fades-repository.ts
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ AND latestOrdersV2.quoteId IS NOT NULL
AND rfqFiller != '0x0000000000000000000000000000000000000000'
AND chainId NOT IN (5,8001,420,421613) -- exclude mainnet goerli, polygon goerli, optimism goerli and arbitrum goerli testnets
AND
postTimestamp >= extract(epoch from (GETDATE() - INTERVAL '48 HOURS')) -- 2 days rolling window
postTimestamp >= extract(epoch from (GETDATE() - INTERVAL '20 MINUTE')) -- 20-minute rolling window
)
ORDER BY rfqFiller, postTimestamp DESC
LIMIT 1000
Expand Down

0 comments on commit 11b44ef

Please sign in to comment.