-
Notifications
You must be signed in to change notification settings - Fork 607
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
Add param to allow non lock owner to force unlock #4252
Conversation
What is the precise permission we need to expose, this feels too permissive to expose |
@ValarDragon the contract needs to be able to: unlock -> exit pool -> swap -> join pool -> lock While retaining deposit period & needs to get everything unlocked locked back in some form. The problem with existing approach is that if we authz ForceUnlock, |
feels like authz is a more preferrable way than using this method to me as well, @iboss-ptk do you need help on further investigation if this is possible? |
@mattverse That would be helpful! I'm a bit lost in getting |
This pull request has been automatically marked as stale because it has not had any recent activity. It will be closed if no further activity occurs. Thank you! |
@mattverse I don't see how authz would help here. Cause normal users don't have ability to force unlock, so they can't authz the ability to do that either |
TODO: Allow breaking of superfluid as well |
This pull request has been automatically marked as stale because it has not had any recent activity. It will be closed if no further activity occurs. Thank you! |
This pull request has been automatically marked as stale because it has not had any recent activity. It will be closed if no further activity occurs. Thank you! |
@iboss-ptk are we still planning to pursue this? If not, let's close. |
This pull request has been automatically marked as stale because it has not had any recent activity. It will be closed if no further activity occurs. Thank you! |
What is the purpose of the change
To allow an account to forcibly unlock any lock, including ones they do not own, if their address is on the whitelist. This functionality is needed for transmigrator
Brief Changelog
NonOwnerForceUnlockAddresses
to lockup paramsForceUnlock
if msg sender is inNonOwnerForceUnlockAddresses
Testing and Verifying
This change added tests and can be verified as follows:
Documentation and Release Note
Unreleased
section inCHANGELOG.md
? (no)