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

Adds functions and tx to reclaim leases #459

Merged
merged 2 commits into from
Oct 22, 2024
Merged

Conversation

joshuahannan
Copy link
Member

When we did the Crescendo upgrade for LockedTokens, we made the staking object fields access(contract) so that they couldn't be accessed with downcasting from a reference, but this blocked a method that the foundation used to recover leases from node operators we were assisting.

This adds a function that can be accessed from the owner of the LockedTokenManager to borrow a reference to the object to be able to do staking operations. Also adds a test for it.

@joshuahannan
Copy link
Member Author

@nvdtf @sisyphusSmiling Can one of you take a look here? We'd like to do this upgrade soon. Thanks!

@joshuahannan joshuahannan merged commit 093dab4 into master Oct 22, 2024
2 checks passed
@joshuahannan joshuahannan deleted the enable-claim-lease branch October 22, 2024 19:55
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