mento-protocol / governance-ui

An open source interface for the Mento protocol governance
https://governance.mento.org
0 stars 0 forks source link

feat: fetch & display governance params from mento sdk #46

Closed denviljclarke closed 7 months ago

denviljclarke commented 7 months ago

Description

This PR integrate the Mento SDK into the app, using the new governance functions to fetch and display chain specific governance parameters on the front end.

One thing to note is that we need an overlay for when a wrong chain is connected, but I'm not sure how this should look, so I'll chat with @olenovyk about this, I think it's good to begin review as it is

Other changes

Updated the address shortening function to accept intended length as a param

Tested

PR build and lint successful

Related issues

Backwards compatibility

n/a

Documentation

n/a

vercel[bot] commented 7 months ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
governance-ui ✅ Ready (Inspect) Visit Preview 💬 Add feedback Feb 2, 2024 6:01am
denviljclarke commented 7 months ago

Final update on this @bayological @nvtaveras.

  1. As @olenovyk mentioned here, we'll display Celo information instead of an overlay
  2. I've also confirmed with Baran that the formatting for the quorum need and proposal threshold values are just 10*18 which I've done but I suspect we'll need to review it in the future once we have realistic number of tokens locked & veToken supply.