feat(yearn): monitor small parent vault flows - #345
Open
tapired wants to merge 6 commits into
Open
Conversation
This comment was marked as resolved.
This comment was marked as resolved.
- Persist the first-run lookback floor so stream gaps can't drop events - Cap individual alerts per run and summarize the overflow - Report the first Envio failure once and stop the run - Handle null GraphQL data and skip Kong rows missing asset metadata - Keep hidden (non-retired) parent vaults monitored - Apply --log-level to the module logger - Default to chains indexed by yearn-envio (drops Optimism) Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Send per-flow alerts and the overflow summary to the internal curation chat, falling back to the yearn group when TELEGRAM_CHAT_ID_CURATION is unset, matching the Morpho YV-collateral and lender-borrower monitors. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
yearn-envio dropped Optimism (yearn/yearn-envio@d124bed), so: - Stop expecting Optimism in the indexer freshness check - Drop the Optimism Yearn TimelockController from the Envio timelock monitor, which could no longer receive its events - Point indexer links at yearn/yearn-envio and set the example ENVIO_GRAPHQL_URL Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
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
protocols/yearn/alert_small_parent_flows.py: alerts on every deposit or withdrawal with a raw ERC-4626assetsvalue between 0 and 10,000 for non-retired Yearn v3 parent vaults (Kong for discovery, EnvioDeposit/Withdrawfor events).(blockNumber, logIndex)cursors; first-run lookback floor is persisted.TELEGRAM_CHAT_ID_CURATION), falling back to the yearn group..env.examplesetsENVIO_GRAPHQL_URL.Verification
schema.graphqland the live5a089e4deployment.ruff, tests: 873 passed.🤖 Generated with Claude Code