13 lines
286 B
Go
13 lines
286 B
Go
package moneybase
|
|
|
|
import "git.sendico.io/tech/sxchnge/bff/pkg/merrors"
|
|
|
|
const MaxScale uint32 = 36
|
|
|
|
func ValidateScale(field string, scale uint32) error {
|
|
if scale > MaxScale {
|
|
return merrors.InvalidArgumentf("%s exceeds supported money scale %d", field, MaxScale)
|
|
}
|
|
return nil
|
|
}
|