Skip to content

feat: Add Configurable Early Unstaking With Penalty Rewards - #822

Closed
onajidavid87-web wants to merge 6 commits into
accesslayerorg:mainfrom
onajidavid87-web:Add-an-early-unstake-function
Closed

feat: Add Configurable Early Unstaking With Penalty Rewards#822
onajidavid87-web wants to merge 6 commits into
accesslayerorg:mainfrom
onajidavid87-web:Add-an-early-unstake-function

Conversation

@onajidavid87-web

@onajidavid87-web onajidavid87-web commented Aug 28, 2026

Copy link
Copy Markdown
Contributor

Adds an early unstake feature that allows stakers to exit before the lock period expires by forfeiting a configurable percentage of their staked keys.

Closes #801

Summary

Adds an early unstake feature that allows stakers to exit before the lock period expires by forfeiting a configurable percentage of their staked keys.

Closes #801

Testing

  • cargo fmt --all -- --check
  • cargo clippy --workspace --all-targets -- -D warnings
  • cargo test --workspace

Checklist

  • Linked issue or backlog item
  • Added or updated creator-keys unit/integration tests for every changed contract behavior, including failure paths for new or reachable ContractError variants
  • Ran cargo fmt --all -- --check, cargo clippy --workspace --all-targets -- -D warnings, and cargo test --workspace, or explained exactly why a command was not run
  • Reviewed persistent storage changes against docs/storage-key-invariants.md; any storage layout change includes a migration/backward-compatibility note
  • Confirmed event names, topic order, payload field order, and field meanings remain compatible with docs/contract-event-conventions.md, or documented the breaking change and versioning plan
  • Updated docs for any changed public contract interface, read-only method, event schema, storage behavior, fee logic, or deployment workflow
  • Scope stays limited to one contract concern and does not include unrelated formatting, lockfile, generated artifact, or dependency changes

Adds an early unstake feature that allows stakers to exit before the lock period expires by forfeiting a configurable percentage of their staked keys.

Closes #801
@drips-wave

drips-wave Bot commented Aug 28, 2026

Copy link
Copy Markdown

@onajidavid87-web 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

@onajidavid87-web onajidavid87-web closed this by deleting the head repository Aug 30, 2026
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.

Add an early unstake function allowing stakers to exit before their lock expires by forfeiting a penalty

1 participant