Skip to content

@swapped/connect-sdk / core / validateAmountInput

Function: validateAmountInput()

validateAmountInput(__namedParameters): AmountValidationError | null

Defined in: src/modules/amount-input/amount-input.utils.ts:140

Validate a parsed amount against optional min / balance / spendable bounds.

Precedence: invalid_amountamount_zerobelow_minabove_balanceabove_spendable. Returns null when the amount is valid.

Parameters

__namedParameters

ValidateAmountInputInput

Returns

AmountValidationError | null