Skip to content

docs: warn about priceTTLInMS vs refreshDelayInMS interaction - #95

Open
munikes wants to merge 1 commit into
Railgun-Community:mainfrom
munikes:docs/price-ttl-refresh-delay-gotcha
Open

docs: warn about priceTTLInMS vs refreshDelayInMS interaction#95
munikes wants to merge 1 commit into
Railgun-Community:mainfrom
munikes:docs/price-ttl-refresh-delay-gotcha

Conversation

@munikes

@munikes munikes commented Aug 20, 2026

Copy link
Copy Markdown

If refreshDelayInMS (e.g. raised to save CoinGecko free-tier quota) ends up higher than priceTTLInMS, every refresh cycle has a guaranteed window where cached prices are considered expired before the next fetch happens — the broadcaster silently stops publishing fees for every token (NO TOKEN PRICE warnings) even though the underlying CoinGecko call is succeeding. Added an explicit comment next to defaultTokenPriceTTL warning about this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant