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

refactor exchange rates #1847

Merged
merged 5 commits into from Aug 24, 2023
Merged

Conversation

jackstar12
Copy link
Collaborator

simplifies the code and adds caching.
the the return_exceptions on the gather is key as it tells gather not to return if one of the tasks fail but instead wait for all to complete.

Exir was removed as a provider because it doesnt work (maybe binance alternative?)

@codecov-commenter
Copy link

codecov-commenter commented Aug 2, 2023

Codecov Report

Merging #1847 (0e09964) into main (2577ce7) will increase coverage by 0.17%.
The diff coverage is 31.81%.

❗ Your organization is not using the GitHub App Integration. As a result you may experience degraded service beginning May 15th. Please install the Github App Integration for your organization. Read more.

@@            Coverage Diff             @@
##             main    #1847      +/-   ##
==========================================
+ Coverage   56.12%   56.30%   +0.17%     
==========================================
  Files          48       48              
  Lines        7323     7309      -14     
==========================================
+ Hits         4110     4115       +5     
+ Misses       3213     3194      -19     
Files Changed Coverage Δ
lnbits/utils/exchange_rates.py 41.02% <18.75%> (+15.60%) ⬆️
lnbits/app.py 44.08% <66.66%> (+0.24%) ⬆️
lnbits/helpers.py 60.00% <66.66%> (+0.25%) ⬆️

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@jackstar12 jackstar12 force-pushed the refactor-exchange-rates branch 3 times, most recently from 61af150 to fb6a4b7 Compare August 2, 2023 14:46
@dni dni force-pushed the refactor-exchange-rates branch 2 times, most recently from f86e318 to 7f3c9f7 Compare August 24, 2023 10:33
@arcbtc arcbtc merged commit e50a7fb into lnbits:main Aug 24, 2023
23 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.

None yet

4 participants