diff --git a/x/amm/keeper/grpc_query_test.go b/x/amm/keeper/grpc_query_test.go index 88f4f318..386f95fc 100644 --- a/x/amm/keeper/grpc_query_test.go +++ b/x/amm/keeper/grpc_query_test.go @@ -147,6 +147,9 @@ func (s *KeeperTestSuite) TestQueryPool() { s.Require().EqualValues(1, resp.Pool.Id) s.Require().Equal("71751002uatom", resp.Pool.Balance0.String()) s.Require().Equal("1390716312uusd", resp.Pool.Balance1.String()) + s.Require().Equal("cosmos1srphgsfqllr85ndknjme24txux8m0sz0hhpnnksn2339d3a788rsawjx77", resp.Pool.RewardsPool) + s.AssertEqual(utils.ParseDec("1"), resp.Pool.MinOrderQuantity) + s.AssertEqual(sdk.NewInt(12470981864), resp.Pool.TotalLiquidity) }, }, { diff --git a/x/amm/types/query.go b/x/amm/types/query.go index 31806ff0..3c677305 100644 --- a/x/amm/types/query.go +++ b/x/amm/types/query.go @@ -12,8 +12,10 @@ func NewPoolResponse(pool Pool, poolState PoolState, balances sdk.Coins) PoolRes MarketId: pool.MarketId, Balance0: sdk.NewCoin(pool.Denom0, balances.AmountOf(pool.Denom0)), Balance1: sdk.NewCoin(pool.Denom1, balances.AmountOf(pool.Denom1)), - TickSpacing: pool.TickSpacing, ReserveAddress: pool.ReserveAddress, + RewardsPool: pool.RewardsPool, + TickSpacing: pool.TickSpacing, + MinOrderQuantity: pool.MinOrderQuantity, CurrentTick: poolState.CurrentTick, CurrentPrice: poolState.CurrentPrice, CurrentLiquidity: poolState.CurrentLiquidity,