Skip to content

[Contract] Implement arbiter voting mechanism for dispute resolution #3

Open

Description

@Gbangbolaoluwagbemiga

Context

The contract stores `arbiters` and `required_confirmations` but arbiter voting is not implemented — admin resolves disputes unilaterally.

What needs to be done

  1. `cast_arbiter_vote(escrow_id, milestone_index, vote: bool, arbiter: Address)` — only authorized arbiters, records vote, emits event
  2. Auto-resolve — `yes_votes >= required_confirmations` → pay freelancer; `no_votes >= required_confirmations` → refund client
  3. Storage — `EscrowVotes { yes: u32, no: u32, voted: Map<Address, bool> }`
  4. Admin retains override for tie-breaking

Acceptance criteria

  • Only authorized arbiters can vote
  • Duplicate votes rejected
  • Auto-resolution at threshold
  • Unit tests cover all cases

Activity

  1. added
    enhancementNew feature or improvement
    contractSoroban / Rust smart contract work
    grant-criticalCompleting this directly unblocks the GrantFox application
    on May 18, 2026
  2. rupesh-kumar-sah commented on Oct 2, 2026

    @rupesh-kumar-sah

    Hi team,

    I would like to take on and implement this issue: [Contract] Implement arbiter voting mechanism for dispute resolution.

    Technical Implementation Roadmap:

    1. Formal Soroban Invariant Design: Audit storage layout (Instance, Persistent, Temporary) with strict TTL management and explicit require_auth guards.
    2. Core Rust WASM Implementation: Implement deterministic state transition handlers eliminating arithmetic overflow risks using checked/saturating math.
    3. Hermetic Testing Suite: Build comprehensive test cases in tests/ asserting authorized vs unauthorized invocations, mock auth environments, and edge value bounds.
    4. Gas & Footprint Optimization: Profile CPU/memory instruction budgets under Soroban host environment to ensure optimal runtime efficiency.

    I have worked extensively on similar architectures and can deliver this cleanly within 24 hours. Please assign to me!

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

    contractSoroban / Rust smart contract workenhancementNew feature or improvementgrant-criticalCompleting this directly unblocks the GrantFox application

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions