Skip to content

Add permissionless rebate stake return#997

Draft
mswilkison wants to merge 1 commit into
codex/protocol-peg-keeperfrom
codex/return-stake-after-deprecation
Draft

Add permissionless rebate stake return#997
mswilkison wants to merge 1 commit into
codex/protocol-peg-keeperfrom
codex/return-stake-after-deprecation

Conversation

@mswilkison

Copy link
Copy Markdown
Contributor

Summary

  • add permissionless RebateStaking.returnStake(staker) after deprecation
  • reuse the existing full-stake withdrawal cleanup path
  • keep third-party returns constrained to staker -> staker so callers cannot redirect funds
  • cover successful third-party return and unavailable return cases

Stack

Tests

  • npm run test -- ./test/bridge/RebateStaking.test.ts --grep deprecate
  • npm exec eslint -- test/bridge/RebateStaking.test.ts

@coderabbitai

coderabbitai Bot commented Jun 30, 2026

Copy link
Copy Markdown

Important

Review skipped

Draft detected.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro Plus

Run ID: 85b60382-00cf-4e4f-843a-dd058bd8f67a

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch codex/return-stake-after-deprecation

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

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.

1 participant