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

fix: chain dropdown balance total #8546

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from

Conversation

0xApotheosis
Copy link
Member

Description

Fixes the chain dropdown total balance by including staked balances, which the individual chain row balances already include. The total balance is now great (though not again, I don't think it ever was).

Production

Screenshot 2025-01-13 at 16 38 45

This PR

Screenshot 2025-01-13 at 17 36 02

Issue (if applicable)

None, found whilst working on the related #8530

Risk

Small

What protocols, transaction types, wallets or contract interactions might be affected by this PR?

None

Testing

With a wallet connected that has staking balances, ensure the chain dropdown component (used on the Markets page) shows the correct total balance (the sum of all chain balances).

Engineering

☝️

Operations

☝️

Screenshots (if applicable)

See above.

@0xApotheosis 0xApotheosis requested a review from a team as a code owner January 13, 2025 06:41
Copy link
Collaborator

@NeOMakinG NeOMakinG left a comment

Choose a reason for hiding this comment

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

I think this PR can be closed considering that https://github.com/shapeshift/web/pull/8545/files has been merged already, balance seems right now:

image

vs

image

@0xApotheosis
Copy link
Member Author

Right you are @NeOMakinG, this issue was indeed fixed by the upstream PR! Closing.

@0xApotheosis
Copy link
Member Author

Actually no, this PR is still necessary. See screenshot below showing this PR (left) and develop (right):

Screenshot 2025-01-14 at 16 32 05

@0xApotheosis 0xApotheosis reopened this Jan 14, 2025
@NeOMakinG
Copy link
Collaborator

That's very weird, here is how it looks like on this branch:

image
image

vs develop:
image

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.

2 participants