chore: remove unused util func

This commit is contained in:
Gaze
2024-06-07 21:48:03 +07:00
parent 605ea63167
commit 0d075c31f8

View File

@@ -168,11 +168,3 @@ func parseNumericString(s string, maxDec uint64) (decimal.Decimal, error) {
}
return d, nil
}
func IsAmountWithinDecimals(amt decimal.Decimal, dec uint16) bool {
if dec > 18 {
return false
}
_, rem := amt.QuoRem64(powerOfTens[18-int(dec)])
return rem != 0
}