Skip to content

feat: implement individual asset heartbeats#4

Open
abiiralbhattarai wants to merge 1 commit into
wormhole-foundation:mainfrom
abiiralbhattarai:feat/per-asset-heartbeats
Open

feat: implement individual asset heartbeats#4
abiiralbhattarai wants to merge 1 commit into
wormhole-foundation:mainfrom
abiiralbhattarai:feat/per-asset-heartbeats

Conversation

@abiiralbhattarai

Copy link
Copy Markdown

Description: Implement Per-Asset Heartbeat

Overview

This PR addresses a critical security vulnerability where the price lacked a mechanism to verify data freshness. By transitioning to a Heartbeat-based Model, we ensure the contract only accepts chronologically newer data, protecting downstream protocols from stale price injection.

Key Changes

  • Storage Refactor: Moved to a PriceData struct encapsulating both price and lastUpdated heartbeat.
  • Integrity Enforcement: Implemented a monotonic update check:
    if (incomingTimestamp > prices[name].lastUpdated) { // Updates only if newer }

@vercel

vercel Bot commented Jan 25, 2026

Copy link
Copy Markdown

@abiiralbhattarai is attempting to deploy a commit to the Wormhole Team on Vercel.

A member of the Team first needs to authorize it.

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