Skip to content

@swapped/connect-sdk / react / UseExchangePayAmountOptions

Type Alias: UseExchangePayAmountOptions ​

UseExchangePayAmountOptions = object

Defined in: src/react/exchange-pay/hooks/useExchangePayAmount.ts:21

Options for useExchangePayAmount.

Properties ​

clampToMax? ​

optional clampToMax?: boolean

Defined in: src/react/exchange-pay/hooks/useExchangePayAmount.ts:26

When true and a maximum is set, clamp the input down to the max while typing.


maxAmountFiat? ​

optional maxAmountFiat?: number

Defined in: src/react/exchange-pay/hooks/useExchangePayAmount.ts:32

Optional tighter maximum fiat amount (currently USD). Cannot raise the config / currency cap - the resolved max is Math.min of this and the currency maxAmountFiat.