Skip to content

Commit

Permalink
chore: minor typo fix
Browse files Browse the repository at this point in the history
  • Loading branch information
kingcre committed Aug 10, 2023
1 parent f300696 commit 24de37d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 2 additions & 2 deletions x/exchange/keeper/order.go
Original file line number Diff line number Diff line change
Expand Up @@ -177,8 +177,8 @@ func (k Keeper) placeLimitOrder(
k.SetOrdersByOrdererIndex(ctx, order)

if typ == types.OrderTypeMM {
// NOTE: NumMMOrders might have been changed in executeOrder the orderer
// completed own orders.
// NOTE: NumMMOrders might have been changed in executeOrder if the
// orderer completed own orders.
numMMOrders, _ = k.GetNumMMOrders(ctx, ordererAddr, marketId)
k.SetNumMMOrders(ctx, ordererAddr, marketId, numMMOrders+1)
}
Expand Down
2 changes: 0 additions & 2 deletions x/exchange/keeper/order_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -307,8 +307,6 @@ func (s *KeeperTestSuite) TestDecQuantity() {
}

func (s *KeeperTestSuite) TestNumMMOrdersEdgecase() {
s.keeper.SetMaxNumMMOrders(s.Ctx, 3) // Override the default

market := s.CreateMarket("ucre", "uusd")

ordererAddr := s.FundedAccount(1, enoughCoins)
Expand Down

0 comments on commit 24de37d

Please sign in to comment.