code: function fromSmallestSubunit(amount, currency) {
    const decimals = getDecimalsForCurrency(currency);
    return _.round(amount / Math.pow(10, decimals), decimals);
  }
docs: Convert an amount of money from the smallest sub-unit of the currency.
  For example, for a BTC account, this function will convert
  12345678 to 0.12345678.
  Likewise, for a USD account, 12345 is converted to 123.45.
  This function is the inverse of {@self::toSmallestSubUnit}
  
  @param {int}     amount
  @param {string}  currency
  
  @return number