We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 44809d6 commit ca268c3Copy full SHA for ca268c3
v2/common/helpers.go
@@ -12,7 +12,7 @@ func AmountToLotSize(amount, minQty, stepSize string, precision int) string {
12
amountDec := decimal.RequireFromString(amount)
13
minQtyDec := decimal.RequireFromString(minQty)
14
baseAmountDec := amountDec.Sub(minQtyDec)
15
- if baseAmountDec.LessThan(decimal.RequireFromString("0")) {
+ if baseAmountDec.LessThan(decimal.Zero) {
16
return "0"
17
}
18
stepSizeDec := decimal.RequireFromString(stepSize)
0 commit comments