Skip to content

Add OUSD rebalancer to Talos schedules (manual, disabled)#2933

Merged
clement-ux merged 1 commit into
masterfrom
clement/ousd-rebalancer-schedule
Jul 1, 2026
Merged

Add OUSD rebalancer to Talos schedules (manual, disabled)#2933
clement-ux merged 1 commit into
masterfrom
clement/ousd-rebalancer-schedule

Conversation

@clement-ux

Copy link
Copy Markdown
Collaborator

Summary

Adds an ousd_rebalancer row to contracts/migrations/seed_schedules.sql so the OUSD Rebalancer action appears in the Talos admin UI and can be triggered manually via Run now.

Why

The hardhat task ousdRebalancer (tasks/actions/ousdRebalancer.ts) is already registered, so it shows up in the actions catalog (dump-actions-catalog.cjsGET /actions/:task/params). But the catalog only advertises a task's editable flags — it does not make the action listed or runnable. The runner can only dispatch a run by scheduleId (POST /runs/:scheduleId, @talos/client http.ts), and the ad-hoc arbitrary-command endpoint was removed. So without a schedules row, the rebalancer was neither visible nor executable from the UI.

What

One row added, seeded with:

  • enabled = false and the placeholder cron 0 0 1 1 * — same convention as the other manual-only rows (stake_validator, remove_validator, queue_proposal, execute_proposal). It therefore never fires on a schedule; it only runs on an operator-initiated Run now.
  • command cd /app && pnpm hardhat ousdRebalancer --network mainnet (broadcasts, since the task's dryrun defaults to false).
('origin-dollar', 'ousd_rebalancer', 'cd /app && pnpm hardhat ousdRebalancer --network mainnet', '0 0 1 1 *', 'UTC', false, 'Manual: Run now to rebalance OUSD Morpho strategies'),

The seed uses INSERT ... ON CONFLICT (product, name) DO NOTHING, so it is idempotent and safe to re-apply on every runner boot.

Notes

  • To later put it on an automatic cadence, flip enabled to true in the Talos admin UI (or update the cron here).

🤖 Generated with Claude Code

Adds an `ousd_rebalancer` row to the Talos schedules seed so the OUSD
Rebalancer action shows up in the Talos admin UI and can be triggered
manually via "Run now". The hardhat task `ousdRebalancer` was already
registered (and thus in the actions catalog), but with no `schedules`
row it was neither listed nor runnable from the UI — the runner only
dispatches by scheduleId (POST /runs/:scheduleId) and the ad-hoc
arbitrary-command endpoint was removed.

Seeded with enabled=false and the placeholder cron `0 0 1 1 *`, matching
the existing manual-only rows (stake_validator, queue_proposal, ...), so
it never fires on a schedule — only on an operator-initiated Run now.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@clement-ux clement-ux merged commit c52692d into master Jul 1, 2026
13 of 15 checks passed
@clement-ux clement-ux deleted the clement/ousd-rebalancer-schedule branch July 1, 2026 12:35
@codecov

codecov Bot commented Jul 1, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 44.63%. Comparing base (c097f0c) to head (880953d).
⚠️ Report is 1 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #2933   +/-   ##
=======================================
  Coverage   44.63%   44.63%           
=======================================
  Files         110      110           
  Lines        4920     4920           
  Branches     1362     1362           
=======================================
  Hits         2196     2196           
  Misses       2721     2721           
  Partials        3        3           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

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