All files / src/common conversions.ts

80% Statements 4/5
100% Branches 0/0
0% Functions 0/1
75% Lines 3/4

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 63x 3x   3x    
import Decimal from "decimal.js";
import { BigNumber, BigNumberish } from "ethers";
 
export const bignumberishToDecimal = (value: BigNumberish) =>
  new Decimal(BigNumber.from(value).toHexString());