- Preparing search index...
- The search index is not available
cardstack
Function convertRawAmountToNativeDisplay
- convertRawAmountToNativeDisplay(rawAmount: Value, assetDecimals: number, priceUnit: Value, nativeCurrency: string, buffer?: number): {
amount: string;
display: string;
}
-
Parameters
-
rawAmount: Value
-
assetDecimals: number
-
priceUnit: Value
-
nativeCurrency: string
-
Optional
buffer: number
Returns {
amount: string;
display: string;
}
-
amount: string
-
display: string
Calculates
rawAmount / 10**assetDecimals
and then returnsconvertAmountAndPriceToNativeDisplay(amount, priceUnit, nativeCurrency, buffer)
See
convertAmountAndPriceToNativeDisplay.