fix fee calc tests

This commit is contained in:
c9s 2021-03-20 22:59:53 +08:00
parent a52101b163
commit b4083bdf10

View File

@ -365,6 +365,6 @@ func TestExchange_QueryAccount(t *testing.T) {
expected.Locked = expected.Locked.Sub(expected.Available) expected.Locked = expected.Locked.Sub(expected.Available)
assert.Equal(t, expected, b) assert.Equal(t, expected, b)
assert.Equal(t, fixedpoint.NewFromFloat(0.0002).Mul(fixedpoint.NewFromInt64(10000)), resp.MakerCommission) assert.Equal(t, fixedpoint.NewFromFloat(0.0002), resp.MakerCommission)
assert.Equal(t, fixedpoint.NewFromFloat(0.0005).Mul(fixedpoint.NewFromInt64(10000)), resp.TakerCommission) assert.Equal(t, fixedpoint.NewFromFloat(0.0005), resp.TakerCommission)
} }