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

Sort by recoverable balance and show vesting total, claimable (#2807) #3953

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

Conversation

traumschule
Copy link
Contributor

#2807 part 1+2

@vercel
Copy link

vercel bot commented Dec 8, 2022

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated
dao ✅ Ready (Inspect) Visit Preview Dec 8, 2022 at 11:29PM (UTC)
pioneer-2 ✅ Ready (Inspect) Visit Preview Dec 8, 2022 at 11:29PM (UTC)
pioneer-2-storybook ✅ Ready (Inspect) Visit Preview Dec 8, 2022 at 11:29PM (UTC)

Copy link
Contributor

@oleksanderkorn oleksanderkorn left a comment

Choose a reason for hiding this comment

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

lgtm

Comment on lines +40 to +44
<>
<TokenValue value={locked.add(vested)} />
<TokenValue value={locked} />
</ValueCell>
<TokenValue value={vested} />
</>
Copy link
Member

Choose a reason for hiding this comment

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

The current solution doesn't work:
Screenshot from 2022-12-21 17-23-31

This component is given the DeriveBalancesVesting which doesn't include vestedClaimable but:
Recoverable is vestedClaimable and what's actually locked is locked - vested + vestedClaimable (although there might be different way to get to these result) and finally the total should always be locked.

So one way to fix this is to pass vestedClaimable to the VestingLockListItem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
community-dev issue suitable for community-dev pipeline has-conflicts
Development

Successfully merging this pull request may close these issues.

None yet

3 participants