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>
This commit is contained in:
parent
41a3d52319
commit
e20b4517fd
3 changed files with 16 additions and 1 deletions
|
|
@ -104,6 +104,9 @@ write_ponder_env() {
|
|||
PONDER_NETWORK=$NETWORK_NAME
|
||||
KRAIKEN_ADDRESS=$KRAIKEN
|
||||
STAKE_ADDRESS=$STAKE
|
||||
LM_ADDRESS=$LIQUIDITY_MANAGER
|
||||
POOL_ADDRESS=$POOL_ADDRESS
|
||||
MINIMUM_BLOCKS_FOR_RINGBUFFER=0
|
||||
START_BLOCK=$DEPLOY_BLOCK
|
||||
PONDER_RPC_URL_${NETWORK_NAME}=$ANVIL_RPC
|
||||
DATABASE_URL=postgresql://ponder:ponder_local@postgres:5432/ponder_local
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue