Represents a class that provides helper methods for routing configurations.

Hierarchy

  • RoutingHelper

Constructors

Methods

  • Converts a value from its readable representation to base units based on the specified decimals.

    Static

    Function

    BaseUnits_FromReadableValue

    Returns

    • The value in base units.

    Parameters

    • value: number | BigNumber

      The value to convert.

    • decimals: number

      The number of decimal places for the base units.

    Returns BigNumber

  • Shifts the decimal places of a value in base units from the original decimals to the new decimals.

    Static

    Function

    BaseUnits_Shift

    Returns

    • The value in base units with the new decimals.

    Parameters

    • original_base_units: BigNumber

      The value in base units with the original decimals.

    • original_decimals: number

      The original number of decimal places for the base units.

    • new_decimals: number

      The new number of decimal places for the base units.

    Returns BigNumber

  • Converts a value from its base units representation to a readable value based on the specified decimals.

    Static

    Function

    ReadableValue_FromBaseUnits

    Returns

    • The value in its readable representation.

    Parameters

    • baseUnits: BigNumber

      The value in base units to convert.

    • decimals: number

      The number of decimal places for the base units.

    Returns BigNumber

Generated using TypeDoc