frontend-monorepo icon indicating copy to clipboard operation
frontend-monorepo copied to clipboard

Tweaks to explorer asset view

Open JonRay15 opened this issue 1 year ago • 1 comments

The Chore

The asset view is a bit screwed up currently ... it is showing account balances for things ike this:

image

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

JonRay15 avatar Feb 14 '24 18:02 JonRay15

Screenshot 2024-04-22 at 15 04 01 Screenshot 2024-04-22 at 15 00 43

edd avatar Apr 22 '24 14:04 edd