• Creates BigDecimal number from WAD BigInt.

    Example

    import { decimals } from "@protofire/subgraph-devkit";
    import { BigInt } from "@graphprotocol/graph-ts";

    const wad = BigInt.fromString("12500000000000000000");
    decimals.fromWad(wad); // => 12.5

    Returns

    the BigDecimal representation of the WAD BigInt.

    Parameters

    • value: BigInt

      the WAD BigInt number.

    Returns BigDecimal

Generated using TypeDoc