Why this conversation
A stale-config incident and the sentence that ends the category: the source of truth is on chain, and everything else is a cache.
Dialogue
Priya: Exchange says "contract not found" for the pool. Nothing changed on our side.
Jay: The devnet reset at two a.m. and the seed ran again. Every address moved. Where does the front end get the pool address?
Priya: An env variable, set at deploy.
Jay: Then it was right yesterday and wrong today, and it'll be wrong again after every reset. Read it from the Registry at startup. The Registry address is the only one that survives a reset.
Priya: What if the Registry call fails?
Jay: Then show "chain not ready" instead of a wrong address. A visible failure beats a confident wrong number.
Priya: Should the env var stay as a fallback?
Jay: No. A fallback that is usually stale is a trap. One source, and it's the chain.
Key expressions
| Expression | 뜻 · 쓰이는 자리 |
|---|---|
| nothing changed on our side | 우리 쪽은 아무것도 바꾸지 않았다 |
| every address moved | 주소가 전부 바뀌었다 |
| set at deploy | 배포 때 설정되는 |
| right yesterday and wrong today | 어제는 맞고 오늘은 틀리다 |
| survives a reset | 리셋을 견딘다 |
| chain not ready | 체인 준비 안 됨 |
| a visible failure | 보이는 실패 |
| a confident wrong number | 자신감 있는 틀린 숫자 |
| usually stale | 대개 오래된 |
| one source, and it's the chain | 원천은 하나, 체인이다 |