Skip to content

Commit ad76839

Browse files
committed
use further trigger price in bootstrap test to avoid triggering
1 parent c9dc9eb commit ad76839

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/HavenoClient.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2652,7 +2652,7 @@ test("Can bootstrap a network", async () => {
26522652
if (ctxP.price === undefined) {
26532653
if (ctxP.marketPriceMarginPct === undefined) ctxP.marketPriceMarginPct = parseFloat(getRandomFloat(0, .3).toFixed(10));
26542654
const currentPrice = await ctxP.maker.havenod.getPrice(ctxP.assetCode!)
2655-
if (getRandomOutcome(1/2)) ctxP.triggerPrice = ctxP.direction === OfferDirection.BUY ? currentPrice! * (1 + getRandomFloat(0, .1)) : currentPrice! * (1 - getRandomFloat(0, .1));
2655+
if (getRandomOutcome(1/2)) ctxP.triggerPrice = ctxP.direction === OfferDirection.BUY ? currentPrice! * (1 + getRandomFloat(.25, .5)) : currentPrice! * (1 - getRandomFloat(.25, .5));
26562656
}
26572657

26582658
// randomize trade config

0 commit comments

Comments
 (0)