• Converts Float number into WAD BigInt.

    Example

    import { misc } from "@protofire/subgraph-devkit";

    misc.floatToWAD(12.5); // => 12500000000000000000

    Returns

    the BigInt representation in WAD.

    Parameters

    • value: number

      the Float number.

    Returns BigInt

Generated using TypeDoc