Conversation
- refresh protocols/spark/main.py to current SparkLend reserves (aave-style structure, run_with_alert wrapper) and re-enable it hourly - add protocols/spark/proposals.py polling Snapshot space sparkfi.eth (backs https://app.spark.fi/spk/governance) for new open proposals - document governance flow incl. Tenderly plot() alert on DSPause - wire into automation/jobs.yaml and monitoring.yaml Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
DAI, sDAI, USDC, sUSDS, and LBTC markets are deprecated on https://app.spark.fi/markets — stop monitoring their utilization. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
spalen0
marked this pull request as ready for review
July 13, 2026 12:42
tapired
approved these changes
Jul 13, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Re-enables and modernizes Spark monitoring:
protocols/spark/main.py(rewritten): the old utilization monitor was disabled with a stale 2023 market list. Refreshed to the current 13 active, non-frozen SparkLend mainnet reserves (adds USDS, sUSDS, LBTC, PYUSD; drops now-frozen rETH), restructured to matchprotocols/aave/main.py, and adds the requiredrun_with_alertwrapper. Alerts at >99% utilization.protocols/spark/proposals.py(new): governance proposals monitor modeled onprotocols/maker/proposals.py. The Spark governance portal is backed by Snapshot spacesparkfi.eth; the script pollshub.snapshot.org/graphql, alerts (LOW) on new proposals whose voting is still open, and dedupes via the created-timestamp cache. First run seeds the cache without backfilling closed proposals.automation/jobs.yaml;sparkcard added tomonitoring.yaml; README rewritten.Tenderly alert note
The Spark spell flow goes through Sky governance:
plot()is on DSPause0xbE286431454714F511008713973d3B053A2d38f3(already covered by the Maker alert) — the PauseProxy0xBE8E3e3618f7474F8cB1d074A26afFef007E98FBhas noplot()function (verified against mainnet bytecode). For Spark-specific coverage, alert onexec()calls to the Spark SubDAO Proxy0x3300f198988e4C9C63F75dF86De36421f06af8c4.Deployment
Requires
TELEGRAM_TOPIC_ID_SPARK(orTELEGRAM_CHAT_ID_SPARK) on the box, otherwise spark alerts are skipped with "Missing Telegram credentials".Testing
tests/test_monitoring_config.pyvalidating jobs.yaml/monitoring.yaml consistency)main.pyagainst mainnet: all 13 markets return sane URs (max USDT at 96%)proposals.py: cache seeding, alert formatting, and rerun dedupe verified🤖 Generated with Claude Code