"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var ethers_1 = require("ethers");
var constants_1 = require("ethers/constants");
var parseUnits = ethers_1.utils.parseUnits;
var DECIMALS_TO_NORMALIZE = 20;
exports.getPriceInEther = function (priceInFiat, etherPriceInFiat) {
    var etherPriceNormalizedToInteger = parseUnits(etherPriceInFiat, DECIMALS_TO_NORMALIZE);
    var etherPriceNormalizedToUnits = etherPriceNormalizedToInteger.div(constants_1.WeiPerEther.toString());
    var priceInFiatNormalized = parseUnits(priceInFiat, DECIMALS_TO_NORMALIZE);
    return (priceInFiatNormalized).div(etherPriceNormalizedToUnits);
};
//# sourceMappingURL=getPriceInEther.js.map