Files
agents-marketplace/wallet-monitor/.env.example
david b10706cf69 fix(wallet-monitor): post only on state changes, drop reminder re-alerts
Slack posts now fire only when a wallet newly drops below its threshold
or recovers above it; a wallet that stays low never re-posts. The
reminder_hours mechanism is removed entirely — per-wallet reminder
clocks drifted apart (Ogmios blips skip wallets from a run), so with
many chronically-low wallets some clock came due nearly every run,
collapsing the 6h cadence to the hourly cron interval.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-28 11:12:45 +02:00

19 lines
831 B
Plaintext

# wallet-monitor/.env — copy to wallet-monitor/.env and fill in.
# (.env is gitignored; only this .env.example template is committed.)
# REQUIRED — Slack Incoming Webhook URL alerts are POSTed to.
# Create one at https://api.slack.com/messaging/webhooks
SLACK_WEBHOOK_URL=https://hooks.slack.com/services/XXXX/YYYY/ZZZZ
# OPTIONAL — Ogmios HTTP endpoint used to read balances.
# Defaults to the mainnet public endpoint (also pinned in the compose file).
# OGMIOS_URL=https://ogmios.vector.mainnet.apexfusion.org
# OPTIONAL — override the wallets.json default threshold without editing the
# mounted wallets file.
# DEFAULT_MIN_AP3X=10
# OPTIONAL — paths inside the container (defaults shown; bind-mounted by compose).
# WALLETS_PATH=/repo/wallet-monitor/wallets.json
# STATE_PATH=/repo/wallet-monitor/data/state.json