decrease chance of private offer in bootstrap test

This commit is contained in:
woodser 2025-07-08 07:16:00 -04:00 committed by woodser
parent d60638b00f
commit ce82627457

View file

@ -2463,7 +2463,7 @@ test("Can bootstrap a network", async () => {
if (ctxP.offerAmount === undefined) ctxP.offerAmount = getRandomBigIntWithinPercent(HavenoUtils.xmrToAtomicUnits(1), 0.15);
if (isRangeOffer && ctxP.offerMinAmount === undefined) ctxP.offerMinAmount = getRandomBigIntWithinPercent(HavenoUtils.xmrToAtomicUnits(0.3), 0.15);
if (ctxP.reserveExactAmount === undefined) ctxP.reserveExactAmount = getRandomOutcome(3/4);
if (ctxP.buyerAsTakerWithoutDeposit === undefined) ctxP.buyerAsTakerWithoutDeposit = ctxP.direction === OfferDirection.SELL && getRandomOutcome(2/3);
if (ctxP.buyerAsTakerWithoutDeposit === undefined) ctxP.buyerAsTakerWithoutDeposit = ctxP.direction === OfferDirection.SELL && getRandomOutcome(1/3);
if (ctxP.buyerAsTakerWithoutDeposit) {
ctxP.isPrivateOffer = true;
ctxP.extraInfo = "Will get this done fast, no deposit required 😎";