diff --git a/x/exchange/keeper/invariants.go b/x/exchange/keeper/invariants.go index 61611af6..0b126e57 100644 --- a/x/exchange/keeper/invariants.go +++ b/x/exchange/keeper/invariants.go @@ -89,11 +89,11 @@ func OrderBookInvariant(k Keeper) sdk.Invariant { msg := "" cnt := 0 k.IterateAllMarkets(ctx, func(market types.Market) (stop bool) { - bestBuyPrice, found := k.getBestPrice(ctx, market, true) + bestBuyPrice, found := k.GetBestOrderPrice(ctx, market.Id, true) if !found { // Skip return false } - bestSellPrice, found := k.getBestPrice(ctx, market, false) + bestSellPrice, found := k.GetBestOrderPrice(ctx, market.Id, false) if !found { // Skip return false }