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

Peter/fix vault dashboard volumes hook #1557

Merged
merged 36 commits into from
Sep 7, 2023

Conversation

peterslany
Copy link
Contributor

@peterslany peterslany commented Sep 6, 2023

Fixing incorrect value of total locked collateral card. Previously collateral currencies were manually specified which was very unmaintainable way of handling this. Now the currencies used are based on chain state. New hook was introduced that fetches collateral volumes for each currency.

Note: I tried refactoring existing hook, but it is already overused for many different purposes so creating new hook ended up being better option - in order to separate the logic. Existing hook should be improved later.

Before
image

Now
image

@vercel
Copy link

vercel bot commented Sep 6, 2023

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

Name Status Preview Comments Updated (UTC)
interbtc-ui-interlay ✅ Ready (Inspect) Visit Preview 💬 Add feedback Sep 6, 2023 3:12pm
interbtc-ui-interlay-testnet ✅ Ready (Inspect) Visit Preview 💬 Add feedback Sep 6, 2023 3:12pm
interbtc-ui-kintsugi ✅ Ready (Inspect) Visit Preview 💬 Add feedback Sep 6, 2023 3:12pm
interbtc-ui-kintsugi-testnet ✅ Ready (Inspect) Visit Preview 💬 Add feedback Sep 6, 2023 3:12pm

@github-actions
Copy link

github-actions bot commented Sep 6, 2023

Running Lighthouse audit...

Copy link
Collaborator

@tomjeatt tomjeatt left a comment

Choose a reason for hiding this comment

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

Looks great Peter—like you said, might need a bit of work in future but a really nice way of getting this wrapped up quickly :)

@peterslany peterslany merged commit e9414ef into master Sep 7, 2023
10 checks passed
@peterslany peterslany deleted the peter/fix-vault-dashboard-volumes-hook branch September 7, 2023 11:13
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

2 participants