Skip to content

Commit

Permalink
Merge pull request #303 from vegaprotocol/302-update-market-field-and…
Browse files Browse the repository at this point in the history
…-network-param

Network param rename and market proposal fix
  • Loading branch information
peterbarrow authored Sep 5, 2023
2 parents 618cbab + 29f5081 commit 7166988
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 6 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@
- [279](https://github.com/vegaprotocol/vegatools/issues/279) - Update to work with new datanode API for querying live orders / liquidity provisions
- [286](https://github.com/vegaprotocol/vegatools/pull/286) - Add support for pagination in the accounts and delegations queries to data-node
- [286](https://github.com/vegaprotocol/vegatools/pull/298) - Add support for pagination in the parties query to data-node
- [302](https://github.com/vegaprotocol/vegatools/issues/302) - Removed old market proposal field and renamed network param

## 0.41.1
*2021-08-31*
Expand Down
2 changes: 1 addition & 1 deletion perftest/perftest.go
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ func (p *perfLoadTesting) depositTokens(assets map[string]string, opts Opts) err

func (p *perfLoadTesting) checkNetworkLimits(opts Opts) error {
// Get the stake to liquidity scaling value
networkParam, err := p.dataNode.getNetworkParam("market.liquidityV2.stakeToCcyVolume")
networkParam, err := p.dataNode.getNetworkParam("market.liquidity.stakeToCcyVolume")
if err != nil {
fmt.Println("Failed to get stakeToCcyVolume value")
return err
Expand Down
13 changes: 8 additions & 5 deletions perftest/wallet.go
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,10 @@ func (w walletWrapper) sendRequest(request []byte, token string) ([]byte, error)
defer resp.Body.Close()

if resp.StatusCode != 200 {
reply, err := io.ReadAll(resp.Body)
if err == nil {
fmt.Println(string(reply))
}
return nil, fmt.Errorf(resp.Status)
}

Expand Down Expand Up @@ -174,11 +178,10 @@ func (w walletWrapper) NewMarket(offset int, user UserDetails) error {
"probabilityOfTrading": "0.1",
},
"liquiditySlaParameters": map[string]interface{}{
"priceRange": "1",
"commitmentMinTimeFraction": "1.0",
"providersFeeCalculationTimeStep": 60000000000,
"performanceHysteresisEpochs": 60,
"slaCompetitionFactor": "1.0",
"priceRange": "1",
"commitmentMinTimeFraction": "1.0",
"performanceHysteresisEpochs": 60,
"slaCompetitionFactor": "1.0",
},
},
},
Expand Down

0 comments on commit 7166988

Please sign in to comment.