Function convertAmountFromNativeValue

  • Calculates value / priceUnit, rounded down to specified decimals (default 18). Handles division by zero by returning zero

    Parameters

    • value: Value
    • priceUnit: null | Value
    • decimals: number = 18

    Returns string

Generated using TypeDoc