Skip to content

[codex] Add pending timelock strategy display#1269

Draft
rossgalloway wants to merge 1 commit into
mainfrom
feat/timelocked-strategy-info
Draft

[codex] Add pending timelock strategy display#1269
rossgalloway wants to merge 1 commit into
mainfrom
feat/timelocked-strategy-info

Conversation

@rossgalloway

Copy link
Copy Markdown
Collaborator

Summary

  • Adds a vault API route that scans the Yearn strategy timelock for pending strategy additions.
  • Decodes queued add_strategy and matching update_max_debt_for_strategy calls from timelock logs.
  • Renders pending timelock strategies in their own expandable table below active strategies.
  • Keeps pending rows out of current strategy allocations and chart totals.
  • Adds focused API, decode, hook, display, and component tests.

Validation

  • bunx vitest run api/lib/timelockStrategies/config.test.ts api/lib/timelockStrategies/decode.test.ts api/lib/timelockStrategies/rpc.test.ts api/vaults/timelock-strategies.test.ts src/components/pages/vaults/hooks/usePendingTimelockStrategies.test.tsx src/components/pages/vaults/components/detail/PendingTimelockStrategiesTable.test.tsx src/components/pages/vaults/components/detail/VaultsListStrategy.test.tsx src/components/pages/vaults/utils/timelockStrategyDisplay.test.ts
  • bun run lint:fix
  • bun run tslint
  • API_PORT=5456 PORT=4175 HOST=127.0.0.1 bun run build

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
@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 Jun 3, 2026 11:19pm
2 Skipped Deployments
Project Deployment Actions Updated (UTC)
yearnfi-nextjs Ignored Ignored Jun 3, 2026 11:19pm
yearnfi-nextjs-2 Ignored Ignored Jun 3, 2026 11:19pm

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

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