Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Refresh prices on heartbeats #622

Merged
merged 7 commits into from
Jul 24, 2024
Merged

Conversation

davidterpay
Copy link
Contributor

No description provided.

@davidterpay davidterpay added preview Select this label when you want to preview a test chain + sidecar deployment in K8S vpn Select this label when you want to proxy all traffic in the deployment through a VPN. marketmap_provider=dydx_research Select this label if you want to deploy a sidecar that reads markets from dYdX mainnet + research. labels Jul 23, 2024
@davidterpay davidterpay marked this pull request as ready for review July 24, 2024 15:56
Copy link

codecov bot commented Jul 24, 2024

Codecov Report

Attention: Patch coverage is 37.50000% with 15 lines in your changes missing coverage. Please review.

Project coverage is 56.47%. Comparing base (f288cd6) to head (48582ce).

Files Patch % Lines
oracle/types/provider.go 0.00% 15 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #622      +/-   ##
==========================================
- Coverage   56.51%   56.47%   -0.05%     
==========================================
  Files         250      250              
  Lines       13023    13045      +22     
==========================================
+ Hits         7360     7367       +7     
- Misses       4955     4970      +15     
  Partials      708      708              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Comment on lines +69 to +71
cache[strings.ToLower(ticker.GetOffChainTicker())] = ticker
cache[ticker.GetOffChainTicker()] = ticker
cache[strings.ToUpper(ticker.GetOffChainTicker())] = ticker
Copy link
Contributor

Choose a reason for hiding this comment

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

why do we need 3 entries in the cache?

@davidterpay davidterpay merged commit ca2a9e1 into main Jul 24, 2024
12 checks passed
@davidterpay davidterpay deleted the terpay/heartbeat-price-refresh branch July 24, 2024 19:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
marketmap_provider=dydx_research Select this label if you want to deploy a sidecar that reads markets from dYdX mainnet + research. preview Select this label when you want to preview a test chain + sidecar deployment in K8S vpn Select this label when you want to proxy all traffic in the deployment through a VPN.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants