Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feat: Extend Lock #215

Merged
merged 13 commits into from
Aug 12, 2024
Merged

Feat: Extend Lock #215

merged 13 commits into from
Aug 12, 2024

Conversation

denviljclarke
Copy link
Contributor

@denviljclarke denviljclarke commented Aug 6, 2024

Description

This PR adds functionality to allow users to extend their mentor lock. It also changes how locks are thought of and displayed in the UI. We no longer display a list of all the lock actions taken by the user; we now only have three things, along with buttons to either withdraw unlocked mentors or extend their current lock expiration date. One thing to note is this function can also add amounts to a lock; we don't support that with this implementation; this is strictly extending an existing lock with/ the same locked amount.

Multiple Locks
Our plan for the UI is not to support creating multiple locks. However, a user can technically create multiple locks by calling the contract directly. We need to decide how we handle users who have them because the current implementation of relocking cannot support them. This implementation disables relocking for such users.

For reviewers -

There are serval accounts in the testathon deployment doc which have extendable locks. One of them to go through the extend flow.

Other changes

Changed all 'my voting power' references to just 'voting power'.

Disable the locking component for users who already have locks. In it's previous state this component allows users to create multiple locks, which we don't want.

Adding

Tested

Used the UI on both mobile & extended locks.

Related issues

Copy link

vercel bot commented Aug 6, 2024

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 Aug 12, 2024 2:23pm

…disable relocking for accounts w/ multiple locks
Copy link
Contributor

@RyRy79261 RyRy79261 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Member

@bayological bayological left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@bayological bayological merged commit 9dd3fc9 into develop Aug 12, 2024
3 checks passed
@bayological bayological deleted the feat/extend-locks branch August 12, 2024 17:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants