import { utils } from 'ethers';
import { WeiPerEther } from 'ethers/constants';
var parseUnits = utils.parseUnits;
var DECIMALS_TO_NORMALIZE = 20;
export var getPriceInEther = function (priceInFiat, etherPriceInFiat) {
    var etherPriceNormalizedToInteger = parseUnits(etherPriceInFiat, DECIMALS_TO_NORMALIZE);
    var etherPriceNormalizedToUnits = etherPriceNormalizedToInteger.div(WeiPerEther.toString());
    var priceInFiatNormalized = parseUnits(priceInFiat, DECIMALS_TO_NORMALIZE);
    return (priceInFiatNormalized).div(etherPriceNormalizedToUnits);
};
//# sourceMappingURL=getPriceInEther.js.map