Skip to content

Add pending timelock strategy display#1269

Merged
rossgalloway merged 5 commits into
mainfrom
feat/timelocked-strategy-info
Jul 15, 2026
Merged

Add pending timelock strategy display#1269
rossgalloway merged 5 commits into
mainfrom
feat/timelocked-strategy-info

Conversation

@rossgalloway

@rossgalloway rossgalloway commented Jun 3, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • Adds a Next API route for pending Yearn strategy timelocks at /api/vaults/timelock-strategies.
  • Scans the configured Yearn strategy timelock controllers for scheduled add_strategy calls and matching update_max_debt_for_strategy calls.
  • Filters out executed, cancelled, completed, and already-active strategies before returning pending rows.
  • Adds a “Pending Strategies” table below active vault strategies, with expandable details for status, ETA, max debt, timelock address, strategy address, schedule tx, operation id, and executor.
  • Keeps pending strategies out of active allocation rows and allocation chart totals.
  • Adds focused tests for the server route, timelock config/RPC/decode logic, display formatting, query hook, and detail table components.

To Review

There are new strategies in the yvUSDC vault on katana until July 16th. Visit https://yearnfi-git-feat-timelocked-strategy-info-yearn.vercel.app/vaults/747474/0x80c34BD3A3569E126e7055831036aa7b212cB159 and scroll down to the strategies tab, where you should see strategies waiting in the timelock.

image

@vercel

vercel Bot commented Jun 3, 2026

Copy link
Copy Markdown

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

Project Deployment Actions Updated (UTC)
yearnfi Ready Ready Preview, Comment Jul 15, 2026 9:47pm
2 Skipped Deployments
Project Deployment Actions Updated (UTC)
yearnfi-nextjs Ignored Ignored Preview Jul 15, 2026 9:47pm
yearnfi-nextjs-2 Ignored Ignored Preview Jul 15, 2026 9:47pm

Request Review

@github-actions

github-actions Bot commented Jun 3, 2026

Copy link
Copy Markdown

Dependency Review

✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.

Scanned Files

None

Fetch scheduled strategy additions from the Yearn strategy timelock and expose them through a vault API route.\n\n- Decode queued add_strategy and max debt calls from timelock logs\n- Render pending strategies in a separate expandable vault table\n- Keep pending rows out of active strategy allocation totals\n- Add API, decode, hook, display, and component coverage
@rossgalloway rossgalloway force-pushed the feat/timelocked-strategy-info branch from 525d585 to 2fe4c5b Compare July 6, 2026 19:45
@rossgalloway rossgalloway changed the title [codex] Add pending timelock strategy display Add pending timelock strategy display Jul 6, 2026

@w84april w84april left a comment

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.

lgtm

@rossgalloway rossgalloway merged commit 55a0c9d into main Jul 15, 2026
13 checks passed
@rossgalloway rossgalloway deleted the feat/timelocked-strategy-info branch July 15, 2026 21:48
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