Skip to content

feat(escrow): implement dispute resolution split math, invariants, and terminal state guarantees - #242

Closed
anoncon wants to merge 1 commit into
StayLitCodes:mainfrom
anoncon:feature/dispute-resolution-split-math-invariants
Closed

feat(escrow): implement dispute resolution split math, invariants, and terminal state guarantees#242
anoncon wants to merge 1 commit into
StayLitCodes:mainfrom
anoncon:feature/dispute-resolution-split-math-invariants

Conversation

@anoncon

@anoncon anoncon commented Apr 27, 2026

Copy link
Copy Markdown
  • Add BPS-based split support in resolve_dispute function (split_recipient_bps parameter)
  • Add new error type InvalidSplitBps for invalid split parameters
  • Validate that resolved distribution never exceeds remaining escrow balance
  • Block release_milestone, confirm_delivery, cancel_escrow, and refund_expired after Resolved status
  • Add comprehensive tests for depositor wins, recipient wins, split resolution, and invalid parameters

closes #214

…d terminal state guarantees

- Add BPS-based split support in resolve_dispute function (split_recipient_bps parameter)
- Add new error type InvalidSplitBps for invalid split parameters
- Validate that resolved distribution never exceeds remaining escrow balance
- Block release_milestone, confirm_delivery, cancel_escrow, and refund_expired after Resolved status
- Add comprehensive tests for depositor wins, recipient wins, split resolution, and invalid parameters
@drips-wave

drips-wave Bot commented Apr 27, 2026

Copy link
Copy Markdown

@anoncon 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

@Cedarich

Copy link
Copy Markdown
Contributor

Please fix workflow

@KuchiMercy KuchiMercy closed this Jun 24, 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.

[CONTRACT] Dispute resolution: split math, invariants, and terminal-state guarantees

4 participants