Skip to content

feat(monitor): v3.1 checks and keeper (pokeBuyback, AutoLp flush) - #100

Merged
jayoo101 merged 2 commits into
mainfrom
feat/v31-keeper
Oct 31, 2026
Merged

jayoo101 merged 2 commits into
mainfrom
feat/v31-keeper

Conversation

@jayoo101

Copy link
Copy Markdown
Owner

Prepares /api/monitor for the v3.1 deploy.

  • v3.1 factory is checked on its own shape instead of the v3 one, which would false-alarm (its ladder and platform treasury are the ownerless buyback, and it has its own BidBook): owner is the Safe gateway, no pending owner, not paused, platformTreasury == ladderTreasury (buyback), buyback.rescuer() == Safe, its BidBook pays the Safe, and any pendingRescue is alerted (cancel with the Safe within 72h).
  • Keeper (HALT_KEEPER_PRIVATE_KEY, the existing gas-only wallet): pokeBuyback() when nextLeg() is armed (swaps only convert now, so burns need a poke) and AutoLp flush(hook) for each of the last 200 v3.1 hooks with pendingQuote > 0. Each call is simulated first and only sent if it would succeed.
  • Nothing changes until NEXT_PUBLIC_V31_FACTORY/LENS are set.

Tests: 4 new in monitor.test.ts.

Made with Cursor

@vercel

vercel Bot commented Oct 31, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
tosh Ready Ready Preview Oct 31, 2026 4:08pm UTC

Request Review

jayoo101 and others added 2 commits November 1, 2026 00:06
… own BidBook) and keeper pokes buyback and flushes AutoLp

Co-authored-by: Cursor <cursoragent@cursor.com>
@jayoo101
jayoo101 merged commit 80371b8 into main Oct 31, 2026
8 checks passed

This branch was successfully deployed

1 active deployment
Preview — 69016740 Deployed Oct 31, 2026 by vercel[bot]
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.

1 participant