Kava-Labs / kava

DeFi for Crypto.
Apache License 2.0
439 stars 364 forks source link

Identify alternative to x/precisebank NewFractionalAmountFromInt wrapper type for validation #1917

Closed drklee3 closed 1 month ago

drklee3 commented 3 months ago

Reused logic for validating fractional amounts (non-empty, range, etc)

Currently implemented as a wrapper type with a Validate() method but we could also just use a function eg ValidateFractionalAmount