Skip to content

feat(prices): add depeg monitoring for LRTs and stablecoins#197

Draft
spalen0 wants to merge 1 commit intomainfrom
peg
Draft

feat(prices): add depeg monitoring for LRTs and stablecoins#197
spalen0 wants to merge 1 commit intomainfrom
peg

Conversation

@spalen0
Copy link
Copy Markdown
Collaborator

@spalen0 spalen0 commented Mar 31, 2026

Summary

  • Add centralized prices/ module for depeg monitoring of LRTs and stablecoins
  • Use Redstone fundamental push oracles (LBTC, cUSD) where available — any depeg is CRITICAL
  • Fall back to DefiLlama market pricing for weETH, ezETH, rsETH, pufETH, osETH, rswETH, mETH and stablecoins (FDUSD, deUSD, USD0, USD0++, USDe) — 2%+ depeg is CRITICAL
  • Route all LRT alerts to single lrt protocol channel with token symbol identification
  • Document Tenderly alert coverage and oracle research findings in README

Oracle Research Findings

Asset Oracle Tenderly
LBTC Redstone push 0xb415...bc81 ✅ Covered
cUSD Redstone push 0x9a5a...434a ✅ Covered
weETH, ezETH, rsETH, pufETH Redstone off-chain only (pull model) Needs alert if push oracle deployed
osETH, rswETH, mETH No fundamental feed N/A — DefiLlama only

Closes #196

Test plan

  • Verify oracle reads return valid data for LBTC and cUSD
  • Verify DefiLlama prices are fetched and ratios computed correctly
  • Verify alerts fire when thresholds are breached
  • Add prices/main.py to appropriate GitHub Actions workflow
  • Configure TELEGRAM_BOT_TOKEN_LRT / TELEGRAM_CHAT_ID_LRT and TELEGRAM_BOT_TOKEN_STABLES / TELEGRAM_CHAT_ID_STABLES secrets

🤖 Generated with Claude Code

Add centralized depeg monitoring using Redstone fundamental oracles
where available (LBTC, cUSD) and DefiLlama market pricing as fallback
for weETH, ezETH, rsETH, pufETH, osETH, rswETH, mETH and stablecoins.

Oracle-based assets alert on any depeg (below 0.998).
DefiLlama-based assets alert on 2%+ depeg (below 0.98).
LRT alerts route to a single "lrt" channel with token symbol.

Closes #196

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
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.

Depeg

1 participant