bootstrap network takes offer 3 out of 4 times

This commit is contained in:
woodser 2025-04-08 18:09:49 -04:00
parent 0cd3c54e37
commit 1644fd16df
No known key found for this signature in database
GPG Key ID: 55A10DD48ADEE5EF

View File

@ -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);