Function convertRawAmountToNativeDisplay

  • Calculates rawAmount / 10**assetDecimals and then returns convertAmountAndPriceToNativeDisplay(amount, priceUnit, nativeCurrency, buffer)

    See

    convertAmountAndPriceToNativeDisplay.

    Parameters

    • rawAmount: Value
    • assetDecimals: number
    • priceUnit: Value
    • nativeCurrency: string
    • Optional buffer: number

    Returns {
        amount: string;
        display: string;
    }

    • amount: string
    • display: string

Generated using TypeDoc