• Creates BigDecimal number from RAY BigInt.

    Example

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

    const ray = BigInt.fromString("12500000000000000000000000000");
    decimals.fromRay(ray); // => 12.5

    Returns

    the BigDecimal representation of the RAY BigInt.

    Parameters

    • value: BigInt

      the RAY BigInt number.

    Returns BigDecimal

Generated using TypeDoc