Skip to content

Infinifi monitoring and adding Cap Money Msig #124

Merged
spalen0 merged 10 commits intoyearn:mainfrom
ctmotox2:infinifi-monitoring
Feb 6, 2026
Merged

Infinifi monitoring and adding Cap Money Msig #124
spalen0 merged 10 commits intoyearn:mainfrom
ctmotox2:infinifi-monitoring

Conversation

@ctmotox2
Copy link
Contributor

Infinifi reserve tracking and governance monitoring is added.
Cap money Msig address is added to safe monitoring.

Copy link
Collaborator

@spalen0 spalen0 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This PR is clearly not ready. Next time create it as Draft PR when there is still work to do.


2. **Deployer Address**:
- `0xdecaDAc8778D088A30eE811b8Cc4eE72cED9Bf22`
- Alerts on any transaction sent from this address.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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?

@ctmotox2 ctmotox2 force-pushed the infinifi-monitoring branch 2 times, most recently from 74fecd7 to 4fbd6c0 Compare February 5, 2026 14:14
@ctmotox2 ctmotox2 force-pushed the infinifi-monitoring branch from 4fbd6c0 to 06fabc2 Compare February 5, 2026 14:21
infinifi/main.py Outdated
# Extract Total Backing (TVL)
if "asset" in stats and "totalTVLAssetNormalized" in stats["asset"]:
total_backing = float(stats["asset"]["totalTVLAssetNormalized"])
else:
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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"])
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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]
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would cast these values to int from start.

infinifi/main.py Outdated
# Constants
PROTOCOL = "infinifi"
IUSD_ADDRESS = Web3.to_checksum_address("0x48f9e38f3070AD8945DFEae3FA70987722E3D89c")
LIQUID_RESERVES_THRESHOLD = 25_000_000
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You can set it to 15m

@spalen0 spalen0 merged commit 50e7ed8 into yearn:main Feb 6, 2026
2 checks passed
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.

2 participants