Appearance
@swapped/connect-sdk / core / ExchangePayFormattedAmount
Type Alias: ExchangePayFormattedAmount
ExchangePayFormattedAmount =
object
Defined in: src/types/exchange-pay.types.ts:113
Display-ready amount used on ExchangePayFormattedOrder. Mirrors Cash App / wallet completed-amount shape.
Properties
amount
amount:
string
Defined in: src/types/exchange-pay.types.ts:115
Raw crypto amount.
exchangeRate
exchangeRate:
number|null
Defined in: src/types/exchange-pay.types.ts:123
Live quote used to convert amount to fiat; null when unused or not loaded.
exchangeRateLoading
exchangeRateLoading:
boolean
Defined in: src/types/exchange-pay.types.ts:125
true while the quote for this amount is loading.
fiatCurrency
fiatCurrency:
Currency
Defined in: src/types/exchange-pay.types.ts:119
Fiat currency for fiatValue.
fiatValue
fiatValue:
number|null
Defined in: src/types/exchange-pay.types.ts:121
Fiat value when a quote is available; otherwise null.
formatted
formatted:
object
Defined in: src/types/exchange-pay.types.ts:126
amount
amount:
string
Display-formatted crypto amount (formatTokenAmount).
fiatValue
fiatValue:
string
Display-formatted fiat; empty when fiatValue is unknown.
token
token:
TokenSymbol
Defined in: src/types/exchange-pay.types.ts:117
Token for amount.