Skip to content

Monitor CAP stcUSD state - #333

Open
spalen0 wants to merge 3 commits into
mainfrom
monitor-cap-stcusd-state
Open

Monitor CAP stcUSD state#333
spalen0 wants to merge 3 commits into
mainfrom
monitor-cap-stcusd-state

Conversation

@spalen0

@spalen0 spalen0 commented Aug 3, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • add an hourly batched monitor for stcUSD accounting
  • send transition-deduplicated CRITICAL alerts for insufficient cUSD backing or a falling stcUSD asset-per-share value
  • document why lockDuration does not need a separate state monitor: it has no setter and changes require an upgrade controlled by the monitored CAP timelock
  • update CAP monitoring metadata, scheduling, ABI, and tests

Verification

  • uv run pytest -q tests/test_cap_status.py tests/test_monitoring_config.py
  • uv run ruff check protocols/cap/status.py tests/test_cap_status.py
  • uv run ruff format --check protocols/cap/status.py tests/test_cap_status.py
  • uv run mypy --explicit-package-bases --follow-imports=skip protocols/cap/status.py tests/test_cap_status.py
  • live Mainnet batch read
  • uvx prek run

@spalen0
spalen0 marked this pull request as ready for review August 3, 2026 13:42
@spalen0
spalen0 requested a review from tapired August 3, 2026 13:42
Comment thread protocols/cap/status.py Outdated
@spalen0 spalen0 changed the title Monitor CAP Stabledrop and stcUSD state Monitor CAP stcUSD state Aug 3, 2026
@spalen0
spalen0 marked this pull request as draft August 3, 2026 14:51
@spalen0
spalen0 marked this pull request as ready for review August 3, 2026 15:23
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.

2 participants