fix: call abs on base for IsDust method

This commit is contained in:
c9s 2022-06-02 21:06:41 +08:00
parent d27fee57ad
commit 32095e2741
No known key found for this signature in database
GPG Key ID: 7385E7E464CB0A54

View File

@ -145,7 +145,7 @@ func (p *Position) NewClosePositionOrder(percentage fixedpoint.Value) *SubmitOrd
}
func (p *Position) IsDust(price fixedpoint.Value) bool {
base := p.GetBase()
base := p.GetBase().Abs()
return p.Market.IsDustQuantity(base, price)
}