snapshot-labs / sx-monorepo

Snapshot X monorepo
https://docs.snapshotx.xyz
MIT License
11 stars 10 forks source link

style(votes): change decimal limit on large numbers #405

Closed bonustrack closed 2 weeks ago

bonustrack commented 3 weeks ago

In the votes page on this proposal for example: https://snapshot.box/#/s:aave.eth/proposal/0x364de11d3a298f2c76721a8926cb32823cc29d0a95eadecbc0a98c628a38194b/votes the voting power appear with 3 number after the decimals, this is confusing as it take more chars than if it was written without the abbreviation format. We should instead always have a maximum of 1 decimals on when number is higher than 1k.

Instead of 172.124k AAVE we should show 172.1k AAVE Intead of 21.593k AAVE show 21.5k AAVE

image