Skip to content

Conversation

ypatil12
Copy link
Collaborator

@ypatil12 ypatil12 commented Jul 11, 2025

Motivation:

We should be preventing an invalid staleness period from being set by an operatorSet. A staleness period is invalid if it is less than the cadence at which tables are updated.

Modifications:

  • Add requirement to minimumStalenessPeriod in CrossChainRegistry
  • Prevent staleness periods less than tableUpdateCadence
  • Add setter for tableUpdateCadence
  • Update docs

Result:

Less likelihood for footguns by devs

@nadir-akhtar nadir-akhtar merged commit 5df3efc into main Jul 11, 2025
20 checks passed
@nadir-akhtar nadir-akhtar deleted the fix/prevent-invalid-staleness-periods branch July 11, 2025 20:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants