Skip to content

Conversation

@melanciani
Copy link
Contributor

@melanciani melanciani commented Dec 30, 2025

NOTE: as opposed to the audit report, I introduced a revert in unstake instead of an early return like in stake because it is unclear what releaseTime we should consider then. We'll first need to confirm this with auditors

  • Add early return for zero-amount stake in ProtocolStaking
  • Add revert with ZeroUnstakeAmount error for zero-amount unstake in ProtocolStaking
  • Add revert with NoAssetsToWithdraw error in OperatorStaking.requestRedeem when no assets to withdraw
  • Add tests for new behaviors

refs https://github.com/zama-ai/fhevm-internal/issues/826

@melanciani melanciani requested a review from a team as a code owner December 30, 2025 15:20
@cla-bot cla-bot bot added the cla-signed label Dec 30, 2025
@mergify
Copy link

mergify bot commented Dec 30, 2025

🧪 CI Insights

Here's what we observed from your CI run for b8d5b24.

🟢 All jobs passed!

But CI Insights is watching 👀

@melanciani melanciani requested review from arr00 and jatZama December 30, 2025 16:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants