frontend-monorepo
frontend-monorepo copied to clipboard
Tweaks to explorer asset view
The Chore
The asset view is a bit screwed up currently ... it is showing account balances for things ike this:
When those things only ever have a balance for a split second at the end of ann epoch when the transfer comes in before it is distributed as rewards.
We think we should change this ...
Option 1
- [ ] Only display the following accounts for each asset
- [x] ACCOUNT_TYPE_NETWORK_TREASURY
- [ ] ACCOUNT_TYPE_INSURANCE (this is per market so you'll have to pull in the market name too from the markets API)
- [x] ACCOUNT_TYPE_GLOBAL_INSURANCE
Option 2
- [ ] Just display any account that has a "non-crumb" balance
- [ ] Assess the crumbiness of a balance by showing any account with more than 10
quantum
of that asset in it
Additional details / background info
- [x] Obviously we'll always need to adjust all balances for asset decimals
- [x] Do this in the component as it applies everywhere