Skip to content

Commit

Permalink
fix: Add missing param
Browse files Browse the repository at this point in the history
  • Loading branch information
peterbarrow committed Apr 19, 2024
1 parent 32c579d commit 8edb949
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 deletions.
6 changes: 2 additions & 4 deletions perftest/perftest.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
9 changes: 5 additions & 4 deletions perftest/wallet.go
Original file line number Diff line number Diff line change
Expand Up @@ -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",
},
},
},
Expand Down

0 comments on commit 8edb949

Please sign in to comment.