From b1bb55d09ca5bc7c1ad49bbc4b79abc2c6b88e0a Mon Sep 17 00:00:00 2001 From: mUniKeS Date: Thu, 20 Aug 2026 21:02:25 +0200 Subject: [PATCH] docs: warn that priceTTLInMS must stay >= CoinGecko refreshDelayInMS --- src/server/config/config-networks.ts | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/server/config/config-networks.ts b/src/server/config/config-networks.ts index 72841902..d61ec978 100644 --- a/src/server/config/config-networks.ts +++ b/src/server/config/config-networks.ts @@ -45,6 +45,15 @@ const MINIMUM_BALANCE_FOR_AVAILABILITY_L2 = 0.01; // 10 minute timeout on ticket prices retrieved from API. // Shorter is safer, but Coingecko free tier can lag by 15-30 minutes. +// +// IMPORTANT: this MUST stay >= the price refresher's refreshDelayInMS +// (configTokenPriceRefresher.tokenPriceRefreshers[...].refreshDelayInMS, +// overridable in MY-CONFIG.ts). If you raise the refresh interval (e.g. to +// save CoinGecko free-tier quota) without raising this TTL by at least as +// much, every cycle gets a guaranteed window - equal to the gap between the +// two values - where cached prices are considered "expired" and the +// broadcaster silently stops publishing fees for every token (NO TOKEN +// PRICE warnings), with no underlying error: the API call itself succeeds. const defaultTokenPriceTTL = 10 * 60 * 1000; const networksConfig: NetworksConfig = {