fix: pass LM_ADDRESS and POOL_ADDRESS to ponder env (#4) #7

Merged
johba merged 2 commits from fix/issue-4 into master 2026-04-05 17:33:14 +00:00

2 commits

Author SHA1 Message Date
johba
caabcde20c fix: initialize POOL_ADDRESS before conditional block (review feedback)
Prevents unbound variable crash under set -u when factory lookup fails.
2026-04-05 17:26:01 +00:00
johba
e20b4517fd fix: fix: protocol activity statistics stay zero — ponder watches wrong contract addresses (#4)
1. Add LM_ADDRESS and POOL_ADDRESS to ponder .env.local (bootstrap.sh)
2. Discover pool address from Uniswap factory during bootstrap (bootstrap-common.sh)
3. Make ring buffer block threshold configurable via MINIMUM_BLOCKS_FOR_RINGBUFFER env var,
   set to 0 for local dev so early events populate the ring buffer

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-05 17:21:41 +00:00