Skip to content

feat(monitor-service): export the hpl-crons DCA swap payer SOL balance - #1403

Merged
madninja merged 1 commit into
developfrom
mmd/monitor-dca-swap-payer
Nov 23, 2026
Merged

madninja merged 1 commit into
developfrom
mmd/monitor-dca-swap-payer

Conversation

@madninja

@madninja madninja commented Nov 23, 2026 •

Copy link
Copy Markdown
Member

monitor-service exports the SOL balance of the hpl-crons DCA swap payer as solana_account_balance{type="sol",name="hpl_crons_dca_swap_payer"}.

The swap payer is the tuktuk custom signer ["custom", task_queue, "dca_swap_payer"] (7F9Ncw7pzHZW44j5hwJ38TFU6kQ778Uhtb6sMEAM7PHv on the mainnet hpl-crons queue). It fronts the rent of each DCA and its token account and is refunded when the DCA closes, so it is flat in steady state and only an abandoned DCA lowers it. Once it holds less than one DCA's rent, top_off_hnt_v0 pays the rent from the AutoTopOffV0 account, whose SOL also pays both legs' crank rewards. Nothing exported the payer's balance before this.

The key is derived with customSignerKey from the existing HPL_CRONS_QUEUE_KEY; for the mainnet queue it gives 7F9Ncw…, checked with the installed @helium/tuktuk-sdk. pnpm turbo run build --filter=@helium/monitor-service passes, and prettier passes on the changed file.

The swap payer fronts the rent of every DCA on the hpl-crons queue and is
refunded when the DCA closes. An abandoned DCA keeps its rent, and once
the payer is short, dc-auto-top's top_off_hnt_v0 pays the rent from the
auto top off account. Exporting it as hpl_crons_dca_swap_payer lets that
drain alert before it reaches the auto top off.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@madninja
madninja marked this pull request as ready for review November 23, 2026 21:29
@bryzettler
bryzettler self-requested a review November 23, 2026 22:44
@madninja
madninja merged commit f8e2adf into develop Nov 23, 2026
69 checks passed
@madninja
madninja deleted the mmd/monitor-dca-swap-payer branch November 23, 2026 22:45
@github-actions github-actions Bot mentioned this pull request Nov 23, 2026
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