text: import {BigNumber} from "bignumber.js";
  
  export const toWei = (amount, decimals) => {
      amount = new BigNumber(amount);
      return amount.multipliedBy(Math.pow(10, decimals)).toString(10);
  };
  
  export const fromWei = (amount, decimals) => {
      amount = new BigNumber(amount);
      let result = amount.dividedBy(Math.pow(10, decimals)).toString(10);
      return result;
  };
  