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

[MEX-691] Weekly rewards and timekeeping cache warmers #1565

Conversation

mad2sm0key
Copy link
Contributor

Reasoning

  • week timekeeping data for farms, fees collector and staking contracts is used in various computations for user queries. The current implementation fetches this data on user request only, causing poor performance

Proposed Changes

  • added 2 new cache warmers for week timekeeping and weekly rewards splitting data (for farms, staking and fees collector)
  • small fix for certain fields returning "NaN" (division by 0)

How to test

  • N/A

Copy link

codecov bot commented Feb 18, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 52.82%. Comparing base (87683b0) to head (6907eda).
Report is 70 commits behind head on development.

Additional details and impacted files
@@               Coverage Diff               @@
##           development    #1565      +/-   ##
===============================================
- Coverage        52.90%   52.82%   -0.09%     
===============================================
  Files              269      270       +1     
  Lines            10656    10694      +38     
  Branches           825      830       +5     
===============================================
+ Hits              5638     5649      +11     
- Misses            4278     4303      +25     
- Partials           740      742       +2     
Flag Coverage Δ
unittests 52.82% <100.00%> (-0.09%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

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

@claudiulataretu claudiulataretu merged commit d8123d6 into development Feb 21, 2025
2 of 3 checks passed
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.

3 participants