-
Notifications
You must be signed in to change notification settings - Fork 13
Strata monitoring #164
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
ctmotox2
wants to merge
4
commits into
yearn:main
Choose a base branch
from
ctmotox2:strata-monitoring
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Strata monitoring #164
Changes from all commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -16,5 +16,9 @@ jobs: | |
| with: | ||
| cache_file: nonces.txt | ||
| cache_key_prefix: nonces-v3 | ||
| extra_env: | | ||
| CACHE_FILENAME=nonces.txt | ||
| NONCE_FILENAME=nonces.txt | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. is this needed? |
||
| scripts: | | ||
| safe/main.py | ||
| timelock/timelock_alerts.py | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We don't need to check timelock every 15min, every hour is more than enough. |
||
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
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,47 @@ | ||
| # Strata Monitoring | ||
|
|
||
| Monitors Strata srUSDe/sUSDe risk and governance signals on Ethereum. | ||
|
|
||
| ## Scope | ||
|
|
||
| ### srUSDe Vault Monitoring | ||
| - srUSDe: `0x3d7d6fdf07EE548B939A80edbc9B2256d0cdc003` | ||
| - Monitor `convertToAssets(1e18)`; alert if exchange rate decreases. | ||
| - Monitor `Deposit` and `Withdraw` events: | ||
| - alert for flows `>$1M` | ||
| - whale alert for single flow `>$5M` | ||
|
|
||
| ### StrataCDO Monitoring | ||
| - StrataCDO: `0x908B3921aaE4fC17191D382BB61020f2Ee6C0e20` | ||
| - Monitor senior coverage ratio; alert if ratio is below `105%`. | ||
| - Watch junior side draining via `jrUSDe.totalAssets()` rapid drop. | ||
| - Monitor pausing actions (`setActionStates`) via timelock scheduled-call decoding. | ||
|
|
||
| ### Strategy Monitoring | ||
| - sUSDeStrategy: `0xdbf4FB6C310C1C85D0b41B5DbCA06096F2E7099F` | ||
| - Monitor `sUSDe` balance held by strategy. | ||
| - Alert if strategy balance drops significantly relative to total deposits. | ||
|
|
||
| ### Governance Monitoring | ||
| - Admin Multisig: `0xA27cA9292268ee0f0258B749f1D5740c9Bb68B50` | ||
| - 48h Timelock: `0xb2A3CF69C97AFD4dE7882E5fEE120e4efC77B706` | ||
| - 24h Timelock: `0x4f2682b78F37910704fB1AFF29358A1da07E022d` | ||
| - monitor `CallScheduled`, `CallExecuted`, `Cancelled` | ||
| - immediate alert on `CallScheduled` | ||
|
|
||
| ### Ethena Dependency Monitoring | ||
| - USDe peg: | ||
| - warning alert if deviation `>0.5%` | ||
| - critical alert if deviation `>2%` | ||
| - sUSDe vault anomalies: | ||
| - monitor `convertToAssets(1e18)` monotonicity | ||
| - monitor cooldown period changes | ||
|
|
||
| ## Frequency | ||
| - Timelock scheduled calls: near real-time (10-minute cadence, `multisig-checker.yml`) | ||
| - Proxy upgrade events: near real-time via safe/timelock queue monitoring (`multisig-checker.yml`) | ||
| - srUSDe exchange rate: daily (`daily.yml`) | ||
| - Senior coverage ratio: daily (`daily.yml`) | ||
| - USDe peg stability: hourly (`hourly.yml`) | ||
| - Strategy sUSDe balance: daily (`daily.yml`) | ||
| - Protocol TVL changes: daily (`daily.yml`) |
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why remove this?