Skip to content

Commit

Permalink
Fix expected output for param query test
Browse files Browse the repository at this point in the history
  • Loading branch information
dongsam committed Jun 23, 2021
1 parent d5ff9d8 commit 332264f
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions x/liquidity/client/cli/cli_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -480,7 +480,7 @@ func (s *IntegrationTestSuite) TestGetCmdQueryParams() {
{
"json output",
[]string{fmt.Sprintf("--%s=json", tmcli.OutputFlag)},
`{"pool_types":[{"id":1,"name":"DefaultPoolType","min_reserve_coin_num":2,"max_reserve_coin_num":2,"description":""}],"min_init_deposit_amount":"1000000","init_pool_coin_mint_amount":"1000000","max_reserve_coin_amount":"0","pool_creation_fee":[{"denom":"stake","amount":"100000000"}],"swap_fee_rate":"0.003000000000000000","withdraw_fee_rate":"0.003000000000000000","max_order_amount_ratio":"0.100000000000000000","unit_batch_height":1,"circuit_breaker_enabled":false}`,
`{"pool_types":[{"id":1,"name":"StandardLiquidityPool","min_reserve_coin_num":2,"max_reserve_coin_num":2,"description":"Standard liquidity pool with pool price function X/Y, ESPM constraint, and two kinds of reserve coins"}],"min_init_deposit_amount":"1000000","init_pool_coin_mint_amount":"1000000","max_reserve_coin_amount":"0","pool_creation_fee":[{"denom":"stake","amount":"40000000"}],"swap_fee_rate":"0.003000000000000000","withdraw_fee_rate":"0.000000000000000000","max_order_amount_ratio":"0.100000000000000000","unit_batch_height":1,"circuit_breaker_enabled":false}`,
},
{
"text output",
Expand All @@ -491,17 +491,18 @@ max_order_amount_ratio: "0.100000000000000000"
max_reserve_coin_amount: "0"
min_init_deposit_amount: "1000000"
pool_creation_fee:
- amount: "100000000"
- amount: "40000000"
denom: stake
pool_types:
- description: ""
- description: Standard liquidity pool with pool price function X/Y, ESPM constraint,
and two kinds of reserve coins
id: 1
max_reserve_coin_num: 2
min_reserve_coin_num: 2
name: DefaultPoolType
name: StandardLiquidityPool
swap_fee_rate: "0.003000000000000000"
unit_batch_height: 1
withdraw_fee_rate: "0.003000000000000000"`,
withdraw_fee_rate: "0.000000000000000000"`,
},
}

Expand Down

0 comments on commit 332264f

Please sign in to comment.