diff --git a/perftest/perftest.go b/perftest/perftest.go index 7300801..2da8472 100644 --- a/perftest/perftest.go +++ b/perftest/perftest.go @@ -526,13 +526,11 @@ func (p *perfLoadTesting) sendSLAOrders(marketID string, deleteFirst bool, opts // Spot markets scale order size depending on the side of the book the orders are placed. if opts.SpotMarkets { commitmentAmount = uint64(10000000.0 * p.stakeScale) - orderSizeBuy = (commitmentAmount / uint64(opts.StartingMidPrice) * 2) - orderSizeSell = (commitmentAmount / uint64(opts.StartingMidPrice) * 2) / 10 } else { commitmentAmount = uint64(1000000000.0 * p.stakeScale) - orderSizeBuy = (commitmentAmount / uint64(opts.StartingMidPrice) * 2) - orderSizeSell = (commitmentAmount / uint64(opts.StartingMidPrice) * 2) } + orderSizeBuy = (commitmentAmount / uint64(opts.StartingMidPrice) * 2) + orderSizeSell = (commitmentAmount / uint64(opts.StartingMidPrice) * 2) / 10 for p := 0; p < opts.SLAPriceLevels; p++ { // Send in an order for both buy and sell side to cover the commitment diff --git a/perftest/wallet.go b/perftest/wallet.go index a519165..c932e32 100644 --- a/perftest/wallet.go +++ b/perftest/wallet.go @@ -222,10 +222,11 @@ func (w walletWrapper) NewMarket(offset int, user UserDetails) error { }, }, "liquidationStrategy": map[string]interface{}{ - "disposalTimeStep": "10", - "disposalFraction": "0.1", - "fullDisposalSize": "20", - "maxFractionConsumed": "0.01", + "disposalTimeStep": "10", + "disposalFraction": "0.1", + "disposalSlippageRange": "1", + "fullDisposalSize": "20", + "maxFractionConsumed": "0.01", }, }, },