Skip to content

Conversation

@0xtj24
Copy link

@0xtj24 0xtj24 commented Jan 10, 2026

  • Add FeedSwitchV2

@0xtj24 0xtj24 marked this pull request as ready for review January 14, 2026 23:23

/// @notice Toggle the feed switch, entering or exiting the timelock period
/// @dev Can only be called by the guardian
function toggleFeedSwitch() external {
Copy link

@wavey0x wavey0x Jan 20, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

note:
current implentation is functionally correct, but semantics differ from conventional timelocks which may lead to confusion for integrators

  • toggle function is used both to queue a switch and cancel an in-flight switch
  • the feed storage variable is updated immediately, may lead to confusion for integrators as which is the active
  • FeedSwitchInitiated is emitted even on cancelations

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.

4 participants