• Creates BigDecimal number from RAD BigInt.

    Example

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

    const rad = BigInt.fromString("12500000000000000000000000000000000000000000000");
    decimals.fromRad(rad); // => 12.5;

    Returns

    the BigDecimal representation of the RAD BigInt.

    Parameters

    • value: BigInt

      the RAD BigInt number.

    Returns BigDecimal

Generated using TypeDoc