Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 21 additions & 3 deletions patches/ponder@0.17.11.patch
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
diff --git a/dist/esm/indexing-store/cache.js b/dist/esm/indexing-store/cache.js
index 85d4564ae8341045304a8ab3c6dac6869846f376..86058af6b6c1bd0b252b7da4b7e98e3a48a1a90d 100644
index 85d4564ae8341045304a8ab3c6dac6869846f376..7f8a02f0ca4ad451704a1059ce2801209075f622 100644
--- a/dist/esm/indexing-store/cache.js
+++ b/dist/esm/indexing-store/cache.js
@@ -163,6 +163,7 @@ export const recoverBatchError = async (values, callback) => {
Expand Down Expand Up @@ -129,10 +129,10 @@ index 85d4564ae8341045304a8ab3c6dac6869846f376..86058af6b6c1bd0b252b7da4b7e98e3a
error = new DelayedInsertError(result.error.message);
error.stack = undefined;
diff --git a/dist/esm/rpc/actions.js b/dist/esm/rpc/actions.js
index 71aa68078fbc4d8ed5a0516c47367af88a451b9b..50e4c641ecc2028e7247f21d8bd16e6b01bb9d69 100644
index ff65bd1e0c2823b3a5d04259be973ca2540df140..ea9199e315810b698f9ac2c7943fbeaf43dc2567 100644
--- a/dist/esm/rpc/actions.js
+++ b/dist/esm/rpc/actions.js
@@ -776,16 +776,14 @@ export const standardizeLogs = (logs, request) => {
@@ -779,16 +779,14 @@ export const standardizeLogs = (logs, request) => {
throw error;
}
if (hexToBigInt(log.logIndex) > BigInt(PG_INTEGER_MAX)) {
Expand All @@ -155,3 +155,21 @@ index 71aa68078fbc4d8ed5a0516c47367af88a451b9b..50e4c641ecc2028e7247f21d8bd16e6b
};
/**
* Validate required trace properties and set non-required properties.
diff --git a/dist/esm/utils/finality.js b/dist/esm/utils/finality.js
index 86af3301833e90d47b9fe0f8dabf3098fda5bc6a..0b4d1f1c28950344c2af367e4e9e1c1309d7f1f1 100644
--- a/dist/esm/utils/finality.js
+++ b/dist/esm/utils/finality.js
@@ -33,6 +33,13 @@ export function getFinalityBlockCount({ chain }) {
case 421613:
finalityBlockCount = 240;
break;
+ // Base. 200ms blocks since the Denim hardfork (2026-11-05); the default
+ // of 30 blocks would be only ~6s of reorg protection. 300 blocks ≈ 60s,
+ // matching the window Base had at 2s blocks.
+ case 8453:
+ case 84532:
+ finalityBlockCount = 300;
+ break;
default:
// Assume a 2-second block time, e.g. OP stack chains.
finalityBlockCount = 30;
6 changes: 3 additions & 3 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 12 additions & 2 deletions src/chains/base.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,17 @@
import { SupportedChainId } from "@cowprotocol/cow-sdk";
import { type ChainConfig } from "./types";

const blockTime = 2; // Seconds/block; 10,000-block average, 2026-09-16
// Seconds/block. 200ms since the Denim hardfork (2026-11-05); was 2s before.
// Settings derived from blockTime keep their wall-clock cadence (OrderDiscoveryPoller
// ~60s, CandidateConfirmer/OrderStatusTracker ~5s, orderbook recheck 40s).
// Fixed block counts do NOT scale and now run 10x faster in wall-clock terms:
// FlashLoanOrderEnricher / OwnerBackfillLive / CancellationWatcher (every 10
// blocks ≈ 2s), DETERMINISTIC_CANCEL_SWEEP_INTERVAL (100 blocks ≈ 20s) and the
// TRY_NEXT_BLOCK backoff (≤ 50 blocks, shorter than the poller's 300-block
// interval, so effectively no backoff). This matches Arbitrum (0.3s blocks).
// Ponder's finality depth for Base is patched to 300 blocks (~60s) in
// patches/ponder@0.17.11.patch.
const blockTime = 0.2;

export const base: ChainConfig = {
name: "base",
Expand Down Expand Up @@ -38,6 +48,6 @@ export const base: ChainConfig = {
},
},
orderbookApiPath: "base",
orderbookPollInterval: 40, // ~20 blocks at 2s/block (prior global cadence)
orderbookPollInterval: 40, // seconds; = 200 blocks at 200ms/block (was 20 blocks at 2s)
reorgSafetyWindowSeconds: 1200, // 20 min — covers L1-reorg derived resets
};
Loading