mirror of
https://github.com/haveno-dex/haveno-ts.git
synced 2025-01-23 21:21:20 -05:00
award dispute payout based on actual security deposits
stopOnFailure=true by default
This commit is contained in:
parent
fb20c4b736
commit
6f179b3f79
@ -175,7 +175,7 @@ const TestConfig = {
|
|||||||
walletSyncPeriodMs: 7000, // TODO (woodser): auto adjust higher if using remote connection
|
walletSyncPeriodMs: 7000, // TODO (woodser): auto adjust higher if using remote connection
|
||||||
maxTimePeerNoticeMs: 5000,
|
maxTimePeerNoticeMs: 5000,
|
||||||
maxConcurrency: 14,
|
maxConcurrency: 14,
|
||||||
stopOnFailure: false
|
stopOnFailure: true
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -1374,7 +1374,7 @@ test("Can resolve disputes (CI)", async () => {
|
|||||||
disputeWinner: DisputeResult.Winner.BUYER,
|
disputeWinner: DisputeResult.Winner.BUYER,
|
||||||
disputeReason: DisputeResult.Reason.SELLER_NOT_RESPONDING,
|
disputeReason: DisputeResult.Reason.SELLER_NOT_RESPONDING,
|
||||||
disputeSummary: "Split trade amount",
|
disputeSummary: "Split trade amount",
|
||||||
disputeWinnerAmount: BigInt(trade1.getAmountAsLong()) / BigInt(2) + BigInt(trade1.getOffer()!.getBuyerSecurityDeposit())
|
disputeWinnerAmount: HavenoUtils.centinerosToAtomicUnits(trade1.getAmountAsLong()) / BigInt(2) + HavenoUtils.centinerosToAtomicUnits(trade1.getBuyerSecurityDeposit())
|
||||||
});
|
});
|
||||||
Object.assign(ctxs[2], {
|
Object.assign(ctxs[2], {
|
||||||
resolveDispute: false,
|
resolveDispute: false,
|
||||||
@ -1382,7 +1382,7 @@ test("Can resolve disputes (CI)", async () => {
|
|||||||
disputeWinner: DisputeResult.Winner.SELLER,
|
disputeWinner: DisputeResult.Winner.SELLER,
|
||||||
disputeReason: DisputeResult.Reason.TRADE_ALREADY_SETTLED,
|
disputeReason: DisputeResult.Reason.TRADE_ALREADY_SETTLED,
|
||||||
disputeSummary: "Seller gets everything",
|
disputeSummary: "Seller gets everything",
|
||||||
disputeWinnerAmount: BigInt(trade2.getAmountAsLong()) + BigInt(trade2.getOffer()!.getBuyerSecurityDeposit() + trade2.getOffer()!.getSellerSecurityDeposit())
|
disputeWinnerAmount: HavenoUtils.centinerosToAtomicUnits(trade2.getAmountAsLong() + trade2.getBuyerSecurityDeposit() + trade2.getSellerSecurityDeposit())
|
||||||
});
|
});
|
||||||
Object.assign(ctxs[3], {
|
Object.assign(ctxs[3], {
|
||||||
resolveDispute: false,
|
resolveDispute: false,
|
||||||
|
Loading…
Reference in New Issue
Block a user