• Remarks

    because BN does not handle floating point, and the numbers from ethereum might be too large for JS to handle, we'll use string manipulation to move the decimal point. After this operation, the number should be safely in JS's territory.

    Parameters

    • rawAmount: BN
    • decimals: number

    Returns number

Generated using TypeDoc