mirror of
https://github.com/haveno-dex/haveno.git
synced 2025-07-26 16:35:18 -04:00
security deposit is based on trade amount
This commit is contained in:
parent
7610d65d38
commit
23525d89ee
40 changed files with 215 additions and 158 deletions
|
@ -1057,7 +1057,7 @@ public abstract class DisputeManager<T extends DisputeList<Dispute>> extends Sup
|
|||
|
||||
// The amount we would get if we do a new trade with current price
|
||||
BigInteger potentialAmountAtDisputeOpening = priceAtDisputeOpening.getAmountByVolume(contract.getTradeVolume());
|
||||
BigInteger buyerSecurityDeposit = BigInteger.valueOf(offerPayload.getBuyerSecurityDeposit());
|
||||
BigInteger buyerSecurityDeposit = offerPayload.getMaxBuyerSecurityDeposit();
|
||||
BigInteger minRefundAtMediatedDispute = Restrictions.getMinRefundAtMediatedDispute();
|
||||
// minRefundAtMediatedDispute is always larger as buyerSecurityDeposit at mediated payout, we ignore refund agent case here as there it can be 0.
|
||||
BigInteger maxLossSecDeposit = buyerSecurityDeposit.subtract(minRefundAtMediatedDispute);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue