Infinifi monitoring and adding Cap Money Msig #124
Merged
spalen0 merged 10 commits intoyearn:mainfrom Feb 6, 2026
Merged
Conversation
spalen0
requested changes
Jan 30, 2026
Collaborator
spalen0
left a comment
There was a problem hiding this comment.
This PR is clearly not ready. Next time create it as Draft PR when there is still work to do.
infinifi/README.md
Outdated
|
|
||
| 2. **Deployer Address**: | ||
| - `0xdecaDAc8778D088A30eE811b8Cc4eE72cED9Bf22` | ||
| - Alerts on any transaction sent from this address. |
Collaborator
There was a problem hiding this comment.
I see that the deployer creates different strategies/vaults. We don't need alerts for that, it will only be spam. We should only get alerts when new strategies are added to protocol, when iUSD funds are deposited there. This actions probably goes to Timelock?
74fecd7 to
4fbd6c0
Compare
4fbd6c0 to
06fabc2
Compare
spalen0
reviewed
Feb 5, 2026
infinifi/main.py
Outdated
| # Extract Total Backing (TVL) | ||
| if "asset" in stats and "totalTVLAssetNormalized" in stats["asset"]: | ||
| total_backing = float(stats["asset"]["totalTVLAssetNormalized"]) | ||
| else: |
Collaborator
There was a problem hiding this comment.
We could return early from the function if there is no data
infinifi/main.py
Outdated
Comment on lines
69
to
74
| if "asset" in stats and "totalLiquidAssetNormalized" in stats["asset"]: | ||
| liquid_reserves = float(stats["asset"]["totalLiquidAssetNormalized"]) | ||
|
|
||
| # Extract Total Backing (TVL) | ||
| if "asset" in stats and "totalTVLAssetNormalized" in stats["asset"]: | ||
| total_backing = float(stats["asset"]["totalTVLAssetNormalized"]) |
Collaborator
There was a problem hiding this comment.
you can fetch stats["asset"] only once and verify it is not none, it will simplify code
infinifi/main.py
Outdated
Comment on lines
54
to
55
| iusd_decimals = batch_results[0] | ||
| iusd_supply_raw = batch_results[1] |
Collaborator
There was a problem hiding this comment.
I would cast these values to int from start.
spalen0
reviewed
Feb 5, 2026
infinifi/main.py
Outdated
| # Constants | ||
| PROTOCOL = "infinifi" | ||
| IUSD_ADDRESS = Web3.to_checksum_address("0x48f9e38f3070AD8945DFEae3FA70987722E3D89c") | ||
| LIQUID_RESERVES_THRESHOLD = 25_000_000 |
spalen0
approved these changes
Feb 6, 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.
Infinifi reserve tracking and governance monitoring is added.
Cap money Msig address is added to safe monitoring.