Skip to content

fix: Dispute resolution does not release escrow on creator win #751

Description

@dotunv

Overview

When a dispute is resolved in favor of the campaign creator, the escrowed funds remain locked in the dispute state instead of being released back to the campaign balance.

Motivation

A campaign creator won a dispute but the funds were not returned to their available balance. The escrow contract was not called to release funds after the dispute resolution, leaving the creator unable to access their own raised funds.

Steps to Reproduce

  1. Campaign receives contributions (escrow holds funds)
  2. Contributor opens a dispute
  3. Admin resolves dispute in favor of the creator
  4. Campaign balance does not update — funds remain in escrow lock state

Expected Behavior

  • When dispute is resolved in creator's favor, escrow release transaction should be submitted
  • Campaign balance should reflect the released funds
  • Creator should receive a notification that funds have been released

Acceptance Criteria

  • Dispute resolution handler calls escrow release when creator wins
  • Escrow release transaction is submitted on-chain
  • Campaign balance is updated in the database after release
  • Creator receives a notification about fund release
  • If escrow release fails, the dispute status is rolled back and admin is notified
  • Audit log records the release with dispute ID and transaction hash
  • Tests cover: creator wins release, contributor wins (no release), release failure rollback

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Stellar WaveIssues in the Stellar wave programbackendBackend / API workbugSomething isn't workingcriticalCritical priority - server crash or security risk

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions