Operations
Monitor Runtime
Run monitor:
pnpm dev:monitor
Required:
NEXT_PUBLIC_DEMO_WALLET- optional
NEXT_PUBLIC_DEMO_TREASURY SQLITE_PATHMONITOR_POLL_INTERVAL_SECONDS(default600)
Telegram Alerts
Set:
TELEGRAM_BOT_TOKENTELEGRAM_CHAT_ID
Email Alerts
Set:
SMTP_HOSTSMTP_PORTSMTP_USERSMTP_PASSALERT_EMAIL_TO- optional
ALERT_EMAIL_FROM
Alert Cooldown
MONITOR_ALERT_COOLDOWN_SECONDScontrols dedupe window per alert key and channel.
Key Rotation
- Rotate
OPENFI_OWNER_PRIVATE_KEY/PRIVATE_KEY. - Verify signer address with dry-run tool calls.
- Confirm trust metadata still matches expected operator wallet.
Updating Lido Addresses
Only update from official docs:
Update in:
packages/shared/src/lido/constants.ts
Trust Registration (Sepolia)
- Ensure Sepolia RPC and gas are funded.
- Register/verify ERC-8004 metadata for
lido-agent. - Confirm manifest operator wallet equals onchain
agentWallet.
Useful endpoint:
GET /v1/agents/lido-agent/trust
Execution Funding
- Fork mode: prefund local anvil account
- Mainnet live: fund execution signer with ETH and required assets
Treasury Invariant Verification
After spend flows, verify:
principalBaselineStEthunchanged for yield-only spend- recipient transfer succeeded
availableYieldStEthdecreased as expected
Use:
get_treasury_statuspreview_treasury_spend- OpenFi verification receipts