diff --git a/pkg/backtest/matching_test.go b/pkg/backtest/matching_test.go index b9d5766c4..4b6432805 100644 --- a/pkg/backtest/matching_test.go +++ b/pkg/backtest/matching_test.go @@ -249,7 +249,8 @@ func TestSimplePriceMatching_LimitBuyTakerOrder(t *testing.T) { assert.Equal(t, fixedpoint.NewFromFloat(100.0).Add(createdOrder.Quantity).String(), btc.Available.String()) usedQuoteAmount := createdOrder.AveragePrice.Mul(createdOrder.Quantity) - assert.Equal(t, usdt.Available.String(), fixedpoint.NewFromFloat(1000000.0).Sub(usedQuoteAmount).String()) + assert.Equal(t, "USDT", trade.FeeCurrency) + assert.Equal(t, usdt.Available.String(), fixedpoint.NewFromFloat(1000000.0).Sub(usedQuoteAmount).Sub(trade.Fee).String()) } func TestSimplePriceMatching_StopLimitOrderBuy(t *testing.T) { @@ -497,7 +498,6 @@ func TestSimplePriceMatching_PlaceLimitOrder(t *testing.T) { assert.Len(t, trades, 4) } - func TestSimplePriceMatching_LimitTakerOrder(t *testing.T) { account := getTestAccount() market := getTestMarket()