Skip to content

feat(aave): alert on high utilization only after 2+ consecutive checks - #380

Merged
spalen0 merged 1 commit into
mainfrom
aave-sup
Sep 25, 2026
Merged

spalen0 merged 1 commit into
mainfrom
aave-sup

Conversation

@spalen0

@spalen0 spalen0 commented Sep 25, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • Aave utilization alerts now require the market to be above 99% for 2+ consecutive hourly checks, filtering out one-off spikes.
  • Per-market streak is stored in the shared cache; it resets when utilization drops to or below the threshold, or when the last observation is stale (>3h).
  • Alert message includes the number of consecutive checks above threshold.
  • Updated protocols/aave/README.md and monitoring.yaml description.

Test plan

  • ruff format / ruff check
  • tests/test_monitoring_config.py
  • Simulated readings 99.5% ×3 → 50% → 99.5%: alerts on 2nd and 3rd, streak resets after drop

🤖 Generated with Claude Code

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@spalen0
spalen0 marked this pull request as ready for review September 25, 2026 10:13
@spalen0
spalen0 merged commit c4e375d into main Sep 25, 2026
3 checks passed
@spalen0
spalen0 deleted the aave-sup branch September 25, 2026 10:16
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.

1 participant