• Scale a human-readable quantity to a chain integer.

    Rounds up to the nearest precision step using ceiling rounding.

    Parameters

    • market: Market

      The market definition (provides base decimals and precision).

    • humanQuantity: number

      The human-readable quantity as a number.

    Returns bigint

    The scaled quantity as a chain integer (bigint).