Skip to content

Add new HN logic for RP revert agent#718

Merged
Xeonus merged 1 commit into
mainfrom
update-HN-rp-revert-logic
May 22, 2026
Merged

Add new HN logic for RP revert agent#718
Xeonus merged 1 commit into
mainfrom
update-HN-rp-revert-logic

Conversation

@zekraken-bot
Copy link
Copy Markdown
Collaborator

this will add the "persist over 100 blocks" logic to new revert agents for new rate providers.

@zekraken-bot zekraken-bot requested a review from Xeonus May 15, 2026 15:56
// Tracks consecutive revert count in the account-wide KV store so that the
// alert only fires after 100 consecutive reverts.
private static buildRevertPythonSource(kvKey: string): string {
return `def my_function(extracted_variables):
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Only way to do it via this weird template injection? No other more elegant way possible?

Copy link
Copy Markdown
Collaborator

@Xeonus Xeonus left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's test it in PROD. Low risk. Issue of using that template hasn't been resolved yet but likely only way how to do it given HN limitations with python code parsing via typescript

@Xeonus Xeonus merged commit bf5bdef into main May 22, 2026
1 check passed
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