Skip to content

@swapped/connect-sdk / core / ExchangePayFormattedOrder

Type Alias: ExchangePayFormattedOrder ​

ExchangePayFormattedOrder = Omit<ExchangePayOrder, "amount" | "fiatAmount" | "providerFee" | "merchantFee"> & object

Defined in: src/types/exchange-pay.types.ts:140

ExchangePayOrder with amounts replaced by formatted amounts, plus derived receive / total.

Type Declaration ​

amount ​

amount: ExchangePayFormattedAmount

Total crypto the user must send (includes fees).

fiatAmount ​

fiatAmount: ExchangePayFormattedAmount

Net crypto (fees removed) with the order's fiat amount as fiatValue.

merchantFee ​

merchantFee: ExchangePayFormattedAmount | null

Merchant / Swapped fee, or null when the order reports none.

providerFee ​

providerFee: ExchangePayFormattedAmount

Exchange provider fee, in ExchangePayOrder.currency.

receive ​

receive: ExchangePayFormattedAmount

Crypto the merchant receives (toAmount on swap, else net of fees).

total ​

total: ExchangePayFormattedAmount

Total crypto to send, with converted fiat total as fiatValue.