Function convertAmountAndPriceToNativeDisplay

  • Returns a balance object with properties balanceObject.amount and balanceObject.display

    • balanceObject.amount is amount * priceUnit.
    • balanceObject.display is a formatted version of balanceObject.amount based on the native currency specified. buffer can be used to control the amount of decimal places shown. For more details on how this property is generated see convertAmountToNativeDisplay.

    Parameters

    • amount: Value
    • priceUnit: Value
    • nativeCurrency: string
    • Optional buffer: number

    Returns {
        amount: string;
        display: string;
    }

    • amount: string
    • display: string

Generated using TypeDoc