-
-
Notifications
You must be signed in to change notification settings - Fork 358
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
feat: set multi chain balances in stores #6052
Conversation
…llery into feat/multi-chain-balances-to-stores
✅ Deploy Preview for koda-canary ready!
To edit notification comments on pull requests, go to your Netlify site settings. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
works nicely
just small stuff
Co-authored-by: Luke Fishman <daiagi@gmail.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Co-authored-by: roiLeo <medina.leo42@gmail.com>
Code Climate has analyzed commit 7a85462 and detected 0 issues on this pull request. View more on Code Climate. |
is this your address? seems like on subcan and sub.id also show zero
let me check if a change to |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
✅ wfm
Working fine! |
@preschian let's resolve conflicts and it's up for merge! :) |
pay 100 usd extra for smashing 5 issues in one PR! 🤩 |
😍 Perfect, I’ve sent the payout 🪅 Let’s grab another issue and get rewarded! |
…-chain-balances-to-stores
@@ -95,15 +85,20 @@ function calculateUsd(amount: string, token = 'KSM') { | |||
|
|||
return calculateExactUsdFromToken( | |||
amountToNumber, | |||
Number(fiatStore.getCurrentTokenValue(token)) | |||
Number( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Number(fiatStore.getCurrentTokenValue(token))
Polkadot: 'dot', | ||
kusama: 'ksm', | ||
basilisk: 'bsx', | ||
statemine: 'stmn', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
missing polkadot
@@ -27,6 +28,26 @@ type ChangeAddressRequest = { | |||
apiUrl?: string | |||
} | |||
|
|||
type ChainType = 'kusama' | 'basilisk' | 'statemine' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
polkadot
selected: boolean | ||
address: string | ||
} | ||
type ChainToken = Partial<Record<'ksm' | 'bsx', ChainDetail>> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
'dot'
multiBalances: DEFAULT_MULTI_BALANCE_STATE, | ||
multiBalanceAssets: [ | ||
{ chain: 'kusama' }, | ||
{ chain: 'statemine' }, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
{ chain: 'polkadot' },
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
cc @preschian
Thank you for your contribution to the KodaDot - One Stop Shop for Polkadot NFTs.
👇 __ Let's make a quick check before the contribution.
PR Type
Context
Had issue bounty label?
Copilot Summary
🤖 Generated by Copilot at c4402e4
Refactored the balance component and the identity store to handle multiple balances for different chains and tokens. Used a new ref and a getter to access and display the balance data in a consistent and reactive way. Improved the component performance by removing unnecessary computations.
🤖 Generated by Copilot at c4402e4