Skip to content

Dispute resolve function#87

Merged
ahmadogo merged 2 commits intoMentoNest:mainfrom
ayshadogo:disputRes
Mar 25, 2026
Merged

Dispute resolve function#87
ahmadogo merged 2 commits intoMentoNest:mainfrom
ayshadogo:disputRes

Conversation

@ayshadogo
Copy link
Copy Markdown
Contributor

The function:
Auth: Requires admin/arbiter authorization via require_auth()
Validation:
Checks session exists
Validates session status is Disputed
Validates to_payer + to_payee == available_amount
Validates non-negative amounts
Transfers: Performs budget-aware token transfers to payer and payee
State Update: Sets status to Resolved, stores resolved_at, resolver, and note
Event: Emits DisputeResolved { session_id, to_payer, to_payee, fee_total }

closes #79

@drips-wave
Copy link
Copy Markdown

drips-wave bot commented Mar 25, 2026

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

@ahmadogo ahmadogo merged commit d90ee8f into MentoNest:main Mar 25, 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.

Dispute resolve function

2 participants