mento-protocol / governance-ui

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

State refactor: Removing `zustand` & refactoring to `wagmi/tanstack` hooks #76

Closed RyRy79261 closed 5 months ago

RyRy79261 commented 6 months ago

Overview

The acceptance criteria of this ticket is to align with the results of #75

As a first step in removing complexity, zustand et al. will be removed from the codebase. Guidelines proposed in #75 should be referenced and any deviation documented.

All state initialized in the zustand state will need an appropriate, wrapped hook, for the query. A good example of this is fetching token balances, a hook can be created which accepts refresh parameters for MENTO & veMENTO.

Acceptance criteria