Skip to content

[737] Contracts: Add strategy heartbeat expiration checks before allocation updates#783

Open
amehsamuel200225-sketch wants to merge 4 commits into
Junirezz:mainfrom
amehsamuel200225-sketch:fix/737-contracts-add-strategy-heartbeat-expiration-checks-before-allocation-updates
Open

[737] Contracts: Add strategy heartbeat expiration checks before allocation updates#783
amehsamuel200225-sketch wants to merge 4 commits into
Junirezz:mainfrom
amehsamuel200225-sketch:fix/737-contracts-add-strategy-heartbeat-expiration-checks-before-allocation-updates

Conversation

@amehsamuel200225-sketch

Copy link
Copy Markdown

Summary

  • Add strategy heartbeat storage, configuration, and validation module
  • Block invest and rebalance when strategy heartbeats are missing or expired
  • Add unit/integration tests and fix whitelist storage to use canonical DataKey entries

Closes #737

Test plan

  • cargo check -p vault --tests
  • cargo test --workspace (CI)
  • cargo clippy --all-targets (CI)
  • cargo fmt --check (CI)

Made with Cursor

Require whitelisted strategies to record recent heartbeats before invest and rebalance operations, with configurable freshness windows and tests.

Closes Junirezz#737

Co-authored-by: Cursor <cursoragent@cursor.com>
@drips-wave

drips-wave Bot commented Jun 23, 2026

Copy link
Copy Markdown

@amehsamuel200225-sketch Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

Senior Engineer and others added 3 commits June 23, 2026 21:05
…-strategy-heartbeat-expiration-checks-before-allocation-updates
Avoid double admin authorization in whitelist updates and cover heartbeat validation through vault integration tests.

Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
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.

Contracts: Add strategy heartbeat expiration checks before allocation updates

1 participant