From 46d1207adbbebf4753bbdd53fb18b1ab1f03a5b4 Mon Sep 17 00:00:00 2001 From: c9s Date: Tue, 6 Dec 2022 16:37:08 +0800 Subject: [PATCH] grid2: fix TestStrategy_checkMinimalQuoteInvestment --- pkg/strategy/grid2/strategy_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/strategy/grid2/strategy_test.go b/pkg/strategy/grid2/strategy_test.go index b3bf7998c..53bde8185 100644 --- a/pkg/strategy/grid2/strategy_test.go +++ b/pkg/strategy/grid2/strategy_test.go @@ -471,7 +471,7 @@ func TestStrategy_checkMinimalQuoteInvestment(t *testing.T) { s.QuoteInvestment = number(10_000) s.GridNum = 10 minQuoteInvestment := calculateMinimalQuoteInvestment(s.Market, s.LowerPrice, s.UpperPrice, s.GridNum) - assert.Equal(t, "20", minQuoteInvestment.String()) + assert.Equal(t, "200", minQuoteInvestment.String()) err := s.checkMinimalQuoteInvestment() assert.NoError(t, err)