Skip to content

Feature/issue 576 implement emergency withdrawal in s#680

Open
quickweb-stack wants to merge 2 commits into
ceejaylaboratory:mainfrom
quickweb-stack:feature/issue-576-implement-emergency-withdrawal-in-s
Open

Feature/issue 576 implement emergency withdrawal in s#680
quickweb-stack wants to merge 2 commits into
ceejaylaboratory:mainfrom
quickweb-stack:feature/issue-576-implement-emergency-withdrawal-in-s

Conversation

@quickweb-stack

Copy link
Copy Markdown

Close: #576

  • Staking Contract (contracts/staking/src/lib.rs) : Already had emergency withdraw functionality!
  • Liquid Staking Contract (contracts/liquid_staking/src/lib.rs) :
    1. Added Paused to DataKey enum
    2. Initialized Paused to false in initialize function
    3. Added pause() , unpause() , and is_paused() functions (admin-only)
    4. Added _check_not_paused() helper function and updated deposit_rewards() , stake() , unstake() , and claim() to check if paused
    5. Added emergency_withdraw() function that lets users withdraw their stake when paused, without reward updates
    6. Added comprehensive tests for the new functionality!
      All changes are made! The emergency withdrawal feature is now available for both staking and liquid staking contracts!

@quickweb-stack

Copy link
Copy Markdown
Author

Done, Close: #680

@drips-wave

drips-wave Bot commented Jun 27, 2026

Copy link
Copy Markdown

@quickweb-stack Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

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.

Implement Emergency Withdrawal in Staking Contract

1 participant