Skip to content

fix(vesting): isolate claim and clawback race handling - #616

Open
tokenjunkielabs wants to merge 2 commits into
Protocol-Guild:mainfrom
tokenjunkielabs:zz-sol/payd-513-clean
Open

tokenjunkielabs wants to merge 2 commits into
Protocol-Guild:mainfrom
tokenjunkielabs:zz-sol/payd-513-clean

Conversation

@tokenjunkielabs

Copy link
Copy Markdown

Fixes #513

Makes the vesting escrow claim/clawback race outcomes explicit:

  • 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 preserves the already-vested remainder for the beneficiary;
  • includes the three requested race-ordering regression cases.

This clean carrier supersedes closed PR #613, whose shared fork branch had unrelated scheduler changes.

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