Skip to content

Conversation

@nktkas
Copy link
Owner

@nktkas nktkas commented Dec 25, 2025

No description provided.

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR adds an optional dex parameter to the twapStates subscription method, allowing users to subscribe to TWAP states for a specific DEX (or the main DEX when using an empty string).

Key changes:

  • Added optional dex parameter to the TwapStatesRequest schema
  • Updated subscription filtering logic to include DEX matching
  • Default value handling ensures backward compatibility (defaults to empty string for main DEX)

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@nktkas nktkas merged commit eb8e134 into main Dec 25, 2025
7 checks passed
@nktkas nktkas deleted the 97-twapstate-subscription-missed-the-dex-param-currently-valibot-stripped-even-we-put-the-all_dex-param branch December 25, 2025 06:18
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.

twapState subscription missed the dex param, currently valibot stripped even we put the all_dex param

2 participants