mirror of
https://github.com/alexgo-io/gaze-brc20-indexer.git
synced 2026-04-30 20:43:11 +08:00
chore: remove unused util func
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user