From c1550df0fa09a15860d2a29af14c93d836e39117 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=9Ccaneryy=E2=80=9D?= Date: Mon, 27 Jul 2026 21:22:45 +0300 Subject: [PATCH] fix(dispute-resolution): return claim_amount to claimant after escrow settlement --- contracts/dispute-resolution/src/lib.rs | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/contracts/dispute-resolution/src/lib.rs b/contracts/dispute-resolution/src/lib.rs index ba19ef3..b28e08b 100644 --- a/contracts/dispute-resolution/src/lib.rs +++ b/contracts/dispute-resolution/src/lib.rs @@ -331,6 +331,15 @@ impl DisputeResolutionContract { } } + if used_escrow && dispute.claim_amount > 0 { + let token_client = token::Client::new(&env, &dispute.token); + token_client.transfer( + &env.current_contract_address(), + &dispute.claimant, + &dispute.claim_amount, + ); + } + if dispute.outcome == DisputeOutcome::NoAction && dispute.claim_amount > 0 { let token_client = token::Client::new(&env, &dispute.token); token_client.transfer(