Repository navigation
feat(monitor-service): export the hpl-crons DCA swap payer SOL balance - #1403
Merged
Merged
Conversation
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
marked this pull request as ready for review
November 23, 2026 21:29
bryzettler
self-requested a review
November 23, 2026 22:44
bryzettler
approved these changes
Nov 23, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
monitor-serviceexports the SOL balance of the hpl-crons DCA swap payer assolana_account_balance{type="sol",name="hpl_crons_dca_swap_payer"}.The swap payer is the tuktuk custom signer
["custom", task_queue, "dca_swap_payer"](7F9Ncw7pzHZW44j5hwJ38TFU6kQ778Uhtb6sMEAM7PHvon 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_v0pays the rent from theAutoTopOffV0account, whose SOL also pays both legs' crank rewards. Nothing exported the payer's balance before this.The key is derived with
customSignerKeyfrom the existingHPL_CRONS_QUEUE_KEY; for the mainnet queue it gives7F9Ncw…, checked with the installed@helium/tuktuk-sdk.pnpm turbo run build --filter=@helium/monitor-servicepasses, and prettier passes on the changed file.