Function frc46_token::token::validate_allowance
source ยท pub fn validate_allowance<'a>(
a: &'a TokenAmount,
name: &'static str,
) -> Result<&'a TokenAmount, TokenError>
Expand description
Validates that an allowance is non-negative. Allowances do not need to be an integer multiple of granularity.
Returns the argument, or an error.