Skip to content

@swapped/connect-sdk / core / convertCryptoToFiatCeil

Function: convertCryptoToFiatCeil()

convertCryptoToFiatCeil(__namedParameters): string

Defined in: src/modules/amount-input/amount-conversion.ts:175

Convert a crypto amount to fiat, rounding up to decimals.

Used for minimum-amount fiat mirrors so the displayed minimum is enterable (typing the shown fiat min must not land just under the real crypto min).

Returns '' when the input is empty/invalid or the rate is unusable.

Parameters

__namedParameters

ConvertCryptoToFiatCeilOptions

Returns

string