Skip to content

Fix fluctuating home balance#11899

Merged
cmgustavo merged 2 commits intobitpay:masterfrom
msalcala11:fix-fluctuating-home-balance
Sep 27, 2021
Merged

Fix fluctuating home balance#11899
cmgustavo merged 2 commits intobitpay:masterfrom
msalcala11:fix-fluctuating-home-balance

Conversation

@msalcala11
Copy link
Collaborator

@msalcala11 msalcala11 commented Sep 24, 2021

Incoming blocks are currently triggering an "update home balance" calculation, but this calculation only includes wallets that match the currency of the incoming block (resulting in an incorrect total balance shown on the home tab). This PR prevents incorrect home balance calculations by ensuring that the home balance only updates when all wallets (of all currencies) are included in the total balance calculation.

…ts call (rather than just wallets of a specific coin)
@codecov
Copy link

codecov bot commented Sep 24, 2021

Codecov Report

Merging #11899 (dd12462) into master (6c42fc8) will decrease coverage by 0.00%.
The diff coverage is 0.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master   #11899      +/-   ##
==========================================
- Coverage   28.63%   28.63%   -0.01%     
==========================================
  Files         244      244              
  Lines       21977    21978       +1     
  Branches     3551     3552       +1     
==========================================
  Hits         6293     6293              
- Misses      15137    15138       +1     
  Partials      547      547              
Impacted Files Coverage Δ
src/pages/tabs/tabs.ts 11.41% <0.00%> (-0.05%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 6c42fc8...dd12462. Read the comment docs.

@msalcala11 msalcala11 force-pushed the fix-fluctuating-home-balance branch from 132c8f6 to dd12462 Compare September 24, 2021 19:52
Copy link
Member

@cmgustavo cmgustavo left a comment

Choose a reason for hiding this comment

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

ACK. Nice catch! 👍🏼

Copy link
Collaborator

@Gamboster Gamboster left a comment

Choose a reason for hiding this comment

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

ACK!

@cmgustavo cmgustavo merged commit 0e9b6c6 into bitpay:master Sep 27, 2021
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