mirror of
https://github.com/haveno-dex/haveno-ts.git
synced 2025-04-19 15:25:58 -04:00
bootstrap network takes offer 3 out of 4 times
This commit is contained in:
parent
0cd3c54e37
commit
1644fd16df
@ -2445,7 +2445,7 @@ test("Can bootstrap a network", async () => {
|
||||
if (await isFixedPrice(ctxP)) ctxP.price = 142.23;
|
||||
|
||||
// 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.buyerSendsPayment === undefined) ctxP.buyerSendsPayment = getRandomOutcome(1/2);
|
||||
if (ctxP.sellerReceivesPayment === undefined) ctxP.sellerReceivesPayment = getRandomOutcome(1/2);
|
||||
|
Loading…
x
Reference in New Issue
Block a user