snapshot-labs / sx-monorepo

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

feat: add special _vp formatter #414

Closed Sekhmet closed 2 weeks ago

Sekhmet commented 2 weeks ago

Summary

This one is used for VP specifically using predefined rules of formatting. It will use maximium of 3 decimal digits (for numbers < 1000) or 1 otherwise.

Closes: https://github.com/snapshot-labs/sx-monorepo/issues/405

How to test

  1. Go to http://localhost:8080/#/s:aave.eth/proposal/0x364de11d3a298f2c76721a8926cb32823cc29d0a95eadecbc0a98c628a38194b/votes
  2. Big VP values have maximum of 1 decimal digit.