Background & current state
Operator accounts that sign credits/payouts must hold enough XLM for transaction fees and minimum balance. If an operator account runs dry, credits and payouts silently fail with no early warning. There's currently no monitoring of operator account health.
Goal
Monitor operator/signing account balances and surface low-balance alerts (with an optional auto-topup hook) before failures occur.
Technical design
- A scheduled check (jobRunner) reads operator XLM via Horizon; computes headroom =
balance - (base_reserve + fee_buffer).
- Export
operator_xlm_balance + operator_headroom Prometheus metrics; alert below threshold (ties into NEW-044).
- Optional
auto_topup hook: transfer from a treasury account when below threshold (guarded + audited).
Edge cases
- Multiple operator accounts → monitor each.
- Horizon unavailable → use cached last value + mark stale.
- Auto-topup treasury also low → escalate alert, don't loop.
Task breakdown
Acceptance criteria
Testing & verification
- Unit tests of threshold/headroom math; metric presence asserted.
Out of scope
- Full treasury management UI.
Dependencies / related
- Feeds NEW-010 payouts, NEW-044 alerts.
Difficulty: medium · Effort: M · stellar + observability
Background & current state
Operator accounts that sign credits/payouts must hold enough XLM for transaction fees and minimum balance. If an operator account runs dry, credits and payouts silently fail with no early warning. There's currently no monitoring of operator account health.
Goal
Monitor operator/signing account balances and surface low-balance alerts (with an optional auto-topup hook) before failures occur.
Technical design
balance - (base_reserve + fee_buffer).operator_xlm_balance+operator_headroomPrometheus metrics; alert below threshold (ties into NEW-044).auto_topuphook: transfer from a treasury account when below threshold (guarded + audited).Edge cases
Task breakdown
Acceptance criteria
Testing & verification
Out of scope
Dependencies / related
Difficulty: medium · Effort: M · stellar + observability