"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.expandTo18Decimals = exports.DEFIEDGE_BASE_URL = void 0;
const ethers_1 = require("ethers");
exports.DEFIEDGE_BASE_URL = 'https://api.defiedge.io';
function expandTo18Decimals(value, decimals) {
    return value.mul(ethers_1.BigNumber.from(10).pow(ethers_1.BigNumber.from(18).sub(ethers_1.BigNumber.from(decimals !== null && decimals !== void 0 ? decimals : 0))));
}
exports.expandTo18Decimals = expandTo18Decimals;
//# sourceMappingURL=index.js.map