mirror of
https://github.com/bisq-network/bisq.git
synced 2025-02-24 07:07:43 +01:00
Set amounts before setting state, as the state triggers the check where the amount is needed
This commit is contained in:
parent
2d99ae7d09
commit
7ecae0e5be
1 changed files with 4 additions and 0 deletions
|
@ -202,6 +202,10 @@ public final class MediationManager extends DisputeManager<MediationDisputeList>
|
|||
Trade trade = tradeOptional.get();
|
||||
if (trade.getDisputeState() == Trade.DisputeState.MEDIATION_REQUESTED ||
|
||||
trade.getDisputeState() == Trade.DisputeState.MEDIATION_STARTED_BY_PEER) {
|
||||
trade.getProcessModel().setBuyerPayoutAmountFromMediation(disputeResult.getBuyerPayoutAmount().value);
|
||||
trade.getProcessModel().setSellerPayoutAmountFromMediation(disputeResult.getSellerPayoutAmount().value);
|
||||
tradeManager.requestPersistence();
|
||||
|
||||
trade.setDisputeState(Trade.DisputeState.MEDIATION_CLOSED);
|
||||
}
|
||||
} else {
|
||||
|
|
Loading…
Add table
Reference in a new issue