Prevention and monitoring
End-to-end monitoring includes:
- Per-update gas monitoring: catch abnormal single-update gas spikes early to control cost or spot logic issues
- Price update frequency: ensure no feed stays stale too long
- On-chain vs third-party price divergence: continuous comparison
- Volatility anomaly: historical volatility stats with alerts when realized vol diverges sharply from normal
- API availability: price read paths respond and return valid data
- Source count: avoid reliance on a single venue; ensure quotes draw from multiple liquid markets
- Stablecoin depeg: detect abnormal moves vs the peg (e.g. USD)
- Contract permission changes (Admin / Owner / Reporter): detect adds/removes/changes to critical roles
- Contract revert events: log reverts in real time for faster root-cause and risk review
- Node / RPC health: catch stalled block height, lag, or queue backlog
- Wallet balances: ensure operational wallets hold enough funds so critical actions do not fail for lack of gas