Appearance
@swapped/connect-sdk / core / ExchangePayFormattedAmount
Type Alias: ExchangePayFormattedAmount
ExchangePayFormattedAmount =
object
Defined in: src/types/exchange-pay.types.ts:107
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:109
Raw crypto amount.
exchangeRate
exchangeRate:
number|null
Defined in: src/types/exchange-pay.types.ts:117
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:119
true while the quote for this amount is loading.
fiatCurrency
fiatCurrency:
Currency
Defined in: src/types/exchange-pay.types.ts:113
Fiat currency for fiatValue.
fiatValue
fiatValue:
number|null
Defined in: src/types/exchange-pay.types.ts:115
Fiat value when a quote is available; otherwise null.
formatted
formatted:
object
Defined in: src/types/exchange-pay.types.ts:120
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:111
Token for amount.