mirror of
https://github.com/haveno-dex/haveno-ts.git
synced 2025-07-23 15:00:43 -04:00
bootstrap network takes offer 3 out of 4 times
This commit is contained in:
parent
10862656e3
commit
89168bf052
1 changed files with 1 additions and 1 deletions
|
@ -2445,7 +2445,7 @@ test("Can bootstrap a network", async () => {
|
||||||
if (await isFixedPrice(ctxP)) ctxP.price = 142.23;
|
if (await isFixedPrice(ctxP)) ctxP.price = 142.23;
|
||||||
|
|
||||||
// randomize trade config
|
// randomize trade config
|
||||||
if (ctxP.takeOffer === undefined) ctxP.takeOffer = getRandomOutcome(4/5);
|
if (ctxP.takeOffer === undefined) ctxP.takeOffer = getRandomOutcome(3/4);
|
||||||
if (ctxP.tradeAmount === undefined) ctxP.tradeAmount = isRangeOffer ? getRandomBigIntWithinRange(ctxP.offerMinAmount!, ctxP.offerAmount) : ctxP.offerAmount;
|
if (ctxP.tradeAmount === undefined) ctxP.tradeAmount = isRangeOffer ? getRandomBigIntWithinRange(ctxP.offerMinAmount!, ctxP.offerAmount) : ctxP.offerAmount;
|
||||||
if (ctxP.buyerSendsPayment === undefined) ctxP.buyerSendsPayment = getRandomOutcome(1/2);
|
if (ctxP.buyerSendsPayment === undefined) ctxP.buyerSendsPayment = getRandomOutcome(1/2);
|
||||||
if (ctxP.sellerReceivesPayment === undefined) ctxP.sellerReceivesPayment = getRandomOutcome(1/2);
|
if (ctxP.sellerReceivesPayment === undefined) ctxP.sellerReceivesPayment = getRandomOutcome(1/2);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue