From 022a175b83dded49e4ec19026a1ff2b0e199cc58 Mon Sep 17 00:00:00 2001 From: jwinterm Date: Sun, 1 Feb 2026 17:39:59 -0500 Subject: [PATCH] update .env.example with balance stuff --- src/.env.example | 34 +++++++++++++++++++++++++++++++--- 1 file changed, 31 insertions(+), 3 deletions(-) diff --git a/src/.env.example b/src/.env.example index df8219f..8717a04 100644 --- a/src/.env.example +++ b/src/.env.example @@ -317,9 +317,37 @@ PORT=3000 # Default: alerts@monerogue.app # ALERT_FROM_EMAIL=noreply@yourdomain.com -# Low balance threshold in atomic units (triggers email alert) -# Default: 100000000000 (0.1 XMR/WOW) -LOW_BALANCE_THRESHOLD=100000000000 +# ------------------------- +# BALANCE THRESHOLDS +# ------------------------- +# Two-tier alert system for wallet balance monitoring: +# +# BALANCE_WARN: Sends email alert when balance drops below this level +# You should top up the wallet soon. +# +# BALANCE_CRITICAL: Sends email AND HALTS NEW GAMES when balance drops below +# Users will see a modal: "Sorry, the house balance is too low..." +# Games resume automatically when balance is restored above this threshold. +# +# All values in atomic units: +# WOW: 1 WOW = 100000000000 (10^11) +# XMR: 1 XMR = 1000000000000 (10^12) + +# Warning threshold - sends email alert (default: 0.1 WOW/XMR) +BALANCE_WARN=100000000000 + +# Critical threshold - halts new games (default: 0.01 WOW/XMR) +BALANCE_CRITICAL=10000000000 + +# Legacy alias (superseded by BALANCE_WARN, kept for backwards compatibility) +# LOW_BALANCE_THRESHOLD=100000000000 + +# ------------------------- +# OTHER ALERT SETTINGS +# ------------------------- + +# Alert when pending/failed payouts exceed this count +HIGH_PENDING_THRESHOLD=10 # Alert cooldown in milliseconds (avoid spam) # Default: 3600000 (1 hour)