"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.formatPrice = void 0;
const formatPrice = function () {
  let price = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 0;
  let _ref = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {},
    _ref$numDecimals = _ref.numDecimals,
    numDecimals = _ref$numDecimals === void 0 ? 0 : _ref$numDecimals;
  return parseFloat(price / Math.pow(10, numDecimals));
};
exports.formatPrice = formatPrice;
//# sourceMappingURL=legacy.js.map