mento-protocol / governance-ui

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

Users should only be able to create a lock if they do not have an existing one #223

Closed bayological closed 1 week ago

bayological commented 3 weeks ago

Description Currently, users with locked tokens can use the MentoLock component to create another lock, which we don't want. While we can't prevent this on a contract level, we can do it in the UI. To prevent this, we made a hotfix to disable locking in the UI entirely.

This issue is to implement logic to hide the MentoLock component when:

Hiding the component is better, as showing users the functionality they cannot use is not a good experience. However, if you see value in adding designs or other messaging, let's discuss in the comments for this issue

Acceptance Criteria