Skip to content

fix(vesting): handle claim and clawback race states - #613

Closed
tokenjunkielabs wants to merge 6 commits into
Protocol-Guild:mainfrom
tokenjunkielabs:main
Closed

tokenjunkielabs wants to merge 6 commits into
Protocol-Guild:mainfrom
tokenjunkielabs:main

Conversation

@tokenjunkielabs

Copy link
Copy Markdown

Fixes #513

Makes the vesting escrow race outcomes explicit instead of allowing opaque or silent terminal behavior:

  • claim after a full clawback returns ClaimUnavailableAfterClawback;
  • clawback after a full claim returns ClawbackUnavailableAfterFullClaim without mutating the settled grant;
  • a partial claim followed by clawback still leaves the already-vested remainder claimable;
  • adds focused regression cases for all three ordering scenarios.

No test command was run in this submission session.

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.

Handle claim during clawback race condition in vesting_escrow

1 participant