mento-protocol / governance-ui

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

Add withdraw MENTO functionality #199

Open olenovyk opened 2 weeks ago

olenovyk commented 2 weeks ago

Description Atm it is not possible to withdraw MENTO that is already unlocked from existing lock in the UI (the only option to do that is to call the withdraw function of the smart contract directly). This issue aims to add withdraw functionality to "My voting power" screen. The text of the button should be dynamic and include the amount of MENTO user can withdraw. If user has multiple locks, the same button will repeat multiple times.

If user has 0 MENTO to withdraw don't show the button.

both desktop and mobile designs in Figma are updated to reflect this change.

Acceptance criteria