You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
all appear unnecessary, as they're used in src/hooks/useWatchTokenPrices.ts to fetch prices for multiple tokens at 5 / 10 seconds intervals.
However, in src/components/pages/trading/TradingChart/streaming.ts, the Pyth Benchmarks HTTP streaming API is used directly.
There's an opportunity to expand the use of & improve this solution, which would allow to remove the Pyth-specific Solana Connection + config + 3rd party dependency, and consolidate the app's source of truth for token prices at the same time.
The text was updated successfully, but these errors were encountered:
Alternatively, the Pyth Benchmarks API is kept just for the Trading View - as it appears necessary, but the Pyth Hermes Price Updates Stream API is used in lieu of the other Pyth components for the functionality of useWatchTokenPrices / tokenPrices reducer consumers.
Follow-up of #399 & related to #396
PYTH_CONNECTION
Solana RPC ConnectionIConfiguration.pythnetRpc
configuration key@pythnetwork/pyth-solana-receiver
all appear unnecessary, as they're used in
src/hooks/useWatchTokenPrices.ts
to fetch prices for multiple tokens at 5 / 10 seconds intervals.However, in
src/components/pages/trading/TradingChart/streaming.ts
, the Pyth Benchmarks HTTP streaming API is used directly.There's an opportunity to expand the use of & improve this solution, which would allow to remove the Pyth-specific Solana Connection + config + 3rd party dependency, and consolidate the app's source of truth for token prices at the same time.
The text was updated successfully, but these errors were encountered: