Skip to content

@swapped/connect-sdk / core / ValidateAmountInputInput

Type Alias: ValidateAmountInputInput ​

ValidateAmountInputInput = object

Defined in: src/types/amount-input.types.ts:80

Input for validateAmountInput.

Properties ​

amount ​

amount: number | null

Defined in: src/types/amount-input.types.ts:81


balanceAmount? ​

optional balanceAmount?: number | null

Defined in: src/types/amount-input.types.ts:86

Hard ceiling: raw (aggregated) balance.


formatValue? ​

optional formatValue?: (value) => string

Defined in: src/types/amount-input.types.ts:88

Decorates values in default messages: $10.00 or 0.5 USDC.

Parameters ​

value ​

number

Returns ​

string


maxAmount? ​

optional maxAmount?: number | null

Defined in: src/types/amount-input.types.ts:84

Soft / spendable ceiling (e.g. balance minus fee reserve).


minAmount? ​

optional minAmount?: number | null

Defined in: src/types/amount-input.types.ts:82