From f375c831267f58ba37f2028ab086f41ee3e54e5d Mon Sep 17 00:00:00 2001 From: Erheng Lu Date: Mon, 22 Jun 2020 14:53:59 +0800 Subject: [PATCH] fix handle mini list --- plugins/dex/list/handler_mini.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/dex/list/handler_mini.go b/plugins/dex/list/handler_mini.go index 317cf6063..6559a3ca6 100644 --- a/plugins/dex/list/handler_mini.go +++ b/plugins/dex/list/handler_mini.go @@ -28,7 +28,7 @@ func handleListMini(ctx sdk.Context, dexKeeper *order.DexKeeper, tokenMapper tok if !baseToken.IsOwner(msg.From) && !quoteToken.IsOwner(msg.From) { return sdk.ErrUnauthorized("only the owner of the base asset or quote asset can list the trading pair").Result() } - + dexKeeper.CleanRecentPrice(msg.BaseAssetSymbol, msg.QuoteAssetSymbol) lotSize := dexKeeper.DetermineLotSize(msg.BaseAssetSymbol, msg.QuoteAssetSymbol, msg.InitPrice) pair := types.NewTradingPairWithLotSize(msg.BaseAssetSymbol, msg.QuoteAssetSymbol, msg.InitPrice, lotSize) err = dexKeeper.PairMapper.AddTradingPair(ctx, pair)