Appearance
@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?
optionalbalanceAmount?:number|null
Defined in: src/types/amount-input.types.ts:86
Hard ceiling: raw (aggregated) balance.
formatValue?
optionalformatValue?: (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?
optionalmaxAmount?:number|null
Defined in: src/types/amount-input.types.ts:84
Soft / spendable ceiling (e.g. balance minus fee reserve).
minAmount?
optionalminAmount?:number|null
Defined in: src/types/amount-input.types.ts:82